@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,500&display=swap");

:root {
  --paper: #f2eee5;
  --paper-deep: #e8e1d4;
  --card: #faf7f0;
  --ink: #17181c;
  --ink-soft: #373a42;
  --muted: #6b6d72;
  --faint: #999991;
  --line: #d7d0c3;
  --line-dark: #bcb4a6;
  --signal: #ff5c35;
  --signal-dark: #d9401b;
  --blue: #2949e8;
  --blue-soft: #e3e8ff;
  --green: #087e67;
  --green-soft: #dff2ea;
  --yellow: #e8b83f;
  --display: "Newsreader", Georgia, serif;
  --body: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
  --radius: 14px;
  --max: 1180px;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 24, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 28, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

code,
pre {
  font-family: var(--mono);
}

::selection {
  color: white;
  background: var(--signal);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 8px 12px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

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

.section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--signal-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  content: "";
  background: currentColor;
}

.eyebrow .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(8, 126, 103, 0.12);
}

.eyebrow:has(.live-dot)::before {
  display: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
}

h2 em,
h1 em {
  color: var(--signal);
  font-weight: 500;
}

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

.section-head > p:last-child {
  max-width: 60ch;
  color: var(--muted);
  font-size: 18px;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(242, 238, 229, 0.9);
  backdrop-filter: blur(14px) saturate(130%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
}

.nav-links a {
  transition: color 150ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--signal);
}

.nav-github {
  padding: 8px 12px;
  color: var(--paper) !important;
  border-radius: 6px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 830px;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(42px, 7vw, 90px);
  align-items: center;
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(58px, 7.3vw, 92px);
  line-height: 0.88;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 21px);
}

.hero-lede strong {
  color: var(--ink);
}

.hero-lede + .hero-lede {
  margin-top: -16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.flow-figure {
  max-width: 980px;
  margin: 8px auto 32px;
  text-align: center;
}

.flow-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: white;
}

.flow-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.flow-figure figcaption a {
  color: var(--signal-dark);
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: white;
  background: var(--signal);
  box-shadow: 0 14px 30px -18px rgba(217, 64, 27, 0.9);
}

.button.primary:hover {
  background: var(--signal-dark);
}

.button.text {
  border: 1px solid var(--line-dark);
}

.button.text:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  list-style: none;
}

.hero-notes li::before {
  margin-right: 8px;
  color: var(--green);
  content: "✓";
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(41, 73, 232, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-a {
  top: -160px;
  right: -100px;
  width: 720px;
  height: 720px;
}

.orbit-b {
  top: 70px;
  right: 120px;
  width: 360px;
  height: 360px;
}

.orbit-b::before {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
  box-shadow: 0 0 0 7px rgba(255, 92, 53, 0.12);
}

.console-wrap {
  transform: rotate(1deg);
}

.console-label {
  width: max-content;
  margin: 0 0 -1px 24px;
  padding: 6px 12px;
  color: var(--ink);
  border: 1px solid var(--ink);
  background: var(--yellow);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.console {
  color: #e9e6dc;
  border: 1px solid #050506;
  border-radius: 10px;
  background: var(--ink);
  box-shadow: 22px 24px 0 rgba(41, 73, 232, 0.09), 0 40px 80px -38px rgba(23, 24, 28, 0.8);
  overflow: hidden;
}

.console-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 11px 14px;
  color: #8d919a;
  border-bottom: 1px solid #303138;
  font-family: var(--mono);
  font-size: 9px;
}

.console-dots {
  display: flex;
  gap: 5px;
}

.console-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54565e;
}

.console-api {
  justify-self: end;
  color: #697be9;
}

.console-body {
  min-height: 328px;
  padding: 30px 27px;
  font-family: var(--mono);
  font-size: clamp(11px, 1.2vw, 13px);
}

.console-command {
  display: flex;
  gap: 9px;
  min-height: 56px;
  color: white;
}

.prompt {
  color: var(--signal);
}

.cursor {
  width: 7px;
  height: 16px;
  background: #8d9cff;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.console-output {
  padding-top: 10px;
  border-top: 1px solid #303138;
}

.console-output p {
  margin-bottom: 12px;
}

.console-output .dim {
  color: #82858e;
}

.console-output .ok,
.console-output .pass {
  color: #56c6a9;
}

.console-output .run {
  color: #93a1ff;
}

.console-output .pass {
  float: right;
  padding: 1px 7px;
  border: 1px solid #337e6e;
  border-radius: 3px;
}

.console-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  transform: rotate(-1deg);
}

.console-foot span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.legend.reuse { background: var(--green); }
.legend.execute { background: var(--blue); }
.legend.bound { background: var(--signal); }

.fact-strip {
  color: var(--paper);
  background: var(--ink);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 120px;
  padding: 20px;
  border-left: 1px solid #34353b;
}

.fact:last-child {
  border-right: 1px solid #34353b;
}

.fact strong {
  color: var(--signal);
  font-family: var(--display);
  font-size: 52px;
  font-weight: 400;
}

.fact span {
  max-width: 120px;
  color: #a9abb3;
  font-size: 12px;
}

.split-head {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}

.split-copy {
  color: var(--muted);
  font-size: 18px;
}

.callout {
  padding: 16px 0 0 20px;
  color: var(--ink);
  border-left: 2px solid var(--signal);
  font-family: var(--mono);
  font-size: 12px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.principle {
  min-height: 270px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.principle:last-child {
  border-right: 0;
}

.principle .index {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 10px;
}

.principle h3 {
  margin: 50px 0 12px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
}

.principle p {
  color: var(--muted);
  font-size: 14px;
}

.flow-section {
  border-top: 1px solid var(--line);
  background: var(--card);
}

.loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line-dark);
  background: var(--paper);
}

.loop-track {
  position: absolute;
  top: 58px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: var(--line-dark);
}

.loop-track::after {
  position: absolute;
  top: -4px;
  right: -1px;
  width: 9px;
  height: 9px;
  content: "";
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}

.loop-step {
  position: relative;
  min-height: 310px;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}

.loop-step:last-child {
  border: 0;
}

.loop-step::before {
  position: absolute;
  top: 52px;
  left: 28px;
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
  content: "";
}

.loop-step.optional::before {
  background: var(--paper);
}

.loop-step.final::before {
  background: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
}

.step-num {
  display: block;
  margin-bottom: 70px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.step-command {
  display: inline-block;
  margin-bottom: 13px;
  padding: 3px 7px;
  color: var(--blue);
  border-radius: 3px;
  background: var(--blue-soft);
  font-family: var(--mono);
  font-size: 10px;
}

.loop-step h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
}

.loop-step p {
  color: var(--muted);
  font-size: 13px;
}

.step-mode {
  position: absolute;
  bottom: 24px;
  left: 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.backflow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

.backflow code {
  padding: 8px 14px;
  color: var(--signal-dark);
  border: 1px solid var(--signal);
  border-radius: 20px;
  background: rgba(255, 92, 53, 0.06);
}

.evidence-section {
  background: var(--ink);
  color: var(--paper);
}

.evidence-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(52px, 8vw, 110px);
  align-items: center;
}

.evidence-copy > p:not(.eyebrow) {
  max-width: 64ch;
  color: #a8aab1;
}

.adapter-tabs {
  display: flex;
  gap: 6px;
  margin: 36px 0 12px;
  overflow-x: auto;
}

.adapter-tab {
  padding: 8px 11px;
  color: #9699a2;
  border: 1px solid #393a41;
  border-radius: 5px;
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.adapter-tab.is-active {
  color: white;
  border-color: var(--signal);
  background: rgba(255, 92, 53, 0.12);
}

.adapter-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid #3d3e45;
  border-radius: var(--radius);
  background: #1e1f24;
}

.adapter-kicker {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.adapter-card h3 {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
}

.adapter-card p {
  color: #989ba4;
  font-size: 13px;
}

.adapter-card pre {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 18px;
  color: #bdc5f8;
  border-radius: 7px;
  background: #141519;
  font-size: 10px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.receipt {
  position: relative;
  padding: 26px;
  color: var(--ink);
  border-radius: 2px;
  background: #f6f1e7;
  box-shadow: 14px 14px 0 var(--signal);
  transform: rotate(1.4deg);
}

.receipt::before,
.receipt::after {
  position: absolute;
  width: 54px;
  height: 16px;
  content: "";
  background: rgba(232, 184, 63, 0.55);
  transform: rotate(-5deg);
}

.receipt::before {
  top: -8px;
  left: 34px;
}

.receipt::after {
  right: 38px;
  bottom: -7px;
}

.receipt-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.receipt-status {
  color: var(--green);
}

.receipt dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  margin: 0;
}

.receipt dt,
.receipt dd {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-dark);
}

.receipt dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.receipt dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}

.receipt > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.capability-block {
  margin-top: 90px;
  padding-top: 32px;
  border-top: 1px solid #3a3b41;
}

.capability-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.capability-head h3 {
  max-width: 720px;
  margin: 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
}

.catalog-toggle {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #bbbcc1;
  border: 1px solid #42434a;
  border-radius: 5px;
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.catalog-toggle span {
  margin-left: 9px;
  color: var(--signal);
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 39px;
  margin-top: 28px;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.capability-list.is-expanded {
  max-height: 260px;
}

.capability-list span {
  padding: 7px 10px;
  color: #b5b7be;
  border: 1px solid #3a3b42;
  border-radius: 4px;
  background: #1d1e23;
  font-family: var(--mono);
  font-size: 9px;
}

.scheduler-section {
  background: var(--card);
}

.scheduler-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.scheduler-grid .section-head {
  margin-bottom: 0;
}

.schedule {
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), var(--line) calc(25% - 1px), var(--line) 25%),
    var(--paper);
}

.schedule-axis {
  display: flex;
  justify-content: space-between;
  margin: 0 0 18px 130px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  min-height: 48px;
}

.schedule-name {
  font-family: var(--mono);
  font-size: 9px;
}

.schedule-bar {
  grid-column: 2;
  width: calc(var(--size) * 1%);
  min-width: 52px;
  margin-left: calc(var(--start) * 1%);
  padding: 7px 9px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8px;
}

.schedule-bar.reused {
  color: #075b4c;
  background: var(--green-soft);
  border: 1px dashed var(--green);
}

.schedule-bar.tests {
  color: #1e379e;
  background: #cbd5ff;
}

.schedule-bar.browser {
  color: white;
  background: var(--blue);
}

.schedule-bar.mutation {
  color: #7c2915;
  background: #ffc8b9;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 70px;
}

.cost-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.cost-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--signal);
  border: 1px solid var(--signal);
  border-radius: 50%;
  font-family: var(--mono);
}

.cost-card h3 {
  margin: 50px 0 10px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
}

.cost-card p {
  color: var(--muted);
  font-size: 13px;
}

.policy-section {
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 18%, rgba(41, 73, 232, 0.34), transparent 30%),
    var(--ink);
  overflow: hidden;
}

.policy-section::after {
  position: absolute;
  right: -130px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.policy-head {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 80px;
  align-items: end;
}

.policy-head .section-head {
  margin-bottom: 54px;
}

.policy-head .section-head > p:last-child,
.review-copy > p:last-child {
  color: #aeb0b7;
}

.policy-head code {
  color: #a9b5ff;
}

.policy-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  border-bottom: 1px solid rgba(242, 238, 229, 0.45);
  font-family: var(--mono);
  font-size: 10px;
  padding-bottom: 4px;
}

.policy-doc-link span {
  color: var(--signal);
  transition: transform 180ms ease;
}

.policy-doc-link:hover span {
  transform: translateX(4px);
}

.policy-limits {
  display: grid;
  margin-bottom: 54px;
  border-top: 1px solid #3a3b42;
}

.policy-limits span {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: baseline;
  padding: 13px 0;
  color: #aeb0b7;
  border-bottom: 1px solid #3a3b42;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.policy-limits b {
  color: var(--signal);
  font-size: 20px;
  font-weight: 400;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tier-card {
  min-height: 270px;
  padding: 26px;
  border: 1px solid #3c3d44;
  background: rgba(18, 19, 23, 0.72);
  backdrop-filter: blur(8px);
}

.tier-card.standard {
  border-top: 4px solid var(--blue);
}

.tier-card.deep {
  border-top: 4px solid var(--signal);
}

.tier-top {
  display: flex;
  justify-content: space-between;
  color: #8d9099;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.tier-top code {
  color: #b4bdf0;
  letter-spacing: 0;
}

.tier-card h3 {
  margin: 68px 0 10px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
}

.tier-card p {
  min-height: 48px;
  color: #aeb0b7;
  font-size: 13px;
}

.tier-card small {
  color: #71747d;
  font-family: var(--mono);
  font-size: 9px;
}

.review-circuit {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 60px;
  align-items: center;
  margin-top: 14px;
  padding: 32px;
  color: var(--ink);
  background: var(--paper);
}

.review-copy h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}

.review-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.review-route {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.review-route > span {
  display: flex;
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line-dark);
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.review-route b,
.review-route small {
  font-family: var(--mono);
  font-size: 9px;
}

.review-route small {
  margin-top: 5px;
  color: var(--muted);
}

.review-route i {
  color: var(--signal);
  font-style: normal;
}

.architecture-section {
  border-top: 1px solid var(--line);
}

.architecture {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
}

.arch-arrow {
  display: grid;
  width: 56px;
  place-items: center;
  color: var(--signal);
  font-family: var(--mono);
}

.arch-card {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--card);
}

.arch-card.agent {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
  transform: translateY(-15px);
}

.arch-label {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.arch-card h3 {
  margin: 75px 0 10px;
  font-family: var(--display);
  font-size: 31px;
  font-weight: 500;
}

.arch-card p {
  min-height: 72px;
  color: var(--muted);
  font-size: 13px;
}

.arch-card.agent p {
  color: #a7aab3;
}

.arch-card code {
  color: var(--blue);
  font-size: 9px;
}

.arch-card.agent code {
  color: #9eabff;
}

.discovery {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 40px;
  align-items: center;
  margin-top: 72px;
  padding: 34px;
  color: var(--paper);
  background: var(--blue);
}

.discovery .eyebrow {
  color: #cbd3ff;
}

.discovery h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}

.discovery-chain {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
}

.discovery-chain code {
  flex: 0 0 auto;
  padding: 8px 9px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(10, 18, 70, 0.18);
  font-size: 9px;
}

.discovery-chain span {
  color: #aab7ff;
  font-family: var(--mono);
  font-size: 8px;
}

.state-section {
  background: var(--paper-deep);
}

.state-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: center;
}

.state-layout > div > p:last-child {
  color: var(--muted);
  font-size: 17px;
}

.state-layout code {
  font-size: 0.9em;
}

.filetree {
  margin: 0;
  padding: 34px;
  color: #d8d9de;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 18px 18px 0 rgba(255, 92, 53, 0.14);
  font-size: clamp(10px, 1.35vw, 13px);
  line-height: 2;
  overflow-x: auto;
}

.filetree .folder {
  color: #9cabff;
}

.filetree i {
  color: #737680;
  font-style: normal;
}

.install-section {
  color: var(--paper);
  background: var(--ink);
}

.install-head {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 55px;
}

.install-head p:last-child {
  color: #9da0a8;
}

.install-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
}

.install-code {
  border: 1px solid #3b3c43;
  border-radius: var(--radius);
  background: #121317;
  overflow: hidden;
}

.code-tabs {
  display: flex;
  align-items: center;
  padding: 9px;
  border-bottom: 1px solid #34353b;
}

.install-tab,
.copy-button {
  padding: 7px 10px;
  color: #848791;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
}

.install-tab.is-active {
  color: white;
  background: #2c2d33;
}

.copy-button {
  margin-left: auto;
  color: #aeb0b7;
  border: 1px solid #3f4047;
}

.copy-button.is-copied {
  color: #63cdb1;
  border-color: #347b6b;
}

.install-code pre {
  min-height: 270px;
  margin: 0;
  padding: 34px 28px;
  color: #bcc5fa;
  font-size: clamp(9px, 1.1vw, 11px);
  line-height: 2;
  white-space: pre-wrap;
}

.start-steps {
  margin: 0;
  padding: 0;
  border: 1px solid #3b3c43;
  border-radius: var(--radius);
  list-style: none;
}

.start-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid #35363d;
}

.start-steps li:last-child {
  border: 0;
}

.start-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--signal);
  border: 1px solid #4a4b52;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
}

.start-steps strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
}

.start-steps code {
  color: #8f94ad;
  font-size: 9px;
}

.playwright-note {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  color: var(--ink);
  border-left: 5px solid var(--signal);
  background: var(--paper);
}

.playwright-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

.playwright-note p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.commands-section {
  padding-block: 90px;
  background: var(--card);
}

.command-layout {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 80px;
}

.command-layout .section-head {
  margin: 0;
}

.command-list {
  border-top: 1px solid var(--line-dark);
}

.command-list > div {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.command-list code {
  color: var(--blue);
  font-size: 11px;
}

.command-list span {
  color: var(--muted);
  font-size: 13px;
}

.final-cta {
  padding: 120px 0;
  text-align: center;
}

.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-inner h2 {
  font-size: clamp(52px, 7vw, 88px);
}

.final-inner > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: 18px;
}

.final-inner .hero-actions {
  margin-top: 20px;
}

footer {
  padding: 38px 0;
  color: #9b9da4;
  background: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  font-size: 11px;
}

.footer-inner .brand {
  color: var(--paper);
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  font-family: var(--mono);
  font-size: 9px;
}

.footer-links a:hover {
  color: var(--signal);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--delay, 0) * 80ms);
}

.reveal[data-delay="1"] { --delay: 1; }
.reveal[data-delay="2"] { --delay: 2; }
.reveal[data-delay="3"] { --delay: 3; }
.reveal[data-delay="4"] { --delay: 4; }

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .evidence-layout,
  .scheduler-grid,
  .state-layout,
  .install-grid,
  .install-head,
  .command-layout,
  .split-head,
  .policy-head,
  .review-circuit {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 130px;
  }

  .console-wrap {
    max-width: 650px;
  }

  .principle-grid,
  .cost-grid,
  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-route {
    justify-content: flex-start;
  }

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

  .loop-track {
    display: none;
  }

  .loop-step {
    min-height: 260px;
    border-bottom: 1px solid var(--line);
  }

  .loop-step::before {
    display: none;
  }

  .step-num {
    margin-bottom: 30px;
  }

  .architecture {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .arch-arrow {
    width: auto;
    height: 30px;
    transform: rotate(90deg);
  }

  .arch-card.agent {
    transform: none;
  }

  .discovery {
    grid-template-columns: 1fr;
  }

  .discovery-chain {
    justify-content: flex-start;
  }

  .receipt {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(calc(100% - 30px), var(--max));
  }

  .section {
    padding-block: 76px;
  }

  /* The in-page section anchors are droppable on mobile — scrolling reaches
     them anyway. Docs is a separate destination, and hiding it left the
     documentation unreachable from the header on a phone. */
  .nav-links a:not(.nav-github):not(.nav-docs) {
    display: none;
  }

  .nav-docs {
    padding: 8px 12px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
  }

  .hero {
    min-height: auto;
  }

  .hero-orbit {
    display: none;
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 72px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-notes {
    flex-direction: column;
  }

  .console-body {
    min-height: 290px;
    padding: 22px 16px;
  }

  .facts,
  .principle-grid,
  .cost-grid,
  .tier-grid,
  .loop {
    grid-template-columns: 1fr;
  }

  .review-route {
    align-items: stretch;
    flex-direction: column;
  }

  .review-route i {
    align-self: center;
    transform: rotate(90deg);
  }

  .fact {
    min-height: 88px;
    border-right: 1px solid #34353b;
    border-bottom: 1px solid #34353b;
  }

  .fact strong {
    font-size: 42px;
  }

  .principle {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle h3 {
    margin-top: 25px;
  }

  .backflow {
    align-items: flex-start;
    flex-direction: column;
  }

  .adapter-card {
    grid-template-columns: 1fr;
  }

  .evidence-copy,
  .adapter-card,
  .receipt {
    min-width: 0;
  }

  .adapter-tabs {
    padding-bottom: 5px;
  }

  .capability-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule {
    padding: 16px 10px;
  }

  .schedule-row {
    grid-template-columns: 94px 1fr;
  }

  .schedule-axis {
    margin-left: 104px;
  }

  .discovery-chain {
    align-items: flex-start;
    flex-direction: column;
  }

  .discovery-chain span {
    padding-left: 15px;
  }

  .install-head {
    gap: 20px;
  }

  .install-code pre {
    padding: 24px 16px;
  }

  .command-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-inner .brand,
  .footer-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
