:root {
  color-scheme: light dark;
  --paper: #f7f1e7;
  --paper-deep: #eee4d5;
  --ink: #171815;
  --muted: #69675f;
  --line: rgba(23, 24, 21, 0.18);
  --orange: #ff4b0a;
  --green: #1fa342;
  --shadow: 0 24px 80px rgba(45, 35, 22, 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 9%, rgba(255, 75, 10, 0.1), transparent 25rem),
    linear-gradient(110deg, transparent 0 69%, rgba(23, 24, 21, 0.035) 69% 69.15%, transparent 69.15%),
    var(--paper);
  font-family: Avenir Next, Avenir, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.22em; }
a:hover { color: var(--orange); }

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 42px;
  border-radius: 20px;
  background: var(--ink);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.brand-mark::before { top: 2px; background: var(--orange); }
.brand-mark::after { bottom: 2px; background: var(--green); }

nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: 0.86rem; font-weight: 650; text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
  min-height: 680px;
  padding-block: 80px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: Iowan Old Style, Palatino Linotype, Palatino, ui-serif, Georgia, serif;
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h1 { max-width: 790px; margin-bottom: 26px; font-size: clamp(3.35rem, 8vw, 7.5rem); }
h2 { margin-bottom: 20px; font-size: clamp(2.2rem, 5vw, 4.6rem); }
h3 { margin-bottom: 12px; font-size: 1.55rem; letter-spacing: -0.025em; }

.lede { max-width: 660px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.disclosure { margin-top: 26px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: var(--orange); border-color: var(--orange); color: white; }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover { border-color: var(--orange); color: var(--orange); }

.signal {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 0.76;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 160px 160px 26px 26px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow);
}

.signal::before {
  position: absolute;
  inset: 18% 48%;
  border-radius: 99px;
  background: var(--ink);
  content: "";
}

.signal-dot {
  position: absolute;
  left: 50%;
  width: 84px;
  height: 84px;
  border: 16px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}
.signal-dot.top { top: 18%; background: var(--orange); }
.signal-dot.middle { top: 44%; background: var(--green); }
.signal-dot.bottom { top: 70%; background: var(--orange); }

.wave {
  position: absolute;
  top: 46%;
  width: 72px;
  height: 72px;
  border: 7px solid var(--orange);
  border-block-color: transparent;
  border-radius: 50%;
}
.wave.left { left: 3%; }
.wave.right { right: 3%; }

.section { padding-block: 112px; border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }

.rail-list { list-style: none; margin: 50px 0 0; padding: 0; }
.rail-list li {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  min-height: 118px;
  padding-bottom: 28px;
}
.rail-list li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 22px;
  width: 2px;
  background: var(--ink);
  content: "";
}
.rail-list li:last-child::before { bottom: 58%; }
.step {
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 0.77rem;
  font-weight: 800;
}
.rail-list li:nth-child(2) .step { background: var(--green); }
.rail-list li:nth-child(3) .step { background: var(--orange); }
.rail-list p { max-width: 650px; margin: 5px 0 0; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.feature {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
}
.feature-index { display: block; margin-bottom: 54px; color: var(--orange); font: 700 0.76rem/1 Avenir Next, sans-serif; letter-spacing: 0.12em; }
.feature p { margin-bottom: 0; color: var(--muted); }

.document { width: min(calc(100% - 40px), 780px); margin: 0 auto; padding: 86px 0 120px; }
.document header { margin-bottom: 64px; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.document h1 { font-size: clamp(3rem, 8vw, 5.8rem); }
.document h2 { margin-top: 56px; font-size: 2rem; }
.document h3 { margin-top: 32px; }
.document p, .document li { color: var(--muted); }
.document strong { color: var(--ink); }
.document .meta { color: var(--muted); font-size: 0.88rem; }
.document ul { padding-left: 1.2em; }
.document .callout { margin-block: 38px; padding: 24px; border-left: 5px solid var(--orange); background: rgba(255, 75, 10, 0.07); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding-block: 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151612;
    --paper-deep: #20211c;
    --ink: #f4eee3;
    --muted: #aaa79e;
    --line: rgba(244, 238, 227, 0.18);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  }
  body { background: radial-gradient(circle at 86% 9%, rgba(255, 75, 10, 0.12), transparent 25rem), var(--paper); }
  .signal, .feature { background: rgba(255, 255, 255, 0.025); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { min-height: 74px; }
  nav a:not(:last-child) { display: none; }
  .hero, .section-intro { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-block: 64px 84px; }
  .signal { width: 240px; margin-top: 12px; }
  .signal-dot { width: 64px; height: 64px; border-width: 12px; }
  .wave { width: 56px; height: 56px; border-width: 6px; }
  .section { padding-block: 80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature-index { margin-bottom: 30px; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
