:root {
  color-scheme: light;
  --paper: #F4F6F2;
  --ink: #122019;
  --green: #205C43;
  --green-strong: #174632;
  --reed: #A6C8A8;
  --blue: #5D7F92;
  --amber: #9A5E14;
  --surface: #FFFFFF;
  --soft: #E5ECE5;
  --muted: #53635B;
  --line: rgb(18 32 25 / 16%);
  --focus: #205C43;
  --on-accent: #FFFFFF;
  --max-width: 1180px;
  --reading-width: 720px;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #0B110E;
  --ink: #E7EEE9;
  --green: #8FC9AA;
  --green-strong: #B5DDC6;
  --reed: #537963;
  --blue: #8FB2C2;
  --amber: #E0AA5D;
  --surface: #132019;
  --soft: #192820;
  --muted: #A6B4AC;
  --line: rgb(231 238 233 / 18%);
  --focus: #8FC9AA;
  --on-accent: #0B110E;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #0B110E;
    --ink: #E7EEE9;
    --green: #8FC9AA;
    --green-strong: #B5DDC6;
    --reed: #537963;
    --blue: #8FB2C2;
    --amber: #E0AA5D;
    --surface: #132019;
    --soft: #192820;
    --muted: #A6B4AC;
    --line: rgb(231 238 233 / 18%);
    --focus: #8FC9AA;
    --on-accent: #0B110E;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
.site-header,
.card,
.timeline-card,
.icon-action,
.button,
.callout {
  transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 42%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  color: var(--on-accent);
  background: var(--green);
}

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

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

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-tag {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.header-actions,
.nav-links {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 8px;
}

.nav-links {
  gap: 26px;
  margin-right: 8px;
}

.nav-links a,
.mobile-menu a {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current='page'],
.mobile-menu a:hover,
.mobile-menu a[aria-current='page'] {
  color: var(--green);
}

.soon {
  margin-left: 4px;
  color: var(--amber);
  font-size: 10px;
  text-transform: uppercase;
}

.icon-action {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  text-decoration: none;
}

.icon-action:hover {
  border-color: color-mix(in srgb, var(--green) 56%, var(--line));
  color: var(--green);
  background: var(--soft);
}

.icon-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon,
:root[data-theme='dark'] .theme-icon-sun {
  display: none;
}

:root[data-theme='dark'] .theme-icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-icon-sun {
    display: none;
  }

  :root:not([data-theme]) .theme-icon-moon {
    display: block;
  }
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: block;
  min-height: 44px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  color: var(--green);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 570;
}

h1 span {
  display: block;
  color: var(--ink);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 560;
}

h3 {
  font-size: 21px;
  font-weight: 580;
}

p {
  margin: 0;
}

.lead {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  padding-block: clamp(80px, 11vw, 132px);
}

.hero-copy .lead {
  margin-top: 28px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  border-color: var(--green);
  color: var(--on-accent);
  background: var(--green);
}

.button-primary:hover {
  border-color: var(--green-strong);
  background: var(--green-strong);
}

.button-secondary {
  background: var(--surface);
}

.button-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.lane-label,
.meta,
.status {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lane-label:nth-child(2) {
  grid-column: 3;
}

.timeline-card {
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline-card strong,
.timeline-card small {
  display: block;
}

.timeline-card small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.timeline-card code,
.flow code {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--blue);
  background: var(--soft);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.timeline-bridge {
  position: relative;
  height: 1px;
  background: var(--line);
}

.timeline-bridge::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--green);
  content: '';
}

.thesis {
  border-block: 1px solid var(--line);
}

.thesis-row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-block: 28px;
  color: var(--green);
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(19px, 2.6vw, 27px);
}

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

.feature-grid article,
.platform-card {
  padding: clamp(30px, 4vw, 48px);
  border-right: 1px solid var(--line);
}

.feature-grid article:last-child,
.platform-card:last-child {
  border-right: 0;
}

.feature-grid h3,
.platform-card h3 {
  margin: 15px 0 12px;
}

.feature-grid p,
.platform-card p,
.prose p {
  color: var(--muted);
}

.section {
  padding-block: clamp(72px, 9vw, 112px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading .lead {
  justify-self: end;
}

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

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

.card p {
  margin-top: 12px;
  color: var(--muted);
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--muted);
}

.callout {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: var(--soft);
}

.callout span {
  color: var(--muted);
}

.page-hero {
  padding-block: clamp(70px, 9vw, 108px) clamp(54px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}

.page-hero .lead {
  margin-top: 24px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--reading-width));
  gap: clamp(44px, 7vw, 96px);
  padding-block: 64px 100px;
}

.docs-nav {
  position: sticky;
  top: 104px;
  align-self: start;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
}

.docs-nav strong,
.docs-nav a {
  display: block;
}

.docs-nav strong {
  margin: 24px 0 8px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.docs-nav strong:first-child {
  margin-top: 0;
}

.docs-nav a {
  padding: 7px 10px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.docs-nav a[aria-current='page'],
.docs-nav a[aria-current='location'] {
  border-left-color: var(--green);
  color: var(--ink);
  background: var(--soft);
}

.docs-nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--soft) 62%, transparent);
}

.docs-nav .docs-nav-child {
  padding-left: 24px;
  font-size: 13px;
}

.docs-nav .docs-nav-child::before {
  margin-right: 7px;
  color: var(--line-strong);
  content: "↳";
}

.prose h2 {
  margin-bottom: 22px;
  color: var(--green);
}

.prose h3 {
  margin: 42px 0 12px;
}

.prose .callout,
.prose .flow {
  margin-block: 28px;
}

.docs-prose {
  min-width: 0;
}

.docs-title {
  max-width: 680px;
  font-size: clamp(34px, 5vw, 56px);
}

.doc-section {
  scroll-margin-top: 104px;
  padding-block: 64px;
  border-top: 1px solid var(--line);
}

.doc-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.doc-section > .lead {
  margin-bottom: 30px;
}

.doc-section > p + p,
.doc-section > .doc-grid + p,
.doc-section > .artifact-list + p,
.doc-section > .settings-table + p,
.doc-section > .safety-comparison + p {
  margin-top: 24px;
}

.docs-problem {
  margin-block: 30px;
}

.architecture-figure {
  margin: 34px 0 12px;
}

.docs-media-slot {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.docs-media-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.architecture-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block: 28px;
}

.doc-grid > div,
.doc-card,
.handoff-grid > article,
.safety-comparison > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.doc-grid > div {
  display: grid;
  gap: 8px;
}

.doc-grid.compact strong {
  font-size: 14px;
  line-height: 1.5;
}

.doc-card h3 {
  margin: 12px 0 10px;
}

.doc-card p {
  margin-bottom: 18px;
}

.doc-card code,
.settings-table code,
.docs-prose li code,
.docs-prose p code,
.log-features code {
  color: var(--blue);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9em;
}

.doc-steps,
.triage-list {
  display: grid;
  gap: 20px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.doc-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
}

.doc-steps li > span,
.handoff-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--on-accent);
  background: var(--green);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 650;
}

.doc-steps p {
  margin-top: 5px;
}

.history-preview {
  --history-bg: #111513;
  --history-panel: #171c19;
  --history-line: #303833;
  --history-text: #eef3ef;
  --history-muted: #97a39b;
  --history-accent: #8FC9AA;
  margin-block: 34px;
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid var(--history-line);
  border-radius: 10px;
  color: var(--history-text);
  background: var(--history-bg);
  box-shadow: 0 18px 42px rgb(11 17 14 / 14%);
}

.history-preview-topline,
.history-session-title,
.history-preview-heading,
.history-dates,
.history-metrics,
.history-project-summary,
.history-commit-label {
  display: flex;
  gap: 12px;
}

.history-preview-topline {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.history-preview-topline > div:first-child,
.history-branch,
.history-project-summary span {
  display: grid;
  gap: 4px;
}

.history-kicker,
.history-branch span,
.history-project-summary small {
  color: var(--history-muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-branch {
  min-width: 164px;
  padding: 8px 11px;
  border: 1px solid var(--history-line);
  border-radius: 6px;
  background: var(--history-panel);
}

.history-branch strong,
.history-project-summary strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
}

.history-refresh {
  padding: 8px 11px;
  border: 1px solid var(--history-line);
  border-radius: 6px;
  color: var(--history-muted);
  font-size: 12px;
}

.history-project-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: -6px 0 26px;
  padding: 16px;
  border: 1px solid var(--history-line);
  border-radius: 7px;
  background: var(--history-panel);
}

.history-project-summary strong {
  overflow: hidden;
  color: var(--history-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-preview-heading {
  align-items: baseline;
  margin: 22px 0 10px;
}

.history-preview-heading strong {
  font-size: 13px;
}

.history-preview-heading span,
.history-dates,
.history-detail,
.history-commit-label > span {
  color: var(--history-muted);
  font-size: 11px;
}

.history-session {
  padding: 16px;
  border: 1px solid var(--history-line);
  border-radius: 7px;
  background: var(--history-panel);
}

.history-session.compact {
  padding: 14px;
}

.history-session-title {
  align-items: flex-start;
  justify-content: space-between;
}

.history-session-title > strong {
  font-size: 13px;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  color: var(--history-muted);
  font-size: 10px;
  white-space: nowrap;
}

.history-actions span:first-child {
  color: var(--history-accent);
}

.history-dates {
  flex-wrap: wrap;
  margin-top: 12px;
}

.history-metrics {
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--history-muted);
  font-size: 10px;
}

.history-metrics strong {
  margin-left: 3px;
  color: var(--history-text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.history-detail {
  margin-top: 11px;
}

.commit-heading {
  margin-top: 28px;
}

.history-commit-rail {
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-commit-rail > li {
  position: relative;
  padding-left: 28px;
}

.history-commit-rail > li::before {
  position: absolute;
  top: 9px;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: var(--history-line);
  content: "";
}

.history-node {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--history-accent);
  border-radius: 50%;
  background: var(--history-bg);
}

.history-commit-label {
  align-items: baseline;
  margin-bottom: 10px;
}

.history-commit-label code {
  color: var(--history-accent);
  font-size: 11px;
}

.history-commit-label strong {
  margin-left: auto;
  font-size: 12px;
}

.history-thread-stack {
  display: grid;
  gap: 10px;
}

.artifact-list,
.settings-list,
.settings-table {
  display: grid;
  margin-block: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}

.artifact-list > div,
.settings-list > div,
.settings-table > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  padding: 17px 20px;
  background: var(--surface);
}

.artifact-list span,
.settings-list dd,
.settings-table span {
  color: var(--muted);
}

.settings-list dt,
.settings-list dd {
  margin: 0;
}

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

.handoff-grid h3 {
  margin: 18px 0 14px;
}

.handoff-grid ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.safety-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block: 28px;
}

.safety-comparison > div {
  display: grid;
  gap: 9px;
}

.triage-list {
  counter-reset: triage;
}

.triage-list li {
  position: relative;
  padding-left: 44px;
  color: var(--muted);
  counter-increment: triage;
}

.triage-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--blue);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  content: counter(triage, decimal-leading-zero);
}

.triage-list strong {
  color: var(--ink);
}

.docs-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 14px;
  border-top: 1px solid var(--line);
}

.docs-end .button-row {
  margin-top: 0;
}

.roadmap-board {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  padding-block: 54px 92px;
}

.roadmap-lane {
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.roadmap-lane:first-child {
  padding-left: 0;
  border-left: 0;
}

.roadmap-lane:last-child {
  padding-right: 0;
}

.roadmap-lane-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.roadmap-status {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roadmap-lane.current .roadmap-status {
  color: var(--green);
}

.roadmap-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.roadmap-lane.current .roadmap-card {
  border-left: 3px solid var(--green);
  background: var(--soft);
}

.roadmap-card h2,
.roadmap-card h3 {
  margin: 12px 0;
}

.roadmap-card h2 {
  font-size: 25px;
}

.roadmap-card p,
.roadmap-card li,
.roadmap-note {
  color: var(--muted);
}

.roadmap-card ul {
  display: grid;
  gap: 7px;
  margin: 20px 0 0;
  padding-left: 20px;
}

.roadmap-stack {
  display: grid;
  gap: 12px;
}

.roadmap-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.roadmap-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--green);
  font-weight: 650;
}

.platform-grid {
  border-block: 1px solid var(--line);
}

.platform-mark {
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 28px;
}

.status {
  display: inline-block;
  margin-top: 22px;
  color: var(--amber);
}

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

.cloud-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.cloud-list div {
  padding: 20px;
  background: var(--surface);
}

.cloud-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.not-found {
  display: grid;
  min-height: calc(100vh - 145px);
  place-items: center;
  text-align: center;
}

.not-found .eyebrow {
  color: var(--amber);
}

.not-found .lead {
  margin: 24px auto 0;
}

.not-found .button-row {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-row a:hover {
  color: var(--green);
}

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

  .menu-toggle {
    display: grid;
  }

  .mobile-menu:not([hidden]) {
    display: block;
  }

  .hero,
  .section-heading,
  .cloud-preview {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block: 76px;
  }

  .section-heading .lead {
    justify-self: start;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
    max-height: none;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .docs-nav strong {
    grid-column: 1 / -1;
  }

  .roadmap-board {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .roadmap-lane,
  .roadmap-lane:first-child,
  .roadmap-lane:last-child {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .roadmap-lane:first-child {
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-row {
    min-height: 64px;
    gap: 10px;
  }

  .brand {
    gap: 9px;
    font-size: 16px;
  }

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

  .brand-tag {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-action {
    min-width: 44px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding-block: 58px 70px;
  }

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

  .timeline-card {
    min-height: 132px;
    padding: 14px;
    font-size: 14px;
  }

  .thesis-row {
    flex-direction: column;
    gap: 8px;
  }

  .feature-grid,
  .platform-grid,
  .workflow-grid,
  .storage-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .platform-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid article:last-child,
  .platform-card:last-child {
    border-bottom: 0;
  }

  .docs-nav {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    gap: 34px;
    padding-top: 34px;
  }

  .doc-section {
    scroll-margin-top: 82px;
    padding-block: 48px;
  }

  .docs-title {
    font-size: clamp(34px, 11vw, 48px);
  }

  .doc-grid,
  .handoff-grid,
  .safety-comparison {
    grid-template-columns: 1fr;
  }

  .history-preview {
    margin-inline: -12px;
    padding: 16px 12px;
  }

  .history-preview-topline,
  .history-session-title,
  .history-commit-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .history-branch {
    width: 100%;
  }

  .history-project-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .history-actions {
    justify-content: flex-start;
  }

  .history-commit-label strong {
    margin-left: 0;
  }

  .artifact-list > div,
  .settings-list > div,
  .settings-table > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .docs-media-slot {
    aspect-ratio: auto;
    overflow-x: auto;
  }

  .docs-media-slot img {
    width: 680px;
    max-width: none;
    height: 340px;
  }

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

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 24px;
  }
}

@media (max-width: 420px) {
  .brand span:not(.brand-tag) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

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