:root {
    --ink: #080d24;
    --navy: #0b1330;
    --navy-2: #142868;
    --navy-3: #1c3480;
    --gold: #f5b93c;
    --gold-deep: #d97f1d;
    --violet: #6c4fe0;
    --cream: #f6f2e7;
    --cream-dim: #cfd0e0;
    --line: rgba(246,242,231,0.14);
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  *, *::before, *::after { box-sizing: inherit; }
  html { scroll-behavior: smooth; scroll-padding-top: env(safe-area-inset-top, 0px); }
  body {
    margin: 0;
    background: var(--ink);
    color: var(--cream);
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  img { max-width: 100%; display: block; }
  h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; margin: 0; letter-spacing: -0.01em; }
  p { margin: 0; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
  section { position: relative; }

  /* ---------- NAV ---------- */
  header {
    position: sticky; top: 0; z-index: 50;
    padding-top: calc(env(safe-area-inset-top, 0px) + 18px);
    padding-bottom: 18px;
    background: rgba(8,13,36,0.72);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .brand { display: flex; align-items: center; gap: 10px; }
  .brand img { height: 30px; width: auto; }
  .nav-links { display: flex; gap: 32px; font-size: 0.94rem; color: var(--cream-dim); }
  .nav-links a:hover { color: var(--gold); }
  .nav-cta {
    padding: 10px 20px; border-radius: 999px;
    background: var(--gold); color: var(--ink);
    font-weight: 600; font-size: 0.92rem;
    border: none; cursor: pointer;
  }
  .nav-menu-btn { display: none; background: none; border: none; color: var(--cream); padding: 4px; }

  /* ---------- HERO ---------- */
  .hero {
    padding: 72px 0 0;
    background:
      radial-gradient(ellipse 900px 500px at 18% -10%, rgba(108,79,224,0.35), transparent 60%),
      radial-gradient(ellipse 700px 500px at 100% 0%, rgba(245,185,60,0.18), transparent 55%),
      linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
    overflow: hidden;
  }
  .hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  }
  .eyebrow-row { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--gold); font-size: 0.92rem; font-weight: 600; }
  .eyebrow-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
  .hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.06;
    font-weight: 700;
    color: var(--cream);
  }
  .hero h1 span { color: var(--gold); }
  .hero p.lead {
    margin-top: 22px; font-size: 1.12rem; line-height: 1.6; color: var(--cream-dim);
    max-width: 46ch;
  }
  .hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
  .btn-primary {
    padding: 15px 26px; border-radius: 12px; background: var(--gold); color: var(--ink);
    font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
    box-shadow: 0 10px 30px -10px rgba(245,185,60,0.6);
  }
  .btn-ghost {
    padding: 15px 26px; border-radius: 12px; background: transparent; color: var(--cream);
    font-weight: 600; font-size: 1rem; border: 1px solid var(--line); cursor: pointer;
  }
  .hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
  .hero-stats div { display: flex; flex-direction: column; }
  .hero-stats strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; color: var(--cream); }
  .hero-stats span { font-size: 0.86rem; color: var(--cream-dim); margin-top: 2px; }

  .hero-banner {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
    border: 1px solid var(--line);
  }
  .hero-banner img { width: 100%; height: auto; }

  /* ---------- MARQUEE / SUPPORTED GAMES ---------- */
  .games-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
    margin-top: 90px;
    background: rgba(255,255,255,0.02);
  }
  .games-strip .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
  .games-strip .label { font-size: 0.86rem; color: var(--cream-dim); white-space: nowrap; }
  .games-list { display: flex; gap: 40px; flex-wrap: wrap; }
  .game-item { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; text-align: center; }
  .game-logo { height: 56px; width: 100%; display: flex; align-items: center; justify-content: center; }
  .game-logo img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
  .game-logo.no-logo { display: none; }
  .game-item span { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.9rem; line-height: 1.25; color: var(--cream); opacity: 0.85; }

  /* ---------- SECTION HEADS ---------- */
  .section-head { max-width: 640px; margin-bottom: 56px; }
  .section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.15; }
  .section-head p { margin-top: 16px; font-size: 1.05rem; color: var(--cream-dim); line-height: 1.6; }
  .light .section-head p { color: #5b5f7a; }

  /* ---------- FEATURES (alternating rows) ---------- */
  .features { padding: 120px 0; }
  .feature-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    padding: 60px 0;
    border-top: 1px solid var(--line);
  }
  .feature-row:first-of-type { border-top: none; }
  .feature-row.reverse .feat-visual { order: 2; }
  .feature-row.reverse .feat-text { order: 1; }
  .feat-index { font-family: 'Space Grotesk', sans-serif; color: var(--gold-deep); font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; letter-spacing: 0.02em; }
  .feat-text h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 14px; }
  .feat-text p { color: var(--cream-dim); line-height: 1.65; font-size: 1.02rem; max-width: 42ch; }
  .feat-tags { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
  .feat-tags span { font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--cream-dim); }

  /* Visual mocks */
  .feat-visual { display: flex; align-items: center; justify-content: center; }
  .mock-frame {
    width: 100%; max-width: 320px; aspect-ratio: 9/17.5; border-radius: 32px;
    background: linear-gradient(160deg, var(--navy-2), var(--navy));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55), inset 0 0 0 6px rgba(8,13,36,0.5);
    padding: 20px 16px; position: relative; overflow: hidden;
  }
  .mock-frame::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 0%, rgba(108,79,224,0.35), transparent 55%);
  }
  .mock-topbar { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
  .mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
  .mock-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--cream); }

  /* Collection grid mock (binder page) */
  .binder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
  .binder-slot {
    aspect-ratio: 5/7; border-radius: 8px; border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
  }
  .binder-slot.filled { background: linear-gradient(155deg, var(--gold), var(--gold-deep)); border-color: transparent; }
  .binder-slot.filled.violet { background: linear-gradient(155deg, #8a6cff, var(--violet)); }

  /* Scan mock */
  .scan-box { margin-top: 26px; position: relative; z-index: 1; }
  .scan-card {
    width: 68%; margin: 0 auto; aspect-ratio: 5/7; border-radius: 12px;
    background: linear-gradient(155deg, var(--violet), var(--navy-3));
    border: 2px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    position: relative;
  }
  .scan-line {
    position: absolute; left: 6%; right: 6%; height: 2px; background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
    animation: scanmove 2.4s ease-in-out infinite;
  }
  @keyframes scanmove { 0%,100% { top: 8%; } 50% { top: 88%; } }
  .scan-caption { text-align: center; margin-top: 16px; font-size: 0.8rem; color: var(--cream-dim); position: relative; z-index: 1; }

  /* Value mock */
  .value-card { margin-top: 20px; position: relative; z-index: 1; }
  .value-num { font-family: 'Space Grotesk', sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--gold); }
  .value-sub { font-size: 0.8rem; color: var(--cream-dim); margin-top: 4px; }
  .value-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 22px; }
  .value-bars div { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); opacity: 0.9; }

  @media (min-width: 400px) {}

  /* ---------- HOW IT WORKS (light section, sequence justified) ---------- */
  .how {
    background: var(--cream);
    color: #14172e;
    padding: 120px 0;
    border-radius: 40px 40px 0 0;
    margin-top: -1px;
  }
  .how .section-head h2 { color: #14172e; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .step { position: relative; padding-top: 26px; }
  .step-num {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 700;
    color: var(--gold-deep); margin-bottom: 16px;
    display: inline-block; padding-bottom: 10px; border-bottom: 2px solid var(--gold);
  }
  .step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; color: #14172e; }
  .step p { color: #5b5f7a; font-size: 0.98rem; line-height: 1.6; }

  /* ---------- SOCIAL / QUOTE STRIP ---------- */
  .quote-strip {
    background: var(--cream);
    padding: 0 0 120px;
  }
  .quote-box {
    background: linear-gradient(155deg, var(--navy-2), var(--ink));
    border-radius: 24px; padding: 56px; display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
    border: 1px solid rgba(255,255,255,0.08);
  }
  .quote-box img { width: 84px; height: 84px; }
  .quote-box p { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; line-height: 1.4; color: var(--cream); font-weight: 600; }
  .quote-box span { display: block; margin-top: 14px; color: var(--cream-dim); font-family: 'Inter'; font-weight: 500; font-size: 0.92rem; }

  /* ---------- FINAL CTA ---------- */
  .cta-final {
    padding: 130px 0 140px;
    text-align: center;
    background:
      radial-gradient(ellipse 700px 400px at 50% 0%, rgba(245,185,60,0.16), transparent 60%),
      var(--ink);
    border-top: 1px solid var(--line);
  }
  .cta-final .brand-icon { width: 64px; margin: 0 auto 26px; }
  .cta-final h2 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 18ch; margin: 0 auto; line-height: 1.14; }
  .cta-final p { margin: 20px auto 0; color: var(--cream-dim); max-width: 48ch; font-size: 1.05rem; }
  .cta-final .hero-ctas { justify-content: center; margin-top: 38px; }

  /* ---------- FOOTER ---------- */
  footer { border-top: 1px solid var(--line); padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px)); }
  .footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
  .footer-row .brand img { height: 24px; }
  .foot-links { display: flex; gap: 28px; font-size: 0.88rem; color: var(--cream-dim); flex-wrap: wrap; }
  .foot-links a:hover { color: var(--gold); }
  .foot-note { font-size: 0.82rem; color: #565a78; margin-top: 24px; }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 860px) {
    .nav-links { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-banner { order: -1; }
    .games-strip .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
    .feature-row .feat-visual, .feature-row.reverse .feat-visual { order: -1; }
    .steps { grid-template-columns: 1fr; gap: 44px; }
    .quote-box { grid-template-columns: 1fr; text-align: center; padding: 40px 28px; }
    .quote-box img { margin: 0 auto; }
    .how { border-radius: 28px 28px 0 0; }
  }
  @media (max-width: 480px) {
    .wrap { padding: 0 20px; }
    .hero { padding-top: 54px; }
    .hero-stats { gap: 24px; }
    .features, .how { padding: 80px 0; }
    .cta-final { padding: 90px 0 100px; }
  }

  :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) {
    .scan-line { animation: none; top: 45%; }
    html { scroll-behavior: auto; }
  }