:root {
  color-scheme: light;
  --bg: #f8f9fb;
  --panel: #ffffff;
  --panel-dark: #0b1530;
  --border: #e3e7ee;
  --accent: #1a56e8;
  --accent-dark: #0f3fb8;
  --text: #0e1424;
  --muted: #5a6478;
  --success: #1f9e6e;
  --warn: #c98a12;
  --error: #d6453d;
  --chrome: #eef1f6;
  --accent-tint: #eef3fe;
  --accent-soft: #8eaeff;
  --success-bright: #46c99b;
  --error-bright: #f07a72;
  --code-text: #e1e7f4;
  --code-type: #a3b4da;
  --code-dim: #a3b4da;
  --code-num: #8996b1;
  --code-cmt: #94a2bf;
  --on-accent: #ffffff;
  --clear: transparent;
  --line-dark: rgba(255,255,255,.07);
  --line-dark-2: rgba(255,255,255,.12);
  --win-border: rgba(14,20,36,.10);
  --chrome-line: rgba(14,20,36,.07);
  --veil: rgba(11,21,48,.38);
  --accent-a06: rgba(26,86,232,.06);
  --accent-a10: rgba(26,86,232,.10);
  --accent-a14: rgba(26,86,232,.14);
  --accent-a22: rgba(26,86,232,.22);
  --accent-a32: rgba(26,86,232,.32);
  --accent-a40: rgba(26,86,232,.40);
  --accent-a60: rgba(26,86,232,.60);
  --soft-a26: rgba(142,174,255,.26);
  --soft-a10: rgba(142,174,255,.10);
  --shadow-card: 0 1px 2px rgba(14,20,36,.04),0 10px 28px -8px rgba(14,20,36,.08);
  --shadow-card-hover: 0 1px 2px rgba(14,20,36,.05),0 18px 40px -12px rgba(14,20,36,.14);
  --shadow-win: 0 2px 6px rgba(11,21,48,.08),0 40px 80px -28px rgba(11,21,48,.42);
  --shadow-btn: inset 0 1px 0 rgba(255,255,255,.18),0 8px 20px -8px rgba(26,86,232,.55);
  --shadow-mark: 0 1px 2px rgba(14,20,36,.08);
  --r-card: 20px;
  --r-panel: 24px;
  --r-win: 20px;
  --r-btn: 10px;
  --r-shot: 10px;
  --r-sm: 8px;
  --r-xs: 4px;
  --r-pill: 999px;
  --r-circle: 50%;
  --font-display: "Inter","Noto Sans SC",-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans","Apple SD Gothic Neo","Microsoft YaHei",sans-serif;
  --font-body: "Inter","Noto Sans SC",-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans","Apple SD Gothic Neo","Microsoft YaHei",sans-serif;
  --font-mono: "JetBrains Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --text-xs: 12px;
  --text-code-small: 12.5px;
  --text-sm: 13px;
  --text-device: 13.5px;
  --text-ui: 14px;
  --text-nav: 14.5px;
  --text-card: 15px;
  --text-base: 16px;
  --text-lede: 17px;
  --text-subtitle: 20px;
  --text-card-title: 21px;
  --text-h3: 24px;
  --text-h2: clamp(26px,2.2vw,36px);
  --text-h1: clamp(34px,2.4vw + 14px,48px);
  --text-h1-mobile: clamp(24px,6vw + 6px,30px);
  --text-tiny: 11px;
  --weight-normal: 400;
  --weight-medium: 500;
  --track-tight: -.02em;
  --track-brand: -.01em;
  --track-button: -.005em;
  --track-card: -.015em;
  --wrap: 1312px;
  --header-wrap: 1312px;
  --reading: 780px;
  --gutter: 64px;
  --section-gap: 144px;
  --header-height: 72px;
  --ln: 30px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --time-fast: .15s;
  --time-medium: .2s;
  --time-reveal: .6s;
  --scan-duration: 6s;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 32px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--accent-a14); }
button { color: var(--text); }
img, svg { max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }
figure { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-tight);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { margin: 0; font-size: var(--text-h1); line-height: 1.14; }
h2 { margin: 0 0 24px; font-size: var(--text-h2); line-height: 1.25; }
h3 { margin: 0 0 16px; font-size: var(--text-h3); line-height: 1.35; }
p { margin: 0 0 20px; }
strong, b { font-weight: var(--weight-medium); }
code, pre, kbd { font-family: var(--font-mono); }
code { font-size: .88em; overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  background: var(--panel-dark);
  color: var(--code-text);
  border: 1px solid var(--line-dark-2);
  border-radius: var(--r-sm);
  line-height: 1.8;
  -webkit-overflow-scrolling: touch;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }
::selection { background: var(--accent); color: var(--on-accent); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 12px 18px;
  background: var(--panel);
  color: var(--accent-dark);
  border-radius: var(--r-sm);
}
.skip-link:focus { transform: none; }
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.section { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.section-white { background: var(--panel); color: var(--text); }
.section-head { max-width: 740px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.grid-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.grid-three, .cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.grid-two > *, .grid-three > *, .cards > *, .hero-grid > *, .footer-grid > * { min-width: 0; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.h1-accent { color: var(--accent); }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.text-link:hover { color: var(--accent-dark); }
.prose { min-width: 0; overflow-wrap: break-word; }
.prose h2 { margin-top: 64px; scroll-margin-top: 32px; }
.prose h3 { margin-top: 36px; }
.prose p, .prose li { line-height: 1.85; }
.prose a:not(.btn):not(.store-button) { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li + li { margin-top: 10px; }
.prose :not(pre) > code { background: var(--accent-tint); color: var(--accent-dark); border-radius: var(--r-xs); padding: 2px 5px; }
.prose > :first-child { margin-top: 0; }

/* Shared navigation: brand, desktop nav, tools and drawer are siblings. */
.topbar { position: relative; z-index: 50; background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.topbar-in {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: 40px;
  width: 100%;
  max-width: min(100%,calc(var(--header-wrap) + var(--gutter) * 2));
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { display: block; width: 34px; height: 34px; border-radius: var(--r-sm); box-shadow: var(--shadow-mark); flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: var(--weight-medium); font-size: var(--text-base); letter-spacing: var(--track-brand); }
.nav { margin-left: auto; min-width: 0; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 30px; }
.nav-list a { display: block; padding-block: 6px; color: var(--muted); font-size: var(--text-nav); white-space: nowrap; transition: color var(--time-fast) ease; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--text); }
.nav-list a[aria-current="page"] { font-weight: var(--weight-medium); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-picker { position: relative; }
.lang {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 12px;
  font-size: var(--text-ui);
  white-space: nowrap;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.lang:hover { border-color: var(--accent-a40); }
.lang-caret { font-size: var(--text-tiny); color: var(--muted); }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card-hover);
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: var(--r-xs); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--accent-tint); color: var(--accent-dark); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--panel);
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }
.nav-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px var(--gutter) 28px;
  background: var(--panel);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-card-hover);
}
.nav-drawer ul { list-style: none; margin: 0; padding: 0; }
.nav-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 8px; }
.nav-drawer a:hover, .nav-drawer a[aria-current] { background: var(--accent-tint); color: var(--accent-dark); }
.drawer-languages { border-top: 1px solid var(--border); margin-top: 16px !important; padding-top: 16px !important; }
.nav-veil { position: fixed; inset: var(--header-height) 0 0; z-index: 30; border: 0; background: var(--veil); color: var(--text); }

/* Action hierarchy */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.btn, .store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  max-width: 100%;
  padding: 12px 22px;
  border: 1px solid var(--clear);
  border-radius: var(--r-btn);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1.5;
  letter-spacing: var(--track-button);
  text-align: center;
  transition: background-color var(--time-fast) ease,border-color var(--time-fast) ease,transform var(--time-fast) ease;
}
.btn svg, .store-button svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary, .store-button { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .store-button:hover, .demo-hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-primary:active, .store-button:active { transform: translateY(1px); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent-a40); color: var(--accent-dark); }
.btn-ghost .arrow { color: var(--accent); transition: transform var(--time-fast) ease; }
.btn-ghost:hover .arrow { transform: translateX(2px); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; background: var(--chrome); color: var(--muted); border-color: var(--border); box-shadow: none; }
.demo-focus { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Approved first-screen composition */
.hero {
  position: relative;
  overflow-x: clip;
  min-height: clamp(680px,calc(100vh - 140px),800px);
  display: flex;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 56px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,700px); gap: 56px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  color: var(--accent-dark);
  border: 1px solid var(--accent-a14);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.eyebrow-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 3px var(--accent-a14); }
.lede { margin: 28px 0 0; max-width: 31em; font-size: var(--text-lede); line-height: 1.72; color: var(--muted); }
.lede strong { color: var(--text); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.facts li, .fact {
  max-width: 100%;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: var(--text-code-small);
  line-height: 1.3;
  overflow-wrap: anywhere;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.facts b { color: var(--text); }
.devices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.device { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; font-size: var(--text-device); color: var(--text); }
a.device:hover { color: var(--accent); }
.device svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.store-pill { display: inline-flex; align-items: center; padding: 6px 11px; font-size: var(--text-code-small); font-weight: var(--weight-medium); line-height: 1; background: var(--accent-tint); color: var(--accent-dark); border: 1px solid var(--accent-a14); border-radius: var(--r-pill); }
.hero-visual { position: relative; z-index: 1; min-width: 0; }
.glow { position: absolute; z-index: 0; right: -8%; bottom: -70px; width: 78%; height: 62%; border-radius: var(--r-circle); background: radial-gradient(ellipse at 55% 50%,var(--accent-a60) 0%,var(--accent-a22) 42%,var(--clear) 72%); color: var(--text); filter: blur(46px); opacity: .75; pointer-events: none; }
.win { position: relative; z-index: 1; margin: 0; border: 1px solid var(--win-border); border-radius: var(--r-win); background: var(--panel-dark); color: var(--code-text); box-shadow: var(--shadow-win); overflow: hidden; }
.win-bar { position: relative; display: flex; align-items: center; height: 44px; padding-inline: 18px; background: var(--chrome); color: var(--muted); border-bottom: 1px solid var(--chrome-line); }
.lights { display: flex; gap: 8px; }
.lights i { display: block; width: 12px; height: 12px; flex-shrink: 0; border-radius: var(--r-circle); }
.lights i:nth-child(1) { background: var(--error); color: var(--on-accent); }
.lights i:nth-child(2) { background: var(--warn); color: var(--text); }
.lights i:nth-child(3) { background: var(--success); color: var(--text); }
.win-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: var(--text-sm); font-weight: var(--weight-medium); letter-spacing: 0; }
.win-body { padding-top: 22px; padding-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.code { min-width: max-content; font-family: var(--font-mono); font-size: var(--text-ui); color: var(--code-text); }
.ln { position: relative; z-index: 1; display: flex; align-items: center; height: var(--ln); padding-left: 36px; padding-right: 22px; white-space: pre; }
.no { width: 22px; margin-right: 26px; flex-shrink: 0; text-align: right; color: var(--code-num); font-size: var(--text-code-small); user-select: none; }
.tx { white-space: pre; }
.c-sec, .c-type { color: var(--code-type); }
.c-rule { color: var(--accent-soft); background: var(--soft-a10); border: 1px solid var(--soft-a26); border-radius: var(--r-xs); padding: 1px 6px; margin-left: -7px; }
.c-key, .c-val { color: var(--code-text); }
.c-dim { color: var(--code-dim); }
.c-cmt { color: var(--code-cmt); }
.p-proxy { color: var(--accent-soft); font-weight: var(--weight-medium); }
.p-direct { color: var(--success-bright); font-weight: var(--weight-medium); }
.p-reject { color: var(--error-bright); font-weight: var(--weight-medium); }
.rules { position: relative; }
.scan { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: var(--ln); background: linear-gradient(90deg,var(--accent-a40),var(--accent-a14) 55%,var(--clear)); color: var(--code-text); border-left: 2px solid var(--accent-soft); opacity: 0; animation: scan var(--scan-duration) linear infinite; }
.hit { position: absolute; z-index: 2; left: 14px; top: calc(var(--ln) * 5 + var(--ln) / 2 - 3.5px); width: 7px; height: 7px; border-radius: var(--r-circle); background: var(--accent-soft); color: var(--panel-dark); box-shadow: 0 0 0 4px var(--soft-a26); opacity: 0; animation: hit var(--scan-duration) linear infinite; }
@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  2%,8% { transform: translateY(0); opacity: 1; }
  10%,16% { transform: translateY(var(--ln)); opacity: 1; }
  18%,24% { transform: translateY(calc(var(--ln) * 2)); opacity: 1; }
  26%,32% { transform: translateY(calc(var(--ln) * 3)); opacity: 1; }
  34%,40% { transform: translateY(calc(var(--ln) * 4)); opacity: 1; }
  42%,75% { transform: translateY(calc(var(--ln) * 5)); opacity: 1; }
  84% { transform: translateY(calc(var(--ln) * 5)); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes hit {
  0%,41% { transform: scale(.4); opacity: 0; }
  45%,75% { transform: scale(1); opacity: 1; }
  84%,100% { transform: scale(.4); opacity: 0; }
}
.hero-static .scan { animation: none; opacity: 1; transform: translateY(calc(var(--ln) * 5)); }
.hero-static .hit { animation: none; opacity: 1; transform: none; }
.win-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 10px 22px 10px 36px; border-top: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--code-cmt); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: block; width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-circle); }
.lg-proxy { background: var(--accent-soft); color: var(--panel-dark); }
.lg-direct { background: var(--success-bright); color: var(--panel-dark); }
.lg-reject { background: var(--error-bright); color: var(--panel-dark); }
.foot-note b { color: var(--accent-soft); }

/* Cards deliberately overlap a full-width cobalt transition. */
.bridge { position: relative; padding-top: 8px; padding-bottom: 88px; background: linear-gradient(180deg,var(--bg) 0%,var(--bg) 34%,var(--accent-a10) 54%,var(--accent-a40) 74%,var(--accent) 100%); color: var(--text); }
.card { display: flex; flex-direction: column; min-width: 0; min-height: 300px; padding: 32px 32px 28px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); transition: transform var(--time-medium) ease,box-shadow var(--time-medium) ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.card-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); }
.card-tag i { display: block; width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--accent); color: var(--on-accent); }
.card h2, .card h3 { margin: 0; font-size: var(--text-card-title); line-height: 1.3; letter-spacing: var(--track-card); }
.card p:not(.card-tag) { margin: 12px 0 0; color: var(--muted); font-size: var(--text-card); line-height: 1.72; }
.card code { font-size: var(--text-sm); color: var(--text); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 24px; color: var(--accent); font-size: var(--text-card); font-weight: var(--weight-medium); }
.card-link:hover { color: var(--accent-dark); }
.panel { min-width: 0; padding: 40px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--panel); color: var(--text); }
.panel-dark { background: var(--panel-dark); color: var(--code-text); border-color: var(--line-dark-2); }
.panel-dark .muted { color: var(--code-type); }
.panel-dark a:not(.btn):not(.store-button) { color: var(--accent-soft); }

/* Footer */
.site-footer { padding-top: 72px; padding-bottom: 32px; background: var(--panel); color: var(--text); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.25fr .8fr; gap: 48px; }
.footer-brand p { max-width: 28em; margin-top: 20px; color: var(--muted); font-size: var(--text-ui); }
.footer-heading { margin: 0 0 18px; font-size: var(--text-ui); font-weight: var(--weight-medium); }
.footer-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: var(--text-ui); color: var(--muted); }
.footer-list a { display: inline-block; padding-block: 3px; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--accent); }
.footer-list [aria-current="true"] { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: var(--text-xs); }
.footer-bottom p { margin: 0 0 8px; }

/* Visible without JavaScript. Only successfully observed elements are staged. */
.reveal { opacity: 1; transform: none; }
.reveal.reveal-pending { opacity: 0; transform: translateY(18px); transition: opacity var(--time-reveal) var(--ease),transform var(--time-reveal) var(--ease); }
.reveal.shown { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(0,560px); gap: 40px; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: 48px; padding-bottom: 64px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 48px; }
  .hero-visual { width: 100%; max-width: 700px; margin-inline: auto; }
  .cards, .grid-three { grid-template-columns: minmax(0,1fr); }
  .card { min-height: 0; }
  .bridge { background: linear-gradient(180deg,var(--bg),var(--bg) 55%,var(--accent-a22) 82%,var(--accent)); color: var(--text); }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  h1 { font-size: var(--text-h1-mobile); }
  .grid-two { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --ln: 26px; }
  .topbar-in { gap: 12px; }
  .brand { gap: 8px; }
  .brand-name { font-size: var(--text-ui); }
  .brand-logo { width: 30px; height: 30px; }
  .lang { min-height: 44px; padding-inline: 10px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .header-tools { margin-left: auto; gap: 8px; }
  .lede { font-size: var(--text-base); }
  .btn { min-height: 46px; padding: 10px 18px; font-size: var(--text-card); }
  .store-button { min-height: 48px; padding: 11px 18px; font-size: var(--text-card); }
  .facts { flex-direction: row; flex-wrap: wrap; }
  .facts li { padding: 6px 9px; font-size: var(--text-xs); }
  .devices { gap: 8px 16px; }
  .code { font-size: var(--text-xs); }
  .ln { padding-left: 26px; }
  .no { width: 18px; margin-right: 16px; font-size: var(--text-tiny); }
  .hit { left: 9px; }
  .win-foot { padding-inline: 26px 16px; font-size: var(--text-tiny); }
  .foot-note { display: none; }
  .glow { right: -20%; width: 100%; }
  .card { padding: 26px 24px 24px; }
  .panel { padding: 26px 24px; }
  .footer-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .tilt, [data-tilt] { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .scan { animation: none; opacity: 1; transform: translateY(calc(var(--ln) * 5)); }
  .hit { animation: none; opacity: 1; transform: none; }
  .reveal.reveal-pending { opacity: 1; transform: none; }
  .card:hover { transform: none; }
}