/* ============================================================
   Sections — Hero, Problem, What-is-Halo, SPEX, Final CTA
   ============================================================ */

/* ---------- HERO ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 9vh, 110px)); text-align: center; }
.hero::after { /* vignette to keep text legible over the mesh */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 35%, transparent 30%, rgba(0,0,0,.55) 80%);
}
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero .lede { max-width: 60ch; margin: var(--s-5) auto var(--s-6); font-size: clamp(17px, 1.7vw, 21px); color: var(--ink-70); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tag-line { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s-5); }
.tag-line .chip { background: rgba(var(--halo-cyan-rgb),.08); border-color: rgba(var(--halo-cyan-rgb),.3); color: var(--halo-cyan); }

/* Hero live-stat band — mirrors the Halo app's HeroStat treatment: a
   smoked-glass pane over the wave. The PRIMARY all-time figure sits full-width
   on top; the four 24h/network stats sit in an even grid below, a step smaller.
   Small-caps muted labels over bold white tabular figures throughout. */
.hero-stats {
  margin: var(--s-8) auto 0; max-width: 680px;
  display: flex; flex-direction: column; gap: 0;
  padding: 22px clamp(20px, 3vw, 36px); border-radius: 18px;
  background: rgba(10,14,30,.28); border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.hstat { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hstat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-50); white-space: nowrap; }
.hstat-val { font-family: var(--font-sans); font-weight: 900; line-height: 1; color: #fff;
  font-size: clamp(19px, 2vw, 24px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hstat-val .hstat-sub { font-weight: 500; font-size: 13px; color: var(--ink-50); letter-spacing: 0; margin-left: 6px; }

/* Top row: the all-time figure, centred over a hairline divider. */
.hstat--primary { align-items: center; text-align: center; gap: 8px;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.hstat--primary .hstat-val { font-size: clamp(34px, 5vw, 48px); }

/* Bottom row: four evenly-sized, centred stat cells. */
.hstat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 18px; }
.hstat-row .hstat { align-items: center; text-align: center; }
@media (max-width: 560px) {
  .hstat-row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ---------- PROBLEM (old way / Halo way) ---------- */
.toggle-row { display: flex; justify-content: center; margin-bottom: var(--s-7); }
.toggle {
  display: inline-flex; padding: 5px; border-radius: 999px; gap: 4px;
  background: rgba(255,255,255,.05); border: 1px solid var(--glass-bd);
  -webkit-backdrop-filter: var(--glass-blur-light); backdrop-filter: var(--glass-blur-light);
}
.toggle button {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-50);
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.toggle button.active { color: var(--accent-ink); background: var(--glass-accent-fill); border: 1px solid var(--glass-accent-bd); font-weight: 700; box-shadow: var(--glass-accent-edge); }

.diagram { max-width: 1040px; margin: 0 auto; }
.diagram svg { width: 100%; height: auto; display: block; }
/* animated galaxy canvas */
.galaxy-wrap { position: relative; overflow: hidden; padding: 0; }
.galaxy-wrap canvas { display: block; width: 100%; height: clamp(380px, 54vw, 580px); }
.galaxy-tip {
  position: absolute; transform: translate(-50%, -100%); pointer-events: none; z-index: 6;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--ink);
  background: rgba(8,10,16,.92); border: 1px solid rgba(var(--halo-cyan-rgb),.55); border-radius: 8px;
  padding: 6px 11px; white-space: nowrap; box-shadow: var(--glass-neon-glow);
}
.galaxy-tip[hidden] { display: none; }
.diagram .node { transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.diagram .edge { transition: opacity var(--t-base) var(--ease), stroke-dashoffset 1.4s linear; }
.problem-copy { max-width: 720px; margin: var(--s-7) auto 0; text-align: center; }

/* ---------- WHAT IS HALO (3-panel flow) ---------- */
.flow { display: flex; align-items: stretch; gap: var(--s-4); }
.flow .step { flex: 1 1 0; min-width: 0; padding: clamp(20px, 2.6vw, 30px); }
.flow .arrow { flex: 0 0 auto; align-self: center; }
.flow .step .chip { margin-bottom: var(--s-4); }
.flow .step h3 { margin-bottom: var(--s-2); }
.flow .step .ico { width: 46px; height: 46px; margin-bottom: var(--s-4); border-radius: 12px;
  display: grid; place-items: center; color: var(--halo-cyan);
  background: rgba(var(--halo-cyan-rgb),.1); border: 1px solid rgba(var(--halo-cyan-rgb),.28); }
.flow .step .ico svg { width: 24px; height: 24px; }
.flow .arrow { align-self: center; color: var(--halo-cyan); opacity: .7; }
.settle-note { text-align: center; margin-top: var(--s-6); color: var(--ink-50); font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; }
.settle-note b { color: var(--halo-cyan); }
@media (max-width: 820px) {
  .flow { flex-direction: column; }
  .flow .step { flex: 0 0 auto; }          /* natural height in a column (flex:1 1 0 collapses it) */
  .flow .arrow { transform: rotate(90deg); align-self: center; }
}

/* ---------- SPEX ---------- */
.spex-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-6); align-items: center; }
@media (max-width: 900px) { .spex-grid { grid-template-columns: 1fr; } }
.spex-demo { padding: clamp(22px, 3vw, 36px); }
.spex-meter { position: relative; height: 16px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-bd); margin: var(--s-5) 0 var(--s-2); }
/* live scanning sweep across the meter */
.spex-meter::after { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: spexScan 2.8s var(--ease) infinite; pointer-events: none; }
@keyframes spexScan { 0% { left: -45%; } 70%, 100% { left: 100%; } }
.spex-meter .fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(.9);
  background: linear-gradient(90deg, var(--halo-cyan), var(--accent-blue)); transition: transform .12s linear, background .2s var(--ease); }
.spex-threshold { position: absolute; top: -6px; bottom: -6px; left: 70%; width: 2px; background: var(--ink-70); }
.spex-threshold::after { content: "THRESHOLD 70%"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--ink-50); white-space: nowrap; }
.spex-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--ink-50); letter-spacing: .1em; }
.spex-readout { display: flex; align-items: baseline; justify-content: space-between; margin-top: var(--s-5); gap: var(--s-4); flex-wrap: wrap; }
.spex-score { font-family: var(--font-mono); font-weight: 700; font-size: clamp(34px, 5vw, 48px); letter-spacing: -.02em; }
.verdict { font-family: var(--font-mono); font-weight: 700; font-size: 14px; letter-spacing: .1em; padding: 9px 16px; border-radius: 10px;
  transition: all var(--t-base) var(--ease); }
/* On-brand verification: cyan = ACCEPTED, signal-red = REJECTED (no green). */
.verdict.accept { color: var(--halo-cyan); background: rgba(var(--halo-cyan-rgb),.1); border: 1px solid rgba(var(--halo-cyan-rgb),.4); box-shadow: 0 0 24px -8px rgba(var(--halo-cyan-rgb),.5); }
.verdict.reject { color: var(--signal-red); background: rgba(var(--signal-red-rgb),.1); border: 1px solid rgba(var(--signal-red-rgb),.45); box-shadow: 0 0 26px -6px rgba(var(--signal-red-rgb),.6); }
.verdict.accept { animation: verdictPulseG 2.6s ease-in-out infinite; }
.verdict.reject { animation: verdictPulseR 1.5s ease-in-out infinite; }
@keyframes verdictPulseG { 0%,100% { box-shadow: 0 0 18px -10px rgba(var(--halo-cyan-rgb),.5); } 50% { box-shadow: 0 0 30px -6px rgba(var(--halo-cyan-rgb),.75); } }
@keyframes verdictPulseR { 0%,100% { box-shadow: 0 0 20px -8px rgba(var(--signal-red-rgb),.55); } 50% { box-shadow: 0 0 34px -4px rgba(var(--signal-red-rgb),.9); } }
.cheat-slider { width: 100%; margin-top: var(--s-5); -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--signal-red), var(--halo-cyan)); outline: none; cursor: ew-resize; }
.cheat-slider:focus-visible { outline: 2px solid var(--halo-cyan); outline-offset: 6px; }
.cheat-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--halo-cyan); box-shadow: 0 0 18px 2px rgba(var(--halo-cyan-rgb),.7); cursor: ew-resize; }
.cheat-slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--halo-cyan); box-shadow: 0 0 18px 2px rgba(var(--halo-cyan-rgb),.7); cursor: ew-resize; }
.cheat-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--ink-50); margin-top: 10px; letter-spacing: .04em; }
.spex-points li { margin-bottom: var(--s-3); color: var(--ink-70); }
.spex-points li b { font-family: var(--font-mono); }

/* ---------- FINAL CTA ---------- */
.final { text-align: center; }
.final .glass { padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 60px); overflow: hidden; position: relative; }
.final h2 { max-width: 18ch; margin-inline: auto; }
.final .halo-glow { position: absolute; width: 600px; height: 600px; left: 50%; top: 50%; transform: translate(-50%,-50%);
  background: var(--grad-halo-radial); opacity: .22; z-index: -1; filter: blur(20px); }
.final .hero-cta { margin-top: var(--s-6); }
.final .final-link { display: inline-block; margin-top: var(--s-4); font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .04em; color: var(--ink-50);
  transition: color var(--t-base) var(--ease); }
.final .final-link:hover { color: var(--ink); }

/* ---------- FOOTER ---------- */
.site-footer { padding: var(--s-8) 0 var(--s-9); border-top: 1px solid var(--glass-bd); margin-top: var(--s-8); }
.site-footer .wrap { display: grid; gap: var(--s-5); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-built { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .04em; color: var(--ink-70); }
.footer-built strong { color: var(--accent-ink); font-weight: 700; }
/* Official Base lockup (white wordmark + symbol). Nudged up ~2px so the
   wordmark's optical centre (it's bottom-heavy) lines up with the text. */
.footer-built .base-lockup { height: 16px; width: auto; flex: 0 0 auto; display: block; transform: translateY(-2px); }
.footer-built .base-lockup path { fill: #fff; }
/* Official Warden lockup. Its wordmark fills only ~half its viewBox (the symbol
   is full-height), so it's rendered taller to match the Base wordmark's size. */
.footer-built .warden-lockup { height: 26px; width: auto; flex: 0 0 auto; display: block; }
.footer-built .warden-lockup path { fill: #fff; }
.disclaimer { font-size: 12.5px; color: var(--ink-50); line-height: 1.6; max-width: 100%; }
.disclaimer b { color: var(--ink-50); }
