/* ---------------------------------------------
   Tokens
--------------------------------------------- */
:root {
  --ink: #10140F;
  --ink-soft: #1A1F17;
  --paper: #FAF7F0;
  --paper-dim: #F1ECE0;
  --paper-ink: #1B1B16;
  --flame: #FF4B2B;
  --flame-dim: #C23A21;
  --signal: #1F8A5F;
  --signal-soft: #2FA872;
  --stone: #B9B2A0;
  --stone-dark: #6E6858;
  --line-on-dark: rgba(250, 247, 240, 0.14);
  --line-on-paper: rgba(27, 27, 22, 0.12);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1180px;
}

/* ---------------------------------------------
   Reset
--------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
button, input { font: inherit; color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
}

/* ---------------------------------------------
   Type utilities
--------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-dark);
  margin: 0 0 18px;
}
.eyebrow--center { text-align: center; }
.eyebrow--onlight { color: rgba(250, 247, 240, 0.55); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--flame);
  color: #fff;
}
.btn--primary:hover { background: var(--flame-dim); }

.btn--ghost {
  background: transparent;
  color: var(--paper-ink);
  border-color: var(--line-on-paper);
}
.btn--ghost:hover { border-color: var(--paper-ink); }

.btn--nav {
  padding: 10px 20px;
  font-size: 14px;
  background: var(--flame);
  color: #fff;
}
.btn--nav:hover { background: var(--flame-dim); }

/* ---------------------------------------------
   Nav
--------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease;
}
.nav[data-solid="true"] {
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-on-paper);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav__dot { color: var(--flame); }
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--stone-dark);
}
.nav__links a { transition: color 160ms ease; }
.nav__links a:hover { color: var(--paper-ink); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */
.hero {
  padding: 64px 32px 96px;
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: italic;
  color: var(--flame);
}
.hero__sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--stone-dark);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero__note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--stone-dark);
}

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------------------------------------------
   Race component (signature)
--------------------------------------------- */
.race {
  display: grid;
  gap: 14px;
  position: relative;
}
.race__vs {
  justify-self: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone);
  background: var(--ink);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -6px auto;
  z-index: 2;
  text-transform: uppercase;
}

.race__card {
  background: var(--ink);
  border-radius: 20px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line-on-dark);
  color: var(--paper);
}

.race__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.race__label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.6);
}
.race__pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.race__pill--waiting {
  background: rgba(255, 75, 43, 0.14);
  color: #FF7A5C;
}
.race__pill--live {
  background: rgba(31, 138, 95, 0.18);
  color: var(--signal-soft);
}

.race__clock {
  font-family: var(--font-mono);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.race__card--slow .race__clock { color: #FF7A5C; }
.race__card--fast .race__clock { color: var(--signal-soft); }

.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 44px;
}
.chat__bubble {
  font-size: 13.5px;
  line-height: 1.4;
  padding: 10px 13px;
  border-radius: 14px;
  max-width: 88%;
}
.chat__bubble--in {
  background: rgba(250, 247, 240, 0.08);
  color: rgba(250, 247, 240, 0.82);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat__bubble--out {
  background: var(--signal);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  opacity: 0;
  transform: scale(0.94) translateY(6px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.chat__bubble--out[data-visible="true"] {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.chat__typing {
  display: inline-flex;
  gap: 4px;
  padding: 2px 0;
}
.chat__typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  animation: typingBounce 1s infinite ease-in-out;
}
.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}
[data-typing="false"] .chat__typing { display: none; }

.race__foot {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(250, 247, 240, 0.4);
  margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .chat__typing i { animation: none; }
  .chat__bubble--out { transition: opacity 200ms ease; transform: none; }
}

/* ---------------------------------------------
   Stats strip
--------------------------------------------- */
.stats {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 32px 64px;
}
.stats__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-on-dark);
  margin-bottom: 32px;
}
.stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 500;
  color: var(--flame);
  line-height: 1;
  margin-bottom: 14px;
}
.stat__unit {
  font-size: 0.5em;
  color: rgba(250, 247, 240, 0.5);
  margin-left: 2px;
}
.stat__label {
  font-size: 15px;
  color: rgba(250, 247, 240, 0.65);
  max-width: 26ch;
}
.stats__punch {
  max-width: var(--container);
  margin: 0 auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 27px);
  text-align: center;
  color: var(--paper);
  max-width: 30ch;
  margin-inline: auto;
}

@media (max-width: 780px) {
  .stats__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------------------------------------------
   Pipeline
--------------------------------------------- */
.pipeline {
  padding: 96px 32px;
  text-align: center;
}
.pipeline .section-title { margin: 0 auto 64px; }
.pipeline__flow {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 8px;
  text-align: left;
}
.pipeline__step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin: 10px 0 10px;
}
.pipeline__step p {
  font-size: 14.5px;
  color: var(--stone-dark);
  line-height: 1.55;
}
.pipeline__time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--flame);
  background: rgba(255, 75, 43, 0.09);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
}
.pipeline__arrow {
  width: 40px;
  height: 1px;
  background: var(--line-on-paper);
  margin-top: 18px;
  position: relative;
}
.pipeline__arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 6px; height: 6px;
  border-top: 1px solid var(--stone);
  border-right: 1px solid var(--stone);
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 860px) {
  .pipeline__flow { grid-template-columns: 1fr; }
  .pipeline__arrow { width: 1px; height: 32px; margin: 0 0 0 20px; }
  .pipeline__arrow::after { right: -2.5px; top: auto; bottom: 0; transform: rotate(135deg); }
}

/* ---------------------------------------------
   Proof / log
--------------------------------------------- */
.proof {
  background: var(--paper-dim);
  padding: 96px 32px;
}
.proof__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.proof__lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--stone-dark);
  max-width: 42ch;
  margin-top: 20px;
}

.log {
  background: var(--ink);
  border-radius: 16px;
  padding: 24px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
}
.log__head, .log__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 8px;
  padding: 10px 0;
}
.log__head {
  color: rgba(250, 247, 240, 0.4);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line-on-dark);
}
.log__row {
  border-bottom: 1px solid var(--line-on-dark);
  color: rgba(250, 247, 240, 0.8);
}
.log__row--muted { color: rgba(250, 247, 240, 0.35); }
.log__bad { color: #FF7A5C; }
.log__ok { color: var(--signal-soft); }
.log__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  color: var(--paper);
}
.log__foot strong {
  font-size: 20px;
  color: var(--flame);
}

@media (max-width: 860px) {
  .proof__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------------------------------------------
   Compare table
--------------------------------------------- */
.compare {
  padding: 96px 32px;
  text-align: center;
}
.compare .section-title { margin: 0 auto 48px; }
.compare__table {
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--line-on-paper);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
}
.compare__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.compare__row + .compare__row { border-top: 1px solid var(--line-on-paper); }
.compare__row span {
  padding: 18px 24px;
  font-size: 14.5px;
  line-height: 1.5;
}
.compare__row span:first-child {
  color: var(--stone-dark);
  border-right: 1px solid var(--line-on-paper);
}
.compare__row span:last-child {
  color: var(--paper-ink);
  font-weight: 500;
}
.compare__row--head {
  background: var(--ink);
}
.compare__row--head span {
  color: var(--paper) !important;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 400;
  border-right-color: var(--line-on-dark) !important;
}

@media (max-width: 700px) {
  .compare__row { grid-template-columns: 1fr; }
  .compare__row span:first-child { border-right: none; border-bottom: 1px solid var(--line-on-paper); }
}

/* ---------------------------------------------
   Trust
--------------------------------------------- */
.trust {
  background: var(--paper-dim);
  padding: 96px 32px;
  text-align: center;
}
.trust .section-title { margin: 0 auto 56px; }
.trust__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: left;
}
.trust__item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  margin-bottom: 8px;
}
.trust__item p {
  font-size: 14px;
  color: var(--stone-dark);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .trust__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .trust__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------
   Closer / CTA
--------------------------------------------- */
.closer {
  background: var(--ink);
  color: var(--paper);
  padding: 110px 32px;
  text-align: center;
}
.closer__inner {
  max-width: 640px;
  margin: 0 auto;
}
.closer__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.closer__sub {
  font-size: 16.5px;
  color: rgba(250, 247, 240, 0.6);
  line-height: 1.6;
  max-width: 48ch;
  margin: 0 auto 40px;
}
/* ---------------------------------------------
   Lead form
--------------------------------------------- */
.lead-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lead-form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lead-form__field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.5);
}

.lead-form__optional {
  text-transform: none;
  letter-spacing: 0;
  color: rgba(250, 247, 240, 0.32);
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(250, 247, 240, 0.18);
  background: rgba(250, 247, 240, 0.05);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 160ms ease, background-color 160ms ease;
  resize: vertical;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(250, 247, 240, 0.32);
}
.lead-form input:hover,
.lead-form textarea:hover {
  border-color: rgba(250, 247, 240, 0.3);
}
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--flame);
  background: rgba(250, 247, 240, 0.08);
}
.lead-form input[data-invalid="true"],
.lead-form textarea[data-invalid="true"] {
  border-color: #FF7A5C;
}

.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lead-form__error {
  font-size: 13.5px;
  color: #FF7A5C;
  margin: -6px 0 0;
}

.lead-form__submit {
  align-self: flex-start;
  margin-top: 4px;
}
.lead-form__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 560px) {
  .lead-form__row { grid-template-columns: 1fr; }
  .lead-form__submit { align-self: stretch; }
}

/* ---------------------------------------------
   Toast
--------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 32px rgba(16, 20, 15, 0.28), 0 2px 8px rgba(16, 20, 15, 0.16);
  font-size: 14px;
  font-weight: 500;

  transform: translateX(-50%) translateY(12px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}

.toast[data-visible="true"] {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}

.toast[data-visible="false"] {
  transition: transform 160ms ease, opacity 160ms ease;
}

.toast__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--paper);
  flex-shrink: 0;

  transform: scale(0.6);
  opacity: 0;
  transition: transform 260ms var(--ease-out) 80ms, opacity 260ms var(--ease-out) 80ms;
}
.toast[data-visible="true"] .toast__icon {
  transform: scale(1);
  opacity: 1;
}

@media (max-width: 520px) {
  .toast {
    left: 16px;
    right: 16px;
    bottom: 20px;
    transform: translateY(12px) scale(0.96);
  }
  .toast[data-visible="true"] { transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transform: translateX(-50%);
    transition: opacity 160ms ease;
  }
  .toast[data-visible="true"] { transform: translateX(-50%); }
  .toast__icon { transition: opacity 160ms ease; transform: none; }
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(250, 247, 240, 0.5);
  padding: 40px 32px 48px;
  border-top: 1px solid var(--line-on-dark);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.nav__logo--footer { color: var(--paper); }
.footer__inner a { text-decoration: underline; text-underline-offset: 3px; }
