:root {
  --bg: #F6F5F1;
  --bg-panel: #FFFFFF;
  --bg-panel-2: #ECEBE6;
  --chrome: #F3F2EE;
  --border: #E2E0DA;
  --border-soft: #EEECE7;
  --border-strong: #C9C6BE;
  --text: #1C1D1F;
  --text-muted: #6A6964;
  --text-faint: #A09E98;
  --accent: #7B4FD0;
  --accent-dark: #4F2F99;
  --accent-soft: rgba(123,79,208,.08);
  --accent-line: rgba(123,79,208,.45);
  --accent-ring: rgba(123,79,208,.28);
  --teal: #0D3B3E;
  --teal-2: #11474A;
  --teal-3: #1C6460;
  --teal-4: #3A8A80;
  --success: #2C8A6C;
  --success-ink: #21654F;
  --warn: #B37A1E;
  --warn-ink: #795114;
  --error: #C0433C;
  --dot-close: #E8675F;
  --dot-min: #E6B24B;
  --dot-max: #5DB56B;
  --on-dark: #FFFFFF;
  --on-dark-72: rgba(255,255,255,.72);
  --on-dark-56: rgba(255,255,255,.56);
  --on-dark-20: rgba(255,255,255,.20);
  --on-dark-14: rgba(255,255,255,.14);
  --on-dark-06: rgba(255,255,255,.06);
  --veil: rgba(13,59,62,.38);
  --clear: transparent;
  --shadow-btn: 0 1px 0 rgba(255,255,255,.18) inset,0 8px 22px rgba(42,20,92,.38);
  --shadow-window: 0 0 0 1px rgba(13,59,62,.10),0 2px 4px rgba(6,24,26,.10),0 18px 40px rgba(6,24,26,.20),0 52px 110px rgba(6,24,26,.30);
  --shadow-card: 0 0 0 1px rgba(13,59,62,.07),0 4px 10px rgba(6,22,24,.12),0 22px 44px rgba(6,22,24,.26),0 46px 90px rgba(30,14,70,.30);
  --shadow-panel: 0 1px 2px rgba(28,29,31,.04),0 12px 40px rgba(28,29,31,.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-win: 16px;
  --radius-btn: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --radius-focus: 6px;
  --radius-pill: 999px;
  --radius-round: 50%;
  --font-display: "Inter","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --font-body: "Inter","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --font-mono: "JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --gutter: 24px;
  --pad: 56px;
  --content-width: 1160px;
  --header-height: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --duration: .2s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
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;
  -moz-osx-font-smoothing: grayscale;
}
html.nav-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea { max-width: 100%; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg, .icon, .badge-dot { flex-shrink: 0; }
svg { color: inherit; }
button svg, .icon { width: 20px; height: 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-focus); }
::selection { background: var(--accent); color: var(--on-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-regular); text-wrap: balance; }
h1 { font-size: clamp(34px,3.2vw,48px); line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(26px,2.5vw,36px); line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: 22px; line-height: 1.4; }
p { margin-top: 0; }
code, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  background: var(--chrome);
  color: var(--text);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-btn);
  font-size: 13px;
  line-height: 1.8;
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
.wrap { width: 100%; max-width: calc(var(--content-width) + var(--gutter)*2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: 64px; padding-bottom: 64px; }
.section-heading { margin-top: 0; margin-bottom: 28px; }
.section-intro, .muted { color: var(--text-muted); }
.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .04em; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.grid { display: grid; gap: 24px; }
.grid > *, .hero > *, .footer-grid > *, .feature-layout > * { min-width: 0; }
.grid-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.panel, .card {
  min-width: 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-panel);
}
.panel { border-radius: var(--radius-xl); }
.panel-dark {
  position: relative;
  overflow-x: clip;
  background: var(--teal);
  color: var(--on-dark);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.panel-dark .muted { color: var(--on-dark-72); }
.prose { min-width: 0; overflow-wrap: break-word; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.7em; }
.prose p, .prose li { line-height: 1.85; }
.prose a:not([class*="btn"]):not([class*="button"]), .text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose :not(pre) > code { padding: 2px 5px; border-radius: var(--radius-focus); background: var(--chrome); color: var(--text); font-size: .9em; }
.prose img { border-radius: var(--radius-lg); }
.prose :is(div,section,figure) { min-width: 0; max-width: 100%; }
.prose figure { margin-inline: 0; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
.reveal { transition: opacity .55s var(--ease),transform .55s var(--ease); }
.reveal.shown { opacity: 1; transform: none; }

.btn, .btn-primary, .btn-secondary, .btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid var(--clear);
  border-radius: var(--radius-btn);
  font-size: 15.5px;
  font-weight: var(--weight-medium);
  text-align: center;
  line-height: 1.5;
  transition: transform var(--duration) var(--ease),background-color var(--duration) var(--ease),border-color var(--duration) var(--ease);
}
.btn-primary { background: var(--accent); color: var(--on-dark); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn-primary.is-hover { transform: translateY(-1px); }
.btn-primary:active, .btn-primary.is-active { background: var(--accent-dark); color: var(--on-dark); transform: none; }
.btn-primary svg { width: 18px; height: 18px; }
.btn-secondary { background: var(--bg-panel); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-text { padding-inline: 0; background: var(--clear); color: var(--accent); border: 0; }
.btn-text svg { width: 16px; height: 16px; transition: transform var(--duration) var(--ease); }
.btn-text:hover svg { transform: translateX(3px); }
.btn:disabled, .btn-primary:disabled, .btn-secondary:disabled { background: var(--bg-panel-2); color: var(--text-muted); box-shadow: none; cursor: not-allowed; transform: none; border-color: var(--border); }
.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 30px; }

/* 页头使用独立宽版心，不复用正文 wrap。 */
#site-header, .preview-header { position: relative; z-index: 40; }
.topbar {
  height: var(--header-height);
  max-width: min(100%,calc(1280px + var(--gutter)*2));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name { font-size: 17px; font-weight: var(--weight-medium); letter-spacing: -.01em; color: var(--text); white-space: nowrap; }
.mainnav { min-width: 0; margin-left: 60px; }
.mainnav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 30px; }
.mainnav li { flex-shrink: 0; }
.mainnav a { display: block; padding-block: 12px; font-size: 15px; color: var(--text-muted); font-weight: var(--weight-regular); white-space: nowrap; }
.mainnav a:hover { color: var(--text); }
.mainnav a[aria-current="page"] { color: var(--text); font-weight: var(--weight-semibold); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; padding-left: 20px; flex-shrink: 0; }
.language-control { position: relative; }
.lang {
  margin-left: auto;
  min-height: 38px;
  padding: 7px 14px 7px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 14px;
  white-space: nowrap;
}
.lang-caret { font-size: 11px; color: var(--text-muted); }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 200px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-win);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-panel);
  z-index: 4;
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-sm); }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--accent-soft); color: var(--accent-dark); }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--bg-panel); color: var(--text); }
.menu-veil { position: fixed; inset: var(--header-height) 0 0; border: 0; background: var(--veil); color: var(--text); z-index: 1; }
.mobile-drawer {
  position: absolute;
  top: var(--header-height);
  inset-inline: var(--gutter);
  max-height: calc(100dvh - var(--header-height) - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-panel);
  z-index: 3;
}
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 16px; border-radius: var(--radius-sm); }
.mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--accent-soft); color: var(--accent-dark); }
.drawer-languages { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.drawer-label { margin: 4px 16px 8px; color: var(--text-muted); font-size: 13px; }
.skip-link { position: absolute; top: -100px; left: var(--gutter); padding: 10px 18px; background: var(--bg-panel); color: var(--accent-dark); z-index: 10; border-radius: var(--radius-btn); }
.skip-link:focus { top: 10px; }

/* 拍板首屏：静态深青分屏与巨幅路由设置窗。 */
.hero {
  margin: 8px var(--gutter) 0;
  height: calc(100vh - 120px);
  min-height: 680px;
  max-height: 820px;
  display: grid;
  grid-template-columns: 46fr 54fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
}
.hero-copy {
  background: var(--teal);
  color: var(--on-dark);
  padding: 52px var(--pad) 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.badge-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--on-dark-72); letter-spacing: .01em; }
.badge-dot { width: 8px; height: 8px; border-radius: var(--radius-round); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { min-height: 30px; padding: 4px 13px; display: inline-flex; align-items: center; border: 1px solid var(--on-dark-14); background: var(--on-dark-06); color: var(--on-dark-72); border-radius: var(--radius-pill); font-size: 13px; }
.chip:hover { color: var(--on-dark); border-color: var(--on-dark-20); }
.hero-title { margin: 0; font-weight: var(--weight-regular); font-size: clamp(34px,3.2vw,46px); line-height: 1.12; letter-spacing: -.02em; }
.t-soft { display: block; color: var(--on-dark-72); }
.t-strong { display: block; color: var(--on-dark); }
.hero-lede { margin: 20px 0 0; max-width: 31em; font-size: 16.5px; line-height: 1.7; color: var(--on-dark-72); }
.hero-lede strong { color: var(--on-dark); font-weight: var(--weight-medium); }
.hero .btn-primary { padding-inline: 20px 22px; }
.hero .btn-text { color: var(--on-dark); }
.platforms { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--on-dark-14); display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
.platforms-label { font-size: 12.5px; color: var(--on-dark-72); letter-spacing: .04em; }
.platform { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--on-dark-72); }
.platform svg { width: 16px; height: 16px; }
.platform:hover { color: var(--on-dark); }
.hero-stage { position: relative; margin: 0; overflow: hidden; background: var(--teal-2); color: var(--text); min-width: 0; }
.hero-stage::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(40% 36% at 80% 8%,var(--teal-4),var(--clear) 70%),radial-gradient(58% 48% at 34% 28%,var(--teal-3),var(--clear) 74%),radial-gradient(44% 42% at 14% 96%,var(--accent),var(--clear) 70%),radial-gradient(42% 40% at 98% 92%,var(--accent-dark),var(--clear) 72%);
  filter: blur(38px);
  z-index: 0;
}
.win { position: absolute; z-index: 1; top: 72px; left: 64px; width: calc(100% - 16px); bottom: -56px; background: var(--bg-panel); color: var(--text); border-radius: var(--radius-win); box-shadow: var(--shadow-window); overflow: hidden; font-size: 13px; }
.win-bar { height: 42px; display: flex; align-items: center; gap: 16px; padding-inline: 16px; background: var(--chrome); color: var(--text-muted); border-bottom: 1px solid var(--border-soft); }
.dots { display: flex; gap: 7px; flex-shrink: 0; }
.dots i { width: 11px; height: 11px; border-radius: var(--radius-round); }
.dots .d1 { background: var(--dot-close); }
.dots .d2 { background: var(--dot-min); }
.dots .d3 { background: var(--dot-max); }
.win-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.app-glyph { width: 14px; height: 14px; border-radius: var(--radius-focus); background: linear-gradient(145deg,var(--accent),var(--accent-dark)); flex-shrink: 0; }
.win-tabs { height: 44px; display: flex; align-items: stretch; gap: 2px; padding-inline: 14px 72px; border-bottom: 1px solid var(--border); }
.tab { position: relative; display: flex; align-items: center; padding-inline: 14px; font-size: 13.5px; color: var(--text-muted); }
.tab.is-active { color: var(--text); font-weight: var(--weight-medium); }
.tab.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: var(--radius-focus); background: var(--accent); }
.win-path { height: 50px; display: flex; align-items: center; gap: 10px; padding-inline: 24px 72px; border-bottom: 1px solid var(--border-soft); }
.path-field { min-height: 30px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12.5px; }
.path-field svg { width: 14px; height: 14px; }
.path-sep { color: var(--text-muted); }
.path-now { color: var(--text); }
.path-actions { margin-left: auto; display: flex; gap: 6px; }
.ghost-btn { min-height: 30px; padding: 4px 12px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12.5px; color: var(--text-muted); background: var(--bg-panel); }
.win-body { padding: 22px 72px 0 24px; }
.field-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-muted); }
.field-label code { font-size: 11.5px; color: var(--text-muted); }
.radio-group { display: flex; gap: 8px; margin-top: 10px; }
.radio { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 11px; border: 1px solid var(--border); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 12.5px; color: var(--text); background: var(--bg-panel); }
.radio i { width: 14px; height: 14px; border-radius: var(--radius-round); border: 1.5px solid var(--border-strong); flex-shrink: 0; }
.radio.is-on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.radio.is-on i { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg-panel); }
.rules { margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius-btn); overflow: hidden; }
.rules-row { display: grid; grid-template-columns: 52px minmax(0,1fr) 84px; align-items: center; padding-inline: 16px; }
.rules-head { min-height: 32px; background: var(--chrome); color: var(--text-muted); font-size: 11.5px; letter-spacing: .02em; }
.rules-item { min-height: 44px; border-top: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: 13px; }
.switch { position: relative; width: 28px; height: 16px; border-radius: var(--radius-pill); background: var(--accent); }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: var(--radius-round); background: var(--bg-panel); }
.rule-text { color: var(--text); white-space: nowrap; }
.rule-arrow { color: var(--text-muted); margin-inline: .55em; }
.out { display: inline-flex; align-items: center; gap: 6px; }
.out::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-round); flex-shrink: 0; }
.out-block::before { background: var(--error); }
.out-direct::before { background: var(--success); }
.out-proxy::before { background: var(--teal-3); }
.rule-type { font-size: 12px; color: var(--text-muted); }
.rules-item.is-flag { background: var(--accent-soft); color: var(--text); }
.rules-item.is-flag .rule-text { text-decoration: underline wavy var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 7px; text-decoration-skip-ink: none; }
.win-json { margin-top: 20px; padding: 14px 18px 40px; background: var(--chrome); color: var(--text-muted); border: 1px solid var(--border-soft); border-radius: var(--radius-btn); }
.json-head { font-size: 11.5px; color: var(--text-muted); margin-bottom: 6px; }
.win-json pre { margin: 0; padding: 0; border: 0; border-radius: 0; font-size: 12.5px; line-height: 1.8; color: var(--text-muted); background: var(--chrome); }
.j-k { color: var(--text); }
.j-s { color: var(--teal-3); }
.qa-card { position: absolute; z-index: 2; right: 36px; top: clamp(400px,58%,470px); width: min(350px,48%); background: var(--bg-panel); color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.qa-head { display: flex; align-items: center; gap: 10px; padding: 15px 14px 8px 18px; }
.qa-q { font-size: 13.5px; color: var(--text); font-weight: var(--weight-medium); }
.qa-q span { color: var(--accent); margin-right: 1px; }
.qa-tools { margin-left: auto; display: flex; gap: 2px; flex-shrink: 0; }
.qa-tool { width: 26px; height: 26px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--text-muted); }
.qa-tool svg { width: 16px; height: 16px; }
.qa-tool.is-ok { color: var(--accent); }
.qa-body { padding: 6px 18px 14px; }
.qa-diff { font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); }
.qa-diff del { color: var(--text-muted); text-decoration-thickness: 1.5px; margin-inline: .35em; }
.qa-diff ins { color: var(--accent); font-weight: var(--weight-bold); text-decoration: none; }
.qa-answer { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.qa-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 0 18px 14px; font-size: 12px; color: var(--text-muted); }
.qa-meta svg { width: 14px; height: 14px; color: var(--success-ink); }
.qa-meta code { font-size: 11.5px; }
.qa-meta a { color: var(--accent); }
.qa-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.qa-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; background: var(--chrome); color: var(--text-muted); border-top: 1px solid var(--border-soft); font-size: 13px; }
.caret { width: 1.5px; height: 16px; background: var(--accent); border-radius: var(--radius-focus); flex-shrink: 0; }
.qa-send { margin-left: auto; width: 26px; height: 26px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--bg-panel-2); color: var(--text-muted); flex-shrink: 0; }
.qa-send svg { width: 14px; height: 14px; }
.next { margin: 20px var(--gutter) 48px; padding: 44px var(--pad) 48px; background: var(--bg-panel); color: var(--text); border-radius: var(--radius-xl); box-shadow: var(--shadow-panel); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.next-eyebrow { margin: 0; font-size: 13px; color: var(--accent); letter-spacing: .04em; }
.next h2 { margin: 10px 0 0; font-size: 30px; line-height: 1.2; letter-spacing: -.015em; }
.next p { margin: 10px 0 0; color: var(--text-muted); font-size: 15px; }
.cat-links { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-links a { min-height: 40px; padding: 8px 16px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-btn); font-size: 14px; background: var(--bg); color: var(--text); }
.cat-links a:hover { border-color: var(--accent-line); color: var(--accent); }

.site-footer { margin-top: 64px; padding-top: 48px; padding-bottom: 24px; border-top: 1px solid var(--border); background: var(--bg); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr 1.4fr .7fr; gap: 40px; }
.footer-title { margin: 0 0 16px; font-size: 14px; font-weight: var(--weight-medium); }
.footer-brand p { margin-top: 18px; max-width: 25em; color: var(--text-muted); font-size: 14px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }

@media (max-width: 1199px) {
  .mainnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: grid; }
}
@media (min-width: 1200px) {
  .mobile-drawer, .menu-veil { display: none !important; }
}
@media (max-width: 1024px) {
  :root { --pad: 32px; --gutter: 16px; }
  .hero { grid-template-columns: minmax(0,1fr); height: auto; max-height: none; min-height: 0; }
  .hero-copy { gap: 56px; padding: 40px var(--pad); }
  .hero-stage { height: auto; padding-block: 32px; }
  .win { position: relative; top: auto; bottom: auto; left: 24px; }
  .qa-card { position: relative; width: min(340px,70%); right: auto; top: auto; margin: 24px 20px 0; }
  .next { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  h1, .hero-title { font-size: clamp(24px,4vw,30px); }
  .grid-three { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --pad: 24px; }
  .hero-title { font-size: 28px; }
  .hero-copy { padding: 28px var(--pad); gap: 36px; }
  .hero-lede { font-size: 15px; }
  .badge-row { font-size: 12px; }
  .chips { margin-top: 16px; gap: 6px; }
  .chip { font-size: 12px; padding-inline: 10px; }
  .platforms { gap: 14px 20px; margin-top: 28px; }
  .platforms-label { width: 100%; }
  .cta-row { gap: 16px; margin-top: 24px; }
  .win { left: 16px; width: 640px; }
  .win-body { padding-right: 72px; }
  .qa-card { width: calc(100% - 40px); }
  .qa-head { gap: 4px; flex-wrap: wrap; }
  .qa-tools { gap: 0; }
  .qa-q { font-size: 12px; }
  .qa-diff { font-size: 12px; }
  .next { padding: 28px var(--pad); gap: 24px; }
  .next h2 { font-size: 24px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .panel, .card, .panel-dark { padding: 24px; }
  .grid-two, .footer-grid { grid-template-columns: minmax(0,1fr); }
  .footer-grid { gap: 28px; }
  .brand-name { font-size: 15px; }
  .brand { gap: 8px; }
  .header-tools { padding-left: 8px; gap: 8px; margin-left: auto; }
  .lang { min-height: 44px; padding-inline: 12px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .tilt, [data-tilt] { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}