:root {
  color-scheme: light dark;
  --paper: #faf9f6;
  --surface: #fff;
  --sidebar-bg: #f3f3ef;
  --ink: #202b38;
  --muted: #596675;
  --line: #e0e3e5;
  --accent: #28644b;
  --soft: #e8eee1;
  --code: #122b3b;
  --panel-end: #edf1f5;
  --panel-shadow: 0 18px 45px -30px #233c60;
  --sidebar: 252px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 20px; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.2; }
h1, h2 { letter-spacing: -1.3px; }
h1 { font-size: clamp(36px, 4.5vw, 64px); font-weight: 650; margin: 0 0 25px; }
h2 { font-size: clamp(27px, 3vw, 36px); font-weight: 650; margin: 0 0 24px; }
h3 { font-size: 20px; letter-spacing: -.4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 20; padding: 10px 20px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar); padding: 34px 25px 24px; background: var(--sidebar-bg); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.7px; }
.brand img { flex: 0 0 42px; width: 42px; border-radius: 10px; }
.brand-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .3px; }
.sidebar-caption { margin: 28px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label, .eyebrow, .feature-index { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-label { color: var(--muted); margin: 22px 10px 7px; }
nav a { padding: 8px 10px; color: var(--muted); border-radius: 5px; text-decoration: none; font-size: 13px; line-height: 1.5; }
nav a:hover, nav a[aria-current] { color: var(--accent); background: var(--soft); }
.sidebar-bottom { margin-top: auto; padding-top: 44px; color: var(--muted); font-size: 11px; line-height: 2; }
.sidebar-bottom a { text-decoration: none; }
.runtime-label { display: block; color: var(--accent); font-weight: 600; margin-bottom: 5px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--accent); border-radius: 50%; }
.workspace { margin-left: var(--sidebar); }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 76px; padding: 18px 48px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.topbar strong { font-weight: 500; color: var(--ink); }
.topbar > span > span { margin: 0 10px; opacity: .5; }
.topbar div { display: flex; flex-wrap: wrap; gap: 12px 25px; }
.topbar a { color: var(--ink); font-weight: 600; text-decoration: none; }
main, .site-footer { max-width: 1240px; margin: auto; padding: 0 64px; }
main { min-width: 0; }
.landing section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.landing .hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 380px); align-items: center; gap: 0 44px; padding: 72px 0 48px; }
.hero-copy { min-width: 0; }
.eyebrow { margin-bottom: 18px; color: var(--accent); }
.hero h1 span { color: var(--accent); }
.lede { max-width: 610px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 11px 17px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.button:hover { background: var(--soft); }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { filter: brightness(1.12); }
.hero-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 40px; color: var(--muted); font-size: 11px; }
.hero-meta span::before { content: "+"; color: var(--accent); margin-right: 7px; }
.stack-panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, var(--surface), var(--panel-end)); box-shadow: var(--panel-shadow); }
.panel-top, .panel-bottom { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.panel-top { align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 28px; }
.panel-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.panel-bottom { padding-top: 14px; border-top: 1px solid var(--line); }
.panel-bottom span::before { content: "+"; color: var(--accent); margin-right: 7px; }
.panel-tag { padding: 3px 7px; border-radius: 4px; background: var(--soft); color: var(--accent); font-size: 11px; }
.stack-node { display: flex; align-items: center; gap: 13px; min-width: 0; }
.engine-node { flex-wrap: wrap; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.model-node { margin: 0 0 22px; }
.node-mark { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--accent); font-size: 19px; font-weight: 700; }
.file-mark { padding: 10px 8px; border: 0; border-radius: 5px; background: var(--soft); font: 12px/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.node-logo { flex: 0 0 52px; width: 52px; border-radius: 10px; }
.node-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.node-text strong { font-size: 14px; line-height: 1.4; font-weight: 650; }
.node-text small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.engine-node .node-text { flex: 1 1 120px; }
.engine-node strong { font-size: 20px; }
.node-badge { flex: 0 0 100%; color: var(--muted); font: 11px/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: 1px; text-transform: uppercase; }
.stack-link { margin: 6px 0 6px 23px; padding: 10px 18px; border-left: 1px dashed var(--muted); color: var(--muted); font: 11px/2 "SFMono-Regular", Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }
.section-intro { max-width: 730px; color: var(--muted); }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.capability { padding: 26px; min-width: 0; }
.capability:nth-child(odd) { border-right: 1px solid var(--line); }
.capability:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.feature-index { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.capability h3 { margin: 17px 0 13px; }
.capability p, .card p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.capability > code { font-size: 11px; color: var(--accent); }
.section-note { margin: 23px 0 0; font-size: 12px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card h3 { margin: 24px 0 14px; }
.card h3 span { color: var(--accent); }
.card-link { margin-top: auto; color: var(--accent); font-size: 12px; font-weight: 650; }
.table-wrap { margin: 27px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
caption { padding: 12px 16px; background: var(--surface); color: var(--muted); text-align: left; font-size: 11px; font-weight: 600; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
tbody th { font-weight: 600; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.pill { display: inline-block; margin-bottom: 5px; padding: 2px 7px; border-radius: 4px; background: var(--soft); color: var(--accent); font-size: 11px; white-space: nowrap; }
.callout { padding: 22px 24px; background: var(--soft); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; font-size: 14px; margin-top: 25px; }
.callout p { margin: 5px 0 0; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .85em; overflow-wrap: anywhere; }
p code, li code, td code { padding: 2px 4px; background: var(--surface); border-radius: 3px; }
pre { max-width: 100%; margin: 0 0 24px; padding: 24px; overflow-x: auto; background: var(--code); color: #faf6e4; border: 0; border-radius: 7px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 13px; line-height: 1.85; tab-size: 2; }
pre code { font-size: inherit; overflow-wrap: normal; }
.highlight { background: var(--code); border-radius: 7px; }
.highlight pre { background: transparent; }
.code-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 15px; margin: 28px 0 9px; color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.code-wrapper { position: relative; min-width: 0; }
.code-wrapper pre { padding-top: 48px; }
.copy-btn { display: flex; align-items: center; gap: 5px; position: absolute; top: 8px; right: 8px; min-height: 32px; padding: 5px 8px; background: #ffffff10; color: #faf6e4; border: 1px solid #ffffff30; border-radius: 6px; font: 11px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
.copy-btn:hover { background: #ffffff25; }
.copy-btn svg { pointer-events: none; }
.copy-btn.show-tooltip::after { content: attr(data-tooltip); position: absolute; right: 0; bottom: calc(100% + 6px); padding: 4px 8px; border-radius: 4px; background: var(--ink); color: var(--paper); white-space: nowrap; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-top: 28px; padding-bottom: 34px; color: var(--muted); font-size: 11px; }
.site-footer a { color: inherit; }
.document { padding-top: 54px; padding-bottom: 35px; overflow-wrap: anywhere; }
.document h1 { font-size: clamp(32px, 4vw, 48px); }
.document h2, .document h3, .document h4 { margin: 42px 0 20px; }
.document h4 { font-size: 22px; letter-spacing: -.5px; padding-top: 15px; border-top: 1px solid var(--line); }
.document li { margin-bottom: 8px; }
.document table { display: block; overflow-x: auto; margin-bottom: 24px; }
.document blockquote { margin: 24px 0; padding: 15px 22px; background: var(--soft); border-left: 3px solid var(--accent); color: var(--muted); }
.document blockquote p:last-child { margin-bottom: 0; }
.document hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
@media (max-width: 1200px) {
  :root { --sidebar: 225px; }
  .sidebar { padding-left: 18px; padding-right: 18px; }
  main, .site-footer, .topbar { padding-left: 36px; padding-right: 36px; }
  .landing .hero { column-gap: 28px; }
  .stack-panel { padding: 18px; }
}
@media (max-width: 1000px) {
  .landing .hero { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .hero-copy { max-width: 620px; }
  .stack-panel { width: 100%; max-width: 520px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .hero-meta { margin-top: 12px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 20px; }
  .sidebar { position: static; width: 100%; padding: 20px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { font-size: 22px; }
  .sidebar-caption, .sidebar-bottom, .nav-label { display: none; }
  nav { flex-direction: row; flex-wrap: wrap; gap: 4px; margin-top: 18px; }
  .workspace { margin-left: 0; }
  .topbar { padding: 14px 24px; min-height: 60px; font-size: 12px; }
  .topbar div { gap: 16px; }
  main, .site-footer { padding-left: 24px; padding-right: 24px; }
  .landing .hero { padding: 44px 0 36px; }
  .lede { font-size: 16px; }
  .hero-meta { gap: 7px 14px; }
  .landing section { padding: 38px 0; }
  .card, .capability { padding: 24px; }
  .capability h3 { font-size: 18px; }
  th, td { padding: 12px; }
  .document { padding-top: 35px; }
}
@media (max-width: 480px) {
  .landing .hero { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability:nth-child(odd) { border-right: 0; }
  .capability:not(:last-child) { border-bottom: 1px solid var(--line); }
  .topbar > span > span { margin: 0 4px; }
  .topbar { gap: 12px; }
}
@media (max-width: 380px) {
  main, .site-footer, .sidebar, .topbar { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1b1e22; --surface: #23272c; --sidebar-bg: #23272c; --ink: #e7ebef; --muted: #b0bac4; --line: #3a424c; --accent: #9dc9aa; --soft: #293d30; --code: #101820; --panel-end: #292f36; --panel-shadow: 0 18px 45px -30px #000; }
  .button.primary { color: #1b1e22; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
@media print {
  .sidebar, .topbar, .copy-btn, .skip-link { display: none; }
  .workspace { margin: 0; }
  :root { color-scheme: light; --paper: #fff; --surface: #fff; --panel-end: #fff; --panel-shadow: none; --ink: #000; --muted: #444; --accent: #24543a; --soft: #eee; --line: #ccc; }
}
