:root {
  color-scheme: light dark;
  --paper: #faf9f6;
  --surface: #fff;
  --sidebar-bg: #f3f3ef;
  --ink: #202b38;
  --muted: #596675;
  --line: #e0e3e5;
  --accent: #89615f;
  --soft: #f5ece9;
  --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;
  -webkit-font-smoothing: antialiased; }

a {
  color: var(--accent);
  text-underline-offset: 4px; }

a:hover {
  text-decoration-thickness: 2px; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px; }

main:focus {
  outline: none; }

img {
  max-width: 100%;
  height: auto; }

p {
  margin: 0 0 20px; }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
  margin-top: 0; }

h1, h2 {
  letter-spacing: -1.3px; }

h1 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 650;
  margin-bottom: 25px; }

h2 {
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 650;
  margin-bottom: 24px; }

h3 {
  font-size: 20px;
  letter-spacing: -.4px;
  font-weight: 600; }

button {
  font: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0; }

.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; }

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px; }

.nav-label, .eyebrow, .card-index {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase; }

.nav-label {
  color: var(--muted);
  margin: 22px 10px 7px; }

.sidebar nav a {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5; }

.sidebar nav a:hover, .sidebar 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;
  flex-shrink: 0;
  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 {
  min-width: 0;
  overflow-wrap: anywhere; }

.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); }

.hero-description {
  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 {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff; }

.button-primary:hover {
  background: var(--accent);
  color: #fff;
  filter: brightness(1.05); }

.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-tag {
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--accent);
  font-size: 11px; }

.panel-bottom {
  padding-top: 14px;
  border-top: 1px solid var(--line); }

.panel-bottom span::before {
  content: "+";
  color: var(--accent);
  margin-right: 7px; }

.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;
  overflow-wrap: anywhere; }

.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-heading {
  max-width: 730px;
  margin-bottom: 30px; }

.section-heading > p:last-child, .split-heading > p {
  color: var(--muted); }

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

.platform, .workflow-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform .2s, border-color .2s; }

.platform:hover, .workflow-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent); }

.card-index {
  color: var(--muted);
  display: block;
  margin-bottom: 24px; }

.platform h3 {
  margin-bottom: 14px; }

.platform p, .workflow-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8; }

.tag {
  display: inline-block;
  padding: 2px 7px;
  font-size: 11px;
  background: var(--soft);
  color: var(--accent);
  border-radius: 4px; }

.section-note {
  max-width: 54rem;
  color: var(--muted);
  font-size: 12px;
  margin: 23px 0 0; }

.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  max-width: none; }

.split-heading > p {
  max-width: 25rem; }

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

.workflow-card {
  display: flex;
  flex-direction: column;
  align-items: start; }

.workflow-card h3 {
  margin-bottom: 14px; }

.workflow-card .text-link {
  margin-top: auto;
  padding-top: 16px; }

.text-link {
  font-size: 12px;
  font-weight: 650; }

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line); }

.step-description {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-content: start;
  column-gap: .8rem; }

.step-number {
  color: var(--accent);
  font: 13px/1.85 "SFMono-Regular", Consolas, monospace; }

.step-description h3 {
  margin-bottom: 14px; }

.step-description p {
  grid-column: 2;
  font-size: 14px;
  color: var(--muted); }

.step-code {
  min-width: 0; }

code, pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

code {
  font-size: .86em;
  overflow-wrap: anywhere; }

p code, li code, dd code, td code {
  background: var(--surface);
  border-radius: 3px;
  padding: 2px 4px; }

pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 24px;
  margin: 0 0 24px;
  background: var(--code);
  color: #faf6e4;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.85;
  tab-size: 2; }

pre code {
  font-size: inherit;
  overflow-wrap: normal; }

.highlight {
  background: var(--code);
  color: #faf6e4;
  border-radius: 7px;
  margin: 0; }

.highlight pre {
  background: transparent; }

.code-wrapper {
  position: relative;
  min-width: 0;
  border-radius: 7px;
  background: var(--code);
  color: #faf6e4;
  margin-block: 24px; }

.code-wrapper pre {
  padding-top: 48px;
  margin-bottom: 0; }

.step-code .code-wrapper {
  margin: 0; }

.copy-btn {
  display: block;
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 32px;
  border: 1px solid #ffffff30;
  background: #ffffff10;
  color: #faf6e4;
  border-radius: 6px;
  padding: 5px 8px;
  font: 11px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer; }

.copy-btn:hover {
  background: #ffffff25; }

.copy-btn:focus-visible, .code-wrapper pre:focus-visible {
  outline-color: #efc3b9; }

.notice {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 22px 24px;
  margin-top: 25px;
  font-size: 14px; }

.boundary-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 44px; }

.boundary-section > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px; }

.capabilities {
  margin: 0; }

.capabilities > div {
  padding: 24px 0;
  border-top: 1px solid var(--line); }

.capabilities > div:first-child {
  padding-top: 0;
  border-top: none; }

.capabilities dt {
  font-weight: 600;
  margin-bottom: 8px; }

.capabilities dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px; }

.source-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px; }

.source-section > div {
  max-width: 44rem; }

.source-section p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0; }

.source-section .button {
  flex-shrink: 0; }

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 34px;
  font-size: 11px;
  color: var(--muted); }

.site-footer a {
  color: inherit; }

.footer-brand {
  font-weight: 600;
  text-decoration: none; }

.site-footer p {
  margin: 6px 0 0; }

.site-footer > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 20px; }

.prose {
  padding-top: 54px;
  padding-bottom: 35px;
  overflow-wrap: anywhere; }

.prose h1 {
  font-size: clamp(32px, 4vw, 48px); }

.prose h2, .prose h3 {
  margin: 42px 0 20px; }

.prose h2 {
  padding-top: 20px;
  border-top: 1px solid var(--line); }

.prose li {
  margin-bottom: 8px; }

.prose p, .prose li {
  color: var(--muted); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-block: 24px; }

.prose table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 13px; }

.prose caption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 11px;
  text-align: left; }

.prose th, .prose td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top; }

.prose th + th, .prose td {
  border-left: 1px solid var(--line); }

.prose thead th {
  background: var(--surface);
  font-size: 11px; }

.prose tbody th {
  font-weight: 500; }

.table-scroll code {
  overflow-wrap: normal; }

.prose a {
  overflow-wrap: anywhere; }

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0; }

.prose blockquote {
  margin: 24px 0;
  padding: 22px 24px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 14px; }

.prose blockquote p:last-child {
  margin-bottom: 0; }

@media (max-width: 1200px) {
  :root {
    --sidebar: 225px; }

  .sidebar {
    padding-inline: 18px; }

  main, .site-footer, .topbar {
    padding-inline: 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; }

  .platform-grid, .workflow-grid, .step, .boundary-section {
    grid-template-columns: minmax(0, 1fr); }

  .hero-meta {
    margin-top: 12px; }

  .split-heading, .source-section {
    display: block; }

  .split-heading > p {
    max-width: none; }

  .source-section .button {
    margin-top: 24px; }

  .step {
    gap: 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); }

  .sidebar-caption, .sidebar-bottom, .nav-label {
    display: none; }

  .sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 18px; }

  .workspace {
    margin-left: 0; }

  .topbar {
    min-height: 60px;
    padding: 14px 24px; }

  .topbar div {
    gap: 16px; }

  main, .site-footer {
    padding-inline: 24px; }

  .landing .hero {
    padding: 44px 0 36px; }

  .hero-description {
    font-size: 16px; }

  .hero-meta {
    gap: 7px 14px; }

  .landing > section {
    padding: 38px 0; }

  .platform, .workflow-card {
    padding: 24px; }

  .section-heading {
    margin-bottom: 24px; }

  .prose th, .prose td {
    padding: 12px; }

  .prose {
    padding-top: 35px; } }
@media (max-width: 380px) {
  main, .site-footer, .sidebar, .topbar {
    padding-inline: 18px; } }
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1e22;
    --surface: #23272c;
    --sidebar-bg: #23272c;
    --ink: #e7ebef;
    --muted: #b0bac4;
    --line: #3a424c;
    --accent: #e2bcb3;
    --soft: #38282d;
    --code: #101820;
    --panel-end: #292f36;
    --panel-shadow: 0 18px 45px -30px #000; }

  .button-primary, .button-primary:hover {
    color: #1b1e22; } }
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto; }

  .platform, .workflow-card {
    transition: none; }

  .platform:hover, .workflow-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: #704b49;
    --soft: #eee;
    --line: #ccc; } }
