:root {
  --bg: #1D1437;
  --bg-deep: #130C28;
  --panel: #2A1D4A;
  --panel-2: #36265E;
  --panel-edge: #0F0920;
  --border: #4B3A78;
  --accent: #C6F03A;
  --accent-dark: #8DB51C;
  --pink: #FF4FA3;
  --purple: #9B6BFF;
  --text: #F4EFFF;
  --muted: #B3A6D6;
  --success: #6FE39A;
  --warn: #FFC04D;
  --error: #FF5577;
  --clear: transparent;
  --line-soft: rgba(244,239,255,.10);
  --line-strong: rgba(244,239,255,.34);
  --chip-bg: rgba(42,29,74,.72);
  --hover-bg: rgba(54,38,94,.72);
  --glow-purple: rgba(155,107,255,.17);
  --glow-purple-0: rgba(155,107,255,0);
  --pink-beam-hi: rgba(255,79,163,.52);
  --pink-beam-lo: rgba(255,79,163,.05);
  --lime-beam-hi: rgba(198,240,58,.44);
  --lime-beam-lo: rgba(198,240,58,.03);
  --success-ring: rgba(111,227,154,.55);
  --shadow-deep: rgba(8,4,20,.74);
  --shadow-soft: rgba(8,4,20,.46);
  --accent-glow: rgba(198,240,58,.24);
  --fade-bg: rgba(29,20,55,1);
  --fade-bg-0: rgba(29,20,55,0);
  --veil: rgba(8,4,20,.72);
  --radius: 6px;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --font-display: 'Inter','Noto Sans SC','PingFang SC','Microsoft YaHei',system-ui,sans-serif;
  --font-body: 'Noto Sans SC','Inter','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  --font-mono: 'JetBrains Mono','SFMono-Regular',Consolas,'Liberation Mono',monospace;
  --size-xs: 12px;
  --size-sm: 14px;
  --size-body: 16px;
  --size-lede: 17px;
  --size-h1: clamp(34px,3.4vw,48px);
  --size-h2: clamp(24px,2.4vw,32px);
  --size-h3: 20px;
  --weight-body: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --weight-heading: 900;
  --stroke-cool: linear-gradient(150deg,var(--purple) 0%,var(--border) 46%,var(--border) 100%);
  --stroke-hot: linear-gradient(165deg,var(--pink) 0%,var(--accent) 100%);
  --shadow-card: 0 6px 0 -2px var(--panel-edge),0 26px 50px -18px var(--shadow-deep),0 10px 20px -8px var(--shadow-soft);
  --container: 1200px;
  --reading: 820px;
  --gutter: 24px;
  --nav-h: 64px;
  --space-section: 80px;
  --speed: .18s;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 1.7 -0.92'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.32'/%3E%3C/svg%3E");
  --paw-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg%3E%3Cellipse cx='32' cy='42' rx='7.5' ry='6.5'/%3E%3Ccircle cx='22' cy='32' r='3.2'/%3E%3Ccircle cx='28.5' cy='26' r='3.2'/%3E%3Ccircle cx='36.5' cy='26' r='3.2'/%3E%3Ccircle cx='43' cy='32' r='3.2'/%3E%3Cellipse cx='108' cy='112' rx='6' ry='5.2' transform='rotate(-24 108 112)'/%3E%3Ccircle cx='99' cy='106' r='2.6'/%3E%3Ccircle cx='103' cy='100' r='2.6'/%3E%3Ccircle cx='110' cy='99' r='2.6'/%3E%3Ccircle cx='116' cy='103' r='2.6'/%3E%3Cpath d='M112 30h3v7h7v3h-7v7h-3v-7h-7v-3h7zM40 108h2.5v5.5h5.5v2.5h-5.5v5.5h-2.5v-5.5h-5.5v-2.5h5.5z'/%3E%3C/g%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--noise);
  color: var(--text);
  font: var(--weight-body) var(--size-body)/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--clear); }
button { color: var(--text); }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
figure, blockquote, p { margin: 0; }
ul, ol { padding-left: 1.5em; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; overflow-wrap: normal; }
h1 { margin: 0 0 24px; font-size: var(--size-h1); line-height: 1.2; font-weight: var(--weight-heading); letter-spacing: -.005em; }
h2 { margin: 0 0 24px; font-size: var(--size-h2); line-height: 1.3; font-weight: var(--weight-heading); }
h3 { margin: 0 0 14px; font-size: var(--size-h3); line-height: 1.4; font-weight: 800; }
h4 { font-size: var(--size-body); }
p + p { margin-top: 1em; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .9em; }
pre { max-width: 100%; min-width: 0; overflow-x: auto; margin: 20px 0; padding: 20px; background: var(--bg-deep); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); font-size: var(--size-sm); line-height: 1.7; }
pre code { font-size: inherit; white-space: pre; overflow-wrap: normal; word-break: normal; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: var(--radius-sm); }
[hidden] { display: none !important; }
::selection { background: var(--panel-2); color: var(--text); }
.wrap { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); padding-inline: var(--gutter); margin-inline: auto; }
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.sec { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.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 > *, .wrap > *, .prose > *, .panel > * { min-width: 0; }
.stack { display: grid; gap: 24px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.nowrap { white-space: nowrap; }
.muted, .lede { color: var(--muted); }
.mono, .kicker { font-family: var(--font-mono); }
.kicker { color: var(--muted); font-size: var(--size-xs); letter-spacing: .04em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px; background: var(--panel); color: var(--text); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.prose { min-width: 0; }
.prose h2 { margin-top: 2.5em; scroll-margin-top: 28px; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { line-height: 1.9; }
.prose a:not(.btn) { text-decoration: underline; text-underline-offset: .2em; }
.prose :not(pre) > code { background: var(--panel); color: var(--text); padding: .12em .3em; border-radius: var(--radius-sm); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 24px;
  font: var(--weight-bold) 15px/1.4 var(--font-body);
  text-align: center; border: 1px solid var(--clear); border-radius: var(--radius);
  background: var(--panel); color: var(--text);
  transition: transform var(--speed) ease, border-color var(--speed) ease;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover, .btn.is-hover { transform: translateY(-1px); }
.btn:active, .btn.is-active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--bg-deep); box-shadow: 0 3px 0 var(--accent-dark),0 12px 26px -10px var(--accent-glow); }
.btn--ghost { background: var(--clear); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--panel-2); color: var(--muted); border-color: var(--border); box-shadow: none; cursor: not-allowed; transform: none; }
.btn.is-focus { outline: 2px solid var(--text); outline-offset: 3px; }
.surface, .client-card, .term-card, .post-card, .download-guide {
  min-width: 0; padding: 24px; border: 1px solid var(--clear); border-radius: var(--radius);
  background: linear-gradient(var(--panel),var(--panel)) padding-box,var(--stroke-hot) border-box;
  color: var(--text); box-shadow: var(--shadow-card);
}
.surface--cool { background: linear-gradient(var(--panel),var(--panel)) padding-box,var(--stroke-cool) border-box; color: var(--text); }
.panel { padding: 16px 18px 18px; min-width: 0; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
.reveal.shown { opacity: 1; transform: none; transition: opacity .55s ease,transform .55s ease; }

/* 头部使用独立宽版心，不借用正文 wrap。 */
.topbar { position: relative; z-index: 50; border-bottom: 1px solid var(--line-soft); }
.topbar__inner {
  position: relative; max-width: min(100%,calc(1280px + var(--gutter) * 2));
  margin-inline: auto; padding-inline: var(--gutter); height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand__name { font: 800 17px/1.3 var(--font-display); letter-spacing: .01em; }
.tabs { margin-left: auto; align-self: stretch; min-width: 0; }
.tabs ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; height: 100%; gap: 0; }
.tabs li { height: 100%; }
.tabs a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 14px; white-space: nowrap; font-size: var(--size-sm); font-weight: var(--weight-medium); color: var(--muted); }
.tabs a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--line-strong); transform: scaleX(0); transition: transform .2s ease; }
.tabs a:hover { color: var(--text); }
.tabs a:hover::after { transform: scaleX(1); }
.tabs a[aria-current="page"] { color: var(--text); font-weight: var(--weight-bold); }
.tabs a[aria-current="page"]::after { background: var(--accent); transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language { position: relative; }
.lang { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 8px 12px; font: var(--weight-medium) 13px/1.3 var(--font-body); color: var(--muted); background: var(--clear); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; white-space: nowrap; }
.lang:hover { color: var(--text); border-color: var(--line-strong); }
.lang svg { width: 15px; height: 15px; }
.lang-short { display: none; }
.language-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 180px; padding: 6px; margin: 0; list-style: none; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; width: 100%; }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--panel-2); color: var(--text); }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; padding: 10px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; }
.menu-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: -1; border: 0; background: var(--veil); color: var(--text); cursor: default; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line-soft); padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .85fr 1.3fr .7fr; gap: 36px; }
.footer-grid > * { min-width: 0; }
.footer-intro { margin-top: 18px; color: var(--muted); font-size: var(--size-sm); }
.footer-title { margin: 0 0 16px; font: var(--weight-bold) var(--size-sm)/1.5 var(--font-body); }
.footer-links { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; font-size: var(--size-sm); color: var(--muted); }
.footer-links a { display: inline-block; padding-block: 4px; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: var(--size-xs); }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* 首屏：与确认稿保持相同的纵向构图、舞台位置与缩放。 */
.hero { position: relative; min-height: calc(100svh - var(--nav-h) - 44px); display: grid; align-content: center; padding: 20px 24px 12px; overflow-x: clip; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(58% 46% at 50% 80%,var(--glow-purple) 0%,var(--glow-purple-0) 72%); color: var(--text); pointer-events: none; }
.hero__copy { position: relative; z-index: 2; text-align: center; max-width: var(--container); margin-inline: auto; min-width: 0; }
.facts { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; }
.fact { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 28px; padding: 5px 12px; font: var(--weight-medium) var(--size-xs)/1.4 var(--font-mono); letter-spacing: .02em; color: var(--muted); background: var(--chip-bg); border: 1px solid var(--border); border-radius: var(--radius-pill); max-width: 100%; }
.fact--live { color: var(--text); }
.pulse { position: relative; width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--radius-circle); background: var(--success); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: var(--radius-circle); border: 1.5px solid var(--success-ring); }
.hero h1 { margin: 18px 0 0; font-size: clamp(34px,3.4vw,48px); }
.hero h1 em { display: inline-block; margin-left: .12em; font-style: normal; color: var(--pink); transform: rotate(-4deg) translateY(.03em); transform-origin: left center; white-space: nowrap; }
.lede { margin: 14px auto 0; max-width: 820px; font-size: var(--size-lede); line-height: 1.65; }
.lede strong, .lede code { color: var(--text); }
.cta { margin-top: 24px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.platform-row { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.platform-row__label { font: var(--weight-medium) var(--size-xs)/1.4 var(--font-mono); color: var(--muted); letter-spacing: .04em; padding-right: 12px; border-right: 1px solid var(--border); }
.platforms { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.platforms a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 6px 11px; font-size: 13px; font-weight: var(--weight-medium); color: var(--muted); border-radius: var(--radius); }
.platforms a:hover { background: var(--hover-bg); color: var(--text); }
.platforms svg { width: 15px; height: 15px; flex-shrink: 0; }
.spark { position: absolute; width: 11px; height: 11px; opacity: .5; pointer-events: none; }
.spark::before,.spark::after { content: ""; position: absolute; background: var(--muted); border-radius: var(--radius-sm); }
.spark::before { left: 5px; top: 0; width: 1.5px; height: 11px; }
.spark::after { top: 5px; left: 0; height: 1.5px; width: 11px; }
.s1 { top: 12%; left: 9%; } .s2 { top: 27%; left: 89%; transform: rotate(12deg); }
.s3 { top: 56%; left: 3%; transform: scale(.7); } .s4 { top: 7%; left: 76%; transform: scale(.8); }
.s5 { top: 38%; left: 17%; transform: scale(.6) rotate(20deg); } .s6 { top: 62%; left: 95%; transform: scale(.75); }
.stage-wrap { position: relative; z-index: 1; height: 430px; margin-top: 24px; }
.stage { position: relative; width: 1200px; height: 430px; left: 50%; margin-left: -600px; transform-origin: top center; }
.beam { position: absolute; z-index: 1; pointer-events: none; }
.beam--pink { left: 340px; top: 0; width: 242px; height: 236px; clip-path: polygon(100% 40%,0% 3%,0% 88%); background: linear-gradient(to left,var(--pink-beam-lo),var(--pink-beam-hi)); }
.beam--lime { left: 712px; top: 0; width: 140px; height: 430px; clip-path: polygon(6% 77%,100% 6%,100% 96%); background: linear-gradient(to right,var(--lime-beam-lo),var(--lime-beam-hi)); }
.cables { position: absolute; inset: 0; width: 1200px; height: 430px; z-index: 2; pointer-events: none; }
.cable-o { fill: none; stroke: var(--panel-edge); stroke-width: 5; stroke-linecap: round; }
.cable { fill: none; stroke: var(--purple); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 7 6; }
.cat { position: absolute; z-index: 3; left: 450px; top: 8px; width: 300px; height: 420px; overflow: visible; }
.k-white { fill: var(--text); }
.k-stroke { stroke: var(--bg-deep); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.k-shade { fill: var(--purple); fill-opacity: .4; }
.k-ink { fill: var(--bg-deep); }
.k-line { fill: none; stroke: var(--bg-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.k-box { fill: var(--panel-2); }
.k-box-dark { fill: var(--panel); }
.k-lid { fill: var(--border); }
.k-plate { fill: var(--bg-deep); stroke: var(--border); stroke-width: 1.5; }
.k-plug { fill: var(--muted); }
.k-cable-o { fill: none; stroke: var(--bg-deep); stroke-width: 8; stroke-linecap: round; }
.k-cable { fill: none; stroke: var(--purple); stroke-width: 4.5; stroke-linecap: round; }
.k-band { fill: none; stroke: var(--panel-2); stroke-width: 8; stroke-linecap: round; }
.k-lens { fill: var(--pink); }
.k-nose { fill: var(--purple); }
.k-floor { fill: var(--panel-edge); opacity: .75; }
.k-label { font-family: var(--font-mono); font-size: 21px; font-weight: var(--weight-bold); letter-spacing: .06em; fill: var(--text); }
.card { position: absolute; z-index: 4; min-width: 0; border: 1px solid var(--clear); border-radius: var(--radius); background: linear-gradient(var(--panel),var(--panel)) padding-box,var(--stroke-cool) border-box; color: var(--text); box-shadow: var(--shadow-card); text-align: left; }
.card--hot { background: linear-gradient(var(--panel),var(--panel)) padding-box,var(--stroke-hot) border-box; color: var(--text); }
.card--config { left: 16px; top: 10px; width: 344px; transform: rotate(-2deg); }
.card--log { left: 64px; top: 226px; width: 340px; transform: rotate(-2deg) translateY(2px); }
.card--rules { left: 828px; top: 14px; width: 352px; transform: rotate(2deg); }
.chrome { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; background: var(--panel-2); color: var(--text); border-bottom: 1px solid var(--border); border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.chrome__dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: var(--radius-circle); background: var(--border); }
.chrome__dot:first-child { background: var(--muted); opacity: .55; }
.chrome__title { margin-left: 8px; font: 600 11.5px/1 var(--font-mono); }
.chrome__meta { margin-left: auto; font: var(--weight-body) 11px/1 var(--font-mono); color: var(--muted); }
.code { margin: 0; padding: 12px 14px 14px; font: var(--weight-body) 12.5px/20px var(--font-mono); background: var(--clear); color: var(--text); white-space: pre; overflow-x: auto; border: 0; }
.code .line { display: block; }
.code .ln { display: inline-block; width: 22px; color: var(--muted); opacity: .7; user-select: none; }
pre .k { color: var(--pink); }
pre .v { color: var(--text); }
.log { padding: 12px 14px 14px; margin: 0; list-style: none; display: grid; gap: 8px; font: var(--weight-body) 11.5px/18px var(--font-mono); }
.log li { display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: start; }
.log .lv { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.log .lv i { width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--radius-circle); background: var(--success); }
.log .msg { overflow-wrap: anywhere; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.panel-title { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.rules { display: grid; gap: 4px; font: var(--weight-body) 12.5px/1.5 var(--font-mono); list-style: none; margin: 0; padding: 0; }
.rules li { display: flex; align-items: center; min-height: 32px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--bg-deep); color: var(--text); white-space: nowrap; }
.rules .r-dash { color: var(--muted); margin-right: 8px; }
.rules .r-type { color: var(--muted); }
.rules .r-pol { font-weight: var(--weight-bold); }
.rules .is-hit { background: var(--accent); color: var(--bg-deep); }
.rules .is-hit .r-dash, .rules .is-hit .r-type { color: var(--bg-deep); }
.rules .hit { margin-left: auto; padding: 4px 6px; border-radius: var(--radius-sm); background: var(--bg-deep); color: var(--accent); font: var(--weight-bold) 10.5px/1 var(--font-body); }
.rule-scroll { max-width: 100%; overflow-x: auto; }
.rule-note { margin-top: 10px; font: var(--weight-body) 11.5px/1.4 var(--font-mono); color: var(--muted); }
.divider { height: 0; margin: 16px 0 14px; border-top: 1px dashed var(--border); }
.switches { display: grid; gap: 2px; list-style: none; padding: 0; margin: 0; }
.switches li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 4px 2px; border-bottom: 1px solid var(--line-soft); }
.switches li:last-child { border-bottom: 0; }
.sw-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 13.5px; font-weight: var(--weight-medium); }
.sw-label small { font: var(--weight-body) 11px/1 var(--font-mono); color: var(--muted); }
.switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; border-radius: var(--radius-pill); background: var(--bg-deep); border: 1px solid var(--border); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: var(--radius-circle); background: var(--muted); box-shadow: 0 1px 2px var(--shadow-soft); }
.switch.is-on { background: var(--purple); border-color: var(--purple); }
.switch.is-on::after { left: 18px; background: var(--text); }
.peek { position: relative; padding-top: 40px; padding-bottom: 80px; overflow-x: clip; }
.peek::before { content: ""; position: absolute; inset: 0; background-color: var(--text); color: var(--bg); opacity: .05; mask-image: var(--paw-pattern); -webkit-mask-image: var(--paw-pattern); pointer-events: none; }
.peek::after { content: ""; position: absolute; inset: 0 0 auto; height: 140px; background: linear-gradient(to bottom,var(--fade-bg),var(--fade-bg-0)); pointer-events: none; }
.peek__inner { position: relative; z-index: 1; }
.peek h2 { margin-top: 14px; font-size: 28px; background-color: var(--bg); color: var(--text); }
.status-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding-block: 14px; border-block: 1px solid var(--line-soft); color: var(--muted); font: var(--weight-medium) var(--size-xs)/1.5 var(--font-mono); }

@media (max-width: 1239px) {
  .stage-wrap { height: 362px; }
  .stage { transform: scale(.84); }
  .tabs a { padding-inline: 10px; }
  .tabs a::after { left: 10px; right: 10px; }
}
@media (max-width: 1100px) {
  .stage-wrap { height: 320px; }
  .stage { transform: scale(.74); }
}
@media (max-width: 1100px) {
  .topbar .tabs { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-drawer:not([hidden]) { display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 2; padding: 16px var(--gutter) 24px; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--panel); color: var(--text); border-bottom: 1px solid var(--border); }
  .mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
  .mobile-drawer a { position: relative; display: flex; align-items: center; width: 100%; min-height: 46px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
  .mobile-drawer a[aria-current="page"]::after { content: ""; position: absolute; bottom: 0; left: 14px; right: 14px; height: 3px; background: var(--accent); }
  .drawer-languages { margin-top: 20px; }
}
@media (max-width: 960px) {
  .hero { min-height: auto; padding: 32px 16px 24px; }
  .lede { font-size: 15px; }
  .platform-row__label { border-right: 0; padding-right: 0; width: 100%; }
  .stage-wrap { height: auto; margin-top: 28px; }
  .stage { width: auto; height: auto; left: auto; margin-left: 0; transform: none; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .beam, .cables { display: none; }
  .cat { position: relative; left: auto; top: auto; width: 220px; height: auto; order: -1; }
  .card, .card--config, .card--log, .card--rules { position: relative; left: auto; top: auto; width: 100%; max-width: 440px; transform: none; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid--three { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  :root { --size-h1: clamp(24px,5vw,30px); --space-section: 56px; }
  .hero h1 { font-size: clamp(24px,5vw,30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid--two, .grid--three { grid-template-columns: minmax(0,1fr); }
  .tilt, .tilt-left, .tilt-right, [data-tilt] { transform: none !important; }
  .topbar__inner { gap: 8px; }
  .header-tools { gap: 6px; margin-left: auto; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang { min-height: 44px; padding-inline: 10px; }
  .brand { gap: 8px; }
  .brand__name { font-size: 15px; }
  .footer-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .surface, .client-card, .term-card, .post-card, .download-guide { padding: 20px; }
  .rules { font-size: 11.5px; }
  .hero h1 em { transform: rotate(-4deg); }
  .cta .btn { padding-inline: 20px; }
}
@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; }
}