:root {
  /* Dark theme */
  --paper: #0a0f0d;
  --paper-soft: #0f1613;
  --paper-card: #131a17;
  --ink: #e8f5ec;
  --ink-soft: #9fb8a8;
  --ink-faint: #5a7566;
  --night: #060a08;
  --night-2: #0a0f0d;
  --night-3: #0f1613;
  --line: rgba(240, 253, 244, 0.08);
  --line-dark: rgba(236, 247, 239, 0.1);
  --green: #10b981;
  --green-soft: #34d399;
  --green-dark: #0d9668;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
code, pre, textarea, select, button { font-family: "JetBrains Mono", ui-monospace, monospace; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─────────────────────────────────────────────────────────────
   Top Band (Dark Header Area)
   ───────────────────────────────────────────────────────────── */
.top-band {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #f0fdf4;
}

/* ─────────────────────────────────────────────────────────────
   Navigation
   ───────────────────────────────────────────────────────────── */
.site-nav {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark { width: 40px; height: 40px; display: block; flex-shrink: 0; }

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-name .os { color: var(--green); font-weight: 500; }

.brand-kicker {
  display: block;
  margin-top: 2px;
  color: rgba(240, 253, 244, 0.5);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav .links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav .links a {
  color: rgba(240, 253, 244, 0.7);
  transition: color 0.15s;
}
.site-nav .links a:hover { color: #fff; }

.nav-cta {
  background: var(--green) !important;
  color: var(--night) !important;
  padding: 10px 18px !important;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.15s, opacity 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.9; }

/* ─────────────────────────────────────────────────────────────
   Typography
   ───────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 { font-size: clamp(36px, 6vw, 52px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 24px; }

.lede {
  color: rgba(240, 253, 244, 0.7);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
}

.section-copy {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
}

.lede code, .section-copy code {
  color: var(--green);
  font-size: 0.9em;
}

/* ─────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  cursor: pointer;
  border: none;
}
.button:hover { transform: translateY(-2px); }

.button.primary {
  background: var(--green);
  color: var(--night);
}
.button.primary:hover { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3); }

.button.secondary {
  background: rgba(240, 253, 244, 0.1);
  color: #f0fdf4;
  border: 1px solid rgba(240, 253, 244, 0.15);
}
.button.secondary:hover { background: rgba(240, 253, 244, 0.15); }

/* ─────────────────────────────────────────────────────────────
   Hero Section
   ───────────────────────────────────────────────────────────── */
.hero {
  color: #f0fdf4;
  padding: 48px 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero.hero-simple {
  display: block;
  text-align: center;
  padding: 64px 0 48px;
}

.hero.hero-simple .eyebrow {
  margin-bottom: 16px;
}

.hero.hero-simple h1 {
  margin: 0 auto 20px;
  max-width: 18ch;
}

.hero.hero-simple .lede {
  margin: 0 auto 24px;
  max-width: 480px;
}

.hero.hero-simple .hero-actions {
  justify-content: center;
}

.hero h1 {
  margin: 12px 0 16px;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--green); }

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

.hero-command {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 253, 244, 0.12);
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
}

.hero-command code {
  color: rgba(240, 253, 244, 0.8);
  font-size: 13px;
  white-space: nowrap;
  background: transparent;
  border: none;
  padding: 0;
}

.hero-command button {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(240, 253, 244, 0.2);
  border-radius: 5px;
  color: rgba(240, 253, 244, 0.6);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.hero-command button:hover { border-color: var(--green); color: var(--green); }
.hero-command button.copied { border-color: var(--green); color: var(--green); }

.registry-badge {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(240, 253, 244, 0.5);
}
.registry-badge a {
  color: var(--green-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.registry-badge a:hover { color: var(--green); }
.registry-badge code {
  background: rgba(240, 253, 244, 0.08);
  border: 1px solid rgba(240, 253, 244, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  color: rgba(240, 253, 244, 0.7);
}

/* Hero Product Card */
.product-shell {
  background: linear-gradient(160deg, var(--night-3), var(--night));
  border: 1px solid rgba(240, 253, 244, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.product-window { padding: 20px; display: grid; gap: 12px; }

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(240, 253, 244, 0.4);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(240, 253, 244, 0.15); }
.dot.red { background: var(--red); }
.dot.amber { background: var(--amber); }
.dot.green { background: var(--green); }
.window-title { margin-left: 12px; }

.status-card, .signal-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 253, 244, 0.08);
  border-radius: var(--radius);
  padding: 16px;
}

.status-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }

.status-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 253, 244, 0.4);
}

.status-value {
  margin-top: 8px;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--night);
}
.pill.green { background: var(--green); }
.pill.red { background: var(--red); color: #fff; }

.verdict-list { display: grid; gap: 8px; margin-top: 12px; }

.verdict-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(240, 253, 244, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(240, 253, 244, 0.8);
}
.verdict-row:first-child { border-top: none; }
.verdict-row .resource { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.red-text { color: var(--red); }
.green-text { color: var(--green); }
.amber-text { color: var(--amber); }

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

.signal-key {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 253, 244, 0.4);
}
.signal-value { margin-top: 6px; color: #f0fdf4; font-weight: 600; font-size: 16px; }
.signal-note { color: rgba(240, 253, 244, 0.5); font-size: 12px; margin-top: 4px; }

/* ─────────────────────────────────────────────────────────────
   Logo Strip
   ───────────────────────────────────────────────────────────── */
.logo-strip {
  padding: 40px 0 44px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.strip-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.integration-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  transition: color 0.2s, transform 0.2s;
}

.logo-item:hover {
  color: var(--green);
  transform: translateY(-2px);
}

.logo-item svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo-item span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────────────────────
   Sections
   ───────────────────────────────────────────────────────────── */
.section {
  padding: 72px 0;
}

.compact-section { padding: 56px 0; }

.section.dark {
  background: var(--night);
  color: #f0fdf4;
}
.section.dark .section-copy { color: rgba(240, 253, 244, 0.65); }

.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.section.dark .section-label { color: var(--green); }

.split {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ─────────────────────────────────────────────────────────────
   Cards
   ───────────────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(16, 185, 129, 0.3); }

a.card { text-decoration: none; }
a.card:hover { border-color: var(--green); }

.card.dark-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(240, 253, 244, 0.08);
}
.card.dark-card:hover { border-color: var(--green); }

.card-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.dark-card .card-kicker { color: var(--green); }

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.dark-card .card-title { color: #fff; }

.card-body { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.dark-card .card-body { color: rgba(240, 253, 244, 0.6); }

.metric {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.dark-card .metric { color: #fff; }

/* ─────────────────────────────────────────────────────────────
   Terminal Display
   ───────────────────────────────────────────────────────────── */
.terminal {
  background: var(--night);
  border: 1px solid rgba(240, 253, 244, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(240, 253, 244, 0.08);
}

.terminal-title {
  margin-left: 12px;
  color: rgba(240, 253, 244, 0.4);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.terminal-body {
  padding: 24px;
  color: rgba(240, 253, 244, 0.85);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.terminal-heading {
  color: rgba(240, 253, 244, 0.4);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 20px 0 8px;
}
.terminal-heading:first-child { margin-top: 0; }

.terminal-indent { padding-left: 20px; color: rgba(240, 253, 244, 0.55); }

/* ─────────────────────────────────────────────────────────────
   Architecture Diagram
   ───────────────────────────────────────────────────────────── */
.architecture-diagram {
  max-width: 640px;
  margin: 0 auto;
}

.arch-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.arch-row.arch-inputs,
.arch-row.arch-outputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.arch-arrow-row {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}
.arch-arrow-row.multi { gap: 80px; }

.arch-arrow {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.arch-connector {
  width: 32px;
  height: 36px;
  color: var(--green);
}

.arch-connector .flow-line {
  animation: flow-dash 1.5s linear infinite;
}

@keyframes flow-dash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -16; }
}

.arch-node {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.arch-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(16, 185, 129, 0.3);
}

.arch-node span {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.arch-node strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.arch-node.core {
  width: 100%;
  max-width: 420px;
  padding: 18px 20px;
  background: linear-gradient(160deg, var(--night-3), var(--night));
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
  animation: core-glow 4s ease-in-out infinite;
}

@keyframes core-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.1); }
  50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.2); }
}
.arch-node.core span { color: var(--green); }
.arch-node.core strong { color: #f0fdf4; font-size: 15px; margin-bottom: 12px; }

.arch-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.arch-sub-grid.bottom-row {
  grid-template-columns: repeat(2, 1fr);
  max-width: 66%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
}

.arch-sub {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 253, 244, 0.08);
  border-radius: 6px;
  padding: 10px 8px;
}
.arch-sub span { color: var(--green); font-size: 10px; margin-bottom: 3px; }
.arch-sub small { display: block; color: rgba(240, 253, 244, 0.5); font-size: 9px; }

.arch-node.output {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  animation: output-glow 3s ease-in-out infinite 1s;
}

@keyframes output-glow {
  0%, 100% { background: rgba(16, 185, 129, 0.08); }
  50% { background: rgba(16, 185, 129, 0.12); }
}

/* Stagger connector animations */
.arch-arrow-row:nth-of-type(1) .flow-line { animation-delay: 0s; }
.arch-arrow-row:nth-of-type(2) .flow-line { animation-delay: 0.3s; }
.arch-arrow-row:nth-of-type(3) .flow-line { animation-delay: 0.6s; }
.arch-arrow-row:nth-of-type(4) .flow-line { animation-delay: 0.9s; }

.arch-node.surface {
  background: var(--paper-soft);
}

.arch-node.highlight {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  animation: highlight-pulse 3s ease-in-out infinite;
}

@keyframes highlight-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25), 0 0 20px rgba(16, 185, 129, 0.1); }
}

.arch-icon {
  width: 22px;
  height: 22px;
  margin: 0 auto 8px;
  color: var(--green);
  opacity: 0.8;
}

.arch-node.core .arch-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
}

.arch-sub-icon {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 6px;
  color: var(--green);
  opacity: 0.7;
}

.arch-sub span {
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   Flow Steps (How agents use it)
   ───────────────────────────────────────────────────────────── */
.flow-steps {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.flow-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--green);
  color: var(--night);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.step-body code {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--green);
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-body {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.step-body code {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  color: var(--green-dark);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.decision-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--paper-soft);
  border-radius: 8px;
  border-left: 3px solid var(--line);
}

.decision-item strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.decision-item span {
  font-size: 12px;
  color: var(--ink-soft);
}

.decision-item.allow { border-left-color: var(--green); }
.decision-item.allow strong { color: var(--green-dark); }

.decision-item.warn { border-left-color: var(--amber); }
.decision-item.warn strong { color: var(--amber); }

.decision-item.escalate { border-left-color: var(--blue); }
.decision-item.escalate strong { color: var(--blue); }

.decision-item.block { border-left-color: var(--red); }
.decision-item.block strong { color: var(--red); }

@media (max-width: 680px) {
  .flow-step { grid-template-columns: 1fr; }
  .step-number { width: 36px; height: 36px; font-size: 16px; }
  .decision-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   Documentation Layout
   ───────────────────────────────────────────────────────────── */
.doc-header, .play-header {
  display: block;
  color: #f0fdf4;
  padding: 48px 0 32px;
}
.doc-header h1, .play-header h1 {
  margin: 12px 0 16px;
  color: #f0fdf4;
}
.doc-header .eyebrow { color: var(--green); }
.doc-header .lede { color: rgba(240, 253, 244, 0.7); }

.doc-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 48px 0 80px;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  color: var(--ink-faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.toc-title {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.15s;
}
.toc a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
  transition: background 0.15s;
}
.toc a:hover { color: var(--ink); }
.toc a:hover::before { background: var(--green); }

article {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow-x: auto;
}

article h1 { display: none; }
article h2 {
  font-size: 32px;
  margin: 40px 0 16px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
article h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}
article h2:first-child { margin-top: 0; }
article h3 {
  font-size: 22px;
  margin: 32px 0 12px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}
article p { color: var(--ink-soft); margin: 16px 0; }
article ul { margin: 12px 0 20px 24px; color: var(--ink-soft); }
article li { margin: 8px 0; }

article code {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.9em;
  color: var(--green);
}

pre {
  background: var(--night);
  color: rgba(240, 253, 244, 0.85);
  border: 1px solid rgba(240, 253, 244, 0.1);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  max-width: 100%;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

th {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  background: var(--paper-soft);
}

tr:last-child td { border-bottom: none; }

/* Inline code */
code {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
  color: var(--green);
}

pre code {
  word-break: normal;
  overflow-wrap: normal;
  max-width: none;
}

/* Table wrapper for mobile scroll */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

.table-wrapper table {
  margin: 0;
  min-width: 500px;
}

/* Article content overflow control */
article {
  overflow: hidden;
  max-width: 100%;
}

article > * {
  max-width: 100%;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .doc-shell {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }

  article {
    padding: 24px;
  }

  pre {
    font-size: 11px;
    padding: 12px;
    overflow-x: auto;
  }

  table {
    font-size: 12px;
  }

  th, td {
    padding: 8px 10px;
    font-size: 12px;
  }

  code {
    font-size: 0.8em;
  }
}

/* ─────────────────────────────────────────────────────────────
   About Page
   ───────────────────────────────────────────────────────────── */
.about-page {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
  max-width: 960px;
}

.about-photo {
  position: sticky;
  top: 32px;
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.about-content p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content p:last-of-type {
  margin-bottom: 0;
}

.about-content strong {
  color: var(--ink);
}

.about-signature {
  margin-top: 32px !important;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--green-dark) !important;
  font-weight: 600;
}

@media (max-width: 980px) {
  .about-page {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo {
    position: static;
    max-width: 320px;
  }
}

@media (max-width: 680px) {
  .about-photo {
    max-width: 260px;
  }
  .about-content p {
    font-size: 16px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────── */
footer {
  padding: 48px 0 80px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--ink-faint);
  font-size: 13px;
}

footer a {
  color: var(--ink-soft);
  margin-left: 24px;
  transition: color 0.15s;
}
footer a:hover { color: var(--green); }

/* ─────────────────────────────────────────────────────────────
   Form Elements
   ───────────────────────────────────────────────────────────── */
label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-card);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.15s;
}
select { padding: 12px 16px; appearance: none; }
textarea {
  min-height: 240px;
  padding: 16px;
  resize: vertical;
  line-height: 1.6;
}

select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────────
   Demo Video Section
   ───────────────────────────────────────────────────────────── */
.demo-section {
  background: var(--night-2);
  padding: 48px 0;
}

.demo-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.demo-video {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05);
}

.demo-caption {
  margin-top: 16px;
  color: var(--ink-faint);
  font-size: 14px;
}

.demo-caption code {
  color: var(--green-soft);
  font-size: 13px;
}

/* ─────────────────────────────────────────────────────────────
   Integration Grid
   ───────────────────────────────────────────────────────────── */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.integration-category {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.integration-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.15s ease;
  width: 100%;
}

.integration-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.integration-item.live {
  color: var(--ink);
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.08);
}

.integration-item.live svg {
  opacity: 1;
  color: var(--green-soft);
}

.integration-item.live:hover {
  background: rgba(16, 185, 129, 0.15);
  transform: translateY(-1px);
}

.integration-item.soon {
  opacity: 0.5;
  cursor: default;
}

.integration-item.soon::after {
  content: "";
  margin-left: auto;
}

/* ─────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero, .split, .doc-shell { grid-template-columns: 1fr; }
  .hero { gap: 48px; }
  .split { gap: 48px; }
  .strip-inner { flex-direction: column; align-items: flex-start; }
  .integration-list { justify-content: flex-start; }
  .toc { position: static; }
  .integration-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .site-nav { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-nav .links { flex-wrap: wrap; gap: 16px; }
  .brand-kicker { display: none; }
  .hero { padding: 36px 0 32px; }
  .hero.hero-simple { padding: 48px 0 36px; }
  .logo-strip { padding: 48px 0 56px; }
  .integration-logos { gap: 28px 36px; }
  .logo-item svg { width: 24px; height: 24px; }
  .logo-item span { font-size: 10px; }
  .hero-command {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hero-command code {
    font-size: 10px;
    word-break: break-all;
    white-space: normal;
    display: block;
  }
  h1 { font-size: clamp(28px, 8vw, 36px); }
  h2 { font-size: clamp(24px, 6vw, 32px); }
  .section { padding: 56px 0; }
  .card-grid, .signal-grid, .arch-sub-grid, .integration-grid { grid-template-columns: 1fr; }
  .arch-row.arch-inputs, .arch-row.arch-outputs { grid-template-columns: 1fr; }
  .arch-arrow-row.multi { gap: 32px; }
  article { padding: 24px; }
  footer { flex-direction: column; align-items: flex-start; }
  footer a { margin-left: 0; margin-right: 20px; }
}
