/* VoltexaHub product site. One stylesheet for marketing pages and the docs shell.
   Fonts are self-hosted (OFL-1.1, see assets/fonts/README.md): no third-party requests. */

@font-face {
  font-family: 'Bricolage';
  src: url('/assets/fonts/bricolage-grotesque.woff2') format('woff2-variations'), url('/assets/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2-variations'), url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0d0a1e;
  --night-2: #16122f;
  --night-3: #1f1a42;
  --line: #2a2452;
  --line-soft: #211c44;
  --text: #eeebfa;
  --muted: #aaa4c8;
  --dim: #7d77a3;
  --violet: #8f72ff;
  --violet-deep: #7054d5;
  --violet-ink: #c9bcff;
  --lamp: #ffb65c;
  --paper: #f3f1fb;
  --paper-ink: #1b1636;
  --paper-muted: #5c5680;
  --paper-line: #dcd7ef;
  --sans: 'Bricolage', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --shell: min(100% - 48px, 1200px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-variation-settings: 'opsz' 14;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 7.2vw, 6.4rem); font-variation-settings: 'opsz' 96; letter-spacing: -0.03em; font-weight: 680; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); font-variation-settings: 'opsz' 72; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; font-variation-settings: 'opsz' 24; }
code, kbd, pre { font-family: var(--mono); font-size: 0.86em; font-variant-ligatures: none; }
pre code { font-size: inherit; }
:focus-visible { outline: 3px solid var(--violet-ink); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--violet); color: #fff; }

.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--paper-ink); border-radius: var(--radius-s); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; flex-shrink: 0; }
.brand svg { width: 32px; height: 32px; }
.brand span span { font-weight: 400; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.site-nav a { padding: 8px 12px; border-radius: var(--radius-s); color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--text); background: var(--night-2); }
.site-nav a[aria-current="page"] { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle, .nav-mobile-cta { display: none; }
.beta-tag { font-size: 12px; font-weight: 600; color: var(--lamp); border: 1px solid color-mix(in srgb, var(--lamp) 40%, transparent); padding: 2px 8px; border-radius: 99px; letter-spacing: 0.01em; }

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button-primary { background: var(--violet-deep); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18); }
.button-primary:hover { background: #7d62e6; }
.button-quiet { border-color: var(--line); color: var(--text); background: transparent; }
.button-quiet:hover { border-color: var(--dim); background: var(--night-2); }
.button-small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.text-link { color: var(--violet-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--violet-ink) 45%, transparent); }
.text-link:hover { text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 0; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1;
  background:
    radial-gradient(48% 52% at 72% 38%, rgb(112 84 213 / 0.34), transparent 70%),
    radial-gradient(30% 34% at 20% 8%, rgb(255 182 92 / 0.07), transparent 70%);
  pointer-events: none;
}
.hero-copy { max-width: 900px; }
.status-line { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 14px; text-decoration: none; background: rgb(22 18 47 / 0.6); }
.status-line:hover { border-color: var(--dim); color: var(--text); }
.status-line strong { color: var(--text); font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 4px rgb(255 182 92 / 0.16); }
.hero h1 { max-width: 13ch; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.55; color: var(--muted); max-width: 40em; margin: 28px 0 0; }
.lede strong { color: var(--text); font-weight: 600; }

/* Stage: terminal + real screen */
.stage { position: relative; margin-top: 72px; padding-bottom: 96px; }
.stage-screen {
  margin: 0 0 0 auto; width: 82%;
  border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--night-2);
  box-shadow: 0 40px 120px -30px rgb(112 84 213 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.03);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #1a1636; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3366; }
.window-bar span { margin: 0 auto; font-size: 12.5px; color: var(--dim); font-family: var(--mono); padding-right: 50px; }
.stage-screen img { width: 100%; }
.terminal {
  position: absolute; left: 0; bottom: 40px; width: min(520px, 46%);
  border-radius: var(--radius-m); overflow: hidden;
  background: #0a0818; border: 1px solid #332c63;
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.75);
}
.terminal .window-bar { background: #120f26; }
.terminal pre { margin: 0; padding: 18px 20px 20px; font-size: 13px; line-height: 1.75; color: #cfc9ea; white-space: pre-wrap; word-break: break-word; }
.terminal .t-line { display: block; }
.terminal .t-prompt { color: var(--violet-ink); }
.terminal .t-ok { color: #8be0b4; }
.terminal .t-step { color: var(--dim); }
.terminal .t-key { color: var(--lamp); }
.terminal .t-cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -0.2em; background: var(--lamp); margin-left: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .terminal .t-line { opacity: 0; animation: t-in .01s linear forwards; }
  .terminal .t-line:nth-child(1) { animation-delay: .3s; }
  .terminal .t-line:nth-child(2) { animation-delay: 1.1s; }
  .terminal .t-line:nth-child(3) { animation-delay: 1.5s; }
  .terminal .t-line:nth-child(4) { animation-delay: 1.9s; }
  .terminal .t-line:nth-child(5) { animation-delay: 2.5s; }
  .terminal .t-line:nth-child(6) { animation-delay: 3.2s; }
  .terminal .t-line:nth-child(7) { animation-delay: 3.6s; }
  .terminal .t-line:nth-child(8) { animation-delay: 4.1s; }
  .terminal .t-line:nth-child(9) { animation-delay: 4.3s; }
  .terminal .t-line:nth-child(10) { animation-delay: 4.5s; }
  .terminal .t-line:nth-child(11) { animation-delay: 4.7s; }
  .stage-screen { opacity: 0; transform: translateY(24px) scale(.985); animation: screen-in .9s cubic-bezier(.2,.7,.2,1) 3.4s forwards; }
  .terminal .t-cursor { animation: blink 1s steps(1) infinite; }
}
@keyframes t-in { to { opacity: 1; } }
@keyframes screen-in { to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* Facts under the hero */
.facts { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.facts ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 28px 24px 28px 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.facts strong { display: block; font-size: 1.08rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: 15px; line-height: 1.5; display: block; }

/* ---------- Sections ---------- */
.section { padding: 128px 0; position: relative; }
.section-tight { padding: 88px 0; }
.section:not(.paper) + .section:not(.paper), .section:not(.paper) + .section-tight, .section-tight + .section:not(.paper) { padding-top: 32px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin-top: 22px; max-width: 38em; }
.kicker { display: inline-block; margin-bottom: 18px; color: var(--violet-ink); font-weight: 600; font-size: 15px; letter-spacing: 0; }
.body-copy { color: var(--muted); }
.space-top { margin-top: 96px; }
.space-top-s { margin-top: 28px; }
.space-top-xs { margin-top: 20px; }

/* Split: copy + screenshot that bleeds off the edge */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.feature + .feature { margin-top: 140px; }
.feature-copy h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.feature-copy > p { color: var(--muted); font-size: 1.12rem; margin-top: 22px; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.bleed-right { margin-right: calc((100vw - min(100vw - 48px, 1200px)) / -2); }
.bleed-left { margin-left: calc((100vw - min(100vw - 48px, 1200px)) / -2); }
.shot {
  margin: 0; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line);
  background: var(--night-2); box-shadow: 0 30px 90px -40px rgb(0 0 0 / 0.9);
}
.bleed-right .shot, .shot.bleed-right { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
.bleed-left .shot, .shot.bleed-left { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 0; }
.shot figcaption { padding: 12px 18px; font-size: 13px; color: var(--dim); border-top: 1px solid var(--line); }

.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg); }
.ticks strong { color: var(--text); font-weight: 600; }
.ticks.plain li::before { width: 7px; height: 7px; left: 4px; top: .62em; border: 0; border-radius: 50%; background: var(--lamp); transform: none; }
.feature.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }

/* Paper section: shows the light theme */
.paper { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.paper .kicker { color: var(--violet-deep); }
.paper .section-head p, .paper .feature-copy > p, .paper .ticks li, .paper .body-copy { color: var(--paper-muted); }
.paper .ticks strong { color: var(--paper-ink); }
.paper .ticks li::before { border-color: var(--violet-deep); }
.paper .shot { border-color: var(--paper-line); background: #fff; box-shadow: 0 30px 80px -40px rgb(40 28 110 / 0.45); }
.paper .text-link { color: var(--violet-deep); text-decoration-color: color-mix(in srgb, var(--violet-deep) 45%, transparent); }
.paper .button-quiet { border-color: var(--paper-line); color: var(--paper-ink); }
.paper .button-quiet:hover { background: #fff; border-color: var(--paper-muted); }
.paper :focus-visible { outline-color: var(--violet-deep); }

/* Pair of screens */
.duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.duo .shot:last-child { margin-top: 64px; }
.duo.with-phone { grid-template-columns: minmax(0, 1fr) 220px; align-items: end; }
.duo.with-phone .shot:last-child { margin-top: 0; border-radius: 28px; border-width: 6px; border-color: #2a2452; }

/* Grid of short capability notes (no cards) */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.notes > div { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line-soft); }
.notes > div:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line-soft); }
.notes h3 { margin-bottom: 10px; }
.notes p { color: var(--muted); font-size: 16px; margin: 0; }
.paper .notes { border-color: var(--paper-line); }
.paper .notes > div { border-color: var(--paper-line); }
.paper .notes p { color: var(--paper-muted); }

/* ---------- Self-hosting / CLI ---------- */
.ops { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.console {
  border-radius: var(--radius-l); overflow: hidden; border: 1px solid #332c63; background: #0a0818;
}
.console .window-bar { background: #120f26; }
.cmd-list { margin: 0; padding: 10px 0; list-style: none; }
.cmd-list li { display: grid; grid-template-columns: 13.5em 1fr; gap: 20px; padding: 14px 24px; border-bottom: 1px solid #1c1838; align-items: baseline; }
.cmd-list li:last-child { border-bottom: 0; }
.cmd-list code { color: var(--violet-ink); font-size: 14px; white-space: nowrap; }
.cmd-list code b { color: var(--lamp); font-weight: 500; }
.cmd-list span { color: var(--muted); font-size: 15.5px; line-height: 1.5; }

.install-box { margin-top: 32px; border: 1px solid #332c63; border-radius: var(--radius-m); background: #0a0818; overflow: hidden; }
.install-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid #1c1838; color: var(--dim); font-size: 13.5px; }
.install-box pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-size: 14.5px; line-height: 1.8; color: #e7e2ff; }
.install-box pre .c { color: var(--dim); }
.copy-button { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--night-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.copy-button:hover { color: var(--text); border-color: var(--dim); }
.copy-button[data-copied] { color: #8be0b4; border-color: #2f6b52; }

/* ---------- Beta / roadmap ---------- */
.beta-band { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 56px; background: linear-gradient(180deg, var(--night-2), var(--night)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.beta-band h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.beta-band p { color: var(--muted); }
.road { list-style: none; margin: 0; padding: 0; }
.road li { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.road li:last-child { border-bottom: 0; }
.road .state { font-size: 13px; font-weight: 600; justify-self: start; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.road .state.now { color: #8be0b4; border-color: #2f6b52; }
.road .state.next { color: var(--lamp); border-color: color-mix(in srgb, var(--lamp) 40%, transparent); }
.road strong { font-weight: 600; display: block; }
.road span.desc { color: var(--muted); font-size: 15.5px; }

/* ---------- FAQ as a forum thread ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.faq-head { position: sticky; top: 112px; }
.faq-head h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.thread { border-top: 1px solid var(--line); }
.qa { padding: 22px 0 24px; border-bottom: 1px solid var(--line-soft); }
.post { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; }
.avatar.q { background: var(--night-3); color: var(--muted); border: 1px solid var(--line); }
.avatar.a { background: linear-gradient(135deg, #7054d5, #22b8d8); }
.post h3 { font-size: 1.12rem; line-height: 1.4; padding-top: 3px; }
.post p { color: var(--muted); margin: 0; font-size: 16.5px; }
.post code { color: var(--violet-ink); }
.post.reply { margin: 12px 0 0 46px; padding-left: 0; }
.post.reply > div { padding-top: 4px; }

/* ---------- Closing CTA ---------- */
.closing { text-align: left; padding: 140px 0 120px; position: relative; overflow: hidden; isolation: isolate; }
.closing::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 700px; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgb(112 84 213 / 0.35), transparent 70%); }
.closing h2 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-variation-settings: 'opsz' 96; letter-spacing: -0.03em; max-width: 18ch; }
.closing .install-box { max-width: 720px; }

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding: 96px 0 72px; position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line-soft); }
.page-head::before { content: ""; position: absolute; inset: -40% -10% auto 30%; height: 700px; z-index: -1; background: radial-gradient(50% 50% at 60% 40%, rgb(112 84 213 / 0.26), transparent 70%); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 16ch; }
.page-head .lede { max-width: 36em; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.jump a { text-decoration: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.jump a:hover { color: var(--text); border-color: var(--dim); }

/* Steps (Install page; the content is a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.steps > li::before { content: counter(step); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: var(--violet-ink); border: 1px solid var(--line); background: var(--night-2); }
.steps > li > div { min-width: 0; }
.steps h3 { font-size: 1.5rem; margin-bottom: 12px; }
.steps p { color: var(--muted); max-width: 44em; }
.steps .install-box { margin-top: 20px; max-width: 760px; }

.req { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.req > div { padding: 24px; }
.req > div + div { border-left: 1px solid var(--line); }
.req dt { color: var(--dim); font-size: 14px; margin-bottom: 6px; }
.req dd { margin: 0; font-weight: 600; font-size: 1.05rem; line-height: 1.45; }
.req dd small { display: block; font-weight: 400; color: var(--muted); font-size: 14.5px; margin-top: 4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table th { color: var(--dim); font-weight: 500; font-size: 14px; background: var(--night-2); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { white-space: nowrap; }
.table code { color: var(--violet-ink); }
.table td { color: var(--muted); }

.callout { border-left: 3px solid var(--lamp); padding: 4px 0 4px 20px; color: var(--muted); max-width: 46em; }
.callout strong { color: var(--text); }

.prose { max-width: 44em; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 64px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--violet-ink); text-underline-offset: 4px; }

/* Privacy page measurement preference */
.preference { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--night-2); }
.preference p { margin-bottom: 14px; }

/* Use cases */
.case { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; padding: 96px 0; border-top: 1px solid var(--line-soft); }
.case:first-of-type { border-top: 0; }
.case h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.case-structure { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.case-structure p { margin: 0; padding: 12px 20px; background: var(--night-2); color: var(--dim); font-size: 14px; border-bottom: 1px solid var(--line); }
.case-structure ul { list-style: none; margin: 0; padding: 0; }
.case-structure li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.case-structure li:last-child { border-bottom: 0; }
.case-structure li b { font-weight: 600; }
.case-structure li span { color: var(--muted); font-size: 15px; }
.case-structure li i { font-style: normal; font-size: 13px; color: var(--dim); align-self: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 64px 0 40px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid p { max-width: 26em; margin-top: 16px; }
.footer-grid h2 { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: 14px; font-variation-settings: 'opsz' 14; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid nav a { text-decoration: none; color: var(--muted); }
.footer-grid nav a:hover { color: var(--text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--dim); }
.footer-base a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav a { padding: 8px 9px; font-size: 14.5px; }
  .feature, .ops, .case { gap: 48px; }
  .req { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req > div:nth-child(3) { border-left: 0; }
  .req > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 880px) {
  body { font-size: 17px; }
  .header-inner { height: 64px; gap: 12px; }
  .menu-toggle {
    display: inline-grid; place-items: center; gap: 0; width: 44px; height: 44px; margin-left: 4px;
    border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; padding: 0;
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease; }
  .menu-toggle span + span { margin-top: -10px; transform: translateY(6px); }
  .menu-toggle span:first-child { transform: translateY(-3px); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(1px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span + span { transform: translateY(-1px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px;
    background: var(--night); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 12px; font-size: 17px; }
  .site-nav .nav-mobile-cta { display: flex; margin-top: 8px; justify-content: center; background: var(--violet-deep); color: #fff; border-radius: 12px; font-weight: 600; }
  .header-actions .button-quiet { display: none; }
  .header-actions { order: 2; }
  .menu-toggle { order: 3; }
  .hero { padding-top: 56px; }
  .stage { margin-top: 48px; padding-bottom: 56px; }
  .stage-screen { width: 100%; }
  .terminal { position: relative; left: auto; bottom: auto; width: auto; margin: -48px 12px 0; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li, .facts li + li { padding: 22px 16px; border-left: 0; }
  .facts li:nth-child(even) { border-left: 1px solid var(--line-soft); }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .section { padding: 88px 0; }
  .feature, .feature.flip, .feature.even, .ops, .case, .beta-band { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .feature + .feature { margin-top: 96px; }
  .bleed-right, .bleed-left { margin-inline: 0; }
  .bleed-right .shot, .shot.bleed-right, .bleed-left .shot, .shot.bleed-left { border-radius: var(--radius-m); border: 1px solid var(--line); }
  .paper .bleed-right .shot, .paper .bleed-left .shot { border-color: var(--paper-line); }
  .duo { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
  .duo .shot:last-child { margin-top: 0; }
  .duo.with-phone { grid-template-columns: 1fr; }
  .duo.with-phone .shot:last-child { max-width: 260px; }
  .notes { grid-template-columns: 1fr; }
  .notes > div, .notes > div:not(:nth-child(3n + 1)) { padding: 26px 0; border-left: 0; }
  .beta-band { padding: 32px 24px; gap: 32px; }
  .cmd-list li { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  .steps > li { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .case { padding: 64px 0; }
}
@media (max-width: 520px) {
  :root { --shell: min(100% - 32px, 1200px); }
  .header-actions .button-primary { display: none; }
  .req { grid-template-columns: 1fr; }
  .req > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .road li { grid-template-columns: 1fr; gap: 6px; }
  .post.reply { margin-left: 0; }
  .install-box pre { font-size: 13px; }
  .terminal pre { font-size: 12px; }
  .window-bar span { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
