:root {
  color-scheme: light;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-soft: #eaf1ff;
  --canvas: #f7f8fa;
  --surface: #fff;
  --surface-subtle: #f1f3f6;
  --ink: #111827;
  --ink-muted: #5e6878;
  --ink-soft: #778193;
  --border: #e3e7ed;
  --border-strong: #cdd4df;
  --green: #13835b;
  --green-soft: #e8f7ef;
  --amber: #a45b0a;
  --amber-soft: #fff4e5;
  --red: #b8323e;
  --red-soft: #fff0f0;
  --hero: #0b1020;
  --hero-raised: #121b30;
  --hero-ink: #f8fafc;
  --hero-muted: #a9b5c8;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 5%);
  --shadow-md: 0 16px 48px rgb(16 24 40 / 10%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --content: 1160px;
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: Consolas, "Courier New", monospace;
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #8aabff;
  --brand-strong: #a5bdff;
  --brand-soft: #172541;
  --canvas: #0b1020;
  --surface: #111827;
  --surface-subtle: #171f30;
  --ink: #f3f5fa;
  --ink-muted: #b2bdcc;
  --ink-soft: #8c9aaf;
  --border: #263246;
  --border-strong: #3a4960;
  --green: #55d6a0;
  --green-soft: #102a24;
  --amber: #ffbf73;
  --amber-soft: #302316;
  --red: #ff8e98;
  --red-soft: #301b23;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 20%);
  --shadow-md: 0 16px 48px rgb(0 0 0 / 28%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand: #8aabff;
    --brand-strong: #a5bdff;
    --brand-soft: #172541;
    --canvas: #0b1020;
    --surface: #111827;
    --surface-subtle: #171f30;
    --ink: #f3f5fa;
    --ink-muted: #b2bdcc;
    --ink-soft: #8c9aaf;
    --border: #263246;
    --border-strong: #3a4960;
    --green: #55d6a0;
    --green-soft: #102a24;
    --amber: #ffbf73;
    --amber-soft: #302316;
    --red: #ff8e98;
    --red-soft: #301b23;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 20%);
    --shadow-md: 0 16px 48px rgb(0 0 0 / 28%);
  }
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: 84px; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
body, button, a { font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { color: #fff; background: #315fd0; }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 12px 16px; border-radius: var(--radius-sm); color: #fff; background: var(--brand-strong); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.is-unavailable { cursor: not-allowed !important; opacity: .7; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent); background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: #2563eb; box-shadow: 0 4px 12px rgb(37 99 235 / 20%); }
.brand-mark svg { width: 21px; height: 21px; stroke-width: 1.9; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: -.025em; }
.brand-name span { margin-left: 5px; color: var(--ink-muted); font-weight: 500; }
.desktop-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }
.desktop-nav a, .mobile-nav a { color: var(--ink-muted); font-size: 13px; font-weight: 550; transition: color .18s ease; }
.desktop-nav a:hover, .mobile-nav a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.icon-button:hover { border-color: var(--border); background: var(--surface-subtle); }
.icon-button svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-moon { display: none; }
}
.menu-toggle { display: none; }
.mobile-nav { padding: 6px 24px 18px; border-top: 1px solid var(--border); background: var(--canvas); }
.mobile-nav a { display: block; padding: 11px 0; }

.hero { position: relative; overflow: hidden; color: var(--hero-ink); background: radial-gradient(ellipse at 75% 4%, rgb(45 85 161 / 21%), transparent 36%), linear-gradient(132deg, #0b1020 15%, #101a2d 68%, #0c1425); }
.hero::before { position: absolute; inset: 0; pointer-events: none; content: ""; opacity: .18; background-image: linear-gradient(rgb(169 181 200 / 13%) 1px, transparent 1px), linear-gradient(90deg, rgb(169 181 200 / 13%) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to right, transparent, #000 45%, #000); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(36px, 5vw, 72px); padding-top: 84px; padding-bottom: 74px; }
.hero-copy { max-width: 550px; }
.eyebrow, .section-kicker { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #b6c4d9; }
.eyebrow-dot, .status-pip { width: 7px; height: 7px; border-radius: 50%; background: #59d4a0; box-shadow: 0 0 0 4px rgb(89 212 160 / 12%); }
.hero h1 { margin: 26px 0 18px; font-size: clamp(39px, 5.3vw, 62px); line-height: 1.22; font-weight: 700; letter-spacing: -.055em; }
.text-gradient { color: #9fbaff; }
.hero-description { max-width: 510px; margin: 0; color: #b4bfd0; font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 650; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 17px; height: 17px; }
.button-primary { color: #fff; background: #356ce4; box-shadow: 0 5px 16px rgb(37 99 235 / 25%); }
.button-primary:hover { background: #2b5fd2; }
.button-secondary { border-color: #3a4960; color: #e8edf5; background: rgb(255 255 255 / 4%); }
.button-secondary:hover { border-color: #60728e; background: rgb(255 255 255 / 8%); }
.external-mark { margin-left: -3px; font-size: 14px; }
.hero-note { margin: 17px 0 0; color: #8492a8; font-size: 12px; }
.hero-bottom { position: relative; display: flex; align-items: center; gap: 18px; padding: 0 0 23px; color: #97a5ba; font-size: 11px; }
.hero-bottom > span { display: inline-flex; align-items: center; gap: 9px; }
.hero-bottom-line { flex: 1; height: 1px; background: #29364d; }

.demo-window { overflow: hidden; border: 1px solid rgb(169 181 200 / 20%); border-radius: 15px; background: #111827; box-shadow: 0 32px 80px rgb(0 0 0 / 34%); transform: perspective(1200px) rotateY(-2deg); }
.demo-topbar { display: flex; height: 45px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; border-bottom: 1px solid #263246; color: #aeb9ca; font-size: 10px; }
.window-controls { display: flex; gap: 5px; }
.window-controls i { width: 7px; height: 7px; border-radius: 50%; background: #43516a; }
.window-controls i:first-child { background: #e98e78; }
.window-controls i:nth-child(2) { background: #e4bf70; }
.window-controls i:nth-child(3) { background: #60b78b; }
.demo-badge { padding: 5px 8px; border: 1px solid #3a4b67; border-radius: 5px; color: #b9c9e6; background: #1a2841; font-size: 9px; }
.demo-content { display: grid; min-height: 358px; grid-template-columns: 48px 1fr; }
.demo-sidebar { display: flex; align-items: center; flex-direction: column; gap: 19px; padding-top: 17px; border-right: 1px solid #263246; background: #0e1626; }
.demo-side-logo { display: grid; width: 27px; height: 27px; margin-bottom: 12px; place-items: center; border-radius: 8px; color: #a9c1ff; background: #1b2b4a; }
.demo-side-logo svg { width: 18px; height: 18px; }
.demo-sidebar > span:not(.demo-side-logo) { width: 17px; height: 17px; border-radius: 5px; background: #28354b; }
.demo-sidebar .side-active { background: #3266d3 !important; box-shadow: 0 0 0 4px rgb(50 102 211 / 18%); }
.demo-main { padding: 23px clamp(14px, 2.4vw, 27px) 20px; }
.demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-heading small { color: #7e8ba0; font-family: var(--mono); font-size: 9px; }
.demo-heading h2 { margin: 5px 0 0; color: #f1f4fa; font-size: 20px; }
.demo-local { display: inline-flex; align-items: center; gap: 6px; color: #a0d8bd; font-size: 9px; }
.demo-local i { width: 6px; height: 6px; border-radius: 50%; background: #55c391; }
.demo-mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 20px 0; }
.demo-mode { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 10px; border: 1px solid #2d394d; border-radius: 8px; color: #aeb9ca; background: #151f30; }
.demo-mode.selected { border-color: #4775d5; background: #172744; }
.mode-icon { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 6px; color: #a8c0ff; background: #25395e; font-family: var(--mono); font-size: 11px; }
.mode-icon.muted { color: #9ca8b8; background: #273244; }
.demo-mode b, .demo-mode small { display: block; }
.demo-mode b { color: #e6ebf4; font-size: 10px; }
.demo-mode small { margin-top: 3px; color: #8390a3; font-size: 8px; }
.radio { width: 10px; height: 10px; flex: 0 0 auto; margin-left: auto; border: 1px solid #8291a8; border-radius: 50%; }
.selected .radio { border: 3px solid #78a1ff; }
.demo-table-head, .demo-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px 50px; align-items: center; gap: 8px; }
.demo-table-head { padding: 0 2px 9px; color: #77859b; font-size: 8px; }
.demo-row { min-height: 39px; border-top: 1px solid #263246; color: #d3dae6; font-family: var(--mono); font-size: 9px; }
.domain-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #5fc994; }
.domain-dot.blue { background: #78a1ff; }
.state-enabled { color: #70d2a5; font-family: var(--font); font-size: 8px; }
.demo-callout { display: flex; align-items: flex-start; gap: 8px; margin-top: 15px; padding: 9px 10px; border: 1px solid #3b4d6c; border-radius: 7px; color: #a9b9d1; background: #17233a; font-size: 8px; line-height: 1.7; }
.demo-callout svg { width: 14px; height: 14px; flex: 0 0 auto; color: #8daeff; }
.demo-callout strong { color: #e2eaff; }

.section { padding: 100px 0; }
.section-kicker { color: var(--brand); }
.section-heading h2, .project-main h2, .changelog-layout h2 { margin: 15px 0 0; font-size: clamp(30px, 3.8vw, 45px); line-height: 1.3; letter-spacing: -.045em; }
.section-heading h2 span, .project-main h2 span, .changelog-layout h2 span { color: var(--ink-soft); }
.intro-section { background: var(--surface); }
.intro-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.intro-body { max-width: 570px; padding-top: 12px; }
.intro-body p { color: var(--ink-muted); font-size: 14px; line-height: 1.95; }
.intro-body .lead { margin-top: 0; color: var(--ink); font-size: 18px; line-height: 1.8; font-weight: 550; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--brand); font-size: 13px; font-weight: 650; }
.text-link:hover { color: var(--brand-strong); }

.feature-section { background: var(--canvas); }
.feature-title { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.feature-title > p { max-width: 360px; margin: 0 0 5px; color: var(--ink-muted); font-size: 13px; line-height: 1.8; }
.feature-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 16px; }
.feature-panel { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.feature-panel-main { display: grid; grid-template-columns: 43px 1fr; gap: 18px; padding: 27px; }
.feature-panel-secondary { padding: 24px; }
.feature-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; }
.feature-icon svg { width: 20px; height: 20px; }
.icon-blue { color: #3268d5; background: #eaf1ff; }
.icon-violet { color: #7757bf; background: #f1edfc; }
.icon-green { color: #18845d; background: #e9f7f0; }
.icon-amber { color: #a35b0a; background: #fff4e5; }
:root[data-theme="dark"] .icon-blue { color: #9cb8ff; background: #172541; }
:root[data-theme="dark"] .icon-violet { color: #c4a8ff; background: #251d3b; }
:root[data-theme="dark"] .icon-green { color: #6edcb0; background: #102a24; }
:root[data-theme="dark"] .icon-amber { color: #ffc27c; background: #302316; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-blue { color: #9cb8ff; background: #172541; }
  :root:not([data-theme="light"]) .icon-violet { color: #c4a8ff; background: #251d3b; }
  :root:not([data-theme="light"]) .icon-green { color: #6edcb0; background: #102a24; }
  :root:not([data-theme="light"]) .icon-amber { color: #ffc27c; background: #302316; }
}
.feature-status { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 99px; font-size: 10px; font-weight: 600; }
.status-live { color: var(--green); background: var(--green-soft); }
.status-limited { color: var(--amber); background: var(--amber-soft); }
.feature-panel h3 { margin: 12px 0 8px; font-size: 18px; letter-spacing: -.02em; }
.feature-panel p { margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 1.85; }
.feature-panel-main .feature-icon { grid-row: span 2; }
.feature-panel-content { min-width: 0; }
.rule-compare { display: grid; gap: 0; margin-top: 20px; border-top: 1px solid var(--border); }
.rule-compare > div { display: flex; align-items: center; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--border); color: var(--ink-muted); font-size: 11px; }
.compare-label { min-width: 60px; padding: 4px 7px; border-radius: 5px; text-align: center; font-weight: 650; }
.allow-label { color: #2555ba; background: #edf2ff; }
.block-label { color: #a2424b; background: #fff0f0; }
:root[data-theme="dark"] .allow-label { color: #a9c0ff; background: #1a2947; }
:root[data-theme="dark"] .block-label { color: #ffa8ac; background: #321d25; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .allow-label { color: #a9c0ff; background: #1a2947; }
  :root:not([data-theme="light"]) .block-label { color: #ffa8ac; background: #321d25; }
}
.feature-panel-secondary .feature-icon { margin-bottom: 15px; }
.feature-panel-secondary h3 { margin-top: 13px; }
.feature-panel-wide { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 28px; }
.feature-panel-wide-copy { max-width: 620px; }
.feature-panel-wide-copy .feature-icon { margin-bottom: 14px; }
.https-diagram { display: flex; flex: 0 0 auto; align-items: center; gap: 15px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-subtle); }
.diagram-node { display: grid; gap: 4px; }
.diagram-node span, .diagram-node small { color: var(--ink-soft); font-size: 9px; }
.diagram-node b { color: var(--ink); font-family: var(--mono); font-size: 10px; }
.diagram-lock { display: grid; justify-items: center; gap: 4px; color: var(--amber); }
.diagram-lock svg { width: 18px; height: 18px; }
.diagram-lock span { color: var(--ink-soft); font-size: 8px; }

.flow-section { color: #f6f8fc; background: #0d1424; }
.flow-section .section-kicker { color: #92aeef; }
.flow-section .section-heading h2 { color: #f6f8fc; }
.flow-section .section-heading h2 span { color: #9eacc2; }
.flow-section .feature-title > p { color: #a3afc2; }
.flow-track { display: grid; grid-template-columns: minmax(130px, 1fr) 46px minmax(130px, 1fr) 46px minmax(130px, 1fr) 46px minmax(130px, 1fr); align-items: start; margin-top: 56px; }
.flow-step { position: relative; min-width: 0; padding: 18px 14px; border: 1px solid #26334a; border-radius: 12px; background: #121c2f; }
.flow-number { position: absolute; top: 13px; right: 14px; color: #75859f; font-family: var(--mono); font-size: 10px; }
.flow-icon { display: grid; width: 38px; height: 38px; margin-bottom: 20px; place-items: center; border: 1px solid #314668; border-radius: 10px; color: #a4bbf7; background: #1a2944; }
.flow-step h3 { min-height: 43px; margin: 0; font-size: 13px; line-height: 1.6; }
.flow-step p { min-height: 39px; margin: 9px 0 0; color: #9eabc0; font-size: 10px; line-height: 1.8; }
.flow-step-planned { border-style: dashed; background: rgb(255 255 255 / 2%); }
.flow-step-planned .flow-icon { border-color: #374258; color: #a5b0c1; background: #1a2231; }
.flow-connector { height: 0; margin-top: 55px; border-top: 1px solid #5d82ce; }
.flow-connector::after { display: block; width: 7px; height: 7px; margin: -4px 0 0 auto; border-top: 1px solid currentColor; border-right: 1px solid currentColor; color: #8fb0f8; content: ""; transform: rotate(45deg); }
.flow-connector.planned { border-top: 1px dashed #536177; }
.flow-connector.planned::after { color: #75839a; }
.flow-caption { display: flex; align-items: center; gap: 22px; margin-top: 28px; color: #abb6c7; font-size: 10px; }
.flow-caption > span { display: inline-flex; align-items: center; gap: 7px; }
.flow-caption a { margin-left: auto; color: #a9c1ff; }
.legend-solid, .legend-dashed { width: 20px; height: 1px; background: #8fb0f8; }
.legend-dashed { height: 0; border-top: 1px dashed #9aa8bc; background: none; }

.docs-preview { background: var(--surface); }
.docs-preview-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: 85px; align-items: center; }
.docs-preview-intro { max-width: 400px; margin: 20px 0 24px; color: var(--ink-muted); font-size: 13px; line-height: 1.9; }
.quick-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.quick-steps li { display: grid; grid-template-columns: 35px 1fr; gap: 17px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.quick-steps li:first-child { border-top: 1px solid var(--border); }
.quick-steps li > span { color: var(--brand); font-family: var(--mono); font-size: 11px; }
.quick-steps h3 { margin: 0; font-size: 14px; }
.quick-steps p { margin: 6px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.8; }
.quick-steps code { display: inline-block; max-width: 100%; margin-top: 8px; padding: 7px 9px; overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; color: var(--ink); background: var(--surface-subtle); font-family: var(--mono); font-size: 10px; white-space: nowrap; }

.project-section { color: #f5f7fb; background: #17243b; }
.project-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.project-main .section-kicker { color: #a4bcf3; }
.project-main h2 { color: #f5f7fb; }
.project-main h2 span { color: #9eacc1; }
.project-main > p:not(.section-kicker) { max-width: 540px; margin: 17px 0 24px; color: #b4c0d2; font-size: 13px; line-height: 1.9; }
.button-light { color: #14213a; background: #f1f5ff; }
.button-light:hover { background: #dce7ff; }
.project-links { border-top: 1px solid #33425a; }
.project-link { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #33425a; color: #f3f6fb; }
.project-link:hover:not(.is-unavailable) { color: #a9c3ff; }
.project-link b, .project-link small { display: block; }
.project-link b { font-size: 12px; }
.project-link small { margin-top: 5px; color: #a0acc0; font-size: 10px; }
.project-meta { display: flex; min-height: 44px; align-items: center; justify-content: space-between; border-bottom: 1px solid #33425a; color: #adb9cb; font-size: 11px; }
.project-meta strong { color: #f1f4f8; font-size: 11px; font-weight: 550; }
.project-release { color: #9da9bc; }

.developer-section { padding: 55px 0; background: var(--canvas); }
.developer-row { display: flex; align-items: center; gap: 20px; }
.developer-mark { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border); border-radius: 14px; color: var(--brand); background: var(--surface); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.developer-copy { flex: 1; }
.developer-copy .section-kicker { font-size: 9px; }
.developer-copy h2 { margin: 5px 0 3px; font-size: 15px; }
.developer-copy > p:last-child { margin: 0; color: var(--ink-muted); font-size: 11px; }
.button-outline { border-color: var(--border-strong); color: var(--ink); background: var(--surface); }
.button-outline:hover { border-color: var(--brand); }

.changelog-section { padding-top: 76px; padding-bottom: 82px; border-top: 1px solid var(--border); background: var(--surface); }
.changelog-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; align-items: center; }
.changelog-empty { display: flex; align-items: flex-start; gap: 14px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-subtle); }
.empty-indicator { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 6px; border: 1px solid var(--ink-soft); border-radius: 50%; }
.changelog-empty h3 { margin: 0; font-size: 14px; }
.changelog-empty p { max-width: 520px; margin: 8px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.8; }
.changelog-empty .text-link { margin-top: 10px; font-size: 11px; }

.site-footer { color: #c6cfdd; background: #0a0f1c; }
.footer-main { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; padding-top: 52px; padding-bottom: 40px; }
.footer-brand .brand-name { color: #f3f5f9; }
.footer-brand .brand-name span { color: #aab5c5; }
.footer-brand > p { max-width: 260px; margin: 13px 0 0; color: #94a0b2; font-size: 11px; line-height: 1.8; }
.footer-column { display: grid; align-content: start; gap: 12px; }
.footer-column b { margin-bottom: 3px; color: #f1f4f8; font-size: 11px; }
.footer-column a, .footer-column span { color: #9daabd; font-size: 10px; }
.footer-column a:hover { color: #c0d1ff; }
.footer-bottom { display: flex; min-height: 51px; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #252e3d; color: #8b97a9; font-size: 9px; }
.footer-bottom a { color: #bac6d8; }

/* Documentation pages */
.docs-shell { min-height: calc(100vh - 68px); }
.docs-hero { padding: 46px 0 40px; border-bottom: 1px solid var(--border); background: var(--surface); }
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); font-size: 11px; }
.breadcrumbs a { color: var(--brand); }
.docs-hero h1 { margin: 19px 0 8px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.04em; }
.docs-hero > .container > p:last-child { max-width: 720px; margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 1.85; }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 66px; padding-top: 46px; padding-bottom: 90px; }
.docs-sidebar { position: sticky; top: 94px; align-self: start; }
.docs-sidebar h2 { margin: 0 0 13px; color: var(--ink-soft); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.docs-nav { display: grid; gap: 3px; }
.docs-nav a { display: flex; min-height: 37px; align-items: center; padding: 0 10px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; color: var(--ink-muted); font-size: 12px; }
.docs-nav a:hover, .docs-nav a[aria-current="location"] { border-left-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.docs-mobile-toc { display: none; }
.docs-content { max-width: 800px; min-width: 0; }
.docs-content section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border); scroll-margin-top: 94px; }
.docs-content section:last-child { border-bottom: 0; }
.docs-content h2 { margin: 0 0 17px; font-size: 24px; letter-spacing: -.035em; }
.docs-content h3 { margin: 25px 0 10px; font-size: 16px; }
.docs-content h4 { margin: 19px 0 8px; font-size: 13px; }
.docs-content p, .docs-content li { color: var(--ink-muted); font-size: 13px; line-height: 1.9; }
.docs-content p { margin: 10px 0; }
.docs-content ul, .docs-content ol { padding-left: 22px; }
.docs-content li + li { margin-top: 6px; }
.docs-content a:not(.button) { color: var(--brand); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; }
.docs-content code, .docs-inline-code { padding: 2px 5px; border: 1px solid var(--border); border-radius: 4px; color: var(--ink); background: var(--surface-subtle); font-family: var(--mono); font-size: .9em; }
.code-block { position: relative; margin: 15px 0; }
.code-block pre { margin: 0; padding: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: 9px; color: #e4e9f2; background: #111827; font-family: var(--mono); font-size: 11px; line-height: 1.8; tab-size: 4; }
.code-block code { padding: 0; border: 0; color: inherit; background: transparent; }
.code-label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-family: var(--mono); font-size: 10px; }
.notice { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 8px; color: var(--ink-muted); background: var(--surface); font-size: 12px; line-height: 1.85; }
.notice-warning { border-left-color: var(--amber); }
.notice-danger { border-left-color: var(--red); }
.docs-table-wrap { width: 100%; margin: 16px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 9px; }
.docs-table { width: 100%; border-collapse: collapse; min-width: 540px; background: var(--surface); }
.docs-table th, .docs-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; font-size: 11px; line-height: 1.75; }
.docs-table th { color: var(--ink); background: var(--surface-subtle); font-weight: 650; }
.docs-table td { color: var(--ink-muted); }
.docs-table tr:last-child td { border-bottom: 0; }
.step-card { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 13px; margin: 13px 0; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.step-card > div { min-width: 0; }
.step-number { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: var(--brand); background: var(--brand-soft); font-family: var(--mono); font-size: 11px; }
.step-card h3 { margin: 1px 0 5px; font-size: 13px; }
.step-card p { margin: 3px 0; font-size: 11px; }
.step-card .expected { color: var(--green); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 600; }
.status-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-pill.planned { color: var(--amber); background: var(--amber-soft); }
.docs-faq details { border-bottom: 1px solid var(--border); }
.docs-faq details:first-of-type { border-top: 1px solid var(--border); }
.docs-faq summary { position: relative; padding: 15px 30px 15px 0; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.docs-faq summary::-webkit-details-marker { display: none; }
.docs-faq summary::after { position: absolute; top: 13px; right: 3px; color: var(--ink-soft); content: "+"; font-size: 17px; font-weight: 400; }
.docs-faq details[open] summary::after { content: "−"; }
.docs-faq details p { padding: 0 20px 12px 0; margin: 0; }
.docs-footer { padding: 19px 0; border-top: 1px solid var(--border); color: var(--ink-soft); font-size: 10px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 65%, white); outline-offset: 3px; }
@media (max-width: 980px) {
  .desktop-nav { gap: 14px; }
  .desktop-nav a { font-size: 11px; }
  .hero-grid { gap: 32px; }
  .intro-layout, .docs-preview-layout { gap: 50px; }
  .flow-track { grid-template-columns: minmax(110px, 1fr) 25px minmax(110px, 1fr) 25px minmax(110px, 1fr) 25px minmax(110px, 1fr); }
  .flow-step { padding: 15px 11px; }
  .flow-step h3 { font-size: 11px; }
  .flow-step p { font-size: 9px; }
  .project-grid { gap: 45px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 36px, var(--content)); }
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { min-height: 62px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 45px; }
  .hero-copy { max-width: 650px; }
  .hero h1 { font-size: clamp(38px, 9vw, 57px); }
  .demo-window { max-width: 620px; transform: none; }
  .hero-bottom { flex-wrap: wrap; row-gap: 10px; font-size: 9px; }
  .hero-bottom-line { min-width: 24px; }
  .section { padding: 72px 0; }
  .intro-layout, .docs-preview-layout, .project-grid, .changelog-layout { grid-template-columns: 1fr; gap: 30px; }
  .intro-body { padding-top: 0; }
  .feature-title { align-items: start; flex-direction: column; gap: 13px; }
  .feature-layout { grid-template-columns: 1fr 1fr; }
  .feature-panel-main { grid-column: 1 / -1; }
  .feature-panel-wide { grid-column: 1 / -1; }
  .flow-track { grid-template-columns: 1fr; gap: 0; margin-top: 34px; }
  .flow-step { display: grid; grid-template-columns: 43px 1fr; column-gap: 13px; padding: 16px; }
  .flow-icon { grid-row: span 2; margin: 0; }
  .flow-step h3 { min-height: auto; align-self: end; font-size: 13px; }
  .flow-step p { min-height: auto; margin-top: 3px; font-size: 10px; }
  .flow-connector { width: 1px; height: 18px; margin: 0 0 0 36px; border-top: 0; border-left: 1px solid #5d82ce; }
  .flow-connector::after { display: none; }
  .flow-connector.planned { border-left: 1px dashed #536177; }
  .docs-preview-layout > .section-heading { max-width: 600px; }
  .project-grid { gap: 33px; }
  .developer-row { flex-wrap: wrap; }
  .developer-copy { min-width: calc(100% - 78px); }
  .developer-row .button { margin-left: 68px; }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .docs-layout { display: block; padding-top: 25px; }
  .docs-sidebar { position: static; margin-bottom: 25px; }
  .docs-sidebar > h2, .docs-sidebar > .docs-nav { display: none; }
  .docs-mobile-toc { display: block; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
  .docs-mobile-toc summary { padding: 11px 14px; font-size: 12px; font-weight: 600; cursor: pointer; }
  .docs-mobile-toc .docs-nav { padding: 0 8px 9px; }
  .docs-mobile-toc .docs-nav a { min-height: 34px; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 32px); }
  .brand-name { font-size: 14px; }
  .brand-name span { font-size: 12px; }
  .hero-grid { padding-top: 52px; }
  .eyebrow { font-size: 9px; }
  .hero-description { font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .demo-content { grid-template-columns: 37px 1fr; min-height: auto; }
  .demo-sidebar { gap: 15px; }
  .demo-main { padding: 18px 11px; }
  .demo-badge { max-width: 118px; text-align: center; font-size: 8px; }
  .demo-mode-row { gap: 6px; }
  .demo-mode { gap: 5px; padding: 8px 6px; }
  .demo-mode small { font-size: 7px; }
  .mode-icon { width: 21px; height: 21px; }
  .radio { width: 8px; height: 8px; }
  .demo-table-head, .demo-row { grid-template-columns: minmax(0, 1fr) 66px 35px; gap: 4px; }
  .demo-table-head { font-size: 7px; }
  .demo-row { font-size: 7px; }
  .demo-callout { font-size: 7px; }
  .hero-bottom { gap: 9px; }
  .hero-bottom-line { display: none; }
  .hero-bottom > span:last-child { flex-basis: 100%; padding-left: 16px; }
  .section-heading h2, .project-main h2, .changelog-layout h2 { font-size: 31px; }
  .feature-layout { grid-template-columns: 1fr; }
  .feature-panel-main, .feature-panel-wide { grid-column: auto; }
  .feature-panel-main { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .feature-panel-main .feature-icon { grid-row: auto; }
  .feature-panel-secondary { padding: 20px; }
  .feature-panel-wide { align-items: start; flex-direction: column; padding: 20px; }
  .https-diagram { width: 100%; justify-content: space-between; }
  .flow-caption { flex-wrap: wrap; gap: 12px; }
  .flow-caption a { flex-basis: 100%; margin: 3px 0 0; }
  .quick-steps li { grid-template-columns: 28px 1fr; gap: 10px; }
  .quick-steps code { font-size: 9px; }
  .project-grid { gap: 26px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 27px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-top: 14px; padding-bottom: 14px; }
  .docs-hero { padding: 35px 0 27px; }
  .docs-layout { padding-bottom: 60px; }
  .docs-content h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
