@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --ground: #f4f7f6;
  --surface: #ffffff;
  --ink: #0d1f1b;
  --ink-2: #3b504b;
  --muted: #566a65;
  --line: rgb(13 31 27 / 0.12);
  --lane: rgb(13 31 27 / 0.17);
  --accent: #0c6b59;
  --accent-hover: #095747;
  --on-accent: #ffffff;
  --pulse: #17a685;
  --pulse-main: #8ff2d6;
  --band: #0b3d34;
  --band-ink: #eaf6f2;
  --band-muted: #b3d6cc;
  --radius: 12px;
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 11vw, 148px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0b1412;
    --surface: #111d1a;
    --ink: #e7f0ed;
    --ink-2: #bccdc7;
    --muted: #97aba4;
    --line: rgb(231 240 237 / 0.12);
    --lane: rgb(231 240 237 / 0.17);
    --accent: #43c2a2;
    --accent-hover: #63d2b6;
    --on-accent: #04221c;
    --pulse: #57d9b8;
    --pulse-main: #e3fff7;
    --band: #0f3a32;
    --band-ink: #ecf8f4;
    --band-muted: #a9d4c8;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }

h1, h2, h3, p, dl, dd, ol { margin: 0; }
p, dd { text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus-visible { top: 12px; }

/* ------------------------------------------------------------------ header */

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 640;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand.quiet { font-size: 15px; color: var(--ink-2); }

.mark { width: 28px; height: 28px; flex: none; }
.mark rect { fill: var(--accent); }
.mark path { fill: none; stroke: var(--on-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand.quiet .mark { width: 22px; height: 22px; }

.head-nav { display: flex; align-items: center; gap: 6px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 520;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav-link:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }

/* ------------------------------------------------------------------ buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgb(4 34 28 / 0.12), 0 8px 20px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: background-color 180ms ease, transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}
.button:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 2px 4px rgb(4 34 28 / 0.12), 0 14px 28px -12px color-mix(in srgb, var(--accent) 75%, transparent); }
.button:active { transform: translateY(0); }
.button.small { min-height: 44px; margin-left: 8px; padding: 0 18px; font-size: 15px; }

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}
.button.ghost:hover { background: var(--surface); border-color: color-mix(in srgb, var(--ink) 20%, transparent); }

.button.inverse {
  background: var(--band-ink);
  color: var(--band);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 12px 28px -14px rgb(0 0 0 / 0.55);
}
.button.inverse:hover { background: #ffffff; }
.closing .button:focus-visible { outline-color: var(--band-ink); }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ hero */

.hero {
  padding-top: clamp(40px, 7vw, 104px);
  padding-top: clamp(40px, min(7vw, 11svh), 104px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

h1 {
  max-width: 20ch;
  font-size: clamp(44px, 6.6vw, 90px);
  font-size: clamp(44px, min(6.6vw, 10.5svh), 90px);
  font-weight: 620;
  line-height: 1.01;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lede {
  max-width: 54ch;
  margin-top: clamp(22px, 2.6vw, 32px);
  color: var(--ink-2);
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.4vw, 40px); }

.flow { margin: clamp(40px, 6vw, 88px) 0 0; margin-top: clamp(40px, min(6vw, 6svh), 88px); }
.flow svg { width: 100%; height: auto; overflow: visible; }
.flow-wide { display: block; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%); mask-image: linear-gradient(90deg, transparent, #000 9%); }
.flow-tall { display: none; max-width: 420px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%); mask-image: linear-gradient(180deg, transparent, #000 16%); }

.lanes path { fill: none; stroke: var(--lane); stroke-width: 1.5; }
.spine { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }

.pulses path {
  fill: none;
  stroke: var(--pulse);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 64 2000;
  stroke-dashoffset: 64;
  animation: travel 3.2s cubic-bezier(0.45, 0, 0.25, 1) infinite both;
}
.pulses path:nth-child(2) { animation-delay: 0.65s; }
.pulses path:nth-child(3) { animation-delay: 1.3s; }
.pulses path:nth-child(4) { animation-delay: 1.95s; }
.pulses path:nth-child(5) { animation-delay: 2.6s; }
.pulses .main { stroke: var(--pulse-main); stroke-dasharray: 90 2000; animation-name: travel-main; animation-duration: 2.6s; animation-delay: 0.9s; }
.pulses .main.late { animation-delay: 2.2s; }

@keyframes travel { from { stroke-dashoffset: 64; } to { stroke-dashoffset: -1000; } }
@keyframes travel-main { from { stroke-dashoffset: 90; } to { stroke-dashoffset: -1000; } }

.nodes circle { fill: var(--ground); stroke: var(--accent); stroke-width: 3; }
.end { fill: var(--accent); }
.check { fill: none; stroke: var(--on-accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring 3.2s var(--ease-out) infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.6; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}

.labels text { fill: var(--ink); font-size: 19px; font-weight: 580; letter-spacing: -0.01em; text-anchor: middle; }
.flow-tall .labels text { font-size: 18px; text-anchor: start; }

/* ------------------------------------------------------------------ stages */

.path { padding-block: var(--section) calc(var(--section) * 0.8); }

h2 {
  max-width: 20ch;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 610;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: clamp(48px, 6vw, 80px);
  padding: 0;
  list-style: none;
}
.stages::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 18%, transparent));
}
.stages li { position: relative; padding-top: 44px; }
.stages li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--ground);
}
.stages li:last-child::before { background: var(--accent); }
h3 { font-size: 21px; font-weight: 620; line-height: 1.25; letter-spacing: -0.02em; }
.stages p { max-width: 34ch; margin-top: 10px; color: var(--ink-2); }

/* ------------------------------------------------------------------ verticals */

.verticals { padding-block: calc(var(--section) * 0.8) var(--section); border-top: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.split-lead p { max-width: 44ch; margin-top: 24px; color: var(--ink-2); font-size: 18px; }

.spec { border-top: 1px solid var(--line); }
.spec-row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt { font-weight: 620; letter-spacing: -0.01em; }
.spec dd { color: var(--ink-2); }

/* ------------------------------------------------------------------ closing */

.closing { background: var(--band); color: var(--band-ink); padding-block: clamp(72px, 9vw, 128px); }
.closing-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.closing h2 { max-width: 18ch; }
.closing p { margin-top: 18px; color: var(--band-muted); font-size: 19px; }

.site-foot { padding-block: 32px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot small { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ narrow */

@media (max-width: 960px) {
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .stages::before { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .flow-wide { display: none; }
  .flow-tall { display: block; }
}

@media (max-width: 640px) {
  .nav-link { display: none; }
  .stages { grid-template-columns: minmax(0, 1fr); row-gap: 36px; padding-left: 36px; }
  .stages::before { display: block; top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 18%, transparent)); }
  .stages li { padding-top: 0; }
  .stages li::before { top: 4px; left: -36px; }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; }
  .actions .button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulses, .ring { display: none; }
  .button, .nav-link { transition: none; }
}

@media (forced-colors: active) {
  .spine, .nodes circle, .ring { stroke: CanvasText; }
  .end { fill: CanvasText; }
  .button { border-color: ButtonText; }
}
