/* ===== Tokens ===== */
:root {
  --bg: #0a0e14;
  --bg-raise: #101623;
  --bg-card: #0d1320;
  --line: #1d2635;
  --text: #e8edf4;
  --muted: #8b98ab;
  --verdict: #2dd4a7;
  --warn: #f5b04c;
  --grad: linear-gradient(135deg, #14b8a6, #4ade80);
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
/* vignette + ambient glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 40rem at 80% -10%, rgba(20, 184, 166, 0.10), transparent 60%),
    radial-gradient(50rem 35rem at 10% 40%, rgba(74, 222, 128, 0.05), transparent 60%),
    radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}
main, .site-head, .site-foot { position: relative; z-index: 1; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 750; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--verdict); outline-offset: 3px; border-radius: 4px; }
section { max-width: 72rem; margin: 0 auto; padding: clamp(4rem, 10vh, 8rem) 1.5rem; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--verdict);
  margin-bottom: 0.8rem;
}

/* ===== Header ===== */
.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  min-height: 44px;
}
.vane { width: 1.4rem; height: 1.4rem; color: var(--verdict); }

/* ===== CTA ===== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  border-radius: 999px;
  background: var(--grad);
  color: #04120c;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 0 rgba(45, 212, 167, 0);
  will-change: transform;
}
.cta:hover { box-shadow: 0 6px 32px rgba(45, 212, 167, 0.35); }
.cta-small { min-height: 44px; padding: 0 1.2rem; font-size: 0.9rem; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 82vh;
}
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin-bottom: 1.2rem; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: 2rem; max-width: 34rem; }
.hero-note { font-size: 0.85rem; margin-top: 1rem; font-family: var(--mono); }

/* ===== Audit card (hero demo) ===== */
.audit-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(20, 184, 166, 0.06);
  font-size: 0.95rem;
}
.audit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.audit-ticker { font-family: var(--mono); font-weight: 700; letter-spacing: 0.08em; }
.audit-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}
.audit-badge[data-state="idle"] { background: var(--bg-raise); color: var(--muted); }
.audit-badge[data-state="intact"] { background: var(--grad); color: #04120c; }
.audit-badge[data-state="at-risk"] { background: var(--warn); color: #241503; }
.audit-thesis { color: var(--text); min-height: 3.2em; margin-bottom: 1rem; }
.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--verdict);
  vertical-align: -0.15em;
  opacity: 0;
}
.audit-card.typing .caret { opacity: 1; animation: blink 0.8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.audit-claims { list-style: none; display: grid; gap: 0.55rem; margin-bottom: 1rem; }
.claim {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.55rem 0.8rem;
  transition: border-color 0.3s;
}
.claim-text { color: var(--muted); font-size: 0.88rem; }
.claim-mark { flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; position: relative; }
.claim[data-state="scanning"] { border-color: var(--verdict); }
.claim[data-state="scanning"] .claim-mark {
  border: 2px solid var(--line);
  border-top-color: var(--verdict);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.claim[data-state="pass"] .claim-mark::before { content: "✓"; color: var(--verdict); font-weight: 800; position: absolute; inset: 0; display: grid; place-items: center; }
.claim[data-state="warn"] { border-color: var(--warn); }
.claim[data-state="warn"] .claim-mark::before { content: "!"; color: var(--warn); font-weight: 800; position: absolute; inset: 0; display: grid; place-items: center; }
.audit-foot { font-family: var(--mono); font-size: 0.72rem; }
.audit-card.stamped .audit-badge { animation: stamp 0.35s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes stamp { 0% { transform: scale(2.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ===== Problem ===== */
.problem { text-align: center; }
.problem h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); margin-bottom: 0.6rem; }
.problem-punch { font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 750; color: var(--text); letter-spacing: -0.02em; margin-bottom: 1.6rem; }
.problem-body { max-width: 38rem; margin: 0 auto; }
.marquee { overflow: hidden; margin-bottom: 3.5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: inline-flex; gap: 2.5rem; white-space: nowrap; animation: scroll 32s linear infinite; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); opacity: 0.7; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Acts ===== */
.act { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.act-flip .act-copy { order: 2; }
.act-copy p { max-width: 30rem; }
.act-copy h2 { margin-bottom: 1rem; }
.assurance { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.85rem; color: var(--verdict); }
.act-copy strong { color: var(--text); }

/* ===== Mocks (shared) ===== */
.mock {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  font-size: 0.9rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}
.mock-title { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.mock-text { color: var(--text); margin-bottom: 0.9rem; }
.mock-foot { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.9rem; }
.chip-row { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.chip { font-size: 0.75rem; padding: 0.2rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--verdict); }
.mock-row { border-left: 3px solid var(--line); padding: 0.45rem 0.8rem; margin-bottom: 0.55rem; color: var(--muted); background: var(--bg-raise); border-radius: 0 8px 8px 0; }
.mock-row.plus { border-left-color: var(--verdict); }
.mock-row.minus { border-left-color: var(--warn); }
.verdict-line { display: flex; align-items: center; gap: 0.8rem; margin-top: 1rem; }
.badge { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; padding: 0.3rem 0.7rem; border-radius: 6px; }
.badge-warn { background: var(--warn); color: #241503; }
.verdict-why { font-size: 0.82rem; color: var(--muted); }
.toast { display: flex; align-items: center; gap: 0.7rem; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 0.7rem; color: var(--text); font-size: 0.88rem; }
.toast .dot { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--verdict); }
.toast-critical { border-color: rgba(245, 176, 76, 0.5); }
.toast-critical .dot { background: var(--warn); }
.toast-muted { opacity: 0.55; }
.toast-muted .dot { background: var(--muted); }

/* ===== Supporting / personas cards ===== */
.supporting, .personas { text-align: center; }
.supporting h2, .personas h2 { margin-bottom: 2.5rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; text-align: left; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card p { font-size: 0.92rem; }
.bars { display: flex; align-items: flex-end; gap: 0.45rem; height: 4.5rem; margin-bottom: 1.1rem; }
.bars span { flex: 1; border-radius: 4px 4px 0 0; background: var(--grad); height: var(--h); transform-origin: bottom; }
.js [data-reveal] .bars span, .js .card .bars span { transform: scaleY(0); transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1); }
.js .card.in-view .bars span { transform: scaleY(1); }
.js .card.in-view .bars span:nth-child(2) { transition-delay: 0.06s; }
.js .card.in-view .bars span:nth-child(3) { transition-delay: 0.12s; }
.js .card.in-view .bars span:nth-child(4) { transition-delay: 0.18s; }
.js .card.in-view .bars span:nth-child(5) { transition-delay: 0.24s; }
.js .card.in-view .bars span:nth-child(6) { transition-delay: 0.3s; }
.js .card.in-view .bars span:nth-child(7) { transition-delay: 0.36s; }
.gauge { position: relative; height: 4.5rem; display: flex; align-items: center; margin-bottom: 1.1rem; }
.gauge-fill { display: block; height: 0.6rem; width: var(--v); max-width: 100%; background: var(--grad); border-radius: 999px; position: relative; }
.gauge::before { content: ""; position: absolute; left: 0; right: 0; height: 0.6rem; background: var(--bg-raise); border-radius: 999px; }
.gauge-num { position: relative; margin-left: 0.8rem; font-family: var(--mono); font-weight: 700; color: var(--verdict); }
.synced { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.82rem; color: var(--verdict); height: 4.5rem; margin-bottom: 1.1rem; }
.pulse { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--verdict); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45, 212, 167, 0.5); } 70% { box-shadow: 0 0 0 10px rgba(45, 212, 167, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 167, 0); } }

/* ===== Closing + footer ===== */
.closing { margin-top: 3.5rem; }
.closing-line { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 750; color: var(--text); letter-spacing: -0.02em; margin-bottom: 1.6rem; }
.site-foot { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }

/* ===== Waitlist form ===== */
.waitlist-form { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; max-width: 34rem; position: relative; }
.waitlist-input {
  flex: 1 1 14rem;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  color: var(--text);
  font: inherit;
}
.waitlist-input::placeholder { color: var(--muted); }
.waitlist-input:focus-visible { outline-offset: 0; border-radius: 999px; }
.waitlist-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist-status { flex-basis: 100%; font-family: var(--mono); font-size: 0.85rem; min-height: 1.4em; }
.waitlist-status[data-state="ok"] { color: var(--verdict); }
.waitlist-status[data-state="err"] { color: var(--warn); }
.closing .waitlist-form { margin: 0 auto; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Scroll reveals (JS-gated) ===== */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1); }
.js [data-reveal].in-view { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero, .act { grid-template-columns: 1fr; gap: 2rem; min-height: 0; }
  .act-flip .act-copy { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .card .bars span { transform: none; }
  .marquee-track { animation: none; transform: none; }
}
