:root {
  --bg: #0b0816;
  --bg-2: #110c22;
  --card: #16102b;
  --card-2: #1e1640;
  --line: rgba(198, 255, 61, 0.14);
  --line-2: rgba(240, 236, 255, 0.09);
  --text: #f3f0ff;
  --muted: #a49cc4;
  --accent: #c6ff3d;
  --accent-2: #94d61b;
  --accent-ink: #142108;
  --lilac: #a78bfa;
  --good: #5dffb4;
  --warn: #ffc23d;
  --bad: #ff4d6d;
  --radius: 24px;
  --display: 'Bricolage Grotesque', ui-rounded, system-ui, sans-serif;
  --body: 'Outfit', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- animated background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.b1 { top: -30vmax; right: -20vmax; background: radial-gradient(closest-side, rgba(198, 255, 61, 0.13), transparent 70%); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { top: 20vh; left: -35vmax; background: radial-gradient(closest-side, rgba(167, 139, 250, 0.16), transparent 70%); animation: drift2 32s ease-in-out infinite alternate; }
.b3 { bottom: -45vmax; right: -10vmax; background: radial-gradient(closest-side, rgba(124, 246, 255, 0.08), transparent 70%); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-14vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(16vmax, -8vmax) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-10vmax, -14vmax) scale(1.2); } }
.stars {
  position: absolute; inset: -100% 0 0 0;
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(198, 255, 61, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 200px 160px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 60px 210px, rgba(167, 139, 250, 0.7), transparent),
    radial-gradient(1.6px 1.6px at 260px 40px, rgba(255, 255, 255, 0.35), transparent);
  background-size: 300px 260px;
  opacity: 0.6;
  animation: stars 120s linear infinite;
  will-change: transform;
}
@keyframes stars { to { transform: translateY(50%); } }

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50;
  background: linear-gradient(90deg, var(--lilac), var(--accent));
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(198, 255, 61, 0.6);
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--accent); color: var(--accent-ink); font: 700 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.ticker-track { display: flex; gap: 40px; width: max-content; padding: 9px 0; animation: marquee 34s linear infinite; }
.ticker-track span::after { content: '◉'; margin-left: 40px; color: rgba(20, 33, 8, 0.45); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 4vw, 48px);
  background: rgba(11, 8, 22, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.35s var(--ease-out), background 0.35s, border-color 0.35s;
}
.nav.scrolled { padding-top: 10px; padding-bottom: 10px; background: rgba(11, 8, 22, 0.82); border-color: var(--line-2); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px var(--display); letter-spacing: -0.02em; }
.brand-bot { width: 36px; height: 40px; display: block; transition: transform 0.4s var(--ease-spring); }
.brand:hover .brand-bot { transform: rotate(-12deg) scale(1.1); }
.brand-bot svg { width: 100%; height: 100%; }
.nav-links { display: flex; gap: 6px; font-size: 15px; color: var(--muted); }
.nav-links a { position: relative; padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--card);
  transition: border-color 0.2s, transform 0.3s var(--ease-spring), background 0.2s;
}
.icon-btn svg { width: 17px; height: 17px; fill: var(--text); }
.icon-btn:hover { border-color: var(--accent); transform: translateY(-2px) rotate(-6deg); background: var(--card-2); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 54px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px var(--body); cursor: pointer; white-space: nowrap;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-spring); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(198, 255, 61, 0.6); }
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(198, 255, 61, 0.75); }
.btn-accent:active { transform: translateY(0) scale(0.97); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); }
.btn-ghost::after { background: linear-gradient(105deg, transparent 30%, rgba(198, 255, 61, 0.18) 50%, transparent 70%); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-3px); }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.btn.is-soon { opacity: 0.75; }

/* ---------- layout ---------- */
main { display: block; }
.section { padding: clamp(64px, 10vw, 120px) clamp(16px, 4vw, 48px); max-width: 1200px; margin: 0 auto; }
.section h2 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 700 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(198, 255, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0); } }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 540px; margin: 22px 0 0; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px);
  max-width: 1200px; margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px);
  min-height: calc(100vh - 110px);
}
.hero-title { font-size: clamp(54px, 8.6vw, 112px); line-height: 0.94; letter-spacing: -0.035em; }
.hero-title .line { display: block; }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(4deg); animation: word-in 0.9s var(--ease-spring) forwards; animation-delay: calc(0.12s + var(--i) * 0.11s); }
@keyframes word-in { to { opacity: 1; transform: none; } }
.hero-title .accent .w {
  background: linear-gradient(100deg, var(--accent) 0%, #f1ffb8 25%, var(--accent) 45%, var(--lilac) 75%, var(--accent) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: word-in 0.9s var(--ease-spring) forwards, shimmer 6s linear 1.2s infinite;
  animation-delay: calc(0.12s + var(--i) * 0.11s), 1.4s;
}
@keyframes shimmer { to { background-position: -250% 0; } }
.intro { opacity: 0; transform: translateY(18px); animation: rise 0.8s var(--ease-out) forwards; animation-delay: calc(0.25s + var(--d) * 0.09s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- CA box (animated border) ---------- */
.ca-box {
  position: relative; margin-top: 30px; max-width: 540px;
  border-radius: 18px; padding: 1.5px; overflow: hidden; isolation: isolate;
  background: var(--line-2);
}
.ca-box::before {
  content: ''; position: absolute; z-index: -1;
  left: 50%; top: 50%; width: 160%; aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--lilac) 70%, var(--accent) 82%, transparent 92%);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: ca-spin 4.5s linear infinite;
  will-change: transform;
}
@keyframes ca-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.ca-inner { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 16.5px; background: var(--card); }
.ca-label { flex: none; padding: 6px 10px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 700 12px/1 var(--mono); letter-spacing: 0.1em; }
.ca-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 14px var(--mono); color: var(--text); }
.ca-box.is-empty .ca-value { color: var(--muted); }
.ca-value .dots i { display: inline-block; font-style: normal; animation: dot 1.4s infinite; }
.ca-value .dots i:nth-child(2) { animation-delay: 0.2s; }
.ca-value .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.2; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ca-copy {
  flex: none; height: 38px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--card-2); font: 600 14px var(--body); cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.3s var(--ease-spring);
}
.ca-copy:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); transform: scale(1.05); }
.ca-copy:disabled { cursor: default; color: var(--muted); }
.ca-copy.copied { background: var(--good); color: #062014; animation: pop 0.4s var(--ease-spring); }
.ca-box-lg { margin-top: 24px; }
.ca-box-lg .ca-value { font-size: 15px; }
@keyframes pop { 0% { transform: scale(0.8); } 100% { transform: scale(1); } }

/* ---------- hero stage ---------- */
.stage { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; display: grid; place-items: center; }
.stage-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(198, 255, 61, 0.28), rgba(167, 139, 250, 0.12) 60%, transparent); animation: glow 5s ease-in-out infinite alternate; }
@keyframes glow { to { transform: scale(1.12); opacity: 0.75; } }
.radar { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.radar i { position: absolute; width: 56%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(198, 255, 61, 0.35); opacity: 0; animation: radar 4.5s var(--ease-out) infinite; }
.radar i:nth-child(2) { animation-delay: 1.5s; }
.radar i:nth-child(3) { animation-delay: 3s; }
@keyframes radar { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.75); opacity: 0; } }
.sparkles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spk { fill: var(--accent); transform-box: fill-box; transform-origin: center; animation: twinkle 2.8s ease-in-out infinite; }
.spk.alt { fill: var(--lilac); }
.s2 { animation-delay: 0.7s; } .s3 { animation-delay: 1.4s; } .s4 { animation-delay: 2.1s; }
@keyframes twinkle { 0%, 100% { transform: scale(0.4) rotate(0deg); opacity: 0.3; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }

.hero-bot {
  position: relative; z-index: 2; width: 78%; aspect-ratio: 400 / 440;
  border: 0; padding: 0; background: none; cursor: pointer;
  opacity: 0; animation: bot-in 1.1s var(--ease-spring) 0.35s forwards;
  -webkit-tap-highlight-color: transparent;
}
.hero-bot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-bot:hover { filter: drop-shadow(0 0 30px rgba(198, 255, 61, 0.25)); }
.hero-bot.ready { opacity: 1; animation: none; }
.hero-bot.ready.poke { animation: poke 0.55s var(--ease-spring); }
@keyframes bot-in { from { opacity: 0; transform: translateY(60px) scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes poke { 0% { transform: scale(1, 1); } 25% { transform: scale(1.12, 0.86); } 50% { transform: scale(0.92, 1.1) translateY(-14px); } 100% { transform: none; } }

.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font: 700 12px var(--mono);
  background: rgba(22, 16, 43, 0.94); border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  opacity: 0; animation: chip-in 0.7s var(--ease-spring) forwards, float 5s ease-in-out infinite;
}
.chip-1 { top: 30%; left: -3%; animation-delay: 0.9s, 1.6s; }
.chip-2 { top: 40%; right: -4%; animation-delay: 1.05s, 2.4s; }
.chip-3 { bottom: 20%; left: -1%; animation-delay: 1.2s, 3.1s; }
.chip-4 { bottom: 10%; right: 0; animation-delay: 1.35s, 2s; }
@keyframes chip-in { from { opacity: 0; transform: scale(0.6) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.sd { width: 8px; height: 8px; border-radius: 50%; }
.sd.good { background: var(--good); box-shadow: 0 0 10px var(--good); }
.sd.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.sd.bad { background: var(--bad); box-shadow: 0 0 10px var(--bad); }

.bubble {
  position: absolute; z-index: 4; top: -3%; left: 50%; translate: -50% 0;
  max-width: 300px; padding: 11px 16px; border-radius: 18px;
  background: var(--text); color: var(--bg); font: 600 14px/1.35 var(--body); text-align: center;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
  animation: bubble 0.5s var(--ease-spring) both;
}
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.bubble.again { animation: none; }
@keyframes bubble { from { opacity: 0; transform: scale(0.6) translateY(10px); } to { opacity: 1; transform: none; } }
.poke-hint { position: absolute; bottom: -2%; left: 50%; translate: -50% 0; margin: 0; font: 400 12px var(--mono); color: var(--muted); opacity: 0; animation: rise 0.8s var(--ease-out) 2.2s forwards, nudge 2.4s ease-in-out 3s infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }

/* ---------- Squinty mascot animation ---------- */
.sq { overflow: visible; }
.sq .sq-bob { transform-box: view-box; transform-origin: 200px 410px; animation: sq-bob 3.4s ease-in-out infinite; }
@keyframes sq-bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-10px) scale(1.015, 0.985); } }
.sq .sq-shadow { transform-box: view-box; transform-origin: 200px 424px; animation: sq-shadow 3.4s ease-in-out infinite; }
@keyframes sq-shadow { 50% { transform: scaleX(0.84); opacity: 0.2; } }
.sq .sq-antenna { transform-box: view-box; transform-origin: 200px 84px; animation: sq-ant 2.6s ease-in-out infinite; }
@keyframes sq-ant { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
.sq .sq-ball { animation: sq-glow 1.8s ease-in-out infinite; }
@keyframes sq-glow { 50% { opacity: 0.6; } }
.sq .sq-lid { transform: translateY(var(--lid)); animation: sq-blink 5.2s infinite; }
@keyframes sq-blink { 0%, 90%, 96%, 100% { transform: translateY(var(--lid)); } 93% { transform: translateY(var(--shut)); } }
.sq .sq-look { transform: translate(var(--lx, 0px), var(--ly, 6px)); transition: transform 0.25s var(--ease-out); }
.sq-sus .sq-look { transform: translate(var(--lx, 16px), var(--ly, 10px)); }
.sq-panic .sq-look, .sq-scan .sq-look { transform: translate(var(--lx, 0px), var(--ly, 0px)); }
.sq .sq-wave { transform-box: view-box; transform-origin: 340px 258px; animation: sq-wave 1.3s ease-in-out infinite; }
@keyframes sq-wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-18deg); } }
.sq-panic .sq-bob { animation: sq-shake 0.34s linear infinite; }
@keyframes sq-shake { 0% { transform: translate(0, 0); } 25% { transform: translate(-3px, 1px); } 50% { transform: translate(3px, -2px); } 75% { transform: translate(-2px, -1px); } 100% { transform: translate(0, 0); } }
.sq .sq-drop { animation: sq-drop 1.1s ease-in infinite; }
.sq .sq-drop.d2 { animation-delay: 0.5s; }
@keyframes sq-drop { 0% { transform: translateY(-8px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(30px); opacity: 0; } }
.sq .sq-zap { animation: sq-glow 0.5s steps(2) infinite; }
.sq .sq-gasp { transform-box: fill-box; transform-origin: center; animation: sq-gasp 0.6s ease-in-out infinite alternate; }
@keyframes sq-gasp { to { transform: scale(1.15, 0.85); } }
.sq .sq-beam { animation: sq-beam 1.4s ease-in-out infinite alternate; }
@keyframes sq-beam { from { transform: translateY(-60px); } to { transform: translateY(60px); } }
.sq .sq-glass { transform-box: view-box; transform-origin: 200px 212px; animation: sq-glass 2.2s ease-in-out infinite; }
@keyframes sq-glass { 50% { transform: rotate(4deg) scale(1.03); } }
/* Animated SVG repaints on the CPU, so tiny icons stay still and off-screen mascots pause. */
.brand-bot .sq *, .stickers .sq * { animation: none !important; }
.offscreen .sq, .offscreen .sq * { animation-play-state: paused !important; }

/* ---------- scanner ---------- */
.scan-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: 32px;
  background: linear-gradient(160deg, var(--card-2), var(--card) 60%);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.scan-beam { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.scan-beam::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(124, 246, 255, 0.12) 85%, rgba(124, 246, 255, 0.6) 100%);
  transform: translateY(-100%);
}
.scan-card.is-scanning .scan-beam { opacity: 1; }
.scan-card.is-scanning .scan-beam::before { animation: sweep 1.8s ease-in-out infinite; }
.scan-card.is-scanning { border-color: rgba(124, 246, 255, 0.4); }
@keyframes sweep { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
.scan-bot { width: 100%; aspect-ratio: 400 / 440; }
.scan-bot svg { width: 100%; height: 100%; }
.scan-bot.swap svg { animation: swap 0.5s var(--ease-spring); }
@keyframes swap { from { transform: scale(0.8) rotate(-8deg); opacity: 0.4; } to { transform: none; opacity: 1; } }
.scan-main h2 { font-size: clamp(32px, 4.4vw, 52px); }
.scan-form { display: flex; gap: 10px; margin-top: 26px; }
.scan-form input {
  flex: 1; min-width: 0; height: 56px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); color: var(--text);
  font: 400 15px var(--mono); outline: none;
  transition: border-color 0.2s, box-shadow 0.3s;
}
.scan-form input::placeholder { color: #6f6890; }
.scan-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(198, 255, 61, 0.12); }
.scan-form .btn { height: 56px; }
.scan-status { margin: 14px 0 0; font: 400 14px var(--mono); color: var(--muted); min-height: 1.6em; }
.scan-status.err { color: var(--bad); animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.scan-try { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent); font: 600 14px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.result { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; animation: rise 0.6s var(--ease-out); }
.hero-copy, .token-info, .pfp-wrap { min-width: 0; }
.tk-name, .tk-sym, .check, .verdict-text { overflow-wrap: anywhere; }
.token-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-2);
}
.token-head img, .tk-ph { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; background: var(--card-2); }
.tk-ph { background: linear-gradient(90deg, var(--card-2), #2a2150, var(--card-2)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.tk-letter { display: grid; place-items: center; animation: none; background: linear-gradient(135deg, var(--lilac), #4b2fc4); font: 800 22px var(--display); color: #fff; }
.tk-name { font: 800 20px var(--display); }
.tk-sym { font: 400 13px var(--mono); color: var(--muted); }
.tk-stats { display: flex; gap: 22px; margin: 0; flex-wrap: wrap; justify-content: flex-end; }
.tk-stats div { text-align: right; }
.tk-stats dt { font: 400 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.tk-stats dd { margin: 0; font: 700 16px var(--body); }
.tk-link { color: var(--accent); }

.verdict {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 20px;
  padding: 20px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-2);
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.verdict-bot { width: 96px; aspect-ratio: 400 / 440; }
.verdict-bot svg { width: 100%; height: 100%; }
.verdict .eyebrow { margin-bottom: 6px; }
.verdict-text { margin: 0; font: 800 clamp(20px, 2.4vw, 26px)/1.2 var(--display); }
.verdict-meta { margin: 6px 0 0; font: 400 13px var(--mono); color: var(--muted); }
.verdict.v-chill { border-color: rgba(93, 255, 180, 0.45); background: linear-gradient(120deg, rgba(93, 255, 180, 0.09), var(--card) 60%); animation: land 0.6s var(--ease-spring); }
.verdict.v-sus { border-color: rgba(255, 194, 61, 0.5); background: linear-gradient(120deg, rgba(255, 194, 61, 0.1), var(--card) 60%); animation: land 0.6s var(--ease-spring); }
.verdict.v-panic { border-color: rgba(255, 77, 109, 0.6); background: linear-gradient(120deg, rgba(255, 77, 109, 0.14), var(--card) 60%); animation: alarm 0.5s ease-in-out 2; box-shadow: 0 0 60px -20px rgba(255, 77, 109, 0.6); }
.verdict.v-chill .eyebrow { color: var(--good); }
.verdict.v-sus .eyebrow { color: var(--warn); }
.verdict.v-panic .eyebrow { color: var(--bad); }
@keyframes land { 0% { transform: scale(0.96); } 100% { transform: none; } }
@keyframes alarm { 25% { transform: translateX(-6px) rotate(-0.4deg); } 75% { transform: translateX(6px) rotate(0.4deg); } }

.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.check {
  position: relative; padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line-2);
  animation: card-in 0.55s var(--ease-spring) both;
}
.check:nth-child(2) { animation-delay: 0.05s; } .check:nth-child(3) { animation-delay: 0.1s; }
.check:nth-child(4) { animation-delay: 0.15s; } .check:nth-child(5) { animation-delay: 0.2s; } .check:nth-child(6) { animation-delay: 0.25s; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.check.flip { animation: flip 0.6s var(--ease-spring); }
@keyframes flip { 0% { transform: rotateX(70deg); opacity: 0.3; } 100% { transform: none; opacity: 1; } }
.check header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.check .num { font: 700 12px var(--mono); color: var(--muted); }
.check .pill { padding: 4px 10px; border-radius: 999px; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; background: var(--card-2); color: var(--muted); }
.check h3 { font-size: 19px; }
.check .headline { margin: 6px 0 8px; font-weight: 600; }
.check ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.check ul li + li { margin-top: 3px; }
.check.pending .pill { animation: blinkp 1s ease-in-out infinite; }
@keyframes blinkp { 50% { opacity: 0.4; } }
.check.pending .headline, .check.pending li { color: transparent; border-radius: 8px; background: linear-gradient(90deg, var(--card-2), #2a2150, var(--card-2)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.check.pending li { list-style: none; height: 12px; margin-top: 8px; }
.check.pending li:last-child { width: 70%; }
@keyframes skel { to { background-position: -200% 0; } }
.check.st-good { border-color: rgba(93, 255, 180, 0.35); }
.check.st-good .pill { background: rgba(93, 255, 180, 0.15); color: var(--good); }
.check.st-warn { border-color: rgba(255, 194, 61, 0.4); }
.check.st-warn .pill { background: rgba(255, 194, 61, 0.15); color: var(--warn); }
.check.st-bad { border-color: rgba(255, 77, 109, 0.5); }
.check.st-bad .pill { background: rgba(255, 77, 109, 0.16); color: var(--bad); }
.check.st-na .pill { background: rgba(255, 255, 255, 0.06); }
.mini { margin-top: 12px; display: grid; gap: 4px; }
.mini a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); font: 400 12px var(--mono); transition: background 0.2s, transform 0.2s; }
.mini a:hover { background: rgba(198, 255, 61, 0.1); transform: translateX(3px); }
.mini a span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini a span:last-child { flex: none; }

/* ---------- spotlight cards ---------- */
.spot { position: relative; overflow: hidden; }
.spot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 255, 61, 0.12), transparent 60%);
}
.spot:hover::after { opacity: 1; }

/* ---------- moods ---------- */
.moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.mood-card {
  padding: 28px; border-radius: 28px; background: var(--card); border: 1px solid var(--line-2);
  transition: transform 0.45s var(--ease-spring), border-color 0.3s;
}
.mood-card:hover { transform: translateY(-8px) rotate(-0.6deg); }
.mood-card.chill:hover { border-color: rgba(93, 255, 180, 0.5); }
.mood-card.sus:hover { border-color: rgba(255, 194, 61, 0.5); }
.mood-card.panic:hover { border-color: rgba(255, 77, 109, 0.55); }
.mood-bot { width: 62%; margin: 0 auto 10px; aspect-ratio: 400 / 440; transition: transform 0.5s var(--ease-spring); }
.mood-card:hover .mood-bot { transform: translateY(-10px) scale(1.06); }
.mood-bot svg { width: 100%; height: 100%; }
.mood-card h3 { font-size: 26px; }
.mood-card.chill h3 { color: var(--good); }
.mood-card.sus h3 { color: var(--warn); }
.mood-card.panic h3 { color: var(--bad); }
.mood-card p { margin: 8px 0 0; color: var(--muted); }

/* ---------- features ---------- */
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.split-copy { max-width: 400px; margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.feature {
  padding: 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--line-2);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out, border-color 0.3s;
}
.feature:hover { border-color: var(--line); }
.f-num { display: block; font: 700 12px var(--mono); color: var(--muted); }
.f-ico { width: 40px; height: 40px; margin: 18px 0 14px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.f-ico > * { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s var(--ease-out) 0.3s; }
.feature.in .f-ico > * { stroke-dashoffset: 0; }
.feature h3 { font-size: 22px; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- band ---------- */
.band { overflow: hidden; transform: rotate(-2.5deg); margin: 20px -20px; padding: 18px 0; background: var(--card-2); border-block: 1px solid var(--line); }
.band-track { display: flex; gap: 48px; width: max-content; animation: marquee 28s linear infinite reverse; }
.band-track span { font: 800 clamp(38px, 6vw, 72px)/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.band-track span:nth-child(odd) { color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.band-track span:nth-child(even) { color: var(--lilac); }

/* ---------- token ---------- */
.token-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.pfp-frame {
  position: relative; border-radius: 36px; padding: 2px; overflow: hidden; isolation: isolate;
}
.pfp-frame::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 150%; aspect-ratio: 1;
  background: conic-gradient(var(--accent), var(--lilac), #7cf6ff, var(--accent));
  transform: translate(-50%, -50%); animation: ca-spin 8s linear infinite;
}
.pfp {
  border-radius: 34px; aspect-ratio: 1; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #2c1b66, #140d30 60%, #07050f);
}
.pfp svg { width: 74%; height: auto; }
.pfp-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.dl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stickers { display: flex; gap: 8px; }
.stickers button {
  width: 56px; height: 56px; padding: 4px; border-radius: 16px; border: 1px solid var(--line-2);
  background: var(--card); cursor: pointer; transition: transform 0.35s var(--ease-spring), border-color 0.2s;
}
.stickers button:hover { transform: translateY(-4px) rotate(-8deg) scale(1.08); border-color: var(--accent); }
.stickers span, .stickers svg { display: block; width: 100%; height: 100%; }
.ticker-big {
  font-size: clamp(56px, 9vw, 110px); line-height: 0.95; letter-spacing: -0.04em;
  background: linear-gradient(100deg, var(--accent), #f1ffb8 30%, var(--lilac) 60%, var(--accent));
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
.facts { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 0; }
.facts div { padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); }
.facts dt { font: 400 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.safe {
  display: flex; gap: 20px; align-items: flex-start; margin-top: 56px; padding: 26px 28px; border-radius: 24px;
  background: rgba(93, 255, 180, 0.05); border: 1px solid rgba(93, 255, 180, 0.25);
}
.safe svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--good); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.safe h3 { font-size: 21px; }
.safe p { margin: 6px 0 0; color: var(--muted); }

/* ---------- footer ---------- */
.footer { max-width: 1200px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 60px; border-top: 1px solid var(--line-2); }
.footer-row { display: flex; align-items: center; justify-content: space-between; }
.fine { margin: 18px 0 0; font-size: 13px; color: var(--muted); max-width: 760px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 60; translate: -50% 0;
  padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(24px) scale(0.9); pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease-spring);
}
.toast.show { opacity: 1; transform: none; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(32px) scale(0.98); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.feature.reveal.in { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.feature.reveal.in.tilt { transition: transform 0.25s ease-out, border-color 0.3s; }
/* .reveal.in resets transform, so the mood-card hover lift has to out-rank it. */
.mood-card.reveal.in { transition: transform 0.45s var(--ease-spring), border-color 0.3s, opacity 0.8s var(--ease-out); }
.mood-card.reveal.in:hover { transform: translateY(-8px) rotate(-0.6deg); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; text-align: left; }
  .stage { max-width: 400px; }
  .features, .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .token-card { grid-template-columns: minmax(0, 1fr); }
  .pfp-wrap { max-width: 440px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .moods { grid-template-columns: minmax(0, 1fr); }
  .mood-bot { width: 44%; }
  .scan-card { grid-template-columns: minmax(0, 1fr); }
  .scan-bot { width: 120px; }
  .token-head { grid-template-columns: auto minmax(0, 1fr); }
  .tk-stats { grid-column: 1 / -1; justify-content: flex-start; }
  .tk-stats div { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 28px; }
  .stage { max-width: 330px; margin-top: 8px; }
  .features, .check-grid { grid-template-columns: minmax(0, 1fr); }
  .scan-form { flex-direction: column; }
  .scan-form .btn { width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .chip { font-size: 10.5px; padding: 7px 10px; }
  .bubble { font-size: 13px; max-width: 240px; }
  .ca-value { font-size: 12px; }
  .verdict { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .verdict-bot { width: 64px; }
  .nav .btn-sm span { font-size: 13px; }
}

@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; }
  .reveal, .intro, .hero-title .w, .hero-bot, .chip { opacity: 1 !important; transform: none !important; }
}
