:root {
  --paper: #f3f1eb;
  --paper-deep: #e8e5dc;
  --ink: #101419;
  --ink-soft: #3e454c;
  --muted: #747a7e;
  --line: rgba(16, 20, 25, 0.16);
  --line-strong: rgba(16, 20, 25, 0.3);
  --panel: #eae8e2;
  --dark: #0b1018;
  --dark-panel: #111923;
  --acid: #c7f36a;
  --rust: #c85b3e;
  --white: #f8f8f5;
  --max: 1440px;
  --pad: clamp(20px, 4.4vw, 72px);
  --serif: Iowan Old Style, Palatino Linotype, Book Antiqua, Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image: radial-gradient(rgba(16, 20, 25, 0.11) 0.45px, transparent 0.55px);
  background-size: 4px 4px;
}

::selection {
  color: var(--dark);
  background: var(--acid);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

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

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--dark);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: 82px;
  padding: 0 var(--pad);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: height 240ms ease, background-color 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  height: 64px;
  border-color: var(--line);
  background: rgba(243, 241, 235, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 13px;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.brand img {
  width: 31px;
  height: 31px;
}

.site-nav {
  display: flex;
  gap: clamp(22px, 2.7vw, 46px);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 560;
}

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.header-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 620;
}

.site-nav a,
.header-link,
.footer-links a {
  transition: opacity 180ms ease;
}

.site-nav a:hover,
.header-link:hover,
.footer-links a:hover {
  opacity: 0.56;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(134px, 12vw, 178px) var(--pad) 0;
}

.hero-grid {
  display: grid;
  min-height: 690px;
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 0.85fr);
  align-items: center;
  gap: clamp(56px, 6.5vw, 108px);
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}

.eyebrow > span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 6px rgba(200, 91, 62, 0.13);
}

.hero h1 {
  max-width: 760px;
  margin: 31px 0 0;
  font-size: clamp(54px, 6.2vw, 94px);
  font-weight: 670;
  letter-spacing: -0.072em;
  line-height: 0.92;
}

.hero h1 em {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero-lede {
  max-width: 690px;
  margin: 38px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.58;
}

.hero-actions,
.quickstart-links,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 35px;
}

.button {
  display: inline-flex;
  min-height: 53px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 670;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease,
    border-color 180ms ease;
}

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

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-dark:hover {
  background: #252b31;
}

.button-quiet {
  padding-right: 10px;
  padding-left: 10px;
  border-bottom-color: var(--line-strong);
}

.button-outline {
  border-color: var(--line-strong);
}

.button-outline:hover {
  border-color: var(--ink);
}

.install-command {
  display: flex;
  width: min(100%, 470px);
  min-height: 48px;
  margin-top: 34px;
  padding-left: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
}

.install-command code {
  min-width: 0;
  padding: 10px 8px 10px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.install-command code span {
  color: var(--ink-soft);
}

.copy-button,
.code-copy {
  min-width: 64px;
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.copy-button:hover,
.code-copy:hover {
  color: var(--ink);
  background: rgba(16, 20, 25, 0.05);
}

.orchestration-board {
  position: relative;
  overflow: hidden;
  min-height: 630px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  background: var(--dark);
  box-shadow: 0 28px 70px rgba(11, 16, 24, 0.18);
}

.orchestration-board::before {
  position: absolute;
  inset: 46px 0 42px;
  content: "";
  opacity: 0.45;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
}

.board-topbar,
.board-footer {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 47px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(248, 248, 245, 0.72);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.board-topbar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 5px rgba(199, 243, 106, 0.09);
}

.board-canvas {
  position: relative;
  z-index: 1;
  min-height: 536px;
}

.board-node {
  position: absolute;
  z-index: 3;
  display: flex;
  padding: 16px 18px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(17, 25, 35, 0.96);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.board-node strong {
  margin-top: 9px;
  font-size: 14px;
  font-weight: 650;
}

.board-node code {
  overflow: hidden;
  margin-top: 5px;
  color: rgba(248, 248, 245, 0.75);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-node small {
  margin-top: 14px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.node-index {
  color: rgba(248, 248, 245, 0.61);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.brain-node {
  top: 47px;
  left: 50%;
  width: 58%;
  min-height: 145px;
  border-color: rgba(199, 243, 106, 0.5);
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(199, 243, 106, 0.1), rgba(17, 25, 35, 0.98) 46%);
}

.brain-node::after {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--acid);
  animation: brainPulse 2.4s ease-in-out infinite;
}

.route-stem {
  position: absolute;
  z-index: 1;
  top: 192px;
  left: 50%;
  width: 1px;
  height: 62px;
  background: rgba(255, 255, 255, 0.28);
}

.route-stem span {
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 14px;
  border-radius: 4px;
  background: var(--acid);
  animation: stemTravel 2.4s linear infinite;
}

.route-rail {
  position: absolute;
  z-index: 1;
  top: 254px;
  left: 12%;
  width: 76%;
  height: 68px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.route-rail i {
  position: absolute;
  top: 0;
  width: 1px;
  height: 68px;
  background: rgba(255, 255, 255, 0.28);
}

.route-rail i:nth-child(1) { left: 0; }
.route-rail i:nth-child(2) { left: 50%; }
.route-rail i:nth-child(3) { right: 0; }

.worker-node {
  top: 322px;
  width: 27%;
  min-height: 145px;
}

.worker-node:nth-of-type(1) { left: 6%; }
.worker-node:nth-of-type(2) { left: 36.5%; }
.worker-node:nth-of-type(3) { right: 6%; }

.worker-node.is-active {
  border-color: var(--acid);
  transform: translateY(-5px);
  background: #17212d;
}

.worker-node.is-active small {
  color: var(--white);
}

.board-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 43px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 0;
  color: rgba(248, 248, 245, 0.66);
}

.hero-principles {
  display: grid;
  margin-top: clamp(54px, 7vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.hero-principles p {
  display: flex;
  min-height: 92px;
  margin: 0;
  padding: 20px clamp(18px, 3vw, 44px);
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(16px, 1.5vw, 21px);
}

.hero-principles p + p {
  border-left: 1px solid var(--line);
}

.hero-principles span {
  color: var(--rust);
  font-family: var(--mono);
  font-size: 8px;
}

.contrast-section,
.routing-section,
.economics-section,
.modes-section,
.durability-section,
.quickstart-section,
.closing {
  padding: clamp(100px, 11vw, 158px) var(--pad);
}

.section-heading {
  display: grid;
  max-width: var(--max);
  margin: 0 auto clamp(52px, 7vw, 92px);
  grid-template-columns: 0.72fr 1.38fr 0.9fr;
  gap: clamp(28px, 4.2vw, 72px);
  align-items: start;
}

.section-heading h2,
.economics-copy h2,
.durability-heading h2,
.quickstart-copy h2,
.closing h2 {
  margin: 0;
  font-size: clamp(45px, 5.5vw, 82px);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-heading > p:last-child,
.economics-copy > p,
.durability-heading > p:last-child,
.quickstart-copy > p,
.closing > p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.section-kicker {
  color: var(--rust);
}

.contrast-section {
  margin-top: clamp(100px, 10vw, 150px);
  color: var(--white);
  background: var(--dark);
}

.section-heading-dark > p:last-child {
  color: rgba(248, 248, 245, 0.72);
}

.section-heading-dark > p:last-child a {
  border-bottom: 1px solid rgba(248, 248, 245, 0.38);
}

.comparison-snapshot {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.comparison-card {
  display: flex;
  min-height: 390px;
  padding: clamp(26px, 3.2vw, 46px);
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.035);
}

.comparison-card-rulvar {
  border-color: var(--paper);
  color: var(--ink);
  background: var(--paper);
}

.comparison-card-head {
  display: flex;
  padding-bottom: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.comparison-card-head span {
  color: var(--acid);
}

.comparison-card-head code {
  color: rgba(248, 248, 245, 0.62);
  font-size: 9px;
  font-weight: 500;
  text-transform: none;
}

.comparison-card-rulvar .comparison-card-head {
  border-color: var(--line);
}

.comparison-card-rulvar .comparison-card-head span {
  color: var(--rust);
}

.comparison-card-rulvar .comparison-card-head code {
  color: var(--ink-soft);
}

.comparison-card h3 {
  margin: 38px 0 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 400;
  line-height: 1.08;
}

.comparison-card > p {
  margin: 25px 0 0;
  color: rgba(248, 248, 245, 0.69);
  font-size: 14px;
  line-height: 1.7;
}

.comparison-card-rulvar > p {
  color: var(--ink-soft);
}

.comparison-card > strong {
  margin-top: auto;
  padding-top: 35px;
  color: rgba(248, 248, 245, 0.88);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.55;
}

.comparison-card-rulvar > strong {
  color: var(--ink);
}

.comparison-table-wrap {
  overflow-x: auto;
  max-width: var(--max);
  margin: 18px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  scrollbar-color: var(--acid) var(--dark-panel);
}

.comparison-table-wrap:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.comparison-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  padding: 21px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  text-align: left;
  vertical-align: top;
}

.comparison-table tr > :last-child {
  border-right: 0;
  background: rgba(199, 243, 106, 0.055);
}

.comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison-table thead th {
  padding-top: 17px;
  padding-bottom: 17px;
  color: rgba(248, 248, 245, 0.66);
  background: var(--dark-panel);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-table thead th:last-child {
  color: var(--acid);
  background: rgba(199, 243, 106, 0.1);
}

.comparison-table thead th:first-child,
.comparison-table tbody th {
  width: 16%;
}

.comparison-table tbody th {
  color: rgba(248, 248, 245, 0.56);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.comparison-table td {
  color: rgba(248, 248, 245, 0.77);
  font-size: 13px;
  line-height: 1.65;
}

.comparison-table td:last-child {
  color: var(--white);
}

.contrast-statement {
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 27px 30px;
  color: var(--dark);
  background: var(--acid);
  font-family: var(--serif);
  font-size: clamp(21px, 2.5vw, 34px);
  text-align: center;
}

.comparison-sources {
  max-width: var(--max);
  margin: 22px auto 0;
  color: rgba(248, 248, 245, 0.54);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.comparison-sources a {
  border-bottom: 1px solid rgba(248, 248, 245, 0.27);
  color: rgba(248, 248, 245, 0.75);
}

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

.routing-lab {
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.preset-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line-strong);
}

.preset-tabs button {
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preset-tabs button + button {
  border-left: 1px solid var(--line);
}

.preset-tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--ink);
}

.routing-panel {
  display: grid;
  min-height: 580px;
  grid-template-columns: 0.83fr 1.17fr;
}

.routing-controller {
  position: relative;
  display: flex;
  min-height: 460px;
  padding: clamp(30px, 4vw, 58px);
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  background: var(--dark);
}

.routing-controller::after {
  position: absolute;
  top: 50%;
  right: -43px;
  width: 86px;
  height: 1px;
  content: "";
  background: var(--line-strong);
}

.routing-role,
.routing-workers article > span {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.routing-role {
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--acid);
}

.controller-mark {
  position: relative;
  width: 74px;
  height: 74px;
  margin-bottom: 34px;
  border: 1px solid rgba(199, 243, 106, 0.5);
  border-radius: 50%;
}

.controller-mark::before,
.controller-mark::after,
.controller-mark span {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.controller-mark::before {
  inset: 13px;
  border: 1px solid rgba(199, 243, 106, 0.35);
}

.controller-mark::after {
  inset: 28px;
  background: var(--acid);
  box-shadow: 0 0 22px rgba(199, 243, 106, 0.5);
}

.controller-mark span {
  top: -4px;
  left: 32px;
  width: 8px;
  height: 8px;
  background: var(--acid);
  transform-origin: 4px 41px;
  animation: orbit 4s linear infinite;
}

.routing-controller p {
  margin: 0;
  color: rgba(248, 248, 245, 0.64);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.routing-controller strong {
  overflow-wrap: anywhere;
  margin-top: 9px;
  color: var(--white);
  font-family: var(--mono);
  font-size: clamp(14px, 1.45vw, 20px);
  font-weight: 500;
}

.routing-controller small {
  max-width: 340px;
  margin-top: 25px;
  color: rgba(248, 248, 245, 0.7);
  font-size: 12px;
  line-height: 1.6;
}

.routing-workers {
  display: grid;
  padding: clamp(30px, 4vw, 58px);
  align-content: center;
  gap: 12px;
}

.routing-workers article {
  position: relative;
  display: grid;
  min-height: 104px;
  padding: 21px 22px 19px;
  grid-template-columns: 0.65fr 1.35fr;
  align-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.26);
  transition: transform 220ms ease, border-color 220ms ease;
}

.routing-workers article::before {
  position: absolute;
  top: 50%;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--paper-deep);
  border-radius: 50%;
  content: "";
  background: var(--rust);
  transform: translateY(-50%);
}

.routing-workers article:hover {
  border-color: var(--ink-soft);
  transform: translateX(4px);
}

.routing-workers article > span {
  align-self: center;
  color: var(--rust);
}

.routing-workers strong,
.routing-workers small {
  grid-column: 2;
}

.routing-workers strong {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.routing-workers small {
  margin-top: 6px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.routing-explanation {
  display: grid;
  min-height: 120px;
  padding: 24px clamp(26px, 4vw, 58px);
  grid-column: 1 / -1;
  grid-template-columns: 0.83fr 1.17fr;
  align-items: center;
  border-top: 1px solid var(--line-strong);
  background: var(--paper);
}

.routing-explanation span {
  width: max-content;
  padding: 7px 10px;
  color: var(--dark);
  background: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.routing-explanation p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.routing-panel.is-switching .routing-controller strong,
.routing-panel.is-switching .routing-workers strong,
.routing-panel.is-switching .routing-explanation p {
  animation: contentIn 260ms ease both;
}

.routing-facts {
  display: grid;
  max-width: var(--max);
  margin: 20px auto 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.routing-facts article {
  min-height: 260px;
  padding: 37px clamp(22px, 3vw, 42px);
}

.routing-facts article + article {
  border-left: 1px solid var(--line);
}

.routing-facts article > span {
  color: var(--rust);
  font-family: var(--mono);
  font-size: 9px;
}

.routing-facts h3 {
  margin: 48px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.routing-facts p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.economics-section {
  display: grid;
  background: var(--paper-deep);
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(60px, 9vw, 150px);
}

.economics-copy {
  max-width: 570px;
  justify-self: end;
}

.economics-copy h2,
.durability-heading h2,
.quickstart-copy h2 {
  margin-top: 32px;
}

.economics-copy > p,
.durability-heading > p:last-child,
.quickstart-copy > p {
  margin-top: 28px;
}

.economics-copy > a {
  display: inline-flex;
  margin-top: 30px;
  gap: 10px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 650;
}

.spend-diagram {
  align-self: center;
  max-width: 860px;
}

.spend-row + .spend-row {
  margin-top: 52px;
}

.spend-label {
  display: flex;
  margin-bottom: 14px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.spend-label span {
  font-size: 14px;
  font-weight: 660;
}

.spend-label small {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.spend-track {
  display: grid;
  min-height: 82px;
  gap: 2px;
  grid-template-columns: repeat(5, 1fr);
}

.spend-track span {
  display: flex;
  padding: 10px;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.spend-row-flat .spend-track span {
  color: var(--white);
  background: var(--ink);
}

.spend-row-routed .spend-track {
  grid-template-columns: 1.4fr 0.9fr 0.8fr 0.9fr 1fr;
}

.spend-row-routed .spend-track span:first-child {
  color: var(--white);
  background: var(--rust);
}

.spend-row-routed .spend-track span:nth-child(2),
.spend-row-routed .spend-track span:nth-child(4) {
  color: var(--dark);
  background: var(--acid);
}

.spend-row-routed .spend-track span:nth-child(3) {
  background: #d6d2c7;
}

.spend-row-routed .spend-track span:last-child {
  color: var(--white);
  background: var(--ink-soft);
}

.spend-diagram > p {
  margin: 50px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 20px;
}

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

.mode-grid {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mode-card {
  position: relative;
  display: flex;
  min-height: 520px;
  padding: clamp(28px, 3.2vw, 48px);
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.18);
}

.mode-number {
  width: 48px;
  height: 48px;
  padding: 11px 0 0 13px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
}

.mode-label {
  margin: 42px 0 0;
  color: var(--rust);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mode-card h3 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(27px, 2.4vw, 37px);
  font-weight: 400;
  line-height: 1.08;
}

.mode-card > p:not(.mode-label) {
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.mode-card > code {
  margin-top: auto;
  padding-top: 44px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.mode-card > a {
  width: max-content;
  margin-top: 24px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 640;
}

.mode-card-featured {
  color: var(--white);
  background: var(--dark);
}

.mode-card-featured .mode-number {
  border-color: rgba(199, 243, 106, 0.5);
  color: var(--acid);
}

.mode-card-featured .mode-label,
.mode-card-featured > code {
  color: var(--acid);
}

.mode-card-featured > p:not(.mode-label) {
  color: rgba(248, 248, 245, 0.73);
}

.mode-card-featured > a {
  border-color: rgba(248, 248, 245, 0.5);
}

.featured-tag {
  position: absolute;
  top: 30px;
  right: 0;
  padding: 7px 11px;
  color: var(--dark);
  background: var(--acid);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.durability-section {
  display: grid;
  color: var(--white);
  background: var(--dark);
  grid-template-columns: minmax(300px, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(58px, 8vw, 130px);
}

.durability-heading {
  max-width: 620px;
  justify-self: end;
}

.durability-heading > p:last-child {
  color: rgba(248, 248, 245, 0.72);
}

.journal-visual {
  overflow: hidden;
  align-self: center;
  max-width: 820px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--dark-panel);
}

.journal-topbar {
  display: flex;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 248, 245, 0.68);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.journal-lines {
  padding: 18px 18px 24px;
}

.journal-lines p {
  display: grid;
  min-height: 50px;
  margin: 0;
  padding: 0 12px;
  grid-template-columns: 48px 1fr 74px 74px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 248, 245, 0.76);
  font-family: var(--mono);
  font-size: 9px;
}

.journal-lines p > span {
  color: rgba(248, 248, 245, 0.55);
}

.journal-lines p > b {
  font-weight: 500;
}

.journal-lines p > code {
  color: var(--white);
}

.journal-lines p > em {
  color: var(--acid);
  font-style: normal;
  text-align: right;
}

.journal-lines .journal-live {
  background: rgba(200, 91, 62, 0.1);
}

.journal-lines .journal-live > em {
  color: #ec8e72;
}

.journal-summary {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  grid-template-columns: repeat(3, 1fr);
}

.journal-summary > div {
  min-height: 105px;
  padding: 19px;
}

.journal-summary > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.journal-summary strong,
.journal-summary span {
  display: block;
}

.journal-summary strong {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 400;
}

.journal-summary span {
  margin-top: 7px;
  color: rgba(248, 248, 245, 0.68);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.durability-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.durability-facts article {
  min-height: 130px;
  padding: 29px clamp(20px, 3vw, 40px);
}

.durability-facts article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.durability-facts strong,
.durability-facts span {
  display: block;
}

.durability-facts strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
}

.durability-facts span {
  margin-top: 11px;
  color: rgba(248, 248, 245, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

.quickstart-section {
  display: grid;
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: minmax(320px, 0.72fr) minmax(600px, 1.28fr);
  gap: clamp(60px, 8vw, 130px);
}

.quickstart-copy {
  align-self: center;
}

.prerequisites {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--rust);
  background: rgba(255, 255, 255, 0.3);
}

.prerequisites strong {
  display: block;
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prerequisites p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.prerequisites code {
  color: var(--ink);
  font-size: 0.92em;
}

.quickstart-links {
  margin-top: 36px;
}

.code-window {
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
  box-shadow: 0 26px 62px rgba(11, 16, 24, 0.16);
}

.code-titlebar {
  display: flex;
  min-height: 47px;
  padding-left: 17px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 248, 245, 0.67);
  font-family: var(--mono);
  font-size: 9px;
}

.code-copy {
  min-width: 68px;
  color: rgba(248, 248, 245, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

.code-copy:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.code-window pre {
  overflow-x: auto;
  margin: 0;
  padding: clamp(25px, 3vw, 40px);
  font-size: 10px;
  line-height: 1.75;
  tab-size: 2;
}

.tok-keyword { color: #e9987f; }
.tok-string { color: var(--acid); }
.tok-number { color: #9fcae6; }

.not-found-page {
  display: grid;
  min-height: 100svh;
  padding: var(--pad);
  place-items: center;
}

.not-found-shell {
  width: min(100%, 920px);
  padding: clamp(34px, 7vw, 88px);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.2);
}

.not-found-shell .brand {
  margin-bottom: clamp(70px, 10vw, 130px);
}

.not-found-code {
  margin: 0;
  color: var(--rust);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.not-found-shell h1 {
  max-width: 700px;
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 104px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.not-found-message {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 20px);
}

.not-found-actions {
  display: flex;
  margin-top: 42px;
  align-items: center;
  gap: 12px;
}

.closing {
  text-align: center;
  background: var(--paper-deep);
}

.closing > img {
  width: 76px;
  height: 76px;
  margin: 0 auto 34px;
}

.closing h2 {
  max-width: 960px;
  margin: 28px auto 0;
}

.closing > p:not(.section-kicker) {
  max-width: 650px;
  margin: 28px auto 0;
}

.closing-actions {
  margin-top: 42px;
  justify-content: center;
}

.site-footer {
  display: grid;
  padding: clamp(54px, 6vw, 88px) var(--pad) 28px;
  color: rgba(248, 248, 245, 0.82);
  background: var(--dark);
  grid-template-columns: 0.85fr 1.15fr;
  row-gap: 92px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 19px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
}

.footer-brand p {
  margin: 4px 0 0;
  color: rgba(248, 248, 245, 0.68);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links p {
  margin: 0 0 13px;
  color: rgba(248, 248, 245, 0.55);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  width: max-content;
  max-width: 100%;
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  padding-top: 23px;
  grid-column: 1 / -1;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 248, 245, 0.56);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes brainPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes stemTravel {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes contentIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .site-nav {
    gap: 22px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(450px, 0.9fr);
    gap: 50px;
  }

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

  .section-heading {
    grid-template-columns: 0.5fr 1.35fr 0.8fr;
  }

  .economics-section,
  .durability-section,
  .quickstart-section {
    gap: 60px;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero-grid,
  .economics-section,
  .durability-section,
  .quickstart-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero h1 {
    font-size: clamp(56px, 10vw, 88px);
  }

  .orchestration-board {
    width: min(100%, 760px);
  }

  .section-heading {
    grid-template-columns: 1fr 2fr;
  }

  .section-heading > p:last-child {
    max-width: 650px;
    grid-column: 2;
  }

  .economics-copy,
  .durability-heading {
    max-width: 760px;
    justify-self: start;
  }

  .spend-diagram,
  .journal-visual {
    width: min(100%, 860px);
  }

  .quickstart-copy {
    max-width: 760px;
  }

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

  .mode-card {
    min-height: 420px;
  }

  .durability-facts {
    grid-template-columns: 1fr 1fr;
  }

  .durability-facts article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .durability-facts article:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .site-footer {
    grid-template-columns: 1fr;
    row-gap: 68px;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 66px;
  }

  .header-actions {
    gap: 16px;
  }

  .header-link {
    font-size: 11px;
  }

  .hero {
    padding-top: 116px;
  }

  .hero-grid {
    min-height: 0;
  }

  .hero h1 {
    font-size: clamp(50px, 13.2vw, 76px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .orchestration-board {
    min-height: 590px;
  }

  .board-canvas {
    min-height: 496px;
  }

  .brain-node {
    width: 74%;
  }

  .route-rail {
    left: 8%;
    width: 84%;
  }

  .worker-node {
    width: 29%;
    padding: 14px 12px;
  }

  .worker-node:nth-of-type(1) { left: 3%; }
  .worker-node:nth-of-type(2) { left: 35.5%; }
  .worker-node:nth-of-type(3) { right: 3%; }

  .board-node code {
    font-size: 8px;
  }

  .board-footer {
    padding: 0 12px;
    font-size: 7px;
  }

  .hero-principles {
    grid-template-columns: 1fr;
  }

  .hero-principles p + p {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading > p:last-child {
    grid-column: auto;
  }

  .comparison-snapshot {
    grid-template-columns: 1fr;
  }

  .comparison-card {
    min-height: 340px;
  }

  .routing-panel {
    grid-template-columns: 1fr;
  }

  .routing-controller {
    min-height: 390px;
  }

  .routing-controller::after {
    top: auto;
    right: 50%;
    bottom: -35px;
    width: 1px;
    height: 70px;
  }

  .routing-workers {
    padding-top: 56px;
  }

  .routing-explanation {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .routing-facts {
    grid-template-columns: 1fr;
  }

  .routing-facts article {
    min-height: 220px;
  }

  .routing-facts article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .routing-facts h3 {
    margin-top: 32px;
  }

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

  .spend-track {
    min-height: 68px;
  }

  .spend-track span {
    overflow: hidden;
    padding: 6px 2px;
    font-size: 6px;
    white-space: nowrap;
  }

  .journal-lines p {
    grid-template-columns: 38px 1fr 58px;
  }

  .journal-lines p > em {
    display: none;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    row-gap: 42px;
  }

  .footer-links > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    gap: 18px;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .header-actions {
    gap: 13px;
  }

  .header-link span:last-child {
    display: none;
  }

  .hero h1 {
    font-size: clamp(47px, 14vw, 67px);
  }

  .hero h1 em {
    margin-top: 8px;
  }

  .hero-actions,
  .quickstart-links,
  .closing-actions,
  .not-found-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .install-command {
    padding-left: 12px;
  }

  .install-command code {
    font-size: 9px;
  }

  .orchestration-board {
    min-height: 720px;
  }

  .board-canvas {
    min-height: 626px;
  }

  .brain-node {
    top: 36px;
    width: calc(100% - 40px);
  }

  .route-stem {
    top: 181px;
    height: 48px;
  }

  .route-rail {
    display: none;
  }

  .worker-node {
    left: 20px !important;
    right: 20px !important;
    width: auto;
    min-height: 112px;
  }

  .worker-node:nth-of-type(1) { top: 241px; }
  .worker-node:nth-of-type(2) { top: 367px; }
  .worker-node:nth-of-type(3) { top: 493px; }

  .worker-node::before {
    position: absolute;
    top: -13px;
    left: 50%;
    width: 1px;
    height: 13px;
    content: "";
    background: rgba(255, 255, 255, 0.28);
  }

  .board-footer span:nth-child(2) {
    display: none;
  }

  .contrast-statement {
    text-align: left;
  }

  .comparison-sources {
    text-align: left;
  }

  .preset-tabs {
    grid-template-columns: 1fr;
  }

  .preset-tabs button + button {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .routing-workers article {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .routing-workers strong,
  .routing-workers small {
    grid-column: 1;
  }

  .spend-row + .spend-row {
    margin-top: 42px;
  }

  .spend-track {
    min-height: 54px;
  }

  .spend-track span {
    writing-mode: vertical-rl;
    align-items: center;
  }

  .mode-card {
    min-height: 470px;
  }

  .journal-lines {
    padding: 12px;
  }

  .journal-lines p {
    padding: 0 6px;
    grid-template-columns: 34px 1fr 52px;
    font-size: 8px;
  }

  .journal-summary > div {
    min-height: 90px;
    padding: 14px 10px;
  }

  .journal-summary strong {
    font-size: 21px;
  }

  .durability-facts {
    grid-template-columns: 1fr;
  }

  .durability-facts article + article,
  .durability-facts article:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 0;
  }

  .code-window pre {
    font-size: 8px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-links > div:last-child {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
