@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f7f5;
  --bg-alt: #efefec;
  --surface: #ffffff;
  --ink: #0b0d10;
  --ink-2: #3a3f47;
  --muted: #5e646d;
  --faint: #8a9099;
  --line: #e2e2de;
  --line-strong: #cfcfca;
  --accent: #0b7a5e;
  --accent-soft: rgba(11, 122, 94, 0.12);
  --button-bg: #0b0d10;
  --button-ink: #ffffff;
  --danger: #b42318;
  --grid-line: rgba(11, 13, 16, 0.06);
  --shadow: 0 1px 2px rgba(11, 13, 16, 0.04), 0 8px 24px rgba(11, 13, 16, 0.04);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --gutter: 24px;
  --max: 1120px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0d;
    --bg-alt: #111316;
    --surface: #15181c;
    --ink: #f2f3f5;
    --ink-2: #c9ccd2;
    --muted: #9aa0a9;
    --faint: #6d737c;
    --line: #23272d;
    --line-strong: #323840;
    --accent: #3ddca8;
    --accent-soft: rgba(61, 220, 168, 0.14);
    --button-bg: #f2f3f5;
    --button-ink: #0a0b0d;
    --danger: #ff8a80;
    --grid-line: rgba(242, 243, 245, 0.05);
    --shadow: none;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

::selection {
  background: var(--accent-soft);
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--button-bg);
  color: var(--button-ink);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--button-bg);
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.button:hover {
  opacity: 0.88;
}

.button:active {
  transform: translateY(1px);
}

.button[disabled] {
  cursor: progress;
  opacity: 0.6;
}

.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button-ghost:hover {
  opacity: 1;
  background: var(--bg-alt);
}

.button-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: border-color 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand-mark-bg {
  fill: var(--ink);
}

.brand-mark-path {
  fill: none;
  stroke: var(--bg);
  stroke-width: 2;
  stroke-linecap: round;
}

.brand-mark-path-muted {
  opacity: 0.4;
}

.brand-mark-node {
  fill: var(--bg);
}

.brand-mark-node-accent {
  fill: var(--accent);
}

.brand-name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 112px;
  padding-bottom: 120px;
}

.hero h1 {
  max-width: 13em;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.lede {
  max-width: 36em;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-figure {
  margin: 0;
  padding: 28px 24px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: var(--shadow);
}

.hero-figure figcaption {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
}

/* Decision tree */

.tree {
  width: 100%;
  height: auto;
  overflow: visible;
}

.tree-rails line {
  stroke: var(--line);
  stroke-dasharray: 2 5;
}

.edge {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 700ms cubic-bezier(0.3, 0.6, 0.2, 1) forwards;
}

.edge.live {
  stroke: var(--accent);
  stroke-width: 2.25;
}

.edge.s1 { animation-delay: 150ms; }
.edge.s2 { animation-delay: 700ms; }
.edge.s3 { animation-delay: 1250ms; }
.edge.s4 { animation-delay: 1800ms; }

.node {
  fill: var(--bg);
  stroke: var(--faint);
  stroke-width: 1.5;
}

.node.live {
  fill: var(--accent);
  stroke: var(--accent);
}

.node.final {
  fill: var(--accent);
  stroke: none;
  opacity: 0;
  animation: appear 400ms ease forwards 2350ms;
}

.node-halo {
  fill: var(--accent-soft);
  stroke: none;
  opacity: 0;
  transform-origin: 536px 165px;
  animation: halo 2.8s ease-in-out infinite 2600ms;
}

.tree-stops path {
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0;
  animation: appear 300ms ease forwards 1900ms;
}

.tree-labels text {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-anchor: middle;
}

.tree-labels text:first-child {
  text-anchor: start;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes appear {
  to { opacity: 1; }
}

@keyframes halo {
  0% { opacity: 0; transform: scale(0.6); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.8); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .edge { animation: none; stroke-dashoffset: 0; }
  .node.final,
  .tree-stops path { animation: none; opacity: 1; }
  .node-halo { animation: none; opacity: 0; }
}

/* Sections */

.section {
  padding: 112px 0;
  border-bottom: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  letter-spacing: -0.035em;
}

.section-lede {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.prose p {
  color: var(--ink-2);
  font-size: 1.08rem;
}

.prose p + p {
  margin-top: 18px;
}

/* Cards */

.cards {
  display: grid;
  gap: 16px;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
}

.card-index {
  display: inline-block;
  margin-bottom: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cards-plain {
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cards-plain .card {
  border-width: 0 1px 1px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cards-plain .card:nth-child(3) { border-top-right-radius: var(--radius); }

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 28px 28px 0 0;
  border-top: 1px solid var(--line-strong);
}

.step + .step {
  padding-left: 28px;
}

.step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.step + .step::before {
  left: 28px;
}

.step-num {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.step h3 {
  font-size: 1.25rem;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
}

/* AI comparison */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compare-col {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.compare-col-strong {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.compare h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.dot {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--faint);
  border-radius: 50%;
}

.dot-strong {
  border-color: var(--accent);
  background: var(--accent);
}

.compare ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.compare li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15.5px;
}

.compare li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 2px;
  width: 8px;
  height: 1.5px;
  background: var(--faint);
}

.compare-col-strong li::before {
  background: var(--accent);
}

.callout {
  max-width: 760px;
  margin-top: 40px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Audiences */

.audiences {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.audience {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.audience h3 {
  font-size: 1.08rem;
}

.audience p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.contact-intro p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--ink-2);
}

.contact-intro h2 {
  margin-bottom: 4px;
}

.contact-direct {
  font-size: 15px;
}

.contact-direct a {
  display: inline-block;
  color: var(--ink);
  font-weight: 500;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.contact-direct a:hover {
  text-decoration-color: var(--accent);
}

.form {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

.field em {
  margin-left: 4px;
  color: var(--faint);
  font-style: normal;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.turnstile:empty {
  display: none;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.form-status {
  color: var(--muted);
  font-size: 14.5px;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-success {
  color: var(--accent);
  font-weight: 500;
}

.form-note {
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
}

/* Footer */

.site-footer {
  padding: 36px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* 404 */

.not-found {
  display: grid;
  min-height: calc(100vh - var(--header-h) - 120px);
  place-content: center;
  padding: 80px 0;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.not-found p {
  margin: 16px auto 32px;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 88px;
  }

  .hero-figure {
    max-width: 620px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .step:nth-child(3) {
    padding-left: 0;
  }

  .step:nth-child(3)::before {
    left: 0;
  }

  .audiences {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .cards-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-plain .card:nth-child(3) {
    border-top-right-radius: 0;
  }

  .compare {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --header-h: 58px;
  }

  body {
    font-size: 16px;
  }

  .brand-name {
    font-size: 14.5px;
  }

  .hero-inner {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .hero-figure {
    padding: 18px 12px 12px;
  }

  .tree-labels text {
    font-size: 15px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .steps,
  .audiences,
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .step,
  .step + .step {
    padding-left: 0;
  }

  .step + .step::before {
    left: 0;
  }

  .card,
  .compare-col,
  .audience {
    padding: 22px;
  }

  .form {
    padding: 20px;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }
}
