@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808;
  --surface: #111;
  --card: #141414;
  --card-hover: #1a1a1a;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(219,21,166,0.3);
  --magenta: #db15a6;
  --magenta-light: #f01dbb;
  --magenta-glow: rgba(219,21,166,0.15);
  --text: #fff;
  --text-muted: #888;
  --text-dim: #555;
  --nav-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 32px;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700;
  color: var(--magenta);
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-right: auto;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .75; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all .2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--magenta); background: var(--magenta-glow); }
.nav-burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(8,8,8,0.97);
  padding: 16px;
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-muted); text-decoration: none;
  font-size: 15px; font-weight: 500;
  padding: 12px 16px; border-radius: 8px;
  transition: all .2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.mobile-menu a.active { color: var(--magenta); }

/* ─── PAGE WRAPPER ────────────────────────────────── */
.page { padding-top: var(--nav-h); min-height: 100vh; }

/* ─── HERO ────────────────────────────────────────── */
.hero {
  padding: 100px 32px 80px;
  max-width: 1100px; margin: 0 auto;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--magenta); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-tag::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--magenta); }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700; line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--magenta); }
.hero-sub {
  font-size: 18px; color: var(--text-muted);
  max-width: 520px; line-height: 1.7;
  margin-bottom: 48px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all .25s;
}
.btn-primary {
  background: var(--magenta); color: #fff;
  box-shadow: 0 0 20px rgba(219,21,166,0.3);
}
.btn-primary:hover { background: var(--magenta-light); box-shadow: 0 0 30px rgba(219,21,166,0.5); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.03); }

/* ─── STAT ROW ────────────────────────────────────── */
.stat-row {
  display: flex; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 680px;
  margin: 60px 0;
}
.stat-item {
  flex: 1; padding: 24px 28px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head); font-size: 36px; font-weight: 700;
  color: var(--magenta); line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── SECTION ─────────────────────────────────────── */
.section { padding: 64px 32px; max-width: 1100px; margin: 0 auto; }
.section-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-family: var(--font-head); font-size: 32px; font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head .count {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-dim);
}
.divider { width: 100%; height: 1px; background: var(--border); }

/* ─── POSTER GRID ─────────────────────────────────── */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.poster-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .25s;
  position: relative;
}
.poster-card:hover {
  border-color: var(--border-accent);
  background: var(--card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--border-accent);
}
.poster-img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  display: block; background: #1a1a1a;
}
.poster-img-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 32px;
}
.poster-info { padding: 14px 16px; }
.poster-title {
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  line-height: 1.3; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.poster-artist {
  font-size: 12px; color: var(--magenta);
  margin-bottom: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.poster-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.poster-value {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--text-muted);
}
.badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 4px;
}
.badge-in { background: rgba(34,197,94,0.15); color: #4ade80; }
.badge-out { background: rgba(255,255,255,0.05); color: var(--text-dim); }

/* ─── FILTER BAR ──────────────────────────────────── */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center; margin-bottom: 28px;
}
.filter-group { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill {
  padding: 7px 16px; border-radius: 999px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s; font-family: var(--font-body);
}
.filter-pill:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.filter-pill.active {
  background: var(--magenta-glow); border-color: var(--magenta);
  color: var(--magenta);
}
.filter-sep { width: 1px; height: 28px; background: var(--border); margin: 0 4px; }
.sort-select {
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; font-family: var(--font-body);
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  margin-left: auto;
}
.sort-select:focus { outline: none; border-color: var(--magenta); }
.sort-select option { background: #1a1a1a; }

/* ─── LIGHTBOX ────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  display: flex; gap: 40px; align-items: flex-start;
  max-width: 900px; width: 100%; max-height: 90vh;
}
.lightbox-img {
  width: auto; max-width: 460px; max-height: 80vh;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,0.8);
}
.lightbox-details { flex: 1; min-width: 220px; padding-top: 8px; }
.lightbox-details h2 {
  font-family: var(--font-head); font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.lightbox-artist { font-size: 15px; color: var(--magenta); margin-bottom: 20px; }
.lightbox-meta { display: flex; flex-direction: column; gap: 12px; }
.lightbox-meta-row { display: flex; flex-direction: column; gap: 2px; }
.lightbox-meta-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.lightbox-meta-val { font-size: 15px; color: var(--text); font-weight: 500; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.08); border: none;
  color: var(--text); width: 40px; height: 40px; border-radius: 50%;
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.15); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.06); border: none;
  color: var(--text); width: 44px; height: 44px; border-radius: 50%;
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.lightbox-nav:hover { background: rgba(219,21,166,0.2); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ─── REPO GRID ───────────────────────────────────── */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.repo-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  text-decoration: none; color: inherit;
  transition: all .25s; display: block;
}
.repo-card:hover {
  border-color: var(--border-accent); background: var(--card-hover);
  transform: translateY(-2px);
}
.repo-name {
  font-family: var(--font-head); font-size: 17px; font-weight: 600;
  color: var(--magenta); margin-bottom: 8px;
}
.repo-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; min-height: 38px; }
.repo-meta { display: flex; gap: 14px; align-items: center; }
.repo-lang {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
}
.lang-dot { width: 10px; height: 10px; border-radius: 50%; background: #3178c6; flex-shrink: 0; }
.repo-date { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }
.repo-private { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--border); padding: 2px 7px; border-radius: 4px; margin-left: auto; }

/* ─── CONTACT ─────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: 14px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  transition: border-color .2s; outline: none;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--magenta); }
.form-group textarea { min-height: 120px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info h3 { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.contact-info p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.contact-links { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.contact-link {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); text-decoration: none; font-size: 14px;
  transition: color .2s;
}
.contact-link:hover { color: var(--magenta); }
.contact-link-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

/* ─── STORE ───────────────────────────────────────── */
.store-hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 80px 32px 60px;
  text-align: center;
}
.store-hero h1 {
  font-family: var(--font-head); font-size: clamp(36px,6vw,72px); font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.store-hero p { color: var(--text-muted); font-size: 17px; max-width: 480px; margin: 0 auto 32px; }
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.store-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .25s;
}
.store-card:hover { border-color: var(--border-accent); transform: translateY(-3px); }
.store-card-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #1a1a1a; }
.store-card-body { padding: 16px; }
.store-card-title { font-family: var(--font-head); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.store-card-artist { font-size: 12px; color: var(--magenta); margin-bottom: 12px; }
.store-card-footer { display: flex; align-items: center; justify-content: space-between; }
.store-card-note { font-size: 12px; color: var(--text-dim); font-style: italic; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 80px;
  max-width: 1100px; margin-left: auto; margin-right: auto;
}
.footer-logo { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--magenta); }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-dim); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ─── UTILITY ─────────────────────────────────────── */
.hidden { display: none !important; }
.text-magenta { color: var(--magenta); }
.mt-4 { margin-top: 16px; }
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--magenta), transparent);
  margin: 60px 0;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 60px 20px 40px; }
  .section { padding: 48px 20px; }
  .stat-row { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .lightbox-inner { flex-direction: column; overflow-y: auto; }
  .lightbox-img { max-width: 100%; max-height: 50vh; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
}
