/* AI Chart Detector — marketing site. The app's world extended to the web:
   deep navy, electric cyan, the detector's radar + scan motifs, clay candles. */

:root {
  --bg: #0b0f14;
  --bg-deep: #070a0e;
  --surface: #141a21;
  --surface-raised: #1b232c;
  --border: #232d37;
  --accent: #3ad6ff;
  --accent-dim: #173743;
  --bull: #2fd873;
  --bear: #ff5c6a;
  --hold: #ffb454;
  --text: #f2f6fa;
  --text-dim: #8a97a3;
  --clay-navy: #233253;
  --clay-green: #7db686;
  --clay-red: #e76155;
  --font-display: "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --radius: 24px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #06232e; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nav a.link { color: var(--text-dim); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color 0.15s; }
.nav a.link:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  border-radius: 999px; padding: 12px 22px; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: #06232e;
  box-shadow: 0 4px 24px rgba(58, 214, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(58, 214, 255, 0.5); }
.btn-ghost { background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.nav .btn { padding: 9px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(700px 480px at 78% 30%, rgba(58, 214, 255, 0.09), transparent 65%),
    radial-gradient(520px 420px at 12% 80%, rgba(47, 216, 115, 0.05), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: blink 1.6s ease-in-out infinite;
}
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h1 .accent { color: var(--accent); }
.hero p.lede {
  color: var(--text-dim); font-size: 18px; max-width: 46ch;
  margin: 26px 0 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-top: 18px; }

/* ---------- radar ---------- */
.radar-stage { display: grid; place-items: center; }
.radar {
  position: relative;
  width: min(420px, 78vw); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(58, 214, 255, 0.18);
  background:
    radial-gradient(circle, rgba(58, 214, 255, 0.05), transparent 62%);
}
.radar::before, .radar::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1px solid rgba(58, 214, 255, 0.14);
}
.radar::before { inset: 16.5%; }
.radar::after { inset: 33%; }
.radar .axis-h, .radar .axis-v { position: absolute; background: rgba(58, 214, 255, 0.07); }
.radar .axis-h { left: 3%; right: 3%; top: 50%; height: 1px; }
.radar .axis-v { top: 3%; bottom: 3%; left: 50%; width: 1px; }
.radar .sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(58, 214, 255, 0.28), rgba(58, 214, 255, 0.05) 55deg, transparent 70deg);
  animation: sweep 4.5s linear infinite;
  -webkit-mask: radial-gradient(circle, black 0 49%, transparent 50%);
  mask: radial-gradient(circle, black 0 49%, transparent 50%);
}
.radar .core {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 14px rgba(58, 214, 255, 0.8);
}
.blip {
  position: absolute; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 19px; line-height: 1;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  transform: translate(-50%, -50%);
}
.blip::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: pulse 2.4s ease-out infinite;
  animation-delay: var(--d, 0s);
}
.blip.b-btc { background: #f7931a; font-weight: 800; color: #2c1600; font-family: var(--font-display); }
.blip.b-gold { background: var(--hold); font-weight: 800; color: #3a2200; font-family: var(--font-display); font-size: 16px; }
.blip.b-nvda { background: #2f7d6d; font-weight: 800; color: #eafff5; font-family: var(--font-display); }

@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.75; }
  75%, 100% { transform: scale(1.85); opacity: 0; }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
  overflow: hidden; white-space: nowrap;
  padding: 13px 0;
  margin-top: 48px;
}
.ticker-track {
  display: inline-block;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-dim);
  animation: ticker 46s linear infinite;
}
.ticker-track b { color: var(--accent); font-weight: 500; }
.ticker-track .up { color: var(--bull); }
.ticker-track .down { color: var(--bear); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-kicker {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; line-height: 1.1;
  max-width: 22ch;
}
.section-sub { color: var(--text-dim); margin-top: 16px; max-width: 58ch; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}
.step-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.12em;
}
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 14px 0 10px; }
.step p { color: var(--text-dim); font-size: 15px; }
.step .glyph { position: absolute; right: 18px; top: 20px; opacity: 0.9; }

/* scan-line demo card inside step 2 */
.mini-chart {
  margin-top: 18px; height: 76px; border-radius: 12px;
  background: var(--surface-raised); border: 1px solid var(--border);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; gap: 7px; padding: 12px 14px;
}
.mini-chart i {
  flex: 1; border-radius: 3px 3px 0 0;
  background: var(--bull);
}
.mini-chart i.r { background: var(--bear); }
.mini-chart .scan {
  position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: linear-gradient(to bottom, rgba(58, 214, 255, 0.16), rgba(58, 214, 255, 0.16) 82%, var(--accent) 82%);
  animation: scan 2.6s ease-in-out infinite alternate;
}
@keyframes scan { to { transform: translateY(56px); } }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(58, 214, 255, 0.45); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--accent-dim); color: var(--accent);
  display: grid; place-items: center; font-size: 20px;
  margin-bottom: 18px;
}
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 14.5px; }

/* verdict band */
.band {
  background: linear-gradient(180deg, var(--surface), var(--bg-deep));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.verdict-card {
  background: var(--surface-raised);
  border: 1px solid var(--hold); border-radius: var(--radius);
  padding: 30px;
  max-width: 440px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.verdict-card .label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--hold); }
.verdict-card .word { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -0.02em; margin: 6px 0 14px; }
.verdict-card p { color: var(--text-dim); font-size: 14.5px; }
.chips { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px;
}

/* faq */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface);
  padding: 20px 24px; margin-top: 14px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-dim); font-size: 15px; margin-top: 12px; }

/* final cta */
.final { text-align: center; }
.final .btn { margin-top: 30px; }
.final .clay { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 26px; display: block; }

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 60px;
  color: var(--text-dim); font-size: 13.5px;
}
.foot-grid { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text); }
.disclaimer {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 12.5px; line-height: 1.7; color: color-mix(in srgb, var(--text-dim) 80%, transparent);
  max-width: 90ch;
}

/* ---------- legal / prose pages ---------- */
.prose { max-width: 760px; padding: 72px 0 40px; }
.prose h1 { font-size: clamp(32px, 4.6vw, 46px); margin-bottom: 8px; }
.prose .meta { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); margin-bottom: 40px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; max-width: none; }
.prose p, .prose li { color: var(--text-dim); font-size: 15.5px; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); }

/* ---------- responsive + motion ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .radar-stage { order: -1; }
  .steps, .features { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; }
  .nav a.link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .radar .sweep, .blip::after, .ticker-track, .mini-chart .scan, .kicker::before { animation: none; }
}
