/* VAYLA Link Tree — Stylesheet
 * ------------------------------------------------------------------
 * Layers:
 *   1. Tokens (CSS variables — single source of truth)
 *   2. Reset + base
 *   3. Background & atmosphere
 *   4. Page shell (nav, page, footer)
 *   5. Hero
 *   6. Stats strip
 *   7. Marquee
 *   8. Section heading
 *   9. Cards (tilt, sheen, glow)
 *  10. Bento grid (Ecosystem)
 *  11. 3D divider
 *  12. Quests (scroll-snap)
 *  13. Community
 *  14. Lore (whitepaper)
 *  15. Footer (mega)
 *  16. Animations + reduced motion
 *  17. Responsive
 * ------------------------------------------------------------------ */

/* ──────────────────────────── 1. Tokens ──────────────────────────── */
:root {
  /* Color */
  --bg:           #050606;
  --bg-2:         #0D1111;
  --bg-elev:      #0A1414;
  --bg-card:      #0F1818;
  --ink:          #F0F0EC;
  --ink-dim:      #D5D5D2;
  --ink-mute:     #A0A0A0;
  --cyan:         #20E6E6;
  --cyan-bright:  #21FFF4;
  --teal:         #228F96;
  --teal-light:   #52BCB9;
  --red:          #FF4054;
  --magenta:      var(--cyan);
  --violet:       var(--teal);

  /* Lines */
  --line:         rgba(240, 240, 236, 0.10);
  --line-strong:  rgba(240, 240, 236, 0.22);
  --line-accent:  rgba(32, 230, 230, 0.60);

  /* Surfaces */
  --card:         rgba(240, 240, 236, 0.10);
  --card-hi:      rgba(240, 240, 236, 0.16);

  /* Glows */
  --glow-cyan:    rgba(32, 230, 230, 0.45);
  --glow-red:     rgba(255, 64, 84, 0.40);
  --glow-teal:    rgba(82, 188, 185, 0.35);

  /* Shadow */
  --sh-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.45);
  --sh-2: 0 1px 0 rgba(255,255,255,0.10) inset, 0 18px 50px rgba(0,0,0,0.65), 0 0 30px rgba(32,230,230,0.25);
  --sh-hover: 0 1px 0 rgba(255,255,255,0.10) inset, 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px var(--line-accent);

  /* Type */
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', Menlo, monospace;

  /* Radius */
  --r-card: 14px;
  --r-chip: 8px;
  --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Card tilt values (set by tilt.js) */
  --tilt-rx: 0deg;
  --tilt-ry: 0deg;
  --sheen-x: 50%;
  --sheen-y: 50%;
  --tilt-duration: 320ms;
}

/* ──────────────────────────── 2. Reset + base ───────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  background-image:
    radial-gradient(ellipse at 80% -10%, rgba(32, 230, 230, 0.08), transparent 50%),
    radial-gradient(ellipse at -10% 90%, rgba(255, 64, 84, 0.05), transparent 55%);
  background-attachment: fixed;
}
::selection { background: var(--magenta); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.08em; transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--magenta); outline-offset: 2px; }

/* ───────────────────────── 3. Background & atmosphere ──────────── */
#canvas-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, transparent 0%, transparent 50%, rgba(11,11,18,0.7) 100%);
}

/* Cursor follower (decorative, hidden on touch / reduced motion) */
.cursor-follower {
  position: fixed; top: 0; left: 0; width: 18px; height: 18px;
  border: 1px solid var(--cyan); border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 400;
  transition: opacity 0.3s ease, transform 0.12s ease, width 0.2s ease, height 0.2s ease;
  mix-blend-mode: screen;
  opacity: 0;
}
.cursor-follower.is-on-link {
  width: 32px; height: 32px;
  border-color: var(--red);
}

/* Scroll progress */
#progress {
  position: fixed; top: 0; right: 0; width: 3px; height: 100%;
  z-index: 200; background: rgba(32,230,230,0.12);
}
#progress > i {
  display: block; width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--cyan), var(--teal));
  transition: height 0.08s linear;
}

/* ───────────────────────── 4. Page shell ────────────────────────── */
.page {
  position: relative; z-index: 10;
  max-width: 1280px; margin: 0 auto;
  padding: 1.2rem clamp(1rem, 4vw, 2.5rem) 4rem;
  padding-top: max(5.5rem, env(safe-area-inset-top, 0px));
}

/* Nav */
.nav {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 500;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  background: rgba(5, 6, 6, 0.65);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  max-width: calc(100vw - 2rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em;
  color: var(--ink); text-transform: uppercase; padding: 0.5rem 0.6rem;
}
.nav-brand img { width: 22px; height: 22px; border-radius: 50%; }
.nav-links { display: flex; gap: 0.1rem; }
.nav-link {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-dim);
  padding: 0.55rem 0.8rem; border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: rgba(240, 240, 236, 0.06); }
.nav-link.is-active { color: var(--cyan); }

.nav-right {
  display: flex; align-items: center; gap: 0.5rem;
  padding-left: 0.6rem; border-left: 1px solid var(--line);
  margin-left: 0.4rem;
}
.nav-ticker {
  display: inline-flex; align-items: baseline; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--ink); white-space: nowrap;
}
.nav-ticker .delta { color: var(--cyan); font-weight: 600; }
.nav-ticker .delta.is-down { color: var(--red); }

.nav-cmdk {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--ink-dim);
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(5, 6, 6, 0.6);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-cmdk:hover { color: var(--cyan); border-color: var(--line-accent); }
.nav-cmdk kbd {
  font-family: var(--mono); font-size: 0.62rem;
  padding: 0.1rem 0.35rem;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
}

.nav-burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-dim);
  align-items: center; justify-content: center;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: ''; display: block; width: 16px; height: 1px;
  background: currentColor;
}
.nav-burger span { position: relative; }
.nav-burger span::before { position: absolute; top: -5px; }
.nav-burger span::after  { position: absolute; top: 5px; }

.mobile-sheet {
  position: fixed; inset: 0; z-index: 600;
  display: none;
  background: rgba(5, 6, 6, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.mobile-sheet.is-open { display: block; }
.mobile-sheet-inner {
  padding: 6rem 2rem 2rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.mobile-sheet-inner a {
  font-family: var(--font); font-size: 1.4rem; font-weight: 600;
  color: var(--ink); padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

/* ───────────────────────── 5. Hero ──────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero-info { min-width: 0; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cyan); font-weight: 500;
  margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.65rem;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--cyan); }
.hero-name {
  font-family: var(--font); font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 7rem);
  letter-spacing: -0.055em; line-height: 0.9;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink) 35%, var(--cyan) 75%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem;
}
.hero-tagline {
  font-family: var(--font); font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink); letter-spacing: -0.01em;
  max-width: 28ch;
  margin-bottom: 0.6rem;
}
.hero-tagline em { color: var(--cyan); font-style: normal; }
.hero-desc {
  font-family: var(--mono); font-size: 0.82rem; color: var(--ink-dim);
  max-width: 46ch; letter-spacing: 0.01em; margin-bottom: 1.5rem;
}

.hero-cta-row {
  display: inline-flex; flex-wrap: wrap; gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease-spring),
              background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 8px 28px rgba(32, 230, 230, 0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover { background: var(--cyan-bright); }
.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(32, 230, 230, 0.45);
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.btn-secondary::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(32, 230, 230, 0.12);
  transform: translateY(101%);
  transition: transform 0.32s var(--ease-out);
  z-index: -1;
}
.btn-secondary:hover::before { transform: translateY(0); }
.btn-secondary:hover { border-color: var(--cyan); }

.hero-meta {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--ink-mute); text-transform: uppercase;
}
.hero-meta b { color: var(--ink); font-weight: 500; }

/* Hero stage card (right column) */
.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 18% 14%, rgba(32, 230, 230, 0.15), transparent 50%),
    radial-gradient(circle at 84% 22%, rgba(255, 64, 84, 0.10), transparent 50%),
    radial-gradient(circle at 24% 86%, rgba(82, 188, 185, 0.10), transparent 50%),
    radial-gradient(circle at 86% 78%, rgba(33, 255, 244, 0.10), transparent 50%),
    linear-gradient(180deg, rgba(15, 24, 24, 0.6), rgba(5, 6, 6, 0.6));
  overflow: hidden;
  box-shadow: var(--sh-2);
  isolation: isolate;
  cursor: pointer;
}
.hero-stage::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background:
    conic-gradient(from 0deg,
      rgba(32, 230, 230, 0.18) 0deg,
      rgba(32, 230, 230, 0.0) 30deg,
      rgba(255, 64, 84, 0.16) 90deg,
      rgba(255, 64, 84, 0.0) 130deg,
      rgba(82, 188, 185, 0.20) 200deg,
      rgba(82, 188, 185, 0.0) 250deg,
      rgba(32, 230, 230, 0.18) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
  animation: stage-rotate 22s linear infinite;
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}
.hero-stage::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 50%, rgba(32, 230, 230, 0.28) 0%, rgba(32, 230, 230, 0.0) 60%);
  filter: blur(20px);
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
  animation: stage-breath 4.4s ease-in-out infinite;
  will-change: opacity, transform;
}
.hero-stage:hover::after { opacity: 1; }
.hero-stage > * { z-index: 1; }
.hero-stage .stage-ticker,
.hero-stage .stage-chip { position: absolute; z-index: 5; }
.hero-stage .stage-coin { z-index: 2; }
.hero-stage .tonearm { z-index: 3; }
.hero-stage .stage-chip { z-index: 6; }
.hero-stage .stage-ticker { z-index: 5; }
.hero-stage .stage-ripple { z-index: 4; }

/* ── Tonearm (interactive, slides out of the way of the label) ── */
.tonearm {
  position: absolute;
  top: 6%; right: 6%;
  width: 42%; height: 42%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  --arm-angle: 32deg;
  -webkit-tap-highlight-color: transparent;
}
.tonearm:focus-visible { outline: none; }
.tonearm:focus-visible .tonearm-arm { box-shadow: 0 0 0 2px var(--cyan-bright); }

.tonearm-base {
  position: absolute;
  top: 0; right: 0;
  width: 14%; height: 14%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.45), rgba(255,255,255,0) 55%),
    conic-gradient(from 200deg, #c8cccf, #6b7275 30%, #2a2f31 60%, #6b7275 80%, #c8cccf);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,0.4),
    0 2px 5px rgba(0,0,0,0.6);
  transition: box-shadow 0.3s var(--ease-out);
}
.tonearm-pivot {
  position: absolute;
  top: 0; right: 0;
  width: 14%; height: 14%;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.tonearm-pivot::after {
  content: '';
  width: 22%; height: 22%;
  background: var(--cyan-bright);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(32,230,230,0.85);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.tonearm-arm {
  position: absolute;
  top: 7%; right: 7%;
  width: 6%; height: 60%;
  /* Move pivot point above the disc so the head clears the label. */
  transform-origin: 50% 0%;
  transform: rotate(var(--arm-angle));
  background:
    linear-gradient(180deg,
      #dfe3e5 0%,
      #b8bec1 18%,
      #6c7173 50%,
      #b8bec1 82%,
      #dfe3e5 100%);
  border-radius: 999px 999px 6px 6px / 999px 999px 4px 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.4),
    inset 0 0 0 2px rgba(0,0,0,0.25),
    0 1px 2px rgba(0,0,0,0.5);
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.tonearm-head {
  position: absolute;
  bottom: 0; left: 50%;
  width: 220%; height: 26%;
  transform: translate(-50%, 0);
  background:
    linear-gradient(180deg,
      #1c1f21 0%,
      #2a2e30 50%,
      #14171a 100%);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.18),
    0 2px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}
.tonearm-needle {
  position: absolute;
  bottom: -60%; left: 50%;
  width: 10%; height: 70%;
  transform: translateX(-50%) rotate(20deg);
  background: linear-gradient(180deg, #c0c4c6, #6c7074 60%, #2a2e31);
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

.hero-stage .stage-coin { animation-play-state: paused; }
.hero-stage.is-loaded .stage-coin { animation-play-state: running; }

/* Loaded state — swing the tonearm onto the upper portion of the
   record so the cartridge/needle never overlaps the centre label. */
.hero-stage.is-loaded .tonearm { --arm-angle: -8deg; }
.hero-stage.is-loaded .tonearm-base {
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,0.4),
    0 0 14px rgba(32,230,230,0.5),
    0 2px 5px rgba(0,0,0,0.6);
}
.hero-stage.is-loaded .tonearm-pivot::after {
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 64, 84, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .tonearm-arm,
  .tonearm-base,
  .tonearm-pivot::after { transition: none; }
  .hero-stage .stage-coin { animation: none !important; transform: none !important; }
}

@keyframes stage-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes stage-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50%      { opacity: 0.95; transform: scale(1.04); }
}

.hero-stage {
  background-color: #080d0d;
}
.hero-stage::marker { display: none; }

/* Vinyl player deck */
.hero-stage::selection { background: transparent; }
.hero-stage .stage-coin {
  position: absolute; inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0 3%, transparent 3.5%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08) 0 1px, rgba(0,0,0,0.18) 2px 4px),
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.20), transparent 35%),
    conic-gradient(from 200deg, #123f40 0%, #071718 35%, #102d2e 60%, #050b0b 80%, #123f40 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 0 0 44px rgba(0,0,0,0.8),
    0 0 0 12px rgba(0,0,0,0.32),
    0 0 0 13px rgba(32,230,230,0.18),
    0 0 55px rgba(32,230,230,0.45);
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
  animation: stage-coin-spin 12s linear infinite;
  transform-origin: center;
  will-change: transform;
}
.hero-stage .stage-coin::before {
  content: '';
  position: absolute; inset: 7%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 0 7px rgba(32,230,230,0.06), 0 0 0 8px rgba(255,64,84,0.08);
  pointer-events: none;
}
.hero-stage .stage-coin::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: linear-gradient(130deg, rgba(255,255,255,0.20), transparent 28% 65%, rgba(32,230,230,0.12));
  pointer-events: none;
}
.stage-coin:hover { animation-duration: 6s; }
.hero-stage.is-concert .stage-coin { animation: stage-coin-burst 0.9s var(--ease-out); }
@keyframes stage-coin-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes stage-coin-burst {
  0%   { transform: rotate(0deg) scale(1); }
  35%  { transform: rotate(160deg) scale(1.12); }
  70%  { transform: rotate(340deg) scale(0.95); }
  100% { transform: rotate(360deg) scale(1); }
}
.stage-coin img {
  width: 40%; height: 40%;
  position: relative;
  inset: auto;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  filter: drop-shadow(0 0 14px rgba(32, 230, 230, 0.55)) contrast(1.05) saturate(1.05);
  box-shadow: 0 0 0 5px rgba(5,6,6,0.65), 0 0 0 6px rgba(32,230,230,0.4);
}
.stage-coin img + img,
.stage-coin img:last-of-type { z-index: 2; }

  border-radius: 50%;
  border: 1px solid rgba(32, 230, 230, 0.4);
  pointer-events: none;
}

.stage-ticker {
  position: absolute; left: 1rem; right: 1rem; top: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: rgba(5, 6, 6, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--ink); text-transform: uppercase;
}
.stage-ticker-track { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.stage-ticker-track .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: live-pulse 1.4s ease-in-out infinite;
}
.stage-ticker .label { color: var(--ink-mute); }
.stage-ticker .swap { color: var(--ink); font-weight: 600; }

.stage-chip {
  position: absolute; left: 50%; bottom: 1rem;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: rgba(5, 6, 6, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  color: var(--ink); text-transform: uppercase;
}
.stage-chip .live-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-links { display: none; }
  .nav-ticker { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 600px) {
  .nav { padding: 0.4rem 0.5rem; }
  .nav-brand span { display: none; }
  .hero { padding: 1.5rem 0 1.8rem; }
  .hero-cta-row .btn { flex: 1 1 auto; justify-content: center; }
}

/* ───────────────────────── 6. Stats strip ───────────────────────── */
.stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: rgba(15, 24, 24, 0.4);
}
.stats-cell {
  padding: 1.1rem 1.2rem;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.stats-cell:last-child { border-right: 0; }
.stats-label {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.stats-value {
  font-family: var(--mono); font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stats-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan);
}
.stats-status .stat-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: live-pulse 1.4s ease-in-out infinite;
}
.stats-status[data-mode="offline"] { color: var(--ink-mute); }
.stats-status[data-mode="offline"] .stat-dot { background: var(--ink-mute); box-shadow: none; animation: none; }
.stats-status[data-mode="cache"] { color: var(--teal-light); }

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats-cell:nth-child(2) { border-right: 0; }
  .stats-cell:nth-child(3), .stats-cell:nth-child(4) { border-top: 1px solid var(--line); }
  .stats-cell:last-child { border-top: 1px solid var(--line); border-right: 0; grid-column: 1 / -1; }
}

/* ───────────────────────── 7. Marquee ───────────────────────────── */
.marquee {
  position: relative; overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(32,230,230,0.06), transparent);
  margin: 2.5rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-item {
  font-family: var(--font); font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: -0.02em; color: var(--ink);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 1.4rem;
}
.marquee-item .sep {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); flex-shrink: 0;
  box-shadow: 0 0 8px var(--cyan);
}
.marquee-item .alt { color: var(--cyan); font-style: italic; font-weight: 700; }

/* ──────────────────────── 8. Section heading ────────────────────── */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem; margin-top: 2.5rem;
  flex-wrap: wrap;
}
.sec-head .lead { display: flex; align-items: baseline; gap: 1rem; }
.sec-head h2 {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
}
.sec-head .count {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-mute); letter-spacing: 0.08em;
}
.sec-head .meta {
  font-family: var(--mono); font-size: 0.7rem; color: var(--ink-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.sec-head:first-of-type { margin-top: 1.5rem; }

/* ───────────────────────── 9. Cards (shared) ────────────────────── */
.card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-card);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--sh-1);
  background: var(--bg-card);
  overflow: hidden;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--tilt-rx)) rotateY(var(--tilt-ry));
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.32s var(--ease-out);
  will-change: transform;
}
.card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--sheen-x) var(--sheen-y),
              rgba(255, 255, 255, 0.10), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.card:hover { border-color: var(--line-accent); box-shadow: var(--sh-hover); }
.card:hover::after { opacity: 0.7; }
.card:focus-visible { outline: 2px solid var(--magenta); outline-offset: 4px; }

.card-visual {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-elev));
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.card-visual--centered {
  display: flex; align-items: center; justify-content: center;
}

/* Default: cover-style images (legacy .bg-img) */
.card-visual .bg-img,
.card-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .bg-img,
.card:hover .card-visual img { transform: scale(1.06); }

/* Logo tile — brand-coloured SVG icons sized to fit cleanly
   inside .card-visual. Drop-shadow tinted to brand colour for
   subtle glow on dark surfaces. NO invert filter; the SVGs ship
   with correct brand colours for dark backgrounds. */
.card-logo {
  display: block;
  object-fit: contain;
  width: 56%;
  height: 56%;
  min-width: 56px;
  min-height: 56px;
  max-width: 140px;
  max-height: 140px;
  background: transparent;
  border-radius: 0;
  filter: drop-shadow(0 4px 18px rgba(32, 230, 230, 0.18));
  transition: transform 0.45s var(--ease-out), filter 0.45s ease;
}
.card:hover .card-logo {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 28px rgba(32, 230, 230, 0.4));
}
/* Wordmark (wider logos like Zealy) */
.card-logo--wordmark {
  width: 70%;
  height: 50%;
  max-width: 200px;
  max-height: 80px;
}
.card-logo--round {
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.10), transparent 40%),
    var(--bg-elev);
  padding: 8%;
}

.card-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,6,6,0.6));
  pointer-events: none;
}

.card-meta {
  flex: 1; display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--bg-card);
  position: relative;
}
.card-meta::before {
  content: '';
  position: absolute; left: 1.1rem; right: 1.1rem; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.chip {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line-strong); padding: 0.22rem 0.5rem;
  border-radius: var(--r-chip); background: rgba(5,6,6,0.6);
  display: inline-flex; align-items: center; gap: 0.35rem; align-self: flex-start;
}
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.chip.teal::before, .chip.violet::before { background: var(--teal); }
.chip.red::before { background: var(--red); }
.chip.green::before { background: #22c55e; }
.chip.blue::before { background: #38bdf8; }
.chip.cream::before { background: var(--ink); }

.card-title {
  font-family: var(--font); font-size: 1.1rem; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.15; color: var(--ink);
}
.card-sub {
  font-family: var(--mono); font-size: 0.7rem; color: var(--ink-dim); letter-spacing: 0.04em;
}
.card-bot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.5rem; padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.card-stat {
  font-family: var(--mono); font-size: 0.66rem; color: var(--ink-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.card-stat b { color: var(--ink); font-weight: 600; }
.card-bot .arrow {
  font-family: var(--mono); font-size: 0.7rem; color: var(--ink-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s ease;
}
.card-bot .arrow .glyph { transition: transform 0.3s var(--ease-out); display: inline-block; }
.card:hover .arrow { color: var(--cyan); }
.card:hover .arrow .glyph { transform: translateX(4px); }

@media (hover: none) {
  .card { transform: none !important; }
}

/* ───────────────────────── 10. Bento grid ───────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.bento > .card { min-height: 220px; }
.bento-area-hero {
  grid-column: span 6;
  grid-row: span 2;
}
.bento-area-2 { grid-column: span 3; }
.bento-area-3 { grid-column: span 3; }
.bento-area-4 { grid-column: span 3; }
.bento-area-5 { grid-column: span 3; }
.bento-area-6 { grid-column: span 6; }
.bento-area-cta {
  grid-column: span 6;
  background: linear-gradient(135deg, rgba(32, 230, 230, 0.04), rgba(255, 64, 84, 0.02));
  border: 1px dashed var(--line-strong);
  cursor: default;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.4rem;
}
.bento-area-cta .cta-eyebrow {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan);
}
.bento-area-cta .cta-head {
  font-family: var(--font); font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink);
}
.bento-area-cta .cta-desc {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-dim);
  max-width: 38ch;
}

@media (max-width: 820px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento-area-hero { grid-column: span 6; grid-row: auto; }
  .bento-area-2, .bento-area-3, .bento-area-4, .bento-area-5, .bento-area-6 { grid-column: span 3; }
  .bento-area-cta { grid-column: span 6; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento > .card, .bento-area-cta { grid-column: span 1; }
}

/* Hero cell — Arena with embedded mock product */
.cell-arena .card-visual {
  background:
    radial-gradient(circle at 30% 30%, rgba(32, 230, 230, 0.4), transparent 50%),
    linear-gradient(135deg, var(--bg-elev), #04101a);
  display: grid;
  place-items: center;
  padding: 1.4rem;
}
.arena-mock {
  width: 100%; max-width: 320px;
  display: grid; gap: 0.6rem;
}
.arena-mock-title {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em;
  color: var(--cyan); text-transform: uppercase;
}
.arena-mock-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
}
.arena-mock-btn {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: rgba(5, 6, 6, 0.55);
  color: var(--ink); text-align: center;
  transition: transform 0.18s var(--ease-spring), background 0.2s ease, border-color 0.2s ease;
}
.arena-mock-btn.primary { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
.arena-mock-btn:hover { transform: translateY(-2px); border-color: var(--cyan); }
.arena-mock-bar {
  height: 6px; border-radius: 999px; background: rgba(5, 6, 6, 0.6);
  overflow: hidden; border: 1px solid var(--line);
}
.arena-mock-bar > i {
  display: block; height: 100%; width: 62%;
  background: linear-gradient(90deg, var(--cyan), var(--teal-light));
}

/* Whitepaper cell mock */
.cell-paper .card-visual {
  background:
    linear-gradient(135deg, rgba(255, 64, 84, 0.08), transparent),
    var(--bg-elev);
  padding: 1.4rem;
  align-items: flex-start;
  display: flex;
}
.pdf-mock {
  width: 100%; max-width: 220px;
  background: rgba(245, 245, 245, 0.04);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  font-family: var(--mono); font-size: 0.55rem; line-height: 1.4;
  color: var(--ink-dim);
  transform: rotate(-2deg);
  transition: transform 0.4s var(--ease-spring);
}
.card:hover .pdf-mock { transform: rotate(0deg) translateY(-4px); }
.pdf-mock-bar { display: flex; gap: 3px; align-items: center; margin-bottom: 0.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line-strong); }
.pdf-mock-bar i { display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 64, 84, 0.6); }
.pdf-mock-bar i:nth-child(2) { background: rgba(255, 193, 76, 0.6); }
.pdf-mock-bar i:nth-child(3) { background: rgba(45, 200, 110, 0.6); }
.pdf-mock-bar span { margin-left: auto; font-size: 0.5rem; color: var(--ink-mute); }
.pdf-mock-lines > div { height: 4px; background: rgba(240, 240, 236, 0.12); border-radius: 2px; margin-bottom: 3px; }
.pdf-mock-lines > div:nth-child(2) { width: 80%; }
.pdf-mock-lines > div:nth-child(3) { width: 92%; }
.pdf-mock-lines > div:nth-child(4) { width: 60%; }
.pdf-mock-title { color: var(--ink); font-weight: 700; margin: 0.4rem 0; font-size: 0.65rem; }

/* ───────────────────────── 11. 3D divider ───────────────────────── */
.divider3d {
  position: relative;
  height: 240px;
  margin: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow 1.2s ease;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(32,230,230,0.18), transparent 55%),
    linear-gradient(180deg, rgba(32,230,230,0.04), transparent 35%, transparent 65%, rgba(255,64,84,0.05));
}
#d3d-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 2;
}
#d3d-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: auto;
  cursor: grab;
  z-index: 3;
}
#d3d-overlay:active { cursor: grabbing; }

/* Static fallback coin */
.coin-static {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.coin-static img,
.coin-static svg {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    inset 0 0 36px rgba(5, 6, 6, 0.6),
    0 0 60px rgba(32, 230, 230, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.divider3d-coin-label {
  position: absolute; bottom: 1rem; left: 1.2rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute); z-index: 5;
}
.divider3d-coin-label b { color: var(--ink); font-weight: 600; }
.divider3d-coin-cta {
  position: absolute; bottom: 1rem; right: 1.2rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cyan); z-index: 5;
}
.divider3d-coin-cta::after { content: ' • click'; color: var(--ink-mute); margin-left: 0.4rem; }

.divider3d::before,
.divider3d::after,
.divider3d .beam-top,
.divider3d .beam-bottom {
  content: ''; position: absolute; pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity 0.7s ease;
}
.divider3d::before {
  top: 0; left: 0; right: 0; height: 50%;
  background: radial-gradient(ellipse at 20% 0%, rgba(32,230,230,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 0%, rgba(32,230,230,0.2) 0%, transparent 55%);
}
.divider3d::after {
  bottom: 0; left: 0; right: 0; height: 50%;
  background: radial-gradient(ellipse at 25% 100%, rgba(255,64,84,0.22) 0%, transparent 60%),
              radial-gradient(ellipse at 75% 100%, rgba(82,188,185,0.2) 0%, transparent 55%);
}
.divider3d .beam-top  { top: 0; left: 0; width: 50%; height: 100%; background: radial-gradient(circle at 0% 30%, rgba(32,230,230,0.28) 0%, transparent 55%); }
.divider3d .beam-bottom { bottom: 0; right: 0; width: 50%; height: 100%; background: radial-gradient(circle at 100% 70%, rgba(255,64,84,0.22) 0%, transparent 55%); }
.divider3d.glow-active::before,
.divider3d.glow-active::after,
.divider3d.glow-active .beam-top,
.divider3d.glow-active .beam-bottom { opacity: 1; }
.divider3d.glow-active {
  box-shadow:
    inset 0 0 80px rgba(32,230,230,0.18),
    inset 0 0 30px rgba(32,230,230,0.06);
}
@media (max-width: 600px) { .divider3d { height: 220px; } }

/* ───────────────────────── 12. Quests (scroll-snap) ─────────────── */
.quests-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.5rem 0.2rem 1.5rem;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.quests-row::-webkit-scrollbar { height: 6px; }
.quests-row::-webkit-scrollbar-track { background: rgba(240, 240, 236, 0.04); }
.quests-row::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }

.quest-card {
  position: relative;
  scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform 0.32s var(--ease-out), border-color 0.3s ease;
  isolation: isolate;
}
.quest-card:hover { border-color: var(--line-accent); transform: translateY(-4px); }
.quest-cover {
  aspect-ratio: 16 / 9;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-elev), #0c1a1a);
  display: flex; align-items: center; justify-content: center;
}
.quest-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,6,6,0.7));
}
.quest-cover-emoji {
  font-family: var(--mono); font-size: 2.6rem; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  z-index: 1;
}
.quest-meta {
  padding: 0.9rem 1.05rem 1.05rem;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.quest-title { font-family: var(--font); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.quest-sub { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-dim); }
.quest-reward {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em;
  color: var(--teal-light); text-transform: uppercase;
}
.quest-card .arrow {
  position: absolute; right: 1rem; top: 1rem;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(5, 6, 6, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--mono); color: var(--ink); font-size: 1rem;
  transition: transform 0.3s var(--ease-out), color 0.2s ease;
  z-index: 2;
}
.quest-card:hover .arrow { transform: rotate(-45deg) scale(1.05); color: var(--cyan); }

/* ───────────────────────── 13. Community ────────────────────────── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
@media (max-width: 820px) {
  .community-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .community-grid { grid-template-columns: 1fr; }
}
.community-card .card-visual {
  background:
    linear-gradient(135deg, rgba(15,24,24,0.85), rgba(8, 12, 12, 0.95));
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
}
.community-mark {
  font-family: var(--mono); font-weight: 700;
  font-size: 1.6rem; letter-spacing: -0.02em;
  color: var(--ink-dim);
  text-shadow: 0 0 20px currentColor;
}
.community-card[data-brand="x"]   .community-mark { color: var(--ink); }
.community-card[data-brand="telegram"] .community-mark { color: #29a8e0; }
.community-card[data-brand="discord"] .community-mark { color: #5865f2; }
.community-card[data-brand="linkedin"] .community-mark { color: #38bdf8; }
.community-card:hover .card-visual {
  box-shadow: inset 0 0 0 1px currentColor;
}

/* ───────────────────────── 14. Lore (whitepaper) ────────────────── */
.lore {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2.5rem 0;
}
.lore-copy h3 {
  font-family: var(--font); font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1rem;
}
.lore-copy p {
  font-family: var(--font); font-size: 1rem; color: var(--ink-dim);
  max-width: 50ch; margin-bottom: 1rem;
}
.lore-points {
  display: grid; gap: 0.6rem;
  margin: 1.4rem 0;
}
.lore-point {
  display: flex; gap: 0.7rem; align-items: baseline;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--ink);
}
.lore-point .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  flex-shrink: 0; align-self: center;
}
.lore-page {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, rgba(255, 64, 84, 0.08), transparent), var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r-card);
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.lore-page::before {
  content: '';
  position: absolute; inset: 1.2rem;
  border: 1px dashed var(--line-strong); border-radius: 8px;
}
.lore-page-inner {
  position: relative; z-index: 1;
  width: 70%; max-width: 240px;
  background: rgba(245, 245, 245, 0.05);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.2rem 1rem;
  font-family: var(--mono); font-size: 0.6rem; line-height: 1.5;
  color: var(--ink-dim);
}
.lore-page-inner .title {
  font-family: var(--font); font-weight: 800;
  font-size: 0.95rem; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 0.6rem; line-height: 1.05;
}
.lore-page-inner .row { height: 4px; background: rgba(240, 240, 236, 0.12); border-radius: 2px; margin-bottom: 4px; }
.lore-page-inner .row.s2 { width: 80%; }
.lore-page-inner .row.s3 { width: 65%; }
.lore-page-inner .row.s4 { width: 90%; }
.lore-page-inner .row.s5 { width: 50%; }

@media (max-width: 820px) {
  .lore { grid-template-columns: 1fr; }
}

/* ───────────────────────── 15. Footer (mega) ────────────────────── */
footer {
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  font-family: var(--mono);
}
.foot-brand { display: flex; flex-direction: column; gap: 0.6rem; }
.foot-brand img { width: 36px; height: 36px; border-radius: 50%; }
.foot-brand .name { font-family: var(--font); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--ink); }
.foot-brand .tagline { font-size: 0.72rem; color: var(--ink-dim); max-width: 32ch; line-height: 1.55; }
.foot-social { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 50%;
  font-family: var(--mono); font-size: 0.7rem; color: var(--ink-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.foot-social a:hover { color: var(--cyan); border-color: var(--line-accent); }

.foot-col h4 {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 0.7rem; font-weight: 500;
}
.foot-col ul { list-style: none; display: grid; gap: 0.35rem; }
.foot-col a { font-size: 0.78rem; color: var(--ink-dim); letter-spacing: 0.02em; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--cyan); }

.foot-bottom {
  grid-column: 1 / -1;
  margin-top: 2rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--ink-dim); text-transform: uppercase;
}
.foot-status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--cyan); font-weight: 600;
}
.foot-status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: live-pulse 1.4s ease-in-out infinite; }

@media (max-width: 820px) {
  footer { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  footer { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ───────────────────────── 15b. Command palette ─────────────────── */
.cmdk {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 1rem;
}
.cmdk.is-open { display: flex; }
.cmdk-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 6, 6, 0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.cmdk-panel {
  position: relative;
  width: 100%; max-width: 560px;
  background: rgba(15, 24, 24, 0.95);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px var(--line-accent);
  overflow: hidden;
  animation: cmdk-in 0.2s var(--ease-out);
}
@keyframes cmdk-in {
  from { transform: translateY(-6px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.cmdk-input {
  width: 100%;
  padding: 1rem 1.1rem;
  background: transparent;
  border: 0; outline: 0;
  font-family: var(--mono); font-size: 0.9rem;
  color: var(--ink); letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
}
.cmdk-input::placeholder { color: var(--ink-mute); }
.cmdk-list { max-height: 360px; overflow-y: auto; padding: 0.4rem; }
.cmdk-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: var(--ink); font-family: var(--mono); font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.cmdk-item.is-active { background: rgba(32, 230, 230, 0.10); color: var(--ink); }
.cmdk-item:not(.is-active):hover { background: rgba(240, 240, 236, 0.05); }
.cmdk-hint {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--ink-mute); letter-spacing: 0.06em;
}
.cmdk-item.is-active .cmdk-hint { color: var(--cyan); }
.cmdk-empty {
  padding: 1rem; text-align: center;
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--ink-mute);
}
.cmdk-foot {
  display: flex; gap: 1rem; justify-content: flex-end;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  background: rgba(5, 6, 6, 0.5);
}
.cmdk-foot kbd {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg-2); color: var(--ink);
  font-family: var(--mono);
  margin-right: 0.3rem;
}

/* ───────────────────────── 16. Animations ───────────────────────── */
@keyframes pulse-ring {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%     { transform: scale(1.12); opacity: 0.15; }
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { opacity: 0; animation: rise 0.7s var(--ease-out) forwards; }

/* ───────────────────────── 17. Reduced motion ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; }
  .card { transform: none !important; }
  .card::after { display: none; }
  .hero-stage,
  .hero-stage::before,
  .hero-stage::after,
  .stage-coin { animation: none !important; }
  .stage-coin { transform: none !important; }
  .concert-overlay { display: none; }
  .cursor-follower { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .stage-ticker, .stage-chip, .quest-card .arrow { background: rgba(5, 6, 6, 0.95); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
