:root {
  color-scheme: dark;
  --bg: #08090a;
  --bg-raised: #101214;
  --surface: #15181b;
  --surface-2: #1d2125;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f7f7f4;
  --muted: #a8acb0;
  --faint: #74797f;
  --accent: #8da4ff;
  --accent-2: #8ef0cf;
  --danger: #ff8f8f;
  --page-gutter: clamp(20px, 6vw, 96px);
  --section-space: clamp(96px, 10vw, 156px);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--sans); line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { color: #070809; background: var(--accent); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; color: #08090a; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 50; height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-weight: 680; letter-spacing: -0.035em; }
.brand svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.brand img { width: 24px; height: 24px; display: block; border-radius: 6px; }
.site-header nav { display: flex; gap: 34px; color: var(--muted); font-size: 13px; }
.site-header nav a, .footer-links a { transition: color 160ms ease; }
.site-header nav a:hover, .footer-links a:hover { color: var(--text); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.lang-toggle, .header-download { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.lang-toggle { gap: 2px; min-width: 94px; padding: 4px; border-color: rgba(255,255,255,.38); background: #121416; font: 700 11px/1 var(--mono); }
.lang-toggle span { min-width: 34px; height: 30px; display: grid; place-items: center; color: var(--faint); transition: color 160ms ease, background 160ms ease; }
.lang-toggle span.is-active { color: #08090a; background: var(--text); }
.lang-toggle i { color: #50555a; font-style: normal; }
.lang-toggle:hover { border-color: var(--accent); }
.header-download { min-width: 110px; padding: 0 15px; font-size: 12px; background: var(--text); color: var(--bg); }
.lang-toggle:focus-visible, .header-download:focus-visible, .button:focus-visible, .workspace-tab:focus-visible, .project-mode-tab:focus-visible, .footer-links a:focus-visible, .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

main { overflow: clip; }
.hero { min-height: calc(100svh - 68px); position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(80px, 10vw, 150px) clamp(20px, 7.5vw, 120px) 80px; border-bottom: 1px solid var(--line); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; opacity: .45; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: min(8vw, 110px) min(8vw, 110px); mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 72%, transparent); }
.hero::after { content: ""; position: absolute; width: min(55vw, 760px); aspect-ratio: 1; right: -18vw; top: 2vh; border-radius: 50%; background: radial-gradient(circle, rgba(141, 164, 255, .13), transparent 67%); filter: blur(6px); pointer-events: none; }
.eyebrow, .section-index { position: relative; margin: 0 0 24px; color: var(--accent); font: 600 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { position: relative; max-width: 1050px; margin: 0; font-size: clamp(58px, 9vw, 142px); font-weight: 520; line-height: .9; letter-spacing: -.075em; }
.hero h1 span { display: block; }
.hero-muted { color: #777d83; }
.hero-copy { position: relative; max-width: 710px; margin: clamp(34px, 5vw, 62px) 0 0; color: #c9cccf; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.6; letter-spacing: -.02em; }
.hero-actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.button { min-width: 190px; min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 18px; border: 1px solid var(--line-strong); font-size: 13px; transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--bg); background: var(--text); border-color: var(--text); }
.button-primary:hover { background: var(--accent); border-color: var(--accent); }
.button-store { min-width: 235px; }
.button-direct.is-secondary { color: var(--text); background: transparent; border-color: var(--line-strong); }
.button-direct.is-secondary:hover { background: var(--surface-2); border-color: rgba(255,255,255,.4); }
.button-quiet:hover { background: var(--surface-2); border-color: rgba(255,255,255,.4); }
.button-github svg { width: 18px; height: 18px; flex: 0 0 auto; }
.hero-note { position: relative; margin: 18px 0 0; color: var(--faint); font: 11px/1.4 var(--mono); }

.app-showcase, .why-section, .field-section, .workflow-section, .process-section, .local-section, .guide-section { padding: var(--section-space) var(--page-gutter); border-bottom: 1px solid var(--line); }
.why-section, .field-section, .workflow-section, .process-section, .local-section, .guide-section, .closing-section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.app-showcase { position: relative; background: #f0efeb; color: #111315; }
.showcase-intro { display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(280px, .85fr); gap: clamp(36px, 7vw, 120px); align-items: end; max-width: 1450px; margin: 0 auto clamp(56px, 6vw, 84px); }
.showcase-intro .section-index { grid-column: 1 / -1; margin-bottom: -18px; color: #4562c8; }
.showcase-intro h2 { max-width: 880px; margin: 0; font-size: clamp(44px, 6.1vw, 92px); font-weight: 540; line-height: .94; letter-spacing: -.067em; }
.showcase-intro h2 span { display: block; }
.showcase-intro > p:last-child { max-width: 580px; margin: 0; color: #64696e; font-size: clamp(15px, 1.3vw, 19px); }
.mode-showcase { max-width: 1500px; margin: 0 auto; color: #eef0f2; border: 1px solid #aeb0ae; background: #0d0f11; box-shadow: 0 60px 120px rgba(17,19,21,.18); }
.mode-switcher { display: grid; grid-template-columns: 1fr 1fr; padding: 8px; border-bottom: 1px solid rgba(255,255,255,.15); background: #090a0b; }
.project-mode-tab { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 22px; border: 1px solid transparent; color: #858b90; background: transparent; cursor: pointer; text-align: left; transition: color 160ms ease, border-color 160ms ease, background 160ms ease; }
.project-mode-tab:first-child { border-right-color: rgba(255,255,255,.12); }
.project-mode-tab:hover { color: #eef0f2; background: #14171a; }
.project-mode-tab.is-active { color: #090a0b; border-color: #eef0f2; background: #eef0f2; }
.project-mode-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.project-mode-tab span { font-size: clamp(14px, 1.2vw, 18px); font-weight: 650; letter-spacing: -.02em; }
.project-mode-tab small { font: 8px/1 var(--mono); letter-spacing: .1em; }
.project-mode-panel { padding: clamp(12px, 1.6vw, 22px); }
.project-mode-panel[hidden] { display: none; }
.project-mode-panel.is-active { animation: mode-panel-in 280ms ease both; }
@keyframes mode-panel-in { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.mode-demo-meta { min-height: 68px; display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; align-items: center; gap: clamp(20px, 4vw, 72px); padding: 12px 6px 20px; }
.mode-demo-meta span { color: #f3f4f5; font-size: clamp(17px, 1.45vw, 22px); font-weight: 650; letter-spacing: -.03em; }
.mode-demo-meta small { max-width: 760px; color: #9ca2a7; font-size: clamp(11px, .9vw, 14px); line-height: 1.6; }
.product-demo-window { overflow: hidden; border: 1px solid #555b60; color: #17191b; background: #f6f7f7; box-shadow: 0 24px 64px rgba(0,0,0,.22); }
.product-demo-window button { font: inherit; }
.demo-appbar { min-height: 48px; display: flex; align-items: stretch; border-bottom: 1px solid #d8dbde; background: #fbfbfa; }
.demo-appbar strong, .demo-appbar > span, .demo-appbar > button { display: flex; align-items: center; }
.demo-appbar strong { gap: 7px; padding: 0 15px; border-right: 1px solid #e0e2e4; font-size: 11px; }
.demo-appbar strong img { border-radius: 3px; background: #111; }
.demo-home { gap: 6px; padding: 0 14px; color: #686d72; font-size: 9px; }
.demo-home b { font-weight: 500; }
.demo-project-tab { min-width: 260px; gap: 8px; padding: 0 13px; border-right: 1px solid #d9dcdf; border-left: 1px solid #d9dcdf; background: #f0f1f1; font-size: 9px; }
.demo-project-tab i { width: 7px; height: 7px; border-radius: 50%; background: #65d5ae; box-shadow: 0 0 0 3px rgba(101,213,174,.12); }
.demo-project-tab small { overflow: hidden; max-width: 105px; color: #8a8f94; font: 7px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.demo-project-tab em { margin-left: auto; color: #858a8f; font-style: normal; }
.demo-new-tab { padding: 0 15px; color: #74797e; }
.demo-appbar-space { flex: 1; }
.demo-appbar > button { min-width: 38px; justify-content: center; padding: 0 10px; border: 0; border-left: 1px solid #e0e2e4; color: #565c61; background: transparent; font-size: 9px; }
.demo-appbody { height: clamp(590px, 51vw, 720px); min-height: 590px; display: grid; grid-template-columns: minmax(245px, 22%) 1fr; }
.demo-chat-panel { min-width: 0; display: grid; grid-template-rows: auto auto 1fr auto auto; border-right: 1px solid #d8dbde; background: #fff; }
.demo-chat-panel > header { min-height: 46px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid #e0e2e4; font-size: 10px; }
.demo-chat-panel > header span { color: #777d82; }
.demo-chat-panel > header b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-chat-panel > header small { padding: 6px 8px; border: 1px solid #d8dbde; border-radius: 12px; color: #6c7277; font: 7px/1 var(--mono); }
.demo-source-strip { display: flex; gap: 4px; padding: 9px 10px 0; overflow: hidden; }
.demo-source-strip span { flex: 0 0 auto; max-width: 92px; overflow: hidden; padding: 5px 7px; border: 1px solid #d9dcdf; border-radius: 12px; color: #62686d; background: #f7f8f8; font: 6px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.demo-chat-thread { min-height: 0; padding: 15px 12px; overflow: hidden; }
.demo-user-message { margin-left: 14%; padding: 12px 13px; border-radius: 14px 14px 3px 14px; color: #fff; background: #151719; font-size: 9px; line-height: 1.55; }
.demo-agent-label { display: flex; align-items: center; gap: 7px; margin: 26px 0 11px; font-size: 9px; }
.demo-agent-label i { width: 9px; height: 9px; border-radius: 3px; background: #6e7df2; box-shadow: inset 0 0 0 2px #cbd0ff; }
.demo-agent-label span { margin-left: auto; color: #7d8388; font: 7px/1 var(--mono); }
.demo-run-list { margin: 0; padding: 0; border: 1px solid #e0e2e4; list-style: none; }
.demo-run-list li { min-height: 52px; display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 8px; padding: 7px 9px; border-bottom: 1px solid #e6e8e9; }
.demo-run-list li:last-child { border-bottom: 0; }
.demo-run-list li > i { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #202326; font: normal 7px/1 var(--mono); }
.demo-run-list li.is-live > i { border: 2px solid #bac3f8; border-top-color: #526ae5; background: transparent; animation: demo-spin 1.1s linear infinite; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
.demo-run-list b, .demo-run-list small { display: block; }
.demo-run-list b { font-size: 8px; }
.demo-run-list small { margin-top: 5px; color: #7c8287; font: 6px/1 var(--mono); }
.demo-composer { margin: 10px; padding: 10px; border: 1px solid #d8dbde; border-radius: 10px; color: #8b9094; font-size: 8px; }
.demo-composer footer { min-height: 25px; display: flex; align-items: end; gap: 6px; margin-top: 22px; }
.demo-composer footer i { font-style: normal; font-size: 13px; }
.demo-composer footer b { margin-left: auto; color: #666c71; font-weight: 500; }
.demo-composer footer button { width: 24px; height: 24px; border: 0; border-radius: 50%; color: #fff; background: #17191b; }
.demo-working-dir { padding: 0 12px 11px; color: #757b80; font: 7px/1 var(--mono); }
.demo-working-dir span { display: inline-block; overflow: hidden; max-width: 170px; margin: 0 5px; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.demo-main-panel { min-width: 0; display: grid; grid-template-rows: auto auto 1fr; }
.demo-file-tabs { min-height: 45px; display: flex; align-items: stretch; gap: 0; border-bottom: 1px solid #d9dcdf; background: #fff; }
.demo-file-tabs > * { min-width: 116px; display: flex; align-items: center; justify-content: center; padding: 0 13px; border-right: 1px solid #e0e2e4; color: #777d82; font-size: 8px; }
.demo-file-tabs b { color: #17191b; border-bottom: 2px solid #17191b; font-weight: 650; }
.demo-file-tabs i { min-width: 42px; justify-content: center; font-style: normal; }
.demo-dev-toolbar, .demo-doc-toolbar { min-height: 40px; display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-bottom: 1px solid #d9dcdf; background: #f7f8f8; }
.demo-dev-toolbar > span, .demo-doc-toolbar > span { flex: 1; }
.demo-dev-toolbar button, .demo-doc-toolbar button { min-height: 27px; padding: 0 9px; border: 1px solid #d2d6d9; border-radius: 5px; color: #4d5358; background: #fff; font-size: 7px; white-space: nowrap; }
.demo-dev-toolbar button.is-primary, .demo-doc-toolbar button.is-primary { color: #fff; border-color: #17191b; background: #17191b; }
.demo-dev-toolbar button.is-checked { color: #17191b; border-color: #aeb4b9; }
.demo-dev-toolbar button i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #63d5ad; }
.demo-browser-toolbar { display: grid; grid-template-rows: auto auto; border-bottom: 1px solid #d9dcdf; background: #fff; }
.demo-browser-actions { min-height: 42px; display: flex; justify-content: center; align-items: center; gap: 4px; padding: 5px; border-bottom: 1px solid #e1e3e5; }
.demo-browser-actions button { min-height: 27px; padding: 0 10px; border: 1px solid transparent; border-radius: 5px; color: #646a6f; background: transparent; font-size: 7px; }
.demo-browser-actions button.is-selected { color: #1f42b9; border-color: #7f98f2; background: #edf1ff; }
.demo-browser-actions button.draw { color: #a95912; }
.demo-address { min-height: 36px; display: grid; grid-template-columns: auto auto auto 1fr auto; align-items: center; gap: 8px; padding: 4px 10px; color: #757b80; font: 7px/1 var(--mono); }
.demo-address b { min-height: 25px; display: flex; align-items: center; padding: 0 10px; border: 1px solid #d9dcdf; border-radius: 12px; color: #545a5f; background: #f7f8f8; font-weight: 500; }
.demo-address em { color: #238466; font-style: normal; }
.demo-browser-canvas { min-height: 0; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; background: #f3f4f4; }
.demo-site-header { min-height: 47px; display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid #e0e2e4; background: #fff; }
.demo-site-header strong { font: 9px/1 var(--mono); }
.demo-site-header nav { display: flex; align-self: stretch; gap: 22px; color: #777d82; font-size: 7px; }
.demo-site-header nav span { display: flex; align-items: center; }
.demo-site-header nav span.is-active { color: #17191b; border-bottom: 2px solid #17191b; }
.demo-site-header button { width: 25px; height: 25px; margin-left: auto; border: 0; border-radius: 50%; color: #fff; background: #17191b; font-size: 7px; }
.demo-site-content { position: relative; min-height: 0; padding: 22px clamp(18px, 3vw, 40px); overflow: hidden; }
.demo-site-content > header { display: flex; justify-content: space-between; align-items: end; }
.demo-site-content > header small { color: #83898e; font: 6px/1 var(--mono); letter-spacing: .12em; }
.demo-site-content > header h3 { margin: 7px 0 0; font-size: 26px; letter-spacing: -.05em; }
.demo-site-content > header > button { position: relative; min-height: 34px; padding: 0 14px; border: 2px solid #597bed; color: #fff; background: #17191b; font-size: 8px; }
.demo-site-content > header > button i, .demo-draw-region > i, .demo-inspect-card > i, .demo-adjust-chip > i, .demo-doc-marker { position: absolute; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #2167e8; box-shadow: 0 0 0 2px #fff; font: normal 7px/1 var(--mono); }
.demo-site-content > header > button i { top: -11px; right: -10px; }
.demo-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 19px 0 12px; }
.demo-metrics > span { min-width: 0; padding: 12px; border: 1px solid #dadddf; background: #fff; }
.demo-metrics small, .demo-metrics b, .demo-metrics em { display: block; }
.demo-metrics small { color: #7e8489; font-size: 7px; }
.demo-metrics b { margin-top: 7px; font: 18px/1 var(--mono); }
.demo-metrics em { margin-top: 7px; color: #288268; font: normal 6px/1 var(--mono); }
.demo-draw-region { position: relative; padding: 9px; border: 2px dashed #ef8b36; background: rgba(255,245,232,.65); }
.demo-draw-region > i { top: -10px; left: -10px; background: #df7a21; }
.demo-draw-region > div { display: flex; gap: 7px; align-items: center; }
.demo-draw-region b, .demo-draw-region span { min-height: 28px; display: flex; align-items: center; padding: 0 10px; border: 1px solid #dadddf; color: #62686d; background: #fff; font-size: 7px; }
.demo-draw-region b { flex: 1; font-weight: 500; }
.demo-orders-table { margin-top: 12px; border: 1px solid #dadddf; background: #fff; }
.demo-orders-table header, .demo-orders-table p { display: grid; grid-template-columns: 1fr 1.4fr 1fr .7fr; align-items: center; margin: 0; padding: 0 12px; }
.demo-orders-table header { min-height: 29px; color: #8a9095; background: #f0f1f1; font: 6px/1 var(--mono); }
.demo-orders-table p { min-height: 37px; border-top: 1px solid #e4e6e7; font: 7px/1 var(--mono); }
.demo-orders-table p span:nth-child(3) { color: #3d6f60; }
.demo-orders-table p i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #66d2ac; }
.demo-inspect-card { position: absolute; right: 8%; bottom: 17%; min-width: 175px; padding: 10px 12px; border: 1px solid #3b3f43; color: #fff; background: #17191b; box-shadow: 0 12px 35px rgba(0,0,0,.2); }
.demo-inspect-card > i { top: -9px; left: -9px; }
.demo-inspect-card small, .demo-inspect-card b, .demo-inspect-card span { display: block; }
.demo-inspect-card small { color: #8fa7ff; font: 6px/1 var(--mono); }
.demo-inspect-card b { margin-top: 7px; font: 8px/1 var(--mono); }
.demo-inspect-card span { margin-top: 7px; color: #a9afb4; font: 6px/1 var(--mono); }
.demo-adjust-chip { position: absolute; left: 6%; bottom: 7%; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 17px; border: 1px solid #cfd3d6; background: #fff; box-shadow: 0 8px 24px rgba(32,35,38,.1); font-size: 7px; }
.demo-adjust-chip > i { top: -8px; left: -8px; background: #48535e; }
.demo-adjust-chip span { color: #777d82; }
.demo-adjust-chip b { font: 7px/1 var(--mono); }
.demo-review-bar { min-height: 52px; display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-top: 1px solid #d9dcdf; background: #fff; overflow: hidden; }
.demo-review-bar strong { white-space: nowrap; font-size: 8px; }
.demo-review-bar strong b { min-width: 17px; height: 17px; display: inline-grid; place-items: center; margin-left: 4px; border-radius: 50%; color: #fff; background: #17191b; font: 6px/1 var(--mono); }
.demo-review-bar > span { overflow: hidden; max-width: 140px; padding: 7px 8px; color: #5e6469; border: 1px solid #dadddf; background: #f8f8f7; font: 6px/1 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.demo-review-bar em { font-style: normal; }
.demo-review-bar button { margin-left: auto; padding: 9px 11px; border: 0; color: #fff; background: #17191b; font-size: 7px; white-space: nowrap; }
.mode-demo-caption { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 4px 0; color: #8a9197; font: 9px/1.5 var(--mono); }
.mode-demo-caption b { color: #c0c5c9; font-weight: 400; }
.demo-doc-toolbar button.is-selected { color: #1f42b9; border-color: #7f98f2; background: #edf1ff; }
.demo-doc-workspace { min-height: 0; display: grid; grid-template-columns: 86px minmax(420px, 1fr) 190px; background: #eceeed; }
.demo-page-rail { display: flex; flex-direction: column; gap: 6px; padding: 13px 9px; border-right: 1px solid #d6d9dc; background: #f7f8f8; }
.demo-page-rail > b { margin-bottom: 4px; color: #858b90; font: 7px/1 var(--mono); }
.demo-page-rail > span { min-height: 54px; display: grid; place-items: center; border: 1px solid #d5d9dc; color: #70767b; background: #fff; font: 6px/1 var(--mono); }
.demo-page-rail > span.is-active { color: #1f42b9; border: 2px solid #597bed; }
.demo-page-rail small { margin-top: auto; color: #8a9095; text-align: center; font: 6px/1 var(--mono); }
.demo-doc-canvas { min-width: 0; display: grid; place-items: center; padding: clamp(14px, 2vw, 28px); overflow: hidden; }
.demo-spec-sheet { position: relative; width: min(100%, 620px); padding: clamp(18px, 2.5vw, 34px); border: 1px solid #cdd1d4; background: #fff; box-shadow: 0 18px 42px rgba(38,42,45,.12); }
.demo-spec-sheet > header { display: flex; justify-content: space-between; align-items: start; padding-bottom: 16px; border-bottom: 2px solid #17191b; }
.demo-spec-sheet > header small { color: #6c7277; font: 6px/1 var(--mono); letter-spacing: .12em; }
.demo-spec-sheet > header h3 { margin: 7px 0 5px; font-size: 21px; letter-spacing: -.04em; }
.demo-spec-sheet > header span { color: #858b90; font: 6px/1 var(--mono); }
.demo-spec-sheet > header > b { padding: 7px 10px; color: #fff; background: #17191b; font: 7px/1 var(--mono); }
.demo-spec-summary { display: grid; grid-template-columns: 1.4fr .8fr 1fr; margin: 14px 0; border-top: 1px solid #dadddf; border-left: 1px solid #dadddf; }
.demo-spec-summary span { padding: 9px; border-right: 1px solid #dadddf; border-bottom: 1px solid #dadddf; }
.demo-spec-summary small, .demo-spec-summary b { display: block; }
.demo-spec-summary small { color: #848a8f; font: 6px/1 var(--mono); }
.demo-spec-summary b { margin-top: 6px; font: 7px/1 var(--mono); }
.demo-spec-sheet section { margin-top: 14px; }
.demo-spec-sheet h4 { margin: 0 0 6px; font: 7px/1 var(--mono); letter-spacing: .08em; }
.demo-spec-table { display: grid; grid-template-columns: 1.1fr .7fr .7fr 1.5fr; border-top: 1px solid #dadddf; border-left: 1px solid #dadddf; }
.demo-spec-table > * { min-height: 28px; display: flex; align-items: center; padding: 0 7px; border-right: 1px solid #dadddf; border-bottom: 1px solid #dadddf; font: 6px/1.2 var(--mono); }
.demo-spec-table > b { color: #5e6469; background: #eef0f0; }
.demo-spec-sheet > footer { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 11px; color: #265f4c; background: #e8f4ef; }
.demo-spec-sheet > footer span { font-size: 7px; }
.demo-spec-sheet > footer small { margin-left: auto; color: #5f736c; font: 6px/1 var(--mono); }
.demo-doc-marker { top: 45%; right: -10px; }
.demo-doc-review { min-width: 0; padding: 12px 10px; border-left: 1px solid #d6d9dc; background: #f7f8f8; }
.demo-doc-review > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; font-size: 8px; }
.demo-doc-review > header span { color: #2a8065; font: 7px/1 var(--mono); }
.demo-doc-review section { margin-bottom: 8px; padding: 10px; border: 1px solid #d7dadd; background: #fff; }
.demo-doc-review section > small { color: #7d8388; font: 6px/1 var(--mono); }
.demo-doc-review p { display: flex; align-items: center; gap: 5px; margin: 8px 0 0; color: #555b60; font: 6px/1.25 var(--mono); }
.demo-doc-review p i { width: 5px; height: 5px; border-radius: 50%; background: #63d5ad; }
.demo-doc-review .demo-comment { border-left: 2px solid #597bed; }
.demo-comment b, .demo-comment span { display: block; }
.demo-comment b { margin-top: 9px; font-size: 7px; line-height: 1.35; }
.demo-comment span { margin-top: 7px; color: #7c8287; font: 6px/1.3 var(--mono); }

.guide-section { display: grid; grid-template-columns: minmax(340px, .9fr) minmax(360px, .72fr); gap: clamp(48px, 9vw, 150px); align-items: center; background: #0b0d0f; }
.guide-copy h2 { max-width: 760px; margin: 0 0 26px; font-size: clamp(44px, 5.6vw, 82px); line-height: .95; letter-spacing: -.06em; font-weight: 520; }
.guide-copy > p:not(.section-index, .guide-meta) { max-width: 720px; margin: 0; color: var(--muted); font-size: 16px; }
.guide-outline { margin: 38px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.guide-outline li { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); }
.guide-outline span { color: var(--accent); font: 9px/1 var(--mono); }
.guide-outline b { font-size: 13px; font-weight: 500; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.guide-meta { margin: 14px 0 0; color: var(--faint); font: 9px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.guide-preview { position: relative; justify-self: center; width: min(100%, 470px); padding: 18px 18px 0; border: 1px solid var(--line-strong); background: #161a1e; box-shadow: 0 42px 100px rgba(0,0,0,.38); transition: transform .18s ease, border-color .18s ease; }
.guide-preview:hover { transform: translateY(-4px); border-color: rgba(141,164,255,.72); }
.guide-preview:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.guide-preview img { display: block; width: 100%; height: auto; background: #f7f7f5; }
.guide-preview > span { display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: var(--faint); font: 9px/1 var(--mono); }
.guide-preview b { color: var(--text); font-weight: 500; }
.guide-preview em { color: var(--accent); font-style: normal; }

.site-footer { min-height: 330px; display: flex; flex-direction: column; padding: clamp(64px, 7vw, 96px) var(--page-gutter) 30px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.footer-main { width: min(100%, 1450px); margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: clamp(40px, 8vw, 130px); }
.footer-identity { min-width: 220px; }
.footer-brand { color: var(--text); font-size: 17px; }
.footer-identity p { margin: 13px 0 0; color: var(--faint); font: 10px/1.5 var(--mono); letter-spacing: .035em; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px clamp(22px, 3vw, 44px); color: var(--muted); font-size: 13px; }
.footer-links a { position: relative; padding: 7px 0; }
.footer-links a::after { content: "↗"; margin-left: 7px; color: var(--faint); font: 9px/1 var(--mono); }
.footer-legal { width: min(100%, 1450px); margin: auto auto 0; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font: 11px/1.5 var(--mono); letter-spacing: .025em; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { min-height: auto; padding-top: 120px; }
  .showcase-intro, .why-heading, .section-heading, .split-heading, .local-section, .guide-section { grid-template-columns: 1fr; }
  .showcase-intro .section-index, .why-heading .section-index { margin-bottom: -8px; }
  .product-demo-window { overflow-x: auto; scrollbar-width: thin; }
  .demo-appbar, .demo-appbody { min-width: 980px; }
  .why-grid { grid-template-columns: 1fr; }
  .section-heading .section-index { margin-bottom: -12px; }
  .workspace-panel[data-workspace-panel="code"] { grid-template-columns: 180px 1fr; }
  .browser-page { grid-template-columns: 1fr; }
  .browser-card { display: none; }
  .workflow-lines article { grid-template-columns: 44px 1fr; }
  .workflow-lines article ul { grid-column: 2; }
  .boundary-diagram { grid-template-columns: 1fr 80px 1fr; }
  .guide-preview { margin-top: 20px; }
  .footer-main { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 620px) {
  .site-header { height: 58px; padding: 0 15px; }
  .header-download { display: none; }
  .lang-toggle { min-width: 90px; }
  .hero { padding: 100px 20px 64px; }
  .hero h1 { font-size: clamp(52px, 18vw, 80px); }
  .hero-actions { width: 100%; flex-direction: column; }
  .button { width: 100%; }
  .app-showcase, .why-section, .field-section, .workflow-section, .process-section, .local-section, .guide-section { padding: 80px 20px; }
  .app-showcase { padding-right: 0; padding-left: 0; }
  .showcase-intro { padding: 0 20px; gap: 24px; }
  .mode-showcase { border-right: 0; border-left: 0; }
  .mode-switcher { padding: 5px; }
  .project-mode-tab { min-height: 70px; display: grid; align-content: center; gap: 8px; padding: 0 12px; }
  .project-mode-tab small { font-size: 6px; }
  .project-mode-panel { padding: 6px; }
  .mode-demo-meta { grid-template-columns: 1fr; gap: 6px; padding: 12px 5px 15px; }
  .mode-demo-caption { display: block; padding: 10px 5px 5px; }
  .mode-demo-caption b { display: block; margin-top: 6px; }
  .why-heading { gap: 24px; }
  .why-grid { margin-right: -16px; margin-left: -16px; border-left: 0; }
  .why-grid > article { padding: 46px 16px; border-right: 0; }
  .why-copy { min-height: 0; }
  .why-visual { min-height: 235px; margin-top: 32px; }
  .context-links { grid-template-columns: 1fr; }
  .why-verify { padding-right: 12px; padding-left: 12px; }
  .why-verify ol { margin-right: -12px; margin-left: -12px; }
  .why-verify li { grid-template-columns: 1fr; justify-items: center; padding: 8px 4px; text-align: center; }
  .why-output { grid-template-columns: 1fr; }
  .why-output > i { transform: rotate(90deg); text-align: center; }
  .why-output footer { grid-column: 1; }
  .why-boundary { grid-template-columns: 1fr; }
  .why-boundary > i { padding: 8px 0; transform: rotate(90deg); }
  .section-heading { gap: 24px; }
  .split-heading .section-index { margin-bottom: 42px; }
  .product-shell { margin-right: -16px; margin-left: -16px; border-right: 0; border-left: 0; }
  .product-titlebar { grid-template-columns: auto 1fr; }
  .project-path { justify-self: center; }
  .runtime-pill { display: none; }
  .workspace-panel { min-height: 480px; }
  .workspace-panel[data-workspace-panel="code"] { grid-template-columns: 1fr; }
  .file-rail { display: none; }
  .browser-preview { margin: 8px; }
  .browser-page { min-height: 400px; padding: 38px 24px; }
  .field-caption { display: block; padding: 0 4px; }
  .field-caption b { display: block; margin-top: 6px; }
  .workflow-lines article { grid-template-columns: 32px 1fr; gap: 12px; }
  .workflow-lines article ul { grid-column: 1 / -1; margin-top: 18px; }
  .process-track li { grid-template-columns: 44px 1fr; gap: 10px; }
  .boundary-diagram { grid-template-columns: 1fr; }
  .boundary-arrow { min-height: 110px; }
  .boundary-arrow i { transform: rotate(90deg); }
  .guide-copy h2 { font-size: clamp(42px, 14vw, 64px); }
  .guide-actions { flex-direction: column; }
  .guide-actions .button { width: 100%; }
  .guide-preview { width: 100%; padding: 10px 10px 0; }
  .document-preview { grid-template-columns: 1fr; }
  .document-preview aside { display: none; }
  .sheet { margin: 14px; padding: 20px; }
  .schema-row { grid-template-columns: 1.2fr 1fr .6fr; padding: 0 12px; font-size: 9px; }
  .schema-row span:nth-child(2) { display: none; }
  .data-toolbar { padding: 0 12px; }
  .data-toolbar small { display: none; }
  .site-footer { min-height: 300px; padding: 58px 20px 24px; }
  .footer-main { gap: 28px; }
  .footer-links { max-width: 320px; flex-wrap: wrap; gap: 8px 22px; }
  .footer-legal { padding-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Concise landing: the product surface carries the detail. */
.hero {
  min-height: min(680px, calc(100svh - 68px));
  padding-top: clamp(84px, 9vw, 126px);
  padding-bottom: clamp(64px, 7vw, 96px);
}
.hero h1 { max-width: 1180px; font-size: clamp(66px, 9.2vw, 140px); }
.hero h1 .hero-muted { margin-top: .08em; font-size: .46em; line-height: 1.05; letter-spacing: -.055em; }
.hero-copy { max-width: 650px; margin-top: clamp(28px, 3.5vw, 44px); font-size: clamp(16px, 1.25vw, 19px); }
.hero > :not(.hero-grid) { animation: concise-rise 560ms cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { animation-delay: 50ms; }
.hero-copy { animation-delay: 100ms; }
.hero-actions { animation-delay: 150ms; }
.hero-note { animation-delay: 200ms; }
@keyframes concise-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.app-showcase { padding-top: clamp(72px, 6vw, 92px); padding-bottom: clamp(72px, 6vw, 92px); }
.showcase-intro { margin-bottom: clamp(38px, 4vw, 56px); }
.showcase-intro h2 { font-size: clamp(48px, 5.4vw, 80px); }
.mode-showcase { box-shadow: 0 38px 90px rgba(17,19,21,.16); }
.mode-demo-meta { min-height: 58px; padding-top: 8px; padding-bottom: 14px; }
.mode-demo-meta small { max-width: 620px; }
.demo-appbody { height: clamp(540px, 42vw, 610px); min-height: 540px; }

.essentials-section {
  padding: clamp(76px, 7vw, 104px) var(--page-gutter);
  border-bottom: 1px solid var(--line);
  background: #08090a;
}
.essentials-heading,
.essentials-list { width: min(100%, 1450px); margin-inline: auto; }
.essentials-heading { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(520px,1.28fr); gap: clamp(34px,7vw,110px); align-items: end; margin-bottom: clamp(40px,4vw,58px); }
.essentials-heading .section-index { grid-column: 1 / -1; margin-bottom: -12px; }
.essentials-heading h2 { grid-column: 2; max-width: 850px; margin: 0; font-size: clamp(44px,5.3vw,78px); font-weight: 520; line-height: .96; letter-spacing: -.06em; }
.essentials-list { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line-strong); }
.essentials-list article { min-width: 0; padding: clamp(28px,3.5vw,52px) clamp(18px,3vw,44px) clamp(22px,3vw,40px) 0; border-right: 1px solid var(--line); }
.essentials-list article + article { padding-left: clamp(18px,3vw,44px); }
.essentials-list article:last-child { padding-right: 0; border-right: 0; }
.essentials-list span { color: var(--accent); font: 600 9px/1 var(--mono); }
.essentials-list h3 { margin: 24px 0 15px; font-size: clamp(24px,2.2vw,34px); font-weight: 540; letter-spacing: -.045em; }
.essentials-list p { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.guide-section {
  min-height: 520px;
  display: block;
  padding: clamp(78px,7vw,104px) var(--page-gutter);
  background: #0d0f11;
  content-visibility: visible;
  contain-intrinsic-size: none;
}
.guide-copy { width: min(100%, 1080px); margin: 0 auto; text-align: center; }
.guide-copy .section-index { margin-bottom: 28px; }
.guide-copy h2 { max-width: 980px; margin: 0 auto 24px; font-size: clamp(48px,6vw,88px); }
.guide-copy > p:not(.section-index, .guide-meta) { max-width: 630px; margin: 0 auto; font-size: 15px; }
.guide-outline,
.guide-preview { display: none; }
.guide-actions { justify-content: center; margin-top: 34px; }
.guide-actions .button { min-width: 210px; }
.guide-actions .button:nth-child(2) { color: var(--text); background: transparent; border-color: var(--line-strong); }
.guide-actions .button:nth-child(2):hover { background: var(--surface-2); border-color: rgba(255,255,255,.4); }
.guide-meta { text-align: center; }

.site-footer { min-height: 170px; padding-top: 46px; padding-bottom: 22px; }
.site-footer { content-visibility: visible; contain-intrinsic-size: none; }
.footer-main { align-items: center; }
.footer-identity p { margin-top: 8px; }
.footer-legal { margin-top: 38px; padding-top: 18px; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .essentials-heading { grid-template-columns: 1fr; gap: 24px; }
  .essentials-heading .section-index,
  .essentials-heading h2 { grid-column: 1; }
  .essentials-list { grid-template-columns: 1fr; }
  .essentials-list article,
  .essentials-list article + article { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .essentials-list article:last-child { border-bottom: 0; }
  .essentials-list p { max-width: 620px; }
}

@media (max-width: 620px) {
  .hero { padding-top: 92px; padding-bottom: 66px; }
  .hero h1 { font-size: clamp(58px,18vw,78px); }
  .hero h1 .hero-muted { font-size: .4em; line-height: 1.14; }
  .hero-copy { margin-top: 28px; }
  .hero-note { font-size: 9px; }
  .app-showcase,
  .essentials-section,
  .guide-section { padding: 72px 20px; }
  .showcase-intro h2,
  .essentials-heading h2 { font-size: clamp(42px,13vw,58px); }
  .mode-demo-meta { min-height: 0; }
  .guide-section { min-height: 0; }
  .guide-copy h2 { font-size: clamp(44px,13.5vw,62px); }
  .guide-actions { width: 100%; flex-direction: column; }
  .guide-actions .button { width: 100%; }
  .site-footer { min-height: 210px; padding-top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero > :not(.hero-grid) { animation: none; }
}
