/* Clink Arcade — marketing + legal site. Brand tokens mirror src/brand.config.ts. */
:root {
  --bg: #0B0E1A;
  --surface: #141A2E;
  --surface-alt: #1E2740;
  --primary: #28E0C8;     /* electric mint */
  --secondary: #FF4D9D;   /* neon magenta */
  --text: #F2F5FF;
  --muted: #8A93B5;
  --border: #2A3550;
  --gold: #FFC24D;
  --maxw: 1080px;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient arcade glow + faint grid backdrop */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60vw 60vw at 12% -10%, rgba(40,224,200,0.16), transparent 60%),
    radial-gradient(55vw 55vw at 95% 0%, rgba(255,77,157,0.13), transparent 55%),
    radial-gradient(70vw 50vw at 50% 120%, rgba(40,224,200,0.08), transparent 60%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(42,53,80,0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,53,80,0.25) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(100% 70% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(100% 70% at 50% 0%, #000 30%, transparent 85%);
  opacity: 0.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11,14,26,0.72);
  border-bottom: 1px solid var(--border);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border); }
.brand .name { font-family: 'Anton', Impact, sans-serif; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; color: var(--text); }
.brand .name b { color: var(--primary); font-weight: 400; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---- Buttons / store badges ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; border: 1px solid var(--border); color: #fff;
  padding: 11px 20px; border-radius: 14px; min-width: 200px;
}
.store-badge:hover { text-decoration: none; border-color: var(--primary); transform: translateY(-1px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb-small { display: block; font-size: 10px; color: var(--muted); line-height: 1.1; letter-spacing: 0.5px; }
.store-badge .sb-big { display: block; font-size: 18px; font-weight: 700; line-height: 1.15; }
.store-badge[data-soon]::after { content: 'Soon'; font-size: 10px; color: var(--gold); border: 1px solid rgba(255,194,77,0.5); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }

/* ---- Hero ---- */
.hero { padding: 40px 0 60px; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px; color: var(--primary);
  background: rgba(40,224,200,0.08); border: 1px solid rgba(40,224,200,0.3);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.hero h1 {
  font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 9vw, 92px); line-height: 0.95; letter-spacing: 1px;
  margin: 30px auto 20px; max-width: 12ch;
}
.hero h1 .mint { color: var(--primary); text-shadow: 0 0 32px rgba(40,224,200,0.45); }
.hero h1 .pink { color: var(--secondary); text-shadow: 0 0 32px rgba(255,77,157,0.4); }
.hero p.sub { font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); max-width: 54ch; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* ---- The arcade cabinet (hero star) ---- */
.cabinet { position: relative; width: clamp(280px, 62vw, 430px); margin: 6px auto 0; animation: floaty 6.5s ease-in-out infinite; }
.cabinet::before {
  content: ''; position: absolute; inset: -6% -14%; z-index: -1; filter: blur(14px);
  background:
    radial-gradient(48% 42% at 50% 40%, rgba(40,224,200,0.30), transparent 70%),
    radial-gradient(44% 40% at 62% 56%, rgba(255,77,157,0.22), transparent 72%);
}
.cab-img {
  width: 100%; display: block; border-radius: 16px;
  -webkit-mask-image: radial-gradient(128% 106% at 50% 44%, #000 72%, transparent 97%);
  mask-image: radial-gradient(128% 106% at 50% 44%, #000 72%, transparent 97%);
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* wordmark on the cabinet marquee */
.cab-marquee {
  position: absolute; top: 7.4%; left: 50%; transform: translateX(-50%);
  font-family: 'Anton', sans-serif; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(11px, 3.2vw, 24px); letter-spacing: 1px; color: #fff;
  text-shadow: 0 0 10px rgba(255,77,157,0.95), 0 2px 3px rgba(0,0,0,0.55);
}
/* neon attract-mode inside the cabinet screen (coords from DailyQuestHero) */
.cab-screen {
  position: absolute; left: 24.5%; top: 20.6%; width: 50.1%; height: 29.9%;
  overflow: hidden; border-radius: 5px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(40,224,200,0.20), rgba(11,14,26,0.10) 72%);
}
.scanlines { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(40,224,200,0.11) 0 2px, transparent 2px 4px); animation: scan 6s linear infinite; }
@keyframes scan { to { background-position: 0 -80px; } }
.attract { position: relative; font-family: 'Anton', sans-serif; color: var(--primary); font-size: clamp(10px, 2.6vw, 20px); letter-spacing: 2px; text-shadow: 0 0 12px rgba(40,224,200,0.9); animation: flicker 3s infinite; }
@keyframes flicker { 0%,92%,100% { opacity: 1; } 93% { opacity: 0.35; } 95% { opacity: 1; } 96% { opacity: 0.5; } 97% { opacity: 1; } }

/* ---- Clink the coin (spinning crypto-token mascot, pure CSS) ---- */
.coin-wrap { position: relative; perspective: 800px; width: var(--cs, 92px); height: calc(var(--cs, 92px) * 1.22); }
.coin-bob { width: 100%; height: 100%; animation: coinBob 3.2s ease-in-out infinite; }
.coin {
  width: 100%; height: 100%; border-radius: 50%; position: relative; transform-style: preserve-3d;
  background: radial-gradient(circle at 36% 30%, #FFF3CC 0%, #FFDA63 32%, #F4B72E 60%, #C6881F 100%);
  box-shadow:
    inset 0 6px 10px rgba(255,245,200,0.7),
    inset 0 -9px 14px rgba(120,78,16,0.6),
    inset 0 0 0 5px rgba(255,255,255,0.18),
    0 12px 26px rgba(0,0,0,0.45),
    0 0 34px rgba(255,194,77,0.55);
  /* pure token spin kept only when NOT a full character (.clink disables it) */
  animation: coinSpin 3.6s linear infinite;
}
.coin::after { content: ''; position: absolute; inset: 11%; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(198,136,31,0.55); }
.coin-face { position: absolute; inset: 0; }
.coin-face circle { fill: #9a6518; }
.coin-face path { stroke: #9a6518; }
@keyframes coinSpin { to { transform: rotateY(360deg); } }
@keyframes coinBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.spark { position: absolute; width: 9px; height: 9px; border-radius: 50%; opacity: 0; animation: twinkle 2.6s ease-in-out infinite; background: radial-gradient(circle, #fff 0%, var(--primary) 40%, transparent 72%); }
.spark.s2 { background: radial-gradient(circle, #fff 0%, var(--secondary) 40%, transparent 72%); }
.spark.s1 { top: 0; left: -8%; animation-delay: 0s; }
.spark.s2 { top: 68%; left: 98%; animation-delay: 0.8s; }
.spark.s3 { top: -10%; left: 68%; animation-delay: 1.4s; }
.spark.s4 { top: 82%; left: -6%; animation-delay: 2s; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 1; transform: scale(1); } }
.coin-hero { position: absolute; right: -2%; bottom: 15%; --cs: clamp(60px, 13vw, 92px); z-index: 3; }
.coin-big { --cs: clamp(128px, 30vw, 196px); flex: none; }

/* ---- Clink the CHARACTER — coin head + stubby Remix-style arms/legs (Chris 2026-07-17).
   Proportions match the lime Remix blocky mascot: short thick rounded arm stubs at the sides,
   two short thick rounded legs standing under the coin. Limbs sit on a NON-spinning frame so the
   face + limbs stay coherent (the peeker is a little guy now, not just a spinning token). ---- */
.clink { position: relative; width: 100%; height: 100%; }
.clink .coin { position: absolute; inset: 0; z-index: 2; animation: none; } /* face stays forward */
.limb { position: absolute; z-index: 1; border-radius: 999px;
  background: linear-gradient(180deg, #FFE28A 0%, #FFC24D 42%, #E7A52C 72%, #C6881F 100%);
  box-shadow: inset 0 2px 2px rgba(255,246,205,0.75), inset 0 -2px 3px rgba(120,78,16,0.35), 0 2px 5px rgba(0,0,0,0.3); }
/* SHORT stub arms attached at the coin's SIDE EDGES (neither behind nor in front), resting angled
   slightly down; only the right one waves. Each pivots at its inner (shoulder) end, so raising it
   opens a small gap against the round body — the Remix wave (Chris 2026-07-18). */
.arm { width: 34%; height: 21%; top: 46%; }
.arm-l { left: -31%; transform-origin: right center; transform: rotate(-14deg); }
.arm-r { right: -31%; transform-origin: left center; transform: rotate(14deg); } /* the waver */
/* two short leg nubs attached under the coin */
.leg { width: 24%; height: 24%; bottom: -12%; border-radius: 999px; }
.leg-l { left: 21%; }
.leg-r { right: 21%; }
/* hero / meet-clink body wrappers need extra room for legs */
.clink-body { position: relative; width: var(--cs, 92px); height: calc(var(--cs, 92px) * 1.22); }
.clink-body .clink { width: var(--cs, 92px); height: var(--cs, 92px); }
.clink-body .coin { width: 100%; height: 100%; }

/* ---- Clink peekaboo — the character pops out fully from behind a cabinet edge, HOLDS ~3s, then
   WAVES its right arm, and ducks back. Both peekers share ONE 15s cycle, offset so they alternate
   and never pop at once (Chris, 2026-07-17). ---- */
.peek { position: absolute; overflow: hidden; z-index: 2; pointer-events: none; }
.peek .peek-coin { position: absolute; width: var(--ps); height: var(--ps); }
.peek-left {
  --ps: clamp(50px, 11vw, 74px);
  left: 0; bottom: 18%;
  width: calc(var(--ps) * 1.95); height: calc(var(--ps) * 2.15);
}
.peek-left .peek-coin { left: calc(var(--ps) * 0.55); top: calc(var(--ps) * 0.45); transform: translateX(-195%); animation: peekX 15s ease-in-out infinite 0.8s; }
.peek-right {
  --ps: clamp(50px, 11vw, 74px);
  right: 0; bottom: 32%;
  width: calc(var(--ps) * 1.95); height: calc(var(--ps) * 2.15);
}
.peek-right .peek-coin { right: calc(var(--ps) * 0.55); top: calc(var(--ps) * 0.6); transform: translateX(195%); animation: peekXr 15s ease-in-out infinite 8.3s; }
/* 15s cycle: hidden → pop out (3–7%) → HOLD ~3s → wave+hi (~23–38%) → duck (45–48%) → hidden */
@keyframes peekX {
  0%, 3% { transform: translateX(-195%); }
  7%, 45% { transform: translateX(0); }
  48%, 100% { transform: translateX(-195%); }
}
@keyframes peekXr {
  0%, 3% { transform: translateX(195%); }
  7%, 45% { transform: translateX(0); }
  48%, 100% { transform: translateX(195%); }
}
/* the WAVE — right arm swings after the ~3s hold, phase-locked to the same 15s cycle + delay */
.peek .arm-r { animation: clinkWave 15s ease-in-out infinite; }
.peek-left .arm-r { animation-delay: 0.8s; }
.peek-right .arm-r { animation-delay: 8.3s; }
@keyframes clinkWave {
  0%, 23% { transform: rotate(14deg); }     /* idle: rests attached at the edge, angled down */
  27% { transform: rotate(-58deg); }         /* raised up — a gap opens against the round body */
  30% { transform: rotate(-42deg); }
  33% { transform: rotate(-58deg); }
  36% { transform: rotate(-42deg); }
  39%, 100% { transform: rotate(14deg); }    /* back to attached rest */
}
/* eye "clink" blink — 2 blinks during the hold, phase-locked to the 15s cycle */
.peek .coin-face circle { transform-box: fill-box; transform-origin: center; animation: clinkBlink 15s linear infinite; }
.peek-left .coin-face circle { animation-delay: 0.8s; }
.peek-right .coin-face circle { animation-delay: 8.3s; }
@keyframes clinkBlink {
  0%, 11% { transform: scaleY(1); }
  12% { transform: scaleY(0.12); }
  13%, 17% { transform: scaleY(1); }
  18% { transform: scaleY(0.12); }
  19%, 100% { transform: scaleY(1); }
}

/* ---- Insert-coin marquee band ---- */
.coinband { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(20,26,46,0.5); padding: 15px 0; }
.coinband-track { display: flex; align-items: center; gap: 30px; width: max-content; white-space: nowrap; animation: slide 28s linear infinite; }
.coinband-track span { font-family: 'Anton', sans-serif; font-size: 19px; letter-spacing: 2px; color: var(--primary); text-transform: uppercase; }
.pip { width: 12px; height: 12px; border-radius: 50%; flex: none; background: radial-gradient(circle at 40% 35%, #FFDA63, #C6881F); box-shadow: 0 0 8px rgba(255,194,77,0.6); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- Stats ---- */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.stat { background: rgba(20,26,46,0.7); border: 1px solid var(--border); border-radius: 16px; padding: 18px 26px; min-width: 150px; text-align: center; }
.stat .num { font-family: 'Anton', sans-serif; font-size: 30px; color: var(--primary); line-height: 1; }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: 0.3px; }

/* ---- Sections ---- */
section.block { padding: 68px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 5vw, 46px); letter-spacing: 1px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }

/* category chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip { font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform 0.18s ease, border-color 0.18s ease; }
.feature:hover { transform: translateY(-4px); border-color: rgba(40,224,200,0.4); }
.feature .fi { font-size: 28px; margin-bottom: 14px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---- Meet Clink band ---- */
.clink-band { background: linear-gradient(180deg, rgba(255,194,77,0.05), transparent 60%); }
.clink-wrap { display: flex; align-items: center; gap: 48px; justify-content: center; flex-wrap: wrap; }
.clink-copy { max-width: 460px; }
.clink-copy .eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; margin-bottom: 6px; }
.clink-copy h2 { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 5vw, 48px); letter-spacing: 1px; }
.clink-copy p { color: #C9D0E6; font-size: 17px; margin-top: 12px; }

/* ---- Final CTA ---- */
.cta-final { text-align: center; }
.cta-final h2 { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 6vw, 54px); letter-spacing: 1px; }
.sub-center { color: var(--muted); max-width: 52ch; margin: 12px auto 28px; font-size: 17px; }

/* ---- Footer ---- */
.site-foot { border-top: 1px solid var(--border); padding: 44px 0 60px; margin-top: 20px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: var(--muted); font-size: 15px; }
.foot-links a:hover { color: var(--text); text-decoration: none; }
.foot-meta { color: var(--muted); font-size: 14px; }
.foot-meta b { color: var(--text); font-weight: 600; }

/* ---- Legal / doc pages ---- */
.doc { padding: 56px 0 40px; max-width: 820px; }
.doc .eyebrow { color: var(--primary); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }
.doc h1 { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 6vw, 52px); letter-spacing: 1px; margin: 10px 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 21px; margin: 36px 0 12px; color: var(--text); }
.doc h3 { font-size: 17px; margin: 24px 0 8px; color: var(--text); }
.doc p, .doc li { color: #C9D0E6; font-size: 16px; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }
.doc .callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 12px; padding: 18px 20px; margin: 22px 0; }
.doc a { text-decoration: underline; }
.back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.back:hover { color: var(--primary); text-decoration: none; }

@media (max-width: 560px) {
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }
  .hero { padding: 28px 0 44px; }
  .store-badge { min-width: 0; flex: 1; }
  .clink-wrap { gap: 24px; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .cabinet, .coin-bob, .coin, .scanlines, .attract, .coinband-track, .spark { animation: none !important; }
  /* peekers rest fully emerged (arm at rest) instead of animating */
  .peek-left .peek-coin { animation: none !important; transform: translateX(0) !important; }
  .peek-right .peek-coin { animation: none !important; transform: translateX(0) !important; }
  .peek .coin-face circle, .peek .arm-r { animation: none !important; }
}
