:root {
  --bg: #ffffff;
  --bg-panel: #f4f6fb;
  --bg-panel-2: #0a1440;
  --border: #e3e7f0;
  --accent: #1e58f6;
  --accent-dark: #0f37b8;
  --accent-soft: #eaf0fe;
  --text: #0b1233;
  --text-muted: #5b6382;
  --success: #12a46a;
  --success-ink: #087447;
  --warn: #d98a0b;
  --warn-ink: #855307;
  --error: #e0364f;
  --error-ink: #ba2039;
  --policy-reject: #9aa1b9;
  --night-0: #070f3a;
  --night-1: #142a9c;
  --night-2: #1e58f6;
  --night-3: #c7d3fb;
  --violet: #7c5cff;
  --pink: #ff4f9a;
  --transparent: transparent;
  --grad-key: linear-gradient(92deg, var(--violet) 0%, var(--pink) 100%);
  --band-violet: rgba(124, 92, 255, 0.40);
  --band-pink: rgba(255, 79, 154, 0.28);
  --on-dark: #ffffff;
  --on-dark-86: rgba(255, 255, 255, 0.86);
  --on-dark-68: rgba(255, 255, 255, 0.68);
  --on-dark-44: rgba(255, 255, 255, 0.44);
  --on-dark-16: rgba(255, 255, 255, 0.16);
  --on-dark-12: rgba(255, 255, 255, 0.12);
  --on-dark-08: rgba(255, 255, 255, 0.08);
  --on-dark-05: rgba(255, 255, 255, 0.05);
  --glass-top: rgba(20, 42, 156, 0.44);
  --glass-mid: rgba(14, 30, 120, 0.62);
  --glass-bottom: rgba(10, 20, 64, 0.92);
  --glass-solid: #142a9c;
  --glass-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --shadow-key: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 34px 60px -40px rgba(7, 15, 58, 0.6);
  --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --font-display: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --weight-display: 400;
  --weight-heading: 500;
  --weight-strong: 600;
  --track: -0.025em;
  --track-cjk: -0.02em;
  --r-card: 28px;
  --r-panel: 32px;
  --r-btn: 12px;
  --r-row: 14px;
  --r-mark: 9px;
  --r-small: 6px;
  --r-device: 8px;
  --r-shot: 10px;
  --r-pill: 999px;
  --r-circle: 50%;
  --r-line: 2px;
  --gutter: 24px;
  --content-width: 1160px;
  --reading-width: 800px;
  --header-width: 1280px;
  --header-height: 76px;
  --section-gap: 144px;
  --field-h: 760px;
  --motion-fast: 180ms;
  --motion-reveal: 500ms;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; vertical-align: middle; }
svg { flex-shrink: 0; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  letter-spacing: var(--track-cjk);
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 3.6vw, 48px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
p { margin-top: 0; }
strong { font-weight: var(--weight-strong); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-row);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 14px;
  line-height: 1.85;
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-small); }
.stage :focus-visible, .panel--dark :focus-visible { outline-color: var(--on-dark); }
::selection { background: var(--accent); color: var(--on-dark); }
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--r-btn);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading-width) + var(--gutter) * 2); }
.section { padding-top: var(--section-gap); padding-bottom: 0; }
.section:last-child { padding-bottom: var(--section-gap); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.section-heading h2 { margin: 0 0 12px; }
.section-heading p { max-width: 640px; margin: 0; color: var(--text-muted); }
.grid { display: grid; gap: 24px; }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .section-heading > *, .topbar > *, .footer-grid > * { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.prose { min-width: 0; line-height: 1.9; }
.prose h2 { margin-top: 64px; margin-bottom: 24px; }
.prose h3 { margin-top: 36px; margin-bottom: 16px; }
.prose p, .prose ul, .prose ol { margin-bottom: 24px; }
.prose li + li { margin-top: 8px; }
.prose :is(h2, h3, section), [id] { scroll-margin-top: 28px; }
.prose > :first-child { margin-top: 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid var(--transparent);
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: var(--weight-heading);
  letter-spacing: -0.005em;
  line-height: 24px;
  text-decoration: none;
  transition: background-color var(--motion-fast), border-color var(--motion-fast);
}
.btn:hover { text-decoration: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-dark); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--on-dark); }
.btn-secondary { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost { border-color: var(--on-dark-44); background: var(--on-dark-05); color: var(--on-dark); }
.btn-ghost svg { width: 12px; height: 12px; color: var(--on-dark-68); }
.btn-ghost:hover { border-color: var(--on-dark-68); background: var(--on-dark-12); color: var(--on-dark); }
.btn:active { border-color: currentColor; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg-panel);
  color: var(--text-muted);
  border-color: var(--border);
  box-shadow: none;
  cursor: not-allowed;
}
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 4px; }
.card, .panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  padding: 32px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.panel { border: 0; border-radius: var(--r-panel); background: var(--bg-panel); color: var(--text); padding: 48px; }
.panel--dark { background: var(--bg-panel-2); color: var(--on-dark); }
.panel--dark p { color: var(--on-dark-86); }
.panel--dark a:not(.btn) { color: var(--on-dark); }
.fact-band { margin-inline: 24px; border-radius: var(--r-panel); }
.decorated, .stage { overflow-x: clip; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
html.reveal-ready .reveal { transition: opacity var(--motion-reveal), transform var(--motion-reveal); }

/* 页头使用独立宽版心，不复用阅读区版心。 */
#site-header { position: relative; z-index: 50; background: var(--bg); color: var(--text); }
.stage #site-header { background: var(--transparent); color: var(--on-dark); }
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: min(100%, calc(var(--header-width) + var(--gutter) * 2));
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
  color: inherit;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: inherit;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--weight-heading);
  letter-spacing: var(--track);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { flex: none; display: block; width: 32px; height: 32px; border-radius: var(--r-circle); }
.brand-mark--placeholder { border-radius: var(--r-mark); background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--border), 0 0 0 1px var(--on-dark-16); }
.desktop-nav { min-width: 0; margin-left: auto; }
.nav-line { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.nav-line li { display: flex; align-items: center; }
.nav-line li + li::before { content: "·"; margin: 0 11px; color: var(--text-muted); }
.nav-line a { position: relative; display: block; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.nav-line a:hover, .nav-line a[aria-current="page"] { color: var(--text); }
.nav-line a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -7px;
  height: 2px;
  border-radius: var(--r-line);
  background: var(--accent);
}
.topbar-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-wrap { position: relative; }
.lang, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 13.5px;
}
.lang svg { width: 15px; height: 15px; }
.lang-short { display: none; }
.lang-caret { font-size: 11px; }
.menu-toggle { display: none; min-width: 44px; padding: 10px; border-radius: var(--r-btn); }
.menu-toggle svg { width: 22px; height: 22px; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 200px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-row);
  background: var(--bg);
  color: var(--text);
  z-index: 4;
}
.lang-menu a, .mobile-drawer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r-small);
}
.lang-menu a:hover, .lang-menu a[aria-current="true"], .mobile-drawer a:hover, .mobile-drawer a[aria-current] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.mobile-drawer {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  z-index: 3;
}
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.drawer-languages { margin-top: 20px !important; }
.drawer-heading { padding-inline: 14px; margin: 20px 0 8px; font-size: 13px; color: var(--text-muted); }
.nav-veil { position: fixed; inset: var(--header-height) 0 0; z-index: 40; border: 0; background: var(--glass-bottom); color: var(--on-dark); }
.stage .topbar { color: var(--on-dark); }
.stage .nav-line a { color: var(--on-dark-86); }
.stage .nav-line a:hover, .stage .nav-line a[aria-current] { color: var(--on-dark); }
.stage .nav-line li + li::before { color: var(--on-dark-44); }
.stage .lang, .stage .menu-toggle { border-color: var(--on-dark-16); background: var(--on-dark-05); color: var(--on-dark-86); }
.stage .lang { min-height: 34px; }

/* 已确认的首屏构图。 */
.stage { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 74px; }
html.nav-open .stage { z-index: 41; }
.stage-field {
  position: absolute;
  inset: 0 0 auto;
  height: var(--field-h);
  z-index: -2;
  background: linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 42%, var(--night-2) 82%, var(--night-3) 94%, var(--bg) 100%);
  color: var(--on-dark);
}
.stage-band {
  position: absolute;
  left: -12%;
  right: -12%;
  top: 520px;
  height: 230px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(38% 50% at 32% 52%, var(--band-violet) 0%, var(--transparent) 72%), radial-gradient(36% 46% at 68% 48%, var(--band-pink) 0%, var(--transparent) 72%);
  filter: blur(18px);
  opacity: 0.7;
}
.hero { display: flex; flex-direction: column; align-items: center; padding: 40px var(--gutter) 0; text-align: center; color: var(--on-dark); }
.hero-title { margin: 24px 0 0; font-size: clamp(34px, calc(3.4vw + 4px), 48px); font-weight: var(--weight-display); line-height: 1.12; letter-spacing: var(--track-cjk); }
.hero-title-key { font-weight: var(--weight-heading); background: var(--grad-key); -webkit-background-clip: text; background-clip: text; color: var(--transparent); white-space: nowrap; }
.hero-lede { max-width: 620px; margin: 24px 0 0; color: var(--on-dark-86); font-size: 15.5px; line-height: 1.72; }
.hero-lede strong { color: var(--on-dark); font-weight: var(--weight-heading); }
.devices { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; list-style: none; padding: 0; margin: 22px 0 0; }
.device { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border-radius: var(--r-device); color: var(--on-dark-86); font-size: 13px; text-decoration: none; }
.device svg { width: 18px; height: 18px; color: var(--on-dark); }
a.device:hover { background: var(--on-dark-08); color: var(--on-dark); text-decoration: none; }
.devices-rule { width: 1px; height: 14px; margin: 0 10px; background: var(--on-dark-16); }
.deck { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 52px 0 0; padding: 0; width: 100%; list-style: none; }
.seg { flex: 0 0 312px; display: flex; flex-direction: column; height: 340px; padding: 24px; border-radius: var(--r-card); text-align: left; min-width: 0; }
.seg--glass {
  border: 1px solid var(--on-dark-12);
  background: var(--glass-solid);
  background: linear-gradient(180deg, var(--glass-top) 0%, var(--glass-mid) 56%, var(--glass-bottom) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--glass-sheen);
  color: var(--on-dark);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .seg--glass { background: var(--glass-solid); color: var(--on-dark); }
}
.seg--key { flex-basis: 336px; height: 360px; border: 1px solid var(--border); background: var(--bg); box-shadow: var(--shadow-key); color: var(--text); transform: translateY(-16px); }
.seg-tag { align-self: flex-start; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid var(--on-dark-12); border-radius: var(--r-pill); background: var(--on-dark-08); color: var(--on-dark); font-family: var(--font-mono); font-size: 12.5px; }
.seg--key .seg-tag { border-color: var(--transparent); background: var(--accent-soft); color: var(--accent-dark); }
.seg-code { margin: 22px 0 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 13px; line-height: 26px; letter-spacing: 0; }
.seg-code li { white-space: nowrap; }
.seg-code .wrap-line { white-space: normal; overflow-wrap: anywhere; }
.c, .k { color: var(--on-dark-86); }
.eq { color: var(--on-dark-68); }
.v { color: var(--on-dark); }
.rules li { display: flex; align-items: center; gap: 10px; }
.rules { font-size: 11px; }
.pdot { flex: none; width: 7px; height: 7px; border-radius: var(--r-circle); }
.pdot--direct { background: var(--success); }
.pdot--reject { background: var(--policy-reject); }
.pdot--proxy { background: var(--accent); }
.r-body { color: var(--text); }
.r-sep { color: var(--text-muted); }
.pol-direct { color: var(--success-ink); }
.pol-reject { color: var(--text-muted); }
.pol-proxy { color: var(--accent); font-weight: var(--weight-strong); }
.gr-list { margin: 18px 0 0; padding: 0; list-style: none; border: 1px solid var(--on-dark-08); border-radius: var(--r-row); background: var(--on-dark-08); color: var(--on-dark); overflow: hidden; }
.gr-list li { display: flex; align-items: center; height: 40px; padding: 0 14px; font-size: 14px; color: var(--on-dark-86); }
.gr-list li + li { box-shadow: inset 0 1px 0 var(--on-dark-08); }
.gr-trail { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.gr-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: var(--r-circle); background: var(--accent); color: var(--on-dark); }
.gr-chev { color: var(--on-dark-68); }
.seg-foot { margin-top: auto; padding-top: 16px; box-shadow: inset 0 1px 0 var(--on-dark-12); }
.seg--key .seg-foot { box-shadow: inset 0 1px 0 var(--border); }
.seg-name { margin: 0; font-size: 16px; font-weight: var(--weight-heading); line-height: 1.4; letter-spacing: var(--track-cjk); }
.seg-note { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--on-dark-86); }
.seg--key .seg-note { color: var(--text-muted); }

.site-footer { margin-top: var(--section-gap); padding-top: 64px; padding-bottom: 40px; background: var(--bg-panel); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 48px; }
.footer-brand p { margin: 20px 0 0; max-width: 340px; color: var(--text-muted); font-size: 14px; }
.footer-title { font-size: 15px; margin: 0 0 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding-top: 6px; padding-bottom: 6px; font-size: 14px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-dark); text-decoration: underline; }
.footer-languages, .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; font-size: 13px; color: var(--text-muted); }
.footer-languages a, .footer-bottom a { color: var(--text-muted); }
.footer-bottom p { margin: 0; }
.footer-bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* 预览页的色板与占位物也是共享令牌的消费者。 */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 16px; }
.swatch { margin: 0; min-width: 0; }
.swatch-color { display: block; height: 64px; border: 1px solid var(--border); border-radius: var(--r-row); }
.swatch figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; color: var(--text-muted); }
.swatch-bg { background: var(--bg); }
.swatch-panel { background: var(--bg-panel); }
.swatch-dark { background: var(--bg-panel-2); }
.swatch-border { background: var(--border); }
.swatch-accent { background: var(--accent); }
.swatch-accent-dark { background: var(--accent-dark); }
.swatch-soft { background: var(--accent-soft); }
.swatch-text { background: var(--text); }
.swatch-muted { background: var(--text-muted); }
.swatch-success { background: var(--success); }
.swatch-success-ink { background: var(--success-ink); }
.swatch-warn { background: var(--warn); }
.swatch-warn-ink { background: var(--warn-ink); }
.swatch-error { background: var(--error); }
.swatch-error-ink { background: var(--error-ink); }
.swatch-reject { background: var(--policy-reject); }
.swatch-night-0 { background: var(--night-0); }
.swatch-night-1 { background: var(--night-1); }
.swatch-night-2 { background: var(--night-2); }
.swatch-night-3 { background: var(--night-3); }
.swatch-violet { background: var(--violet); }
.swatch-pink { background: var(--pink); }
.swatch-gradient { background: var(--grad-key); }
.swatch-glass { background: linear-gradient(var(--glass-top), var(--glass-bottom)), var(--night-1); }
.swatch-white-layers { background: linear-gradient(90deg, var(--on-dark-86), var(--on-dark-05)), var(--night-0); }
.swatch-band { background: linear-gradient(90deg, var(--band-violet), var(--band-pink)), var(--night-1); }
.preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.preview-dark { padding: 24px; background: var(--bg-panel-2); color: var(--on-dark); border-radius: var(--r-row); }
.shot-placeholder { width: 100%; aspect-ratio: 750 / 1334; display: grid; place-items: center; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-shot); background: var(--bg-panel); color: var(--text-muted); text-align: center; }
.preview-menu { display: none; }
@media (max-width: 1279px) {
  .desktop-nav { display: none; }
  .topbar-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .preview-menu { display: block; }
  .preview-menu summary { list-style: none; }
  .preview-menu nav { position: absolute; inset: var(--header-height) 0 auto; padding: 16px var(--gutter); background: var(--bg); color: var(--text); z-index: 5; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
  .preview-menu nav a { display: block; padding: 12px 16px; min-height: 44px; color: var(--text); }
}
@media (min-width: 1280px) {
  .mobile-drawer { display: none; }
  .nav-veil { display: none; }
}
@media (max-width: 768px) {
  h1, .hero-title { font-size: clamp(24px, 4.5vw, 30px); }
  .grid--three { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-gap: 144px; }
  .topbar { gap: 12px; }
  .brand { gap: 8px; font-size: 13px; }
  .brand-mark { width: 28px; height: 28px; }
  .topbar-tools { gap: 6px; margin-left: auto; }
  .lang { padding-inline: 10px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang svg { display: none; }
  .hero { padding-top: 28px; }
  .hero-lede { font-size: 15px; }
  .devices-rule { display: none; }
  .devices { gap: 2px; }
  .device { padding-inline: 7px; }
  .deck { gap: 16px; margin-top: 40px; }
  .seg--key { flex-basis: 304px; padding: 20px; }
  .rules { font-size: 10px; }
  .grid--two { grid-template-columns: 1fr; }
  .panel, .card { padding: 24px; }
  .fact-band { margin-inline: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .tilt, [data-tilt] { transform: none !important; }
  pre { padding: 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}