/* AI Tracker landing. Signal green comes from the bot's avatar sweep (#22d47f)
   and its hot core (#2affc6); amber marks leaks, like the Discord avatar blips. */

@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700;
  font-display: optional; src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800;
  font-display: optional; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --bg: #070c0a;
  --bg-2: #0d1511;
  --panel: #0d1611;
  --panel-solid: #101c15;
  --line: rgba(162, 196, 176, 0.12);
  --line-2: rgba(162, 196, 176, 0.23);
  --text: #f0f4f1;
  --muted: #a2b0a7;
  --dim: #7e9487;
  --g: #22d47f;
  --g-hi: #2affc6;
  --g-soft: #a7edba;
  --ring: #4eecaa;
  --amber: #f4c745;
  --amber-soft: #ffe28a;
  --danger: #ff7a7a;
  --radius: 14px;
  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--display);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(42, 255, 198, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--g-hi); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-200%); padding: 10px 16px; background: var(--g-soft); color: var(--bg); border-radius: 8px; }
.skip-link:focus { transform: none; }

/* ---------- background ---------- */
.field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(34, 212, 127, .075), transparent 55%),
    linear-gradient(rgba(162, 196, 176, .025) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(162, 196, 176, .025) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--bg);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  /* Home Screen app: the page runs under the translucent status bar. */
  padding: calc(14px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left));
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 12, 10, .9);
}
.nav.scrolled {
  background: rgba(7, 12, 10, .94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 600; letter-spacing: -.02em; font-size: 18px; }
.brand-mark {
  position: relative; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle, var(--g-hi) 0 2px, transparent 2.5px),
    repeating-radial-gradient(circle, transparent 0 5px, rgba(78, 236, 170, .45) 5.5px 6.2px, transparent 6.7px 7px),
    #03130c;
  box-shadow: inset 0 0 0 1px rgba(78, 236, 170, .65);
  overflow: hidden;
}
.brand-mark i {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 290deg, rgba(42, 255, 198, .1) 300deg, rgba(42, 255, 198, .75) 360deg);
  animation: spin 3.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 7px 12px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(78, 236, 170, .07); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-live {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 14px; color: var(--g-soft); padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(34, 212, 127, .06);
  transition: background .2s, border-color .2s;
}
.nav-live:hover { background: rgba(34, 212, 127, .14); border-color: rgba(78, 236, 170, .5); }
.dot, .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--g-hi); flex: none; position: relative;
  box-shadow: 0 0 10px var(--g-hi);
}
.dot::after, .pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--g-hi);
  animation: ping 1.9s var(--ease) infinite; opacity: 0;
}
@keyframes ping { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 20px; border-radius: 8px;
  font: 600 15px/1 var(--display); letter-spacing: -.01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .25s, color .2s;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  color: #07140b; background: var(--g-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset;
}
.btn-primary:hover { background: #c2f8d1; transform: translateY(-1px); }
.btn-discord {
  --h: 64px; width: 100%; max-width: 470px; justify-content: flex-start; gap: 12px; padding: 0 18px;
  color: #02130b; border-color: rgba(255, 255, 255, .2);
  background: linear-gradient(115deg, var(--g-soft), var(--g-hi));
  box-shadow: 0 12px 32px -18px rgba(42, 255, 198, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-discord:hover {
  background: linear-gradient(115deg, #c2f8d1, #73ffda);
  box-shadow: 0 14px 36px -16px rgba(42, 255, 198, .9), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-discord svg { width: 25px; height: 25px; flex: none; }
.discord-cta-copy { display: grid; gap: 5px; min-width: 0; text-align: left; }
.discord-cta-copy strong { font-size: 15px; line-height: 1; }
.discord-cta-copy small { font-size: 12px; font-weight: 500; line-height: 1.25; white-space: normal; opacity: .75; }
.discord-cta-arrow { margin-left: auto; font-size: 18px; }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(6, 24, 16, .4); }
.btn-ghost:hover { border-color: rgba(78, 236, 170, .55); background: rgba(34, 212, 127, .09); }
.btn-solid { color: #01140b; background: var(--g); }
.btn-solid:hover { background: #3be597; }
.btn-x { --h: 38px; padding: 0 14px; color: #000; background: #f2fff8; font-size: 14px; }
.btn-x:hover { background: #fff; box-shadow: 0 0 24px rgba(42, 255, 198, .35); }
.btn.sm { --h: 38px; font-size: 14px; padding: 0 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- hero ---------- */
main { position: relative; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
  max-width: 1320px; margin: 0 auto;
  padding: 56px var(--gutter) 64px;
  min-height: min(860px, calc(100svh - 72px));
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font: 500 11px/1.4 var(--mono); letter-spacing: .11em; text-transform: uppercase; color: var(--g-soft);
  padding: 0; border: 0; background: none;
  margin: 0 0 26px;
}
.eyebrow b { color: var(--g-soft); font-weight: 600; }
.eyebrow .sep { color: var(--dim); }
h1 {
  margin: 0 0 22px;
  font-size: clamp(44px, 4.8vw, 68px); line-height: 1.06; letter-spacing: -.055em; font-weight: 500;
}
h1 .line { display: block; }
.glow {
  color: var(--g-soft);
}
.lede { max-width: 29em; margin: 0 0 30px; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.75; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
#decode { position: relative; }
.decode-target { opacity: 1; }
.decoding .decode-target { opacity: 0; }
.decode-overlay { position: absolute; inset: 0; pointer-events: none; }
.decode-cell { position: absolute; display: flex; align-items: center; justify-content: center; overflow: clip; white-space: pre; letter-spacing: 0; }
.hero-channels { display: flex; align-items: center; gap: 9px; margin: 22px 0 0; color: var(--dim); font-size: 12px; }
.hero-channels .dot { width: 5px; height: 5px; box-shadow: none; }
.hero-channels .dot::after { display: none; }

.quick-sub {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
  max-width: 470px; padding: 6px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(4, 18, 12, .7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s;
}
.quick-sub:focus-within { border-color: rgba(78, 236, 170, .5); box-shadow: 0 0 0 4px rgba(34, 212, 127, .1); }
.quick-sub .btn { --h: 44px; }
input[type="email"] {
  width: 100%; min-width: 0; height: 44px; padding: 0 14px; border-radius: 11px;
  border: 0; outline: none; background: transparent; color: var(--text);
  font: 500 16px var(--display);
}
input[type="email"]::placeholder { color: var(--dim); }
.form-note { grid-column: 1 / -1; margin: 2px 8px 2px; font-size: 12px; color: var(--dim); min-height: 3.2em; }
.form-note.ok { color: var(--g-soft); }
.form-note.err { color: var(--danger); }

/* ---------- radar ---------- */
.radar-stage { position: relative; display: grid; justify-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(160deg, rgba(20, 34, 26, .8), rgba(8, 16, 11, .95)); box-shadow: 0 24px 64px -32px #000; }
.scope-header { display: flex; justify-content: space-between; align-items: center; width: 100%; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 500 10px/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.scope-header > span { display: flex; align-items: center; gap: 9px; }
.scope-header .dot { width: 5px; height: 5px; }
.scope-header b { font-size: 9px; font-weight: 400; color: var(--g-soft); }
.scope-status { display: flex; justify-content: space-between; width: 100%; gap: 8px; min-height: 17px; color: var(--dim); font: 400 9px/1.5 var(--mono); }
.scope-status b { color: var(--muted); font-weight: 400; display: inline-block; min-width: 3ch; font-variant-numeric: tabular-nums; }
#lastSweep { display: inline-block; min-width: 8ch; text-align: right; }
.radar-frame {
  position: relative; width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%;
  isolation: isolate;
}
.radar-frame::before {
  content: ""; position: absolute; inset: -9%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(34, 212, 127, .2), rgba(34, 212, 127, .04) 55%, transparent 70%);
  filter: blur(10px);
  opacity: .45;
}
@keyframes breathe { 50% { opacity: .6; transform: scale(.97); } }
#radar { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.radar-logos, .radar-marks { position: absolute; inset: 0; pointer-events: none; }
.r-logo {
  position: absolute; width: 11.5%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: #000; display: grid; place-items: center;
  box-shadow: 0 0 0 1.5px rgba(78, 236, 170, .55), 0 0 0 5px rgba(2, 9, 6, .9);
  transition: box-shadow .35s, transform .35s var(--ease);
}
.r-logo img { width: 62%; height: 62%; object-fit: contain; border-radius: 4px; }
.r-logo.lit { box-shadow: 0 0 0 2px var(--g-hi), 0 0 0 5px rgba(2, 9, 6, .9), 0 0 26px rgba(42, 255, 198, .7); }
.r-logo.hit { transform: translate(-50%, -50%) scale(1.22); box-shadow: 0 0 0 2px var(--g-hi), 0 0 0 6px rgba(2, 9, 6, .9), 0 0 40px rgba(42, 255, 198, .95); }
.r-logo.hit.leak { box-shadow: 0 0 0 2px var(--amber), 0 0 0 6px rgba(2, 9, 6, .9), 0 0 40px rgba(244, 199, 69, .9); }

.mark {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 6px;
  animation: mark-in .55s var(--ease) both;
}
.mark.out { animation: mark-out .6s ease both; }
.mark .lock {
  width: 46px; height: 46px; position: relative;
  --c: var(--g-hi);
  background:
    linear-gradient(var(--c), var(--c)) top left / 12px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 12px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 12px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 12px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 12px no-repeat;
  filter: drop-shadow(0 0 6px var(--c));
  animation: lock 0.6s var(--ease) both;
}
.mark.leak .lock { --c: var(--amber); }
.mark .lock img {
  position: absolute; inset: 9px; width: 28px; height: 28px; border-radius: 50%;
  object-fit: contain; background: #000; padding: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}
.mark .tag {
  font: 600 11px/1 var(--mono); letter-spacing: .04em; white-space: nowrap;
  padding: 5px 8px; border-radius: 7px; color: #01140b; background: var(--g-hi);
  box-shadow: 0 6px 20px -4px rgba(42, 255, 198, .6);
  max-width: 190px; overflow: hidden; text-overflow: ellipsis;
}
.mark.leak .tag { background: var(--amber); box-shadow: 0 6px 20px -4px rgba(244, 199, 69, .6); }
@keyframes lock { 0% { transform: scale(2.2) rotate(45deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes mark-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mark-out { to { opacity: 0; transform: translate(-50%, -50%) scale(.85); } }

.radar-hud {
  position: absolute; display: grid; gap: 2px;
  font: 500 9px/1.2 var(--mono); letter-spacing: .1em; color: var(--dim); width: 45%; min-height: 30px;
}
.radar-hud b { font-weight: 500; font-size: 11px; letter-spacing: .03em; color: var(--g-soft); min-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-tl { top: 2%; left: 0; } .hud-tr { top: 2%; right: 0; text-align: right; }
.hud-bl { bottom: 2%; left: 0; } .hud-br { bottom: 2%; right: 0; text-align: right; }
#hudMode.alert { color: var(--g-hi); text-shadow: 0 0 12px var(--g-hi); }
#hudMode.alert.leak { color: var(--amber); text-shadow: 0 0 12px var(--amber); }

.radar-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.radar-controls .chip-btn { justify-content: center; padding: 0 8px; font-size: 11px; gap: 6px; border-radius: 7px; min-width: 0; }
.radar-controls .chip-btn[hidden] { display: none; }
.radar-controls .chip-btn svg { width: 14px; height: 14px; flex: none; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(4, 18, 12, .75);
  color: var(--text); font: 500 13.5px var(--display); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.chip-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip-btn:hover { border-color: rgba(78, 236, 170, .55); background: rgba(34, 212, 127, .1); }
.chip-btn[aria-pressed="true"] { color: #01140b; background: var(--g); border-color: var(--g); box-shadow: 0 0 24px -4px rgba(34, 212, 127, .8); }
.chip-btn.ghost { border-style: dashed; color: var(--muted); }
#soundBtn .i-on, #soundBtn[aria-pressed="true"] .i-off { display: none; }
#soundBtn[aria-pressed="true"] .i-on { display: block; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(42, 255, 198, 0); } 50% { box-shadow: 0 0 0 6px rgba(42, 255, 198, .12); } }

/* toasts styled like a Discord embed */
.toasts {
  list-style: none; margin: 0; padding: 0;
  position: relative; width: 100%; height: 124px; z-index: 5; contain: layout;
}
.toast-wait {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 8px; color: var(--dim);
  font: 500 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.toast {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-content: center;
  padding: 12px 14px 12px 12px; border-radius: 8px;
  background: rgba(10, 18, 15, .92); border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: none;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  animation: toast-in .6s var(--ease) both;
}
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--g); }
.toast.leak::before { background: var(--amber); }
.toast::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(42, 255, 198, .12) 50%, transparent 70%);
  transform: translateX(-100%); animation: sheen 1.2s .25s var(--ease) both;
}
.toast.leak::after { background: linear-gradient(100deg, transparent 30%, rgba(244, 199, 69, .12) 50%, transparent 70%); }
.t-body { min-width: 0; }
.toast.out { animation: toast-out .45s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes sheen { to { transform: translateX(100%); } }
.toast .t-logo { width: 40px; height: 40px; border-radius: 50%; background: #000; padding: 6px; object-fit: contain; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.t-head { display: flex; align-items: center; gap: 5px; font-size: 11px; min-width: 0; }
.t-head b { font-weight: 600; }
.t-app { display: none; }
.t-head time { color: var(--dim); font-size: 12px; margin-left: auto; white-space: nowrap; }
.t-badge { font: 700 9.5px/1 var(--mono); letter-spacing: .1em; padding: 4px 6px; border-radius: 5px; color: #01140b; background: var(--g-hi); }
.toast.leak .t-badge { background: var(--amber); }
.t-badge.live { animation: blink 1s steps(2) 4; }
@keyframes blink { 50% { opacity: .3; } }
.t-title { margin: 4px 0 2px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-text { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-link { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--g-soft); text-decoration: none; }
.t-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.t-page { color: var(--g-hi); font-weight: 600; }
.t-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ticker ---------- */
.ticker {
  position: relative; height: 55px; padding-left: 146px;
  border-block: 1px solid var(--line); background: rgba(3, 14, 9, .7); overflow: hidden;
}
.ticker-label { position: absolute; inset: 0 auto 0 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; width: 146px; background: var(--bg-2); border-right: 1px solid var(--line-2); color: var(--g-soft); font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ticker-label .dot { width: 5px; height: 5px; box-shadow: none; }
.ticker-track { height: 100%; }
.ticker-track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tick {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; white-space: nowrap;
  font: 500 13.5px var(--mono); color: var(--muted); text-decoration: none; border-right: 1px solid var(--line);
}
.tick:hover { color: var(--text); background: rgba(34, 212, 127, .05); }
.tick img { width: 22px; height: 22px; border-radius: 50%; background: #000; padding: 3px; object-fit: contain; }
.tick b { color: var(--text); font-weight: 600; }
.tick .st { font-size: 10px; letter-spacing: .12em; padding: 3px 6px; border-radius: 5px; border: 1px solid rgba(34, 212, 127, .4); color: var(--g-soft); }
.tick .st.leak { border-color: rgba(244, 199, 69, .45); color: var(--amber); }

/* ---------- sections ---------- */
section { scroll-margin-top: calc(80px + env(safe-area-inset-top)); }
.section-head { max-width: 760px; margin: 0 0 40px; text-align: left; }
.kicker { margin: 0 0 12px; font: 600 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--g); }
h2 { margin: 0 0 16px; max-width: 18ch; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.12; letter-spacing: -.045em; font-weight: 500; }
.section-head p:not(.kicker) { margin: 0; max-width: 40em; color: var(--muted); font-size: 16px; line-height: 1.75; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1240px; margin: 0 auto; padding: 52px var(--gutter);
  gap: 1px;
}
.stat { padding: 8px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .num {
  display: block; font-size: clamp(40px, 5vw, 66px); font-weight: 600; letter-spacing: -.05em; line-height: 1;
  font-variant-numeric: tabular-nums; margin-bottom: 10px;
  color: var(--text);
}
.stat .num i { font-style: normal; color: var(--dim); -webkit-text-fill-color: var(--dim); margin: 0 .08em; font-weight: 400; }
.stat .num .amber { background: linear-gradient(180deg, #fff3c4, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .num small { font-size: .5em; letter-spacing: 0; }
.stat > span { color: var(--muted); font-size: 15px; }

.ahead, .how, .pings, .subscribe { max-width: 1240px; margin: 0 auto; padding: 88px var(--gutter); border-top: 1px solid var(--line); }
.lead-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lead-list li {
  display: grid; grid-template-columns: 34px minmax(130px, 220px) minmax(0, 1fr) 92px; align-items: center; gap: 16px;
  padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.lead-list li:last-child { border-bottom: 0; }
.lead-list img, .lg-txt { width: 34px; height: 34px; border-radius: 50%; background: #000; padding: 5px; object-fit: contain; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.lg-txt { display: grid; place-items: center; padding: 0; font: 700 13px var(--display); color: #ff7a2f; }
.lead-list .m { font-weight: 600; letter-spacing: -.01em; }
.lead-list .bar { height: 10px; border-radius: 99px; background: rgba(78, 236, 170, .07); overflow: hidden; position: relative; }
.lead-list .bar i {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, #1e4e33, var(--g-soft));
  transition: width 1.6s var(--ease);
}
.lead-list .bar i::after { content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(40%, -50%); background: #fff; box-shadow: 0 0 12px #fff, 0 0 24px var(--g-hi); }
.lead-list b { text-align: right; font: 600 15px var(--mono); color: var(--g-soft); }
.fineprint { margin: 18px 0 0; color: var(--dim); font-size: 12px; text-align: left; }

/* pipeline */
.pipeline { max-width: 1060px; margin: 0 auto 40px; }
.pipeline svg { width: 100%; height: auto; overflow: visible; }
.wires path { fill: none; stroke: url(#wire); stroke-width: 1.6; stroke-dasharray: 3 6; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.sparks circle { fill: var(--g-hi); filter: drop-shadow(0 0 5px var(--g-hi)); }
.sparks circle.amber { fill: var(--amber); filter: drop-shadow(0 0 5px var(--amber)); }
.sparks circle.hot { fill: #fff; filter: drop-shadow(0 0 6px var(--g-hi)); }
.nodes rect { fill: rgba(6, 24, 16, .85); stroke: rgba(78, 236, 170, .3); }
.nodes text { fill: var(--text); font: 500 14px var(--display); }
.nodes.out rect { fill: rgba(34, 212, 127, .1); stroke: rgba(42, 255, 198, .5); }
.core .ring { fill: none; stroke: rgba(78, 236, 170, .6); stroke-width: 1.5; }
.core .ring.r2 { stroke-dasharray: 2 4; stroke: rgba(78, 236, 170, .4); }
.core .dotc { fill: var(--g-hi); }
.core-sweep { fill: rgba(42, 255, 198, .35); transform-origin: 0 0; animation: spin 2.4s linear infinite; }
.core text { fill: var(--g-soft); font: 600 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step {
  position: relative; padding: 28px 26px 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); overflow: hidden;
}
.step::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 212, 127, .14), transparent 60%);
}
.step:hover::before { opacity: 1; }
.step-n { font: 600 12px var(--mono); color: var(--g); letter-spacing: .14em; }
.step h3 { margin: 10px 0 8px; font-size: 26px; letter-spacing: -.03em; font-weight: 600; }
.step p { margin: 0; color: var(--muted); }

/* mocks */
.mocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.mock { margin: 0; display: grid; gap: 16px; }
.mock figcaption { display: flex; justify-content: center; }
.discord .mock-bar { background: #313338; }
.discord .mock-bar {
  border-radius: 16px 16px 0 0; padding: 12px 16px; color: #f2f3f5; font: 600 15px var(--display);
  border-bottom: 1px solid #26282c; display: flex; gap: 6px; align-items: center;
}
.discord .hash { color: #80848e; font-size: 20px; font-weight: 400; }
.dc-list { background: #313338; border-radius: 0 0 16px 16px; margin-top: -16px; padding: 4px 0 10px; height: 444px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #555a60 transparent; }
.dc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 12px 16px; }
.dc-msg + .dc-msg { border-top: 1px solid #3a3c42; }
.dc-msg.fresh { animation: dc-in .8s var(--ease) both; }
@keyframes dc-in { from { background: rgba(88, 101, 242, .18); } }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; }
.dc-head { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #f2f3f5; }
.dc-bot { font: 700 10px/1 var(--display); background: #5865f2; color: #fff; padding: 3px 4px; border-radius: 3px; }
.dc-head time { font-size: 12px; color: #949ba4; margin-left: 4px; }
.dc-embed {
  margin-top: 6px; display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 14px;
  padding: 12px 14px 14px 16px; border-radius: 4px; background: #2b2d31; border-left: 4px solid var(--g);
  color: #dbdee1; font-size: 14px; line-height: 1.45;
}
.dc-embed.leak { border-left-color: var(--amber); }
.dc-embed p { margin: 0 0 6px; }
.dc-author { font-size: 13px; font-weight: 600; color: #f2f3f5; }
.dc-title { font-weight: 700; color: #00a8fc; font-size: 15.5px; }
.dc-desc { white-space: pre-line; overflow-wrap: anywhere; }
.dc-foot { font-size: 12px; color: #949ba4; margin: 8px 0 0 !important; }
.dc-thumb { width: 72px; height: 72px; border-radius: 8px; background: #000; object-fit: contain; padding: 10px; }
.xpost {
  background: #000; border: 1px solid #2f3336; border-radius: 16px; padding: 16px 18px 18px;
  height: 540px; grid-template-rows: auto minmax(0, 1fr) 210px auto;
}
.x-head { display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; gap: 10px; align-items: center; }
.x-avatar { width: 42px; height: 42px; border-radius: 50%; }
.x-head b { font-size: 15px; color: #e7e9ea; }
.x-verified { display: inline-block; width: 16px; height: 16px; margin: 0 4px -3px; border-radius: 50%; background: #1d9bf0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22.5 12.5c0-1.58-.875-2.95-2.148-3.6.154-.435.238-.905.238-1.4 0-2.21-1.71-3.998-3.818-3.998-.47 0-.92.084-1.336.25C14.818 2.415 13.51 1.5 12 1.5s-2.816.917-3.437 2.25c-.415-.165-.866-.25-1.336-.25-2.11 0-3.818 1.79-3.818 4 0 .494.083.964.237 1.4-1.272.65-2.147 2.018-2.147 3.6 0 1.495.782 2.798 1.942 3.486-.02.17-.032.34-.032.514 0 2.21 1.708 4 3.818 4 .47 0 .92-.086 1.335-.25.62 1.334 1.926 2.25 3.437 2.25 1.512 0 2.818-.916 3.437-2.25.415.163.865.248 1.336.248 2.11 0 3.818-1.79 3.818-4 0-.174-.012-.344-.033-.513 1.158-.687 1.943-1.99 1.943-3.484z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22.5 12.5c0-1.58-.875-2.95-2.148-3.6.154-.435.238-.905.238-1.4 0-2.21-1.71-3.998-3.818-3.998-.47 0-.92.084-1.336.25C14.818 2.415 13.51 1.5 12 1.5s-2.816.917-3.437 2.25c-.415-.165-.866-.25-1.336-.25-2.11 0-3.818 1.79-3.818 4 0 .494.083.964.237 1.4-1.272.65-2.147 2.018-2.147 3.6 0 1.495.782 2.798 1.942 3.486-.02.17-.032.34-.032.514 0 2.21 1.708 4 3.818 4 .47 0 .92-.086 1.335-.25.62 1.334 1.926 2.25 3.437 2.25 1.512 0 2.818-.916 3.437-2.25.415.163.865.248 1.336.248 2.11 0 3.818-1.79 3.818-4 0-.174-.012-.344-.033-.513 1.158-.687 1.943-1.99 1.943-3.484z'/%3E%3C/svg%3E") center / contain no-repeat; }
.x-handle { display: block; color: #71767b; font-size: 14px; }
.x-logo { width: 20px; height: 20px; fill: #e7e9ea; align-self: start; }
.x-text { margin: 0; overflow-y: auto; color: #e7e9ea; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; scrollbar-width: thin; }
.x-card { border: 1px solid #2f3336; border-radius: 12px; display: grid; place-items: center; background: #000; overflow: hidden; }
.x-card img { width: 30%; max-width: 160px; aspect-ratio: 1; object-fit: contain; }

/* subscribe */
.sub-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 48px; align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: 16px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(34, 212, 127, .16), transparent 60%),
    linear-gradient(180deg, rgba(6, 26, 17, .9), rgba(3, 14, 9, .92));
}
.sub-radar { position: absolute; right: -180px; top: -180px; width: 460px; height: 460px; border-radius: 50%; pointer-events: none; opacity: .5; }
.sub-radar i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(78, 236, 170, .18); }
.sub-radar i:nth-child(2) { inset: 18%; } .sub-radar i:nth-child(3) { inset: 36%; }
.sub-radar b { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 300deg, rgba(42, 255, 198, .25) 360deg); animation: spin 5s linear infinite; }
.sub-copy h2 { font-size: clamp(30px, 3.6vw, 48px); }
.sub-copy p:not(.kicker) { color: var(--muted); margin: 0; }
.sub-form { position: relative; display: grid; gap: 14px; }
.sub-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px; border-radius: 16px;
  background: rgba(1, 8, 5, .75); border: 1px solid var(--line-2);
}
.sub-row:focus-within { border-color: rgba(78, 236, 170, .6); box-shadow: 0 0 0 4px rgba(34, 212, 127, .12); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#providerChips { max-height: 202px; min-height: 202px; overflow-y: auto; align-content: start; scrollbar-width: thin; }
.chips legend { width: 100%; margin-bottom: 8px; font: 600 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; transition: all .18s;
}
.chip input:checked + span { color: #01140b; background: var(--g-soft); border-color: var(--g-soft); }
.chip input:focus-visible + span { outline: 2px solid var(--g-hi); outline-offset: 2px; }
.more summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.more summary::before { content: "+"; font-family: var(--mono); color: var(--g); }
.more[open] summary::before { content: "−"; }
.more .chips { margin-top: 12px; }
.sub-form .form-note { margin: 0; }

.push-note { margin: 0; max-width: 520px; text-align: center; font-size: 13.5px; color: var(--muted); }
.push-note.ok { color: var(--g-soft); }
.push-note.err { color: var(--danger); }
.push-alt {
  grid-column: 1 / -1; position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; align-items: center;
  padding: 16px 18px; border-radius: 16px; border: 1px dashed var(--line-2); background: rgba(1, 8, 5, .45);
}
.push-alt[hidden] { display: none; }
.push-alt b { display: block; font-weight: 600; }
.push-alt span { color: var(--muted); font-size: 14px; }
.push-alt .push-note { grid-column: 1 / -1; text-align: left; max-width: none; }
.chip-btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 520px) { .push-alt { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.foot {
  max-width: 1240px; margin: 0 auto; padding: 48px var(--gutter) calc(56px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center;
  border-top: 1px solid var(--line);
}
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand p { margin: 0; color: var(--dim); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot-links a:hover { color: var(--g-soft); }
.foot-meta { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: 13px; }
.foot-meta a { color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 1; }
.reveal.in { animation: reveal-in .7s var(--ease) var(--d, 0s) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero .reveal.in { animation-name: hero-in; }
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .stat:nth-child(3) { border-left: 0; }
  .sub-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; max-width: 760px; padding-block: 48px; gap: 40px; }
  h1 { font-size: clamp(44px, 7.5vw, 68px); }
  .radar-stage { width: 100%; max-width: 560px; justify-self: center; }
}
@media (max-width: 760px) {
  .steps, .mocks { grid-template-columns: minmax(0, 1fr); }
  .lead-list li { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 14px; }
  .lead-list li .bar { grid-column: 1 / -1; grid-row: 2; }
  .lead-list img, .lg-txt { width: 30px; height: 30px; }
  .pipeline { display: none; }
  .quick-sub { display: none; }
  .hero { padding-top: 20px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .radar-hud { font-size: 9px; } .radar-hud b { font-size: 11px; }
}
@media (max-width: 520px) {
  .nav { gap: 10px; padding-block: calc(10px + env(safe-area-inset-top)) 10px; }
  .brand-name { font-size: 16px; }
  .nav-live { padding: 6px 10px; font-size: 13px; }
  .btn-x span { display: none; }
  .btn-x { width: 38px; padding: 0; }
  .eyebrow { font-size: 9px; gap: 9px; margin-bottom: 24px; }
  h1 { font-size: clamp(36px, 9.8vw, 51px); line-height: 1.1; margin-bottom: 22px; }
  .hero { padding-top: 36px; gap: 32px; }
  .lede { font-size: 15px; line-height: 1.75; }
  .cta { gap: 8px; margin-bottom: 0; }
  .cta .btn { flex: 1 1 auto; font-size: 12px; padding: 0 12px; }
  .cta .btn-discord { flex: 1 1 100%; padding: 0 14px; font-size: 14px; }
  .hero-channels { font-size: 10px; margin-top: 18px; }
  .radar-stage { padding: 14px; gap: 14px; border-radius: 12px; }
  .radar-controls { gap: 5px; }
  .radar-controls .chip-btn { font-size: 10px; padding-inline: 5px; }
  .scope-status { font-size: 8px; }
  .toasts { height: 132px; }
  .toast { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 10px; }
  .toast .t-logo { width: 30px; height: 30px; }
  .t-head { flex-wrap: wrap; font-size: 10px; }
  .t-head time { font-size: 10px; }
  .t-badge { font-size: 8px; }
  .t-title { font-size: 13px; }
  .t-text, .t-link { font-size: 11px; }
  .ticker { padding-left: 102px; }
  .ticker-label { width: 102px; gap: 8px; font-size: 9px; }
  .ahead, .how, .pings, .subscribe { padding-block: 56px; }
  .section-head { margin-bottom: 28px; }
  .lead-list .m { font-size: 13px; }
  .lead-list b { font-size: 12px; }
  .step { padding: 24px; }
  .step h3 { font-size: 24px; }
  .dc-list { height: 428px; }
  .dc-msg { gap: 9px; padding-inline: 12px; grid-template-columns: 30px minmax(0, 1fr); }
  .dc-avatar { width: 30px; height: 30px; }
  .dc-head { flex-wrap: wrap; font-size: 13px; }
  .dc-head time { font-size: 10px; }
  .xpost { height: 524px; grid-template-rows: auto minmax(0, 1fr) 168px auto; }
  .quick-sub, .sub-row { grid-template-columns: minmax(0, 1fr); }
  .quick-sub .btn, .sub-row .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; padding-block: 48px; }
  .stat, .stat:first-child, .stat:nth-child(3) { border-left: 2px solid var(--line-2); padding: 2px 0 2px 14px; }
  .stat .num { font-size: 38px; }
  .stat > span { font-size: 13.5px; display: block; line-height: 1.4; }
  .tick { padding: 12px 18px; }
  .dc-embed { grid-template-columns: minmax(0, 1fr); }
  .dc-thumb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
