/* ── Reset & tokens ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #09090f;
  --bg-2:       #0f0f1a;
  --bg-card:    #12121f;
  --border:     rgba(255,255,255,.07);
  --gold:       #f0c040;
  --gold-dim:   #a07820;
  --purple:     #7c4afc;
  --text:       #e8e8f0;
  --text-muted: #6b6b88;
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --font:       'Space Grotesk', system-ui, sans-serif;
  --nav-h:      64px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(9,9,15,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 22px; font-weight: 800; letter-spacing: -.02em;
  color: #fff;
}
.logo-dot { color: var(--gold); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(124,74,252,.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(240,192,64,.06) 0%, transparent 60%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 720px; padding: 0 24px;
}
.hero-badge {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(240,192,64,.3);
  padding: 6px 14px; border-radius: 99px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
  color: #fff; margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, #fc8a40 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px; color: var(--text-muted); margin-bottom: 36px;
}
.btn-hero {
  display: inline-block;
  background: var(--gold); color: #0a0a0f;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  padding: 14px 36px; border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(240,192,64,.3);
}
.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-muted); opacity: .5;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section-inner {
  max-width: 1200px; margin: 0 auto; padding: 96px 24px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800; color: #fff; letter-spacing: -.02em;
  text-align: center; margin-bottom: 48px;
}
.section-title.left { text-align: left; margin-bottom: 20px; }

/* ── Game grid ──────────────────────────────────────────────────────────── */
.games-section { background: var(--bg-2); }
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ── Game card ──────────────────────────────────────────────────────────── */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 20px 48px rgba(0,0,0,.5);
}
.game-card.coming-soon { opacity: .55; }
.game-card.coming-soon:hover { opacity: .75; transform: none; }

/* Card thumbnail */
.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.card-thumb-art {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.stormpals-art {
  background: linear-gradient(135deg, #1a1030 0%, #2c1810 50%, #1a0a0a 100%);
}
.placeholder-art {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2a 100%);
}
.thumb-icon { font-size: 64px; filter: drop-shadow(0 4px 16px rgba(0,0,0,.6)); }

.card-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px;
}
.card-badge.new { background: var(--gold); color: #0a0a0f; }
.card-badge.soon { background: rgba(255,255,255,.1); color: var(--text-muted); }

/* Card body */
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.card-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 99px;
}
.card-title { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; gap: 12px;
}
.card-stats {
  font-size: 12px; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 10px;
}
.card-stats span::before { content: '· '; }
.card-stats span:first-child::before { content: ''; }

.btn-play {
  display: inline-block;
  background: var(--gold); color: #0a0a0f;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  padding: 10px 20px; border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240,192,64,.3);
}
.btn-notify {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.btn-notify:hover { border-color: var(--gold); color: var(--gold); }
.btn-notify.clicked { border-color: var(--gold); color: var(--gold); cursor: default; }

/* ── About ──────────────────────────────────────────────────────────────── */
.about-section { background: var(--bg); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px; align-items: start;
}
.about-text p {
  color: var(--text-muted); margin-bottom: 14px; font-size: 16px;
}
.about-stack h3 {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.about-stack ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.about-stack li { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.stack-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .game-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
