/* ==========================================================================
   GAME OFF SCROLLS — gameoffscrolls.com
   Neon-arcade design system. Dark, layered, glow-baked.
   Metaphor: falling neon shapes snapping into their matching container.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surface ladder (dark != black; hue-tinted navy) */
  --bg:        #06060d;
  --surface-1: #0a0a15;
  --surface-2: #10111f;
  --surface-3: #171a2b;
  --surface-4: #1f2338;

  /* Ink */
  --ink:      #f4f5ff;
  --ink-soft: #c6c8e6;
  --ink-mute: #9092b8;
  --ink-dim:  #63658c;

  /* Brand neon (straight off the logo) */
  --cyan:    #22d3ee;
  --blue:    #3b82f6;
  --magenta: #ff2d9b;
  --pink:    #ff5cc0;
  --purple:  #8b5cf6;
  --violet:  #a855f7;
  --yellow:  #fdb022;
  --green:   #22e39a;

  /* Hairlines & glass */
  --line:      rgba(255,255,255,.09);
  --line-soft: rgba(255,255,255,.055);
  --glass:     rgba(12,13,26,.62);

  /* Signature gradient */
  --grad-brand: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 32%, var(--purple) 62%, var(--magenta) 100%);
  --grad-hot:   linear-gradient(100deg, var(--magenta), var(--violet));
  --grad-cool:  linear-gradient(100deg, var(--cyan), var(--blue));

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-tech:    "Chakra Petch", "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);

  /* Rhythm */
  --radius:    18px;
  --radius-lg: 26px;
  --maxw:      1200px;
  --pad:       clamp(20px, 5vw, 40px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--magenta); color: #fff; }

/* ---------- Ambient background layers ---------- */
.bg-grid, .bg-glow, .bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
.bg-grid {
  background-image:
    linear-gradient(to right,  rgba(34,211,238,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139,92,246,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 78%);
}
.bg-glow {
  background:
    radial-gradient(46vw 46vw at 12% -6%, rgba(34,211,238,.16), transparent 60%),
    radial-gradient(44vw 44vw at 92% 2%, rgba(255,45,155,.15), transparent 60%),
    radial-gradient(60vw 50vw at 50% 108%, rgba(139,92,246,.14), transparent 62%);
}
.bg-grain {
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 11vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 8vw, 88px); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 7.5vw, 5.4rem); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
p  { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--font-tech);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.eyebrow.center-eb { justify-content: center; }

.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-mute); }
.dim   { color: var(--ink-dim); }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.neon-cyan    { color: var(--cyan);    text-shadow: 0 0 18px rgba(34,211,238,.55); }
.neon-magenta { color: var(--pink);    text-shadow: 0 0 18px rgba(255,45,155,.55); }
.neon-yellow  { color: var(--yellow);  text-shadow: 0 0 18px rgba(253,176,34,.5); }

.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: .5rem; }
.section-head p  { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --bw: 1px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; border-radius: 999px;
  font-family: var(--font-tech); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; color: var(--ink);
  position: relative; isolation: isolate;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s;
  border: var(--bw) solid var(--line);
  background: var(--surface-2);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn--primary {
  border: none; color: #0a0512;
  background: var(--grad-hot);
  box-shadow: 0 8px 30px -8px rgba(255,45,155,.6), inset 0 1px 0 rgba(255,255,255,.35);
  font-weight: 700;
}
.btn--primary:hover { box-shadow: 0 14px 40px -8px rgba(255,45,155,.75), inset 0 1px 0 rgba(255,255,255,.4); }

.btn--cyan {
  border: none; color: #04121a;
  background: var(--grad-cool);
  box-shadow: 0 8px 30px -8px rgba(34,211,238,.6), inset 0 1px 0 rgba(255,255,255,.35);
  font-weight: 700;
}
.btn--cyan:hover { box-shadow: 0 14px 40px -8px rgba(34,211,238,.78), inset 0 1px 0 rgba(255,255,255,.4); }

.btn--ghost { background: rgba(255,255,255,.03); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row.center { justify-content: center; }

/* ---------- Chips / pills ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chips.center { justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1em; border-radius: 999px;
  font-family: var(--font-tech); font-size: .82rem; font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.chip .dot--cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.chip .dot--mag  { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.chip .dot--yel  { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease-out), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__mark { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(139,92,246,.5)); }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--ink); line-height: 1; }
.brand__name span { display: block; font-family: var(--font-tech); font-weight: 500; font-size: .58rem; letter-spacing: .28em; color: var(--ink-mute); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: .3rem; }
.nav__links > a {
  font-family: var(--font-tech); font-size: .9rem; font-weight: 500;
  color: var(--ink-mute); padding: .5em .85em; border-radius: 10px;
  transition: color .25s, background .25s; position: relative;
}
.nav__links > a:hover { color: var(--ink); }
.nav__links > a.active { color: var(--ink); }
.nav__links > a.active::after {
  content: ""; position: absolute; left: .85em; right: .85em; bottom: .1em; height: 2px;
  background: var(--grad-hot); border-radius: 2px; box-shadow: 0 0 10px rgba(255,45,155,.6);
}
.nav__cta { display: flex; align-items: center; gap: .5rem; }

.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); position: relative; background: rgba(255,255,255,.03); }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Dual-platform play controls */
.nav__play { display: inline-flex; gap: .5rem; align-items: center; margin-left: .3rem; }
.btn-sm { padding: .6em 1.05em; font-size: .85rem; }
.nav__icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--ink-soft);
  transition: color .25s, border-color .25s, transform .25s, background .25s;
}
.nav__icon svg { width: 20px; height: 20px; }
.nav__icon--ig:hover { color: var(--pink); border-color: rgba(255,45,155,.45); background: rgba(255,45,155,.08); transform: translateY(-2px); }
.nav__icon--yt:hover { color: #ff5a5a; border-color: rgba(255,90,90,.45); background: rgba(255,90,90,.08); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 128px; padding-bottom: clamp(48px, 8vw, 96px); min-height: 100svh; display: flex; align-items: center; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; width: 100%; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-tech); font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  padding: .5em 1em; border-radius: 999px; color: var(--ink-soft);
  background: rgba(255,45,155,.08); border: 1px solid rgba(255,45,155,.25);
}
.hero__badge .live { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 12px var(--magenta); animation: pulse 1.8s var(--ease-io) infinite; }
.hero h1 { margin-top: 1.3rem; }
.hero h1 .word { display: inline-block; }
.hero__sub { font-size: clamp(1.1rem, 2.1vw, 1.4rem); color: var(--ink-soft); margin-top: 1.3rem; max-width: 30ch; }
.hero__sub b { color: var(--ink); font-weight: 600; }
.hero .btn-row { margin-top: 2rem; }
.hero__chips { margin-top: 1.8rem; }

.hero__stage {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
}
.hero__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__stage-label {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-family: var(--font-tech); font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  color: var(--cyan); text-transform: uppercase;
  padding: .35em .8em; border-radius: 8px; background: rgba(6,6,13,.6); border: 1px solid rgba(34,211,238,.3);
}
.hero__stage-cta {
  position: absolute; bottom: 14px; left: 14px; right: 14px; z-index: 3;
  font-family: var(--font-tech); font-size: .8rem; font-weight: 500; text-align: center;
  color: var(--ink-soft); padding: .6em; border-radius: 12px;
  background: rgba(6,6,13,.55); backdrop-filter: blur(6px); border: 1px solid var(--line);
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface-1); padding-block: 1rem; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee__track span {
  font-family: var(--font-tech); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em;
  color: var(--ink-mute); display: inline-flex; align-items: center; gap: 1rem; white-space: nowrap;
}
.marquee__track span::after { content: "◆"; color: var(--magenta); font-size: .7rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; padding: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-brand); opacity: 0; transition: opacity .4s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(0,0,0,.9); }
.card:hover::before { opacity: .6; }

.card__num {
  font-family: var(--font-tech); font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  color: var(--cyan); margin-bottom: .9rem; display: inline-block;
  padding: .3em .7em; border-radius: 8px; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.22);
}
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 1.1rem; background: var(--surface-3); border: 1px solid var(--line);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-mute); font-size: .96rem; }

/* Step card numbering */
.step { counter-increment: step; }
.step__n {
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .8rem;
}

/* Game card accents */
.game-card .card__icon { position: relative; }
.game-card[data-accent="cyan"]   .card__icon { box-shadow: 0 0 24px -6px var(--cyan); }
.game-card[data-accent="mag"]     .card__icon { box-shadow: 0 0 24px -6px var(--magenta); }
.game-card[data-accent="yellow"]  .card__icon { box-shadow: 0 0 24px -6px var(--yellow); }
.game-card[data-accent="green"]   .card__icon { box-shadow: 0 0 24px -6px var(--green); }
.game-card[data-accent="purple"]  .card__icon { box-shadow: 0 0 24px -6px var(--purple); }
.game-card .tag { font-family: var(--font-tech); font-size: .74rem; color: var(--ink-dim); letter-spacing: .04em; margin-top: 1rem; display: block; }

/* ---------- Feature / split blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  aspect-ratio: 1 / 1; position: relative;
}

/* ---------- Ritual / countdown ---------- */
.ritual { text-align: center; }
.clock {
  display: inline-flex; align-items: baseline; gap: .4rem; margin-top: 1.6rem;
  font-family: var(--font-tech); font-weight: 700;
  padding: 1.1rem 1.8rem; border-radius: var(--radius);
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.clock__seg { font-size: clamp(2rem, 6vw, 3.2rem); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; min-width: 1.6ch; text-align: center; }
.clock__unit { font-size: .7rem; letter-spacing: .12em; color: var(--ink-dim); text-transform: uppercase; }
.clock__colon { font-size: clamp(1.6rem, 5vw, 2.6rem); color: var(--magenta); animation: blink 1.1s steps(1) infinite; }

/* ---------- Trust / safety strip ---------- */
.safety { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); }
.safety__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1.8rem; }
.safety__item { display: flex; gap: .8rem; align-items: flex-start; }
.safety__item svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--green); margin-top: 2px; }
.safety__item h4 { color: var(--ink); font-size: .98rem; }
.safety__item p { font-size: .86rem; color: var(--ink-mute); margin-top: .2rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--ink);
}
.faq__q .icon { flex-shrink: 0; width: 26px; height: 26px; position: relative; transition: transform .35s var(--ease-out); }
.faq__q .icon::before, .faq__q .icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 2px; background: var(--magenta); border-radius: 2px; transform: translate(-50%,-50%); box-shadow: 0 0 8px var(--magenta); }
.faq__q .icon::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .35s var(--ease-out); }
.faq__item.open .faq__q .icon::after { transform: translate(-50%,-50%) rotate(0); }
.faq__a { overflow: hidden; height: 0; transition: height .4s var(--ease-out); }
.faq__a-inner { padding-bottom: 1.35rem; color: var(--ink-mute); }
.faq__a-inner a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--radius-lg); padding: clamp(2.6rem, 6vw, 4.6rem) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(60% 120% at 20% 0%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(60% 120% at 85% 100%, rgba(255,45,155,.2), transparent 60%),
    var(--surface-1);
  border: 1px solid var(--line);
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 46ch; margin: 0 auto 1.8rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-1); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: 2rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__brand { max-width: 34ch; }
.footer__brand .brand { margin-bottom: 1.1rem; }
.footer__brand p { font-size: .9rem; color: var(--ink-mute); }
.footer__socials { display: flex; gap: .7rem; margin-top: 1.3rem; }
.footer__socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--ink-mute); transition: color .25s, border-color .25s, transform .25s; }
.footer__socials a:hover { color: var(--ink); border-color: rgba(255,255,255,.25); transform: translateY(-2px); }
.footer__socials svg { width: 20px; height: 20px; }
.footer__col h4 { font-family: var(--font-tech); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 1rem; }
.footer__col a { display: block; font-size: .92rem; color: var(--ink-mute); padding: .32em 0; transition: color .25s; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.footer__bottom p { font-size: .82rem; color: var(--ink-dim); }
.footer__disclaimer { font-size: .78rem; color: var(--ink-dim); line-height: 1.6; margin-top: 1.4rem; max-width: 90ch; }

/* ---------- Legal / doc pages ---------- */
.doc-hero { padding-top: 140px; padding-bottom: 2rem; }
.doc-hero .eyebrow { margin-bottom: 1rem; }
.doc-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.doc-hero .updated { font-family: var(--font-tech); font-size: .85rem; color: var(--ink-dim); margin-top: 1.2rem; }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.doc-toc { position: sticky; top: 100px; }
.doc-toc h4 { font-family: var(--font-tech); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 1rem; }
.doc-toc a { display: block; font-size: .88rem; color: var(--ink-mute); padding: .4em 0 .4em .9em; border-left: 2px solid var(--line); transition: color .25s, border-color .25s; }
.doc-toc a:hover, .doc-toc a.active { color: var(--ink); border-left-color: var(--magenta); }

.doc { max-width: 760px; }
.doc h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 3rem; padding-top: 1.5rem; scroll-margin-top: 100px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 2rem; color: var(--ink); }
.doc p { margin-top: 1rem; color: var(--ink-soft); }
.doc ul.bullets { margin-top: 1rem; padding-left: 0; }
.doc ul.bullets li { position: relative; padding-left: 1.6em; margin-top: .7rem; color: var(--ink-soft); }
.doc ul.bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--grad-hot); box-shadow: 0 0 8px rgba(255,45,155,.5); transform: rotate(45deg); }
.doc ol.num { margin-top: 1rem; padding-left: 1.4em; color: var(--ink-soft); }
.doc ol.num li { margin-top: .7rem; padding-left: .3em; }
.doc ol.num li::marker { color: var(--cyan); font-family: var(--font-tech); font-weight: 700; }
.doc a.inline { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--ink); }

.callout {
  margin-top: 1.6rem; padding: 1.2rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface-1);
  display: flex; gap: .9rem; align-items: flex-start;
}
.callout svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.callout p { margin-top: 0; font-size: .92rem; }
.callout--warn { border-color: rgba(253,176,34,.3); background: rgba(253,176,34,.05); }
.callout--warn svg { color: var(--yellow); }
.callout--info { border-color: rgba(34,211,238,.28); background: rgba(34,211,238,.05); }
.callout--info svg { color: var(--cyan); }
.callout--danger { border-color: rgba(255,45,155,.3); background: rgba(255,45,155,.05); }
.callout--danger svg { color: var(--pink); }

.legal-note { font-size: .82rem; color: var(--ink-dim); font-style: italic; margin-top: 1rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.35); } }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: .25; } }
@keyframes scroll-x { to { transform: translateX(-50%); } }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { max-width: 440px; margin-inline: auto; order: -1; width: 100%; }
  .hero { min-height: auto; padding-top: 116px; }
  .hero__sub { max-width: 46ch; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
  .safety__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { display: none; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad) 1.6rem; transform: translateY(-120%); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .45s var(--ease-out), opacity .35s var(--ease-out), visibility .45s;
    max-height: calc(100svh - 74px); overflow-y: auto;
  }
  body.nav-open .nav__links { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__links > a { padding: .9em .4em; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
  .nav__links > a.active::after { display: none; }
  .nav__links .nav__play { display: flex; flex-direction: column; gap: .6rem; width: 100%; margin: 1.2rem 0 0; }
  .nav__links .nav__play .btn { width: 100%; }
}

/* Desktop: show inline play buttons, hide the compact platform icons */
@media (min-width: 901px) { .nav__cta .nav__icon { display: none; } }

@media (max-width: 640px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .safety__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  /* Compact header so brand + Play + menu fit */
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: .96rem; }
  .brand__name span { display: none; }
  .nav { gap: .5rem; }
  .nav__cta { gap: .4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
}

/* ---------- No-JS fallback ---------- */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Print (legal pages) ---------- */
@media print {
  .site-header, .site-footer, .bg-grid, .bg-glow, .bg-grain, .doc-toc { display: none; }
  body { background: #fff; color: #000; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc h2, .doc h3 { color: #000; }
}
