/* ---------- tokens ---------- */
:root {
  --abyss: #081722;
  --marine: #123853;
  --marine-soft: #163f5c;
  --signal: #0097e4;
  --signal-dim: #4db6ee;
  --signal-deep: #005f94;
  --paper: #edf1ef;
  --paper-raised: #ffffff;
  --ink: #0b1b24;
  --slate: #4a6172;
  --slate-on-dark: #93aebd;
  --amber: #f2a93b;
  --line-on-dark: rgba(237, 241, 239, 0.14);
  --line-on-light: rgba(11, 27, 36, 0.12);

  --font-display: "Archivo", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --wrap: 1200px;
}

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

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ---------- shared text ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-dim);
  margin-bottom: 20px;
}
.eyebrow-dark { color: var(--signal); }
.eyebrow-on-light { color: var(--signal-deep); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 16ch;
}
.section-title-light { color: var(--paper); }

.section-body {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--slate);
  max-width: 58ch;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled {
  background: var(--abyss);
  border-bottom-color: var(--line-on-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.header-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--slate-on-dark);
  padding: 8px 4px;
  transition: color 0.15s ease;
}
.header-link:hover { color: var(--signal-dim); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--abyss) 0%, var(--abyss) 70%, var(--marine) 100%);
  padding: clamp(96px, 9vw, 132px) 0 clamp(48px, 7vw, 88px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--paper);
  max-width: 15ch;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--slate-on-dark);
  max-width: 46ch;
  margin-bottom: 36px;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--signal-dim);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
  padding-bottom: 2px;
}
.scroll-cue svg { transition: transform 0.15s ease; }
.scroll-cue:hover {
  color: var(--paper);
  border-color: currentColor;
}
.scroll-cue:hover svg { transform: translateY(2px); }

/* ---------- hero rate-chart signature visual ---------- */
.hero-visual {
  width: 100%;
  aspect-ratio: 480 / 320;
}
.rate-chart { width: 100%; height: 100%; overflow: visible; }

.grid-line {
  stroke: var(--line-on-dark);
  stroke-width: 1;
}
.window-band {
  fill: rgba(242, 169, 59, 0.08);
  opacity: 0;
  animation: band-in 0.6s ease 1.5s forwards;
}
.window-edge {
  stroke: rgba(242, 169, 59, 0.35);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
  animation: band-in 0.6s ease 1.5s forwards;
}
.rate-path {
  stroke: var(--signal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-line 1.6s cubic-bezier(.4,0,.2,1) 0.2s forwards;
}
.capture-point {
  fill: var(--amber);
  opacity: 0;
  transform-origin: 300px 110px;
  animation: point-in 0.4s ease 1.7s forwards;
}
.capture-label {
  opacity: 0;
  animation: point-in 0.4s ease 1.85s forwards;
}
.label-value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  fill: var(--amber);
}
.label-unit {
  fill: var(--slate-on-dark);
  font-size: 12px;
}
.axis-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  fill: var(--slate-on-dark);
}

@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes band-in { to { opacity: 1; } }
@keyframes point-in { to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .rate-path, .window-band, .window-edge, .capture-point, .capture-label {
    animation: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ---------- problem ---------- */
.problem {
  background: var(--paper);
  padding: clamp(64px, 10vw, 128px) 0;
}
.problem-grid {
  border-left: 3px solid var(--signal);
  padding-left: clamp(20px, 4vw, 40px);
}
.problem-grid .section-title { margin-bottom: 20px; max-width: 20ch; }

/* ---------- pillars ---------- */
.pillars {
  background: var(--abyss);
  padding: clamp(64px, 10vw, 128px) 0;
}
.pillars .section-title { margin-bottom: 48px; max-width: 20ch; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-on-dark);
  border: 1px solid var(--line-on-dark);
}
.pillar-card {
  background: var(--abyss);
  padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 32px);
  transition: background 0.2s ease;
}
.pillar-card:hover { background: var(--marine); }

.pillar-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
}
.pillar-icon {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--signal);
  margin-bottom: 22px;
}
.pillar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--paper);
  line-height: 1.25;
  margin-bottom: 14px;
}
.pillar-body {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--slate-on-dark);
}

/* ---------- how it works ---------- */
.how {
  background: var(--paper);
  padding: clamp(64px, 10vw, 128px) 0;
}
.how .section-title { margin-bottom: 56px; max-width: 22ch; }

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 8%;
  right: 8%;
  height: 1px;
  background-image: linear-gradient(to right, var(--slate) 0, var(--slate) 6px, transparent 6px, transparent 14px);
  background-size: 14px 1px;
  background-repeat: repeat-x;
  opacity: 0.5;
}
.step { position: relative; }
.step-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--signal-deep);
  background: var(--paper);
  padding-right: 10px;
  width: fit-content;
  margin-bottom: 20px;
  position: relative;
}
.step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.step-body {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--slate);
  max-width: 32ch;
}

/* ---------- traction ---------- */
.traction {
  background: var(--abyss);
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
}
.traction-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.route-glyph {
  width: 180px;
  height: auto;
  color: var(--signal);
  margin-bottom: 32px;
}
.route-dot { fill: var(--amber); }
.route-line { stroke: var(--line-on-dark); stroke-width: 1.4; stroke-dasharray: 3 4; }
.route-globe { color: var(--signal-dim); }

.traction-line {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--paper);
  max-width: 52ch;
  font-weight: 500;
}

/* ---------- contact ---------- */
.contact {
  background: var(--marine);
  padding: clamp(64px, 10vw, 128px) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact .section-title { max-width: 18ch; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-on-dark);
}
.form-row input,
.form-row textarea {
  background: rgba(237, 241, 239, 0.04);
  border: 1px solid rgba(237, 241, 239, 0.28);
  border-radius: 2px;
  padding: 12px 14px;
  color: var(--paper);
  font-size: 1rem;
  transition: border-color 0.15s ease;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--signal);
}
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.submit-btn {
  justify-self: start;
  background: var(--signal);
  color: var(--abyss);
  border: none;
  border-radius: 2px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  width: fit-content;
}
.submit-btn:hover { background: var(--signal-dim); }
.submit-btn:active { transform: translateY(1px); }
.form-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--signal-dim);
  min-height: 1.2em;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--abyss);
  border-top: 1px solid var(--line-on-dark);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate-on-dark);
}
.footer-inner a { transition: color 0.15s ease; }
.footer-inner a:hover { color: var(--signal-dim); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .pillar-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-inner { height: 60px; }
  .hero-title { font-size: clamp(2.1rem, 8vw, 2.8rem); }
}
