:root {
  --bg: #FFFFFF;
  --bg-panel: #F5F5F3;
  --bg-panel-2: #ECEDEB;
  --border: #E3E4E1;
  --border-strong: #D3D5D1;
  --accent: #05C3AD;
  --accent-hover: #04B19D;
  --accent-soft: rgba(5,195,173,.26);
  --forest: #0A4733;
  --forest-glow: #11583F;
  --forest-deep: #073A29;
  --forest-clear: rgba(17,88,63,0);
  --lime: #CFF26A;
  --ink: #1A1B1C;
  --ink-2: #232526;
  --ink-line: rgba(255,255,255,.07);
  --text: #141616;
  --text-muted: #5B605E;
  --text-faint: #8A8F8C;
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255,255,255,.72);
  --success: #17A35A;
  --warn: #D99A00;
  --error: #D64545;
  --success-text: #126D3D;
  --warn-text: #795600;
  --error-text: #A62E2E;
  --silver-hi: #ECEDEB;
  --silver-lo: #C9CCC8;
  --silver-mid: #B6BAB5;
  --silver-edge: #F7F8F6;
  --screen-bg: #0F1513;
  --screen-glow: rgba(17,88,63,.55);
  --code-text: #C8D2CE;
  --code-dim: #A4AEA9;
  --clear: transparent;
  --reflection: rgba(255,255,255,.06);
  --white-clear: rgba(255,255,255,0);
  --hinge-light: rgba(255,255,255,.95);
  --device-shadow-color: rgba(2,14,9,.62);
  --device-shadow-clear: rgba(2,14,9,0);
  --veil-color: rgba(20,22,22,.38);
  --font-display: "Inter","Noto Sans SC","PingFang SC","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;
  --r-xs: 8px;
  --r-sm: 10px;
  --r-btn: 14px;
  --r-md: 16px;
  --r-dlg: 20px;
  --r-card: 28px;
  --r-canvas: 32px;
  --r-pill: 999px;
  --r-round: 50%;
  --r-focus: 6px;
  --r-screen: 4px;
  --r-device-lid: 18px 18px 6px 6px;
  --r-device-bezel: 14px 14px 3px 3px;
  --r-device-base: 2px 2px 16px 16px / 2px 2px 12px 12px;
  --r-notch: 0 0 8px 8px;
  --shadow-device: 0 1px 0 rgba(255,255,255,.35) inset,0 24px 40px -18px rgba(2,18,12,.55);
  --shadow-card: 0 1px 2px rgba(6,24,17,.10),0 14px 30px -10px rgba(2,18,12,.42);
  --shadow-float: 0 2px 6px rgba(6,24,17,.12),0 22px 44px -14px rgba(2,18,12,.50),0 46px 90px -30px rgba(2,18,12,.55);
  --shadow-top: 0 2px 4px rgba(2,12,8,.30),0 12px 26px -8px rgba(2,12,8,.62);
  --shadow-soft: 0 1px 2px rgba(20,22,22,.05),0 20px 48px -24px rgba(20,22,22,.18);
  --shadow-btn: 0 1px 0 rgba(255,255,255,.35) inset,0 8px 18px -8px rgba(5,140,124,.55);
  --shadow-base: 0 10px 18px -10px rgba(2,14,9,.7);
  --shadow-terminal: 0 0 0 1px var(--ink-line),0 10px 24px -10px rgba(0,0,0,.7);
  --shadow-switch: 0 1px 3px rgba(6,24,17,.3);
  --container: 1312px;
  --reading: 880px;
  --gutter: 64px;
  --header-height: 76px;
  --motion-fast: .18s;
  --motion-reveal: .55s;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { margin: 0; padding: 0; }
body {
  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;
}
html.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea { max-width: 100%; }
button { color: var(--text); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg, .dot, .pulse, .plat-ico, .brand-mark { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: var(--r-focus); }
.ink-surface :focus-visible, .forest-surface :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent-soft); color: var(--text); }
.wrap {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.reading-wrap { max-width: calc(var(--reading) + var(--gutter) * 2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
h1, h2, h3, h4 {
  font-family: var(--font-display); color: var(--text);
  line-height: 1.25; letter-spacing: -.02em; text-wrap: balance;
}
h1, .h1 { font-size: clamp(34px,3.2vw,46px); font-weight: 800; line-height: 1.16; }
h2, .h2 { font-size: clamp(26px,2.5vw,36px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 750; }
h4 { font-size: 19px; }
.keep-word { white-space: nowrap; }
p { margin-top: 0; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%; min-width: 0; overflow-x: auto; padding: 22px;
  border-radius: var(--r-md); background: var(--ink); color: var(--code-text);
  font-size: 13px; line-height: 1.8; tab-size: 2;
}
pre code { overflow-wrap: normal; white-space: pre; }
.prose, .article-body { min-width: 0; }
.prose h2, .article-body h2 { margin-top: 2.1em; margin-bottom: .7em; }
.prose h3, .article-body h3 { margin-top: 1.6em; }
.prose p, .article-body p { line-height: 1.9; margin-bottom: 1.2em; }
.prose a, .article-body a { color: var(--forest); text-decoration: underline; text-underline-offset: .2em; }
.prose li, .article-body li { margin-bottom: .5em; }
.prose :not(pre) > code, .article-body :not(pre) > code {
  background: var(--bg-panel); color: var(--text); padding: .1em .3em; border-radius: var(--r-screen);
}
.section { padding-top: 80px; padding-bottom: 80px; overflow-x: clip; }
.section-heading { margin-bottom: 32px; }
.muted { color: var(--text-muted); }
.h2 { margin: 0; text-align: center; }
.grid-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.grid-three { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.grid-two > *, .grid-three > *, .hero-grid > *, .footer-grid > * { min-width: 0; }
.card {
  padding: 32px; border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); min-width: 0;
}
.card h3 { margin-top: 0; }
.ink-surface { background: var(--ink); color: var(--on-dark); }
.forest-surface { background: var(--forest); color: var(--on-dark); }
.neutral-band { background: var(--bg-panel); color: var(--text); }
.ink-surface h2, .ink-surface h3, .forest-surface h2, .forest-surface h3 { color: var(--on-dark); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 26px; max-width: 100%;
  border: 1px solid var(--clear); border-radius: var(--r-btn);
  font-size: 16px; font-weight: 650; line-height: 1.4; letter-spacing: .005em;
  text-align: center; transition: background-color var(--motion-fast),border-color var(--motion-fast),transform var(--motion-fast);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--text); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-hover); color: var(--text); transform: translateY(-1px); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover, .btn-ghost.is-hover { border-color: var(--text); transform: translateY(-1px); }
.btn-white { background: var(--bg); color: var(--text); }
.btn-white:hover { background: var(--bg-panel); color: var(--text); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn:active, .btn.is-active { transform: translateY(1px); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-2); color: var(--text-muted); border-color: var(--border); box-shadow: none; cursor: not-allowed; transform: none; }
.btn.is-focus { outline: 2px solid var(--forest); outline-offset: 3px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.topbar, #site-header { position: relative; z-index: 50; background: var(--bg); color: var(--text); }
.topbar-in {
  width: 100%; max-width: min(100%,calc(1280px + var(--gutter) * 2));
  padding-inline: var(--gutter); margin-inline: auto;
  height: var(--header-height); display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: var(--text); }
.mainnav { margin-left: auto; min-width: 0; }
.mainnav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.mainnav a {
  display: block; padding: 8px 15px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--text-muted);
  transition: color var(--motion-fast),background-color var(--motion-fast);
}
.mainnav a:hover { color: var(--text); background: var(--bg-panel); }
.mainnav a[aria-current="page"] { color: var(--text); font-weight: 650; background: var(--bg-panel-2); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-box { position: relative; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--r-btn);
  background: var(--bg); color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.lang svg { width: 16px; height: 16px; color: var(--text-muted); }
.lang:hover { border-color: var(--border-strong); }
.lang-short { display: none; }
.language-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 190px; padding: 8px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft);
}
.language-menu a { display: block; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel); color: var(--text); }
.menu-toggle {
  display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg); color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer { display: none; }
.nav-veil {
  position: fixed; inset: var(--header-height) 0 0; z-index: 40;
  background: var(--veil-color); color: var(--text); border: 0; width: 100%;
}
.preview-mobile { display: none; }
.hero { padding-top: 32px; padding-bottom: 72px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 46fr 54fr; gap: 48px; align-items: center; }
.hero-copy { padding-right: 8px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px;
  border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted);
  font-size: 13.5px; font-weight: 550;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: var(--r-round); background: var(--accent); }
.hero .h1 { margin: 22px 0 0; }
.h1-line { display: block; }
.h1 mark {
  color: inherit; background: linear-gradient(180deg,var(--clear) 60%,var(--accent-soft) 60%,var(--accent-soft) 92%,var(--clear) 92%); padding: 0 .06em;
}
.lede { margin: 26px 0 0; max-width: 530px; font-size: 17px; line-height: 1.75; color: var(--text-muted); }
.lede strong { color: var(--text); font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.chips-label, .platforms-label { font-size: 13px; color: var(--text-muted); margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px;
  border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; max-width: 100%; overflow-wrap: anywhere;
}
.chip-hot { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.platforms {
  margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--border-strong);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
}
.plat { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.plat-ico {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--bg-panel); color: var(--text);
  transition: background-color var(--motion-fast),color var(--motion-fast);
}
.plat-ico svg { width: 17px; height: 17px; }
.plat:hover { color: var(--forest); }
.plat:hover .plat-ico { background: var(--forest); color: var(--on-dark); }
.canvas {
  position: relative; height: 640px; border-radius: var(--r-canvas); overflow: hidden;
  background: radial-gradient(ellipse 62% 54% at 60% 66%,var(--forest-glow) 0%,var(--forest-clear) 100%),linear-gradient(180deg,var(--forest) 0%,var(--forest-deep) 100%);
  color: var(--on-dark);
}
.stage { position: absolute; left: 50%; top: calc(50% + 14px); width: 600px; height: 560px; transform: translate(-50%,-50%); }
.lt-shadow { position: absolute; left: 58px; top: 478px; width: 580px; height: 54px; border-radius: var(--r-round); background: radial-gradient(closest-side,var(--device-shadow-color),var(--device-shadow-clear)); }
.lt-lid {
  position: absolute; left: 130px; top: 196px; width: 430px; height: 284px; padding: 5px;
  border-radius: var(--r-device-lid); background: linear-gradient(180deg,var(--silver-edge) 0%,var(--silver-hi) 18%,var(--silver-lo) 100%); box-shadow: var(--shadow-device);
}
.lt-bezel { position: relative; height: 100%; padding: 11px 10px 15px; border-radius: var(--r-device-bezel); background: var(--ink); color: var(--on-dark); }
.lt-cam { position: absolute; top: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: var(--r-round); background: var(--ink-2); box-shadow: 0 0 0 1px var(--ink-line); }
.lt-screen { position: relative; height: 100%; border-radius: var(--r-screen); overflow: hidden; background: radial-gradient(ellipse 80% 70% at 18% 100%,var(--screen-glow),var(--forest-clear)),var(--screen-bg); color: var(--code-text); }
.lt-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg,var(--reflection) 0%,var(--white-clear) 38%); pointer-events: none; }
.lt-base { position: absolute; left: 90px; top: 480px; width: 510px; height: 16px; border-radius: var(--r-device-base); background: linear-gradient(180deg,var(--silver-hi) 0%,var(--silver-lo) 70%,var(--silver-mid) 100%); box-shadow: var(--shadow-base); }
.lt-base::before { content: ""; position: absolute; left: 9%; right: 9%; top: 0; height: 2px; border-radius: var(--r-screen); background: linear-gradient(90deg,var(--white-clear),var(--hinge-light) 50%,var(--white-clear)); }
.lt-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 78px; height: 6px; margin-left: -39px; border-radius: var(--r-notch); background: linear-gradient(180deg,var(--silver-mid),var(--silver-lo)); }
.term { position: absolute; top: 12px; right: 12px; bottom: 12px; width: 216px; border-radius: var(--r-xs); background: var(--ink-2); color: var(--code-text); box-shadow: var(--shadow-terminal); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-bottom: 1px solid var(--ink-line); }
.dot { width: 7px; height: 7px; border-radius: var(--r-round); }
.dot-r { background: var(--error); }
.dot-y { background: var(--warn); }
.dot-g { background: var(--success); }
.term-title { margin-left: auto; margin-right: auto; padding-right: 24px; font-family: var(--font-mono); font-size: 9px; color: var(--code-dim); }
.term-code { margin: 0; padding: 8px 10px; border-radius: var(--r-screen); background: var(--clear); color: var(--code-text); font-family: var(--font-mono); font-size: 9.5px; line-height: 13.5px; white-space: pre; }
.term-code .c-p, .term-code .c-s { color: var(--accent); }
.term-code .c-d { color: var(--code-dim); }
.dlg { position: absolute; left: 0; top: 62px; width: 300px; border-radius: var(--r-dlg); background: var(--bg); color: var(--text); box-shadow: var(--shadow-float); transform: rotate(-2deg); transform-origin: 60% 40%; }
.dlg-bar { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 16px 0 18px; border-bottom: 1px solid var(--border); }
.dlg-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-xs); background: var(--forest); color: var(--on-dark); }
.dlg-ico svg { width: 12px; height: 12px; }
.dlg-title { font-size: 14px; font-weight: 700; color: var(--text); }
.dlg-x { margin-left: auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-xs); color: var(--text-muted); }
.dlg-body { padding: 16px 18px 18px; }
.fld + .fld { margin-top: 12px; }
.fld-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.fld-input { display: block; min-height: 36px; padding: 7px 12px; border-radius: var(--r-sm); background: var(--bg-panel); border: 1px solid var(--border); font-size: 13.5px; line-height: 20px; color: var(--text); overflow-wrap: anywhere; }
.fld-mono { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: -.01em; }
.fld-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 10px 2px 2px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.sw { position: relative; width: 36px; height: 21px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--accent); }
.sw::after { content: ""; position: absolute; top: 2.5px; right: 2.5px; width: 16px; height: 16px; border-radius: var(--r-round); background: var(--bg); box-shadow: var(--shadow-switch); }
.dlg-ok { position: relative; display: flex; align-items: center; justify-content: center; height: 42px; margin-top: 16px; border-radius: var(--r-btn); background: var(--ink); color: var(--on-dark); font-size: 14px; font-weight: 650; letter-spacing: .1em; }
.cursor { position: absolute; right: 62px; top: 20px; width: 24px; height: 28px; }
.cursor .cu-fill { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.bubble { position: absolute; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 15px 0 12px; border-radius: var(--r-btn); background: var(--ink); color: var(--on-dark); font-size: 13.5px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-top); }
.bubble-route { left: 266px; top: 32px; }
.bubble-proxy { left: 332px; top: 88px; }
.bubble .hl { color: var(--lime); }
.bubble .on { width: 7px; height: 7px; border-radius: var(--r-round); background: var(--accent); }
.core { position: absolute; left: 486px; top: 388px; padding: 11px 14px 12px; border-radius: var(--r-md); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card); }
.core-label { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.core-tag { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: var(--r-xs); background: var(--bg-panel); color: var(--text); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.core-tag::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-round); background: var(--success); }
.duo { padding-top: 40px; padding-bottom: 120px; }
.duo-sub { margin: 14px auto 0; max-width: 600px; text-align: center; font-size: 16.5px; color: var(--text-muted); }
.duo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin-top: 56px; }
.duo-card { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 560px; padding: 56px 48px 0; border-radius: var(--r-card); overflow: hidden; text-align: center; color: var(--on-dark); }
.duo-dark { background: var(--ink); color: var(--on-dark); }
.duo-forest { background: var(--forest); color: var(--on-dark); }
.duo-card h3 { margin: 0; font-weight: 800; font-size: 30px; color: var(--on-dark); }
.duo-card p { margin: 14px 0 0; max-width: 440px; line-height: 1.75; color: var(--on-dark-muted); }
.duo-card .btn { margin-top: 28px; }
.panel { margin-top: auto; width: min(380px,100%); transform: translateY(28px); padding: 20px 20px 48px; border-radius: var(--r-dlg); background: var(--bg); color: var(--text); text-align: left; box-shadow: var(--shadow-float); }
.panel-head { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.p-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 8px 4px; font-size: 14.5px; font-weight: 600; }
.p-row + .p-row { border-top: 1px solid var(--border); }
.p-select { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 10px 5px 12px; border-radius: var(--r-xs); border: 1px solid var(--border); background: var(--bg-panel); color: var(--text); font-size: 13px; font-weight: 500; }
.site-footer { padding-top: 64px; padding-bottom: 28px; background: var(--bg-panel); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 20px; color: var(--text-muted); max-width: 340px; }
.footer-title { margin: 0 0 16px; font-size: 16px; font-weight: 750; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: block; padding-top: 6px; padding-bottom: 6px; color: var(--text-muted); overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--forest); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-strong); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(18px); }
html.reveal-ready .reveal { transition: opacity var(--motion-reveal),transform var(--motion-reveal); }
.reveal.shown { opacity: 1; transform: none; }
.preview-title { margin-top: 0; }
.preview-stack { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 1380px) {
  .topbar-in { gap: 20px; }
  .mainnav a { padding-inline: 11px; }
}
@media (max-width: 1279px) {
  .mainnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer {
    position: absolute; left: 0; right: 0; top: var(--header-height);
    padding: 16px var(--gutter) 24px; max-height: calc(100dvh - var(--header-height));
    overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--text);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-soft);
  }
  .mobile-drawer:not([hidden]) { display: block; }
  .mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
  .mobile-drawer a { display: block; width: 100%; min-height: 44px; padding: 12px 16px; border-radius: var(--r-btn); }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--bg-panel-2); color: var(--text); }
  .drawer-language-title { margin: 20px 16px 8px; color: var(--text-muted); font-size: 13px; }
  .preview-mobile { display: block; margin-left: auto; }
  .preview-mobile summary { list-style: none; min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--r-btn); cursor: pointer; }
  .preview-mobile nav { position: absolute; top: var(--header-height); left: 0; right: 0; padding: 16px var(--gutter); background: var(--bg); color: var(--text); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
  .preview-mobile nav a { display: block; min-height: 44px; padding: 12px; }
}
@media (max-width: 1180px) { .stage { transform: translate(-50%,-50%) scale(.86); } }
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .canvas { height: 600px; }
  .stage { transform: translate(-50%,-50%) scale(.92); }
  .duo-grid { grid-template-columns: minmax(0,1fr); }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: clamp(24px,4vw,30px); }
  .grid-three { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .topbar-in { gap: 10px; }
  .brand-name { font-size: 15px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-tools { gap: 6px; margin-left: auto; }
  .lang { padding-inline: 10px; min-height: 44px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang svg { display: none; }
  .hero .h1 { font-size: clamp(26px,7.4vw,30px); }
  .hero-copy { padding-right: 0; }
  .canvas { height: 430px; border-radius: var(--r-card); }
  .stage { transform: translate(-50%,-50%) scale(.6); }
  .dlg, .tilt { transform: none; }
  .btn { min-height: 50px; padding: 12px 20px; }
  .duo-card { padding: 40px 24px 0; min-height: 480px; }
  .grid-two, .footer-grid { grid-template-columns: minmax(0,1fr); }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .card { padding: 24px; }
  .chips { flex-direction: row; flex-wrap: wrap; }
  .platforms { gap: 10px 16px; }
  .platforms-label { flex-basis: 100%; }
  .footer-grid { gap: 28px; }
}
@media (max-width: 420px) {
  .stage { transform: translate(-50%,-50%) scale(.52); }
}
@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; }
}