:root {
  color-scheme: light;
  --paper: #f8f8f4;
  --white: #ffffff;
  --ink: #181d2e;
  --muted: #4f5764;
  --line: #d9dce0;
  --dark: #151b2b;
  --dark-line: #343e53;
  --mint: #c5efda;
  --mono: "Cascadia Mono", Consolas, monospace;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #237d77; outline-offset: 4px; }
.hero :focus-visible { outline-color: #a1e5c4; }
[hidden] { display: none !important; }
.shell { width: min(1168px, calc(100% - 64px)); margin-inline: auto; }
.skip, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; top: 8px; left: 8px; z-index: 2; padding: 10px; background: var(--white); }
.site-header { background: var(--paper); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 73px; gap: 18px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; max-width: 100%; height: auto; }
nav { display: flex; align-items: center; gap: 29px; font-size: .91rem; font-weight: 600; }
nav a { text-decoration: none; }
nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-demo { display: inline-flex; gap: 8px; padding: 9px 13px; border: 1px solid #c4c8cd; border-radius: 4px; }
.hero { background: var(--dark); color: #f8f9f9; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 91px); padding-block: 65px 69px; }
h1 { margin: 0; font-size: clamp(2.8rem, 5.1vw, 4.75rem); line-height: .99; letter-spacing: -.068em; font-weight: 650; }
.intro { max-width: 43ch; margin: 23px 0 27px; color: #ccd3df; font-size: 1.05rem; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 1px solid transparent; border-radius: 4px; min-height: 42px; padding: 9px 14px; font-weight: 650; text-decoration: none; }
.action { color: #13291f; background: var(--mint); }
.action:hover { background: #def8eb; }
.demo { min-width: 0; color: var(--ink); background: #fff; border: 1px solid #4b566d; border-radius: 7px; overflow: hidden; scroll-margin: 14px; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 15px; background: #202a3f; color: #f6f7f8; border-bottom: 1px solid var(--dark-line); }
.demo-brand { font-weight: 650; font-size: .9rem; }
.demo-badge { color: #d2dae7; font: .72rem/1.3 var(--mono); }
.demo-body { padding: 17px 17px 12px; }
.demo-body :focus-visible { outline-color: #237d77; }
.demo-path { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .78rem; }
.demo-path strong { color: var(--ink); font-weight: 600; }
.demo-title { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 10px; }
.demo-title h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.state { font: .72rem/1.2 var(--mono); padding: 4px 6px; border: 1px solid #d8dde3; border-radius: 3px; background: #f6f7f8; color: #37465a; }
.state.live { background: #e5f6ed; border-color: #c0dfd0; color: #20523d; }
.demo-steps { display: flex; gap: 3px; padding: 3px; background: #edf0f2; border-radius: 4px; margin-bottom: 12px; }
.demo-steps button { flex: 1; padding: 6px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #4b5666; font-size: .81rem; font-weight: 600; }
.demo-steps button[aria-pressed=true] { color: var(--ink); background: #fff; border-color: #dbe0e5; }
.demo-panel { min-height: 155px; }
.demo-panel label { display: block; margin: 0 0 4px; font-size: .78rem; font-weight: 650; }
.demo-panel input, .demo-panel textarea { display: block; width: 100%; margin: 0 0 8px; background: #fff; color: var(--ink); border: 1px solid #c6cdd5; border-radius: 4px; padding: 7px 8px; font-size: .86rem; }
.demo-panel textarea { resize: vertical; min-height: 52px; }
.rendered { background: #f1f5f4; padding: 15px; border: 1px solid #dbe4e1; border-radius: 4px; overflow-wrap: anywhere; }
.preview-caption { color: #465952; font: .72rem var(--mono); }
.rendered h3 { margin: 7px 0 5px; font-size: 1.35rem; letter-spacing: -.025em; }
.rendered p { margin: 0; line-height: 1.45; font-size: .85rem; }
.demo-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.reset { border: 0; background: none; padding: 7px 0; color: #4b5666; text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; }
.demo-action { min-height: 34px; padding: 5px 9px; color: white; background: #263650; font-size: .81rem; }
.demo-action:hover { background: #10223d; }
.demo-note { margin: 10px 0 0; color: #4b5666; font-size: .75rem; }
.section { padding-block: 63px; }
.section-intro h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.65rem); letter-spacing: -.055em; line-height: 1.04; font-weight: 650; }
.section-intro p { margin: 11px 0 0; max-width: 46ch; color: var(--muted); line-height: 1.55; }
.flow { list-style: none; padding: 0; margin: 25px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow li { padding: 19px 20px 20px 0; }
.flow li + li { border-left: 1px solid var(--line); padding-left: 20px; }
.stage { color: #3d6158; font: .78rem var(--mono); }
.flow h3 { margin: 9px 0 4px; font-size: 1.14rem; letter-spacing: -.025em; }
.flow p, .layers p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.architecture { background: #eef1ef; border-block: 1px solid #dbe0dc; }
.arch-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.layers { margin: 0; border-block: 1px solid #cfd7d3; }
.layers > div { display: grid; grid-template-columns: minmax(110px, .61fr) 1fr; gap: 12px; padding: 13px 0; }
.layers > div + div { border-top: 1px solid #cfd7d3; }
.layers dt { font-weight: 650; }
.layers dd { margin: 0; }
.layers dd > span, .layers code { font: .85rem var(--mono); color: #354b45; }
.layers p { margin-top: 3px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; min-height: 84px; gap: 14px; font-size: .85rem; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer > a:last-child { text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 44px); }
  .hero-grid { gap: 25px; padding-block: 48px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 61px; gap: 9px; }
  .header-inner .brand img { width: 123px; }
  nav { gap: 13px; font-size: .82rem; }
  .nav-demo { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 38px; gap: 27px; }
  h1 { font-size: clamp(2.65rem, 8vw, 4rem); }
  .intro { margin: 16px 0 20px; }
  .section { padding-block: 40px; }
  .flow { grid-template-columns: 1fr; margin-top: 19px; }
  .flow li, .flow li + li { padding: 13px 0; border-left: 0; }
  .flow li + li { border-top: 1px solid var(--line); }
  .arch-grid { grid-template-columns: 1fr; gap: 18px; }
  .site-footer { min-height: 0; flex-wrap: wrap; padding-block: 18px; }
  .site-footer p { order: 3; width: 100%; }
}
