:root {
  color-scheme: light;
  --bg: #f6f6f3;
  --panel: #ffffff;
  --panel-2: #0f3d42;
  --ink: #10272a;
  --teal-mid: #1b5a59;
  --teal-2: #2c7a70;
  --border: #e3e2dc;
  --accent: #6c3fb0;
  --accent-dark: #4e2a87;
  --accent-soft: rgba(108,63,176,.10);
  --accent-ring: rgba(165,130,224,.75);
  --accent-glow: rgba(108,63,176,.55);
  --text: #1d1c1a;
  --muted: #66655f;
  --success: #2f8f6a;
  --success-halo: rgba(47,143,106,.28);
  --warn: #b7791f;
  --error: #c2413b;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255,255,255,.72);
  --on-dark-heading: rgba(255,255,255,.62);
  --on-dark-3: rgba(255,255,255,.66);
  --on-dark-line: rgba(255,255,255,.10);
  --on-dark-line-2: rgba(255,255,255,.18);
  --on-dark-fill: rgba(255,255,255,.05);
  --on-dark-fill-2: rgba(255,255,255,.08);
  --btn-sheen: rgba(255,255,255,.18);
  --screen: #eef3f2;
  --bezel: rgba(232,244,241,.20);
  --bezel-edge: rgba(255,255,255,.34);
  --bezel-cam: rgba(255,255,255,.42);
  --blob-a: rgba(108,63,176,.30);
  --blob-b: rgba(170,226,212,.22);
  --code-type: #0f3d42;
  --code-val: #1d1c1a;
  --code-dim: #53635f;
  --veil: rgba(16,39,42,.42);
  --clear: transparent;

  --font-display: "Inter","Noto Sans SC","PingFang SC","Hiragino Sans","Apple SD Gothic Neo","Microsoft YaHei",system-ui,sans-serif;
  --font-body: "Inter","Noto Sans SC","PingFang SC","Hiragino Sans","Apple SD Gothic Neo","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  --font-mono: "JetBrains Mono",ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-nav: 14px;
  --text-base: 15px;
  --text-lead: 15.5px;
  --text-large: 18px;
  --text-h1: clamp(34px,3.2vw,46px);
  --text-h2: clamp(26px,3vw,36px);
  --text-h3: 21px;
  --tracking-title: -.02em;
  --tracking-ui: -.005em;
  --line-body: 1.7;
  --line-title: 1.14;

  --r-panel: 28px;
  --r-card: 18px;
  --r-device: 22px;
  --r-btn: 10px;
  --r-pill: 999px;
  --r-shot: 8px;
  --r-mark: 8px;
  --r-small: 4px;
  --r-dot: 50%;

  --shadow-stage: 0 1px 0 rgba(16,39,42,.04),0 40px 70px -48px rgba(16,39,42,.55);
  --shadow-float: 0 1px 2px rgba(16,39,42,.08),0 10px 22px -8px rgba(16,39,42,.20),0 32px 56px -18px rgba(16,39,42,.38);
  --shadow-device: 0 50px 90px -30px rgba(4,22,24,.60),0 18px 36px -18px rgba(4,22,24,.45);
  --shadow-menu: 0 1px 2px rgba(29,28,26,.06),0 12px 28px -10px rgba(29,28,26,.18),0 30px 60px -24px rgba(29,28,26,.22);
  --shadow-mark: 0 1px 2px rgba(29,28,26,.10);
  --shadow-btn: inset 0 1px 0 var(--btn-sheen),0 8px 18px -8px var(--accent-glow);
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --duration-fast: .2s;
  --duration-reveal: .6s;
  --gutter: 24px;
  --content-width: 1120px;
  --header-width: 1280px;
  --header-height: 60px;
  --code-line: 40px;
  --section-space: 88px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html,body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.nav-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a,button,summary { -webkit-tap-highlight-color: var(--accent-soft); }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
button,summary { touch-action: manipulation; }
button { border: 0; }
svg { display: block; flex-shrink: 0; }
img { max-width: 100%; }
figure { margin: 0; }
p { margin: 0 0 1em; }
strong,b { font-weight: var(--weight-strong); }
h1,h2,h3,h4 {
  margin: 0 0 .65em;
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  letter-spacing: var(--tracking-title);
  line-height: 1.25;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: var(--line-title); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-large); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--on-dark); }
code,kbd,pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .9em; }
pre {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--screen);
  color: var(--code-val);
  line-height: 1.8;
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 32px; }
.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p,.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--accent-dark); }
.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-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid > *,.wrap > *,main,section,article,.prose,.panel,.card { min-width: 0; }
.panel,.card {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}
.panel { padding: 36px; border-radius: var(--r-panel); }
.card { padding: 26px; border-radius: var(--r-card); }
.card p:last-child,.panel p:last-child { margin-bottom: 0; }
.card-float { box-shadow: var(--shadow-float); }
.dark-panel {
  position: relative;
  overflow-x: clip;
  background: var(--panel-2);
  color: var(--on-dark);
  border-color: var(--on-dark-line);
}
.dark-panel p { color: var(--on-dark-2); }
.prose { max-width: 800px; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose a:not(.btn):not(.appstore-button) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose li { margin-block: .5em; }
.prose > :first-child { margin-top: 0; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 20px;
  border: 1px solid var(--clear);
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  letter-spacing: var(--tracking-ui);
  text-align: center;
  transition: background-color var(--duration-fast),border-color var(--duration-fast),transform var(--duration-fast);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--on-dark); box-shadow: var(--shadow-btn); }
.btn-primary:hover,.btn-primary.is-hover { background: var(--accent-dark); color: var(--on-dark); }
.btn-secondary { background: var(--panel); color: var(--accent); border-color: var(--border); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-ghost {
  background: var(--on-dark-fill);
  color: var(--on-dark);
  border-color: var(--on-dark-line-2);
  padding-inline: 18px;
}
.btn-ghost:hover { background: var(--on-dark-fill-2); color: var(--on-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled,.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.is-focus { outline: 2px solid var(--accent-ring); outline-offset: 3px; }

#site-header { position: relative; z-index: 50; }
.masthead {
  height: var(--header-height);
  width: 100%;
  max-width: min(100%,calc(var(--header-width) + var(--gutter) * 2));
  padding-inline: var(--gutter);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: var(--text-base); font-weight: var(--weight-medium); flex-shrink: 0; }
.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--r-mark);
  background: var(--panel);
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-mark);
}
.brand-mark-placeholder { background: var(--accent-soft); color: var(--accent); }
.mainnav { min-width: 0; margin-left: auto; }
.mainnav > ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.mainnav li { min-width: 0; }
.mainnav a,.more > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--r-btn);
  font-size: var(--text-nav);
  color: var(--muted);
  cursor: pointer;
}
.mainnav a:hover,.more > summary:hover { background: var(--accent-soft); color: var(--text); }
.mainnav a[aria-current="page"] { color: var(--text); }
.mainnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--r-small);
}
.more { position: relative; }
.more > summary { list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary svg { width: 12px; height: 12px; transition: transform var(--duration-fast); }
.more[open] > summary svg { transform: rotate(180deg); }
.more-menu {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 5;
  width: 272px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-menu);
}
.more-menu a { display: block; min-height: 44px; padding: 10px 12px; white-space: normal; }
.more-menu a + a { border-top: 1px solid var(--border); }
.more-menu b { display: block; font-size: var(--text-nav); font-weight: var(--weight-medium); }
.more-menu small { display: block; font-size: var(--text-xs); color: var(--muted); line-height: 1.5; }
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.navsep { width: 1px; height: 18px; background: var(--border); color: var(--text); }
.language-picker { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: var(--text-sm);
}
.lang svg { width: 14px; height: 14px; }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  z-index: 6;
  top: 44px;
  right: 0;
  width: 190px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-menu);
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: var(--r-btn); }
.language-menu a:hover,.language-menu a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--r-btn);
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; inset: var(--header-height) 0 0; z-index: 40; background: var(--veil); color: var(--on-dark); }

.site-footer { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 52px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 48px; }
.footer-grid > * { min-width: 0; }
.footer-brand p { max-width: 380px; margin-top: 18px; font-size: var(--text-nav); color: var(--muted); }
.footer-title { font-size: var(--text-nav); font-weight: var(--weight-medium); margin-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; }
.footer-links a { display: inline-block; padding-block: 5px; font-size: var(--text-sm); color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-nav { display: grid; gap: 3px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: var(--text-xs); }
.footer-languages { margin-top: 28px; }
.footer-languages a[aria-current="true"] { color: var(--accent); }

.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
html.reveal-ready .reveal { transition: opacity var(--duration-reveal) var(--ease-out),transform var(--duration-reveal) var(--ease-out); }

.hero { padding: 12px 24px 0; overflow-x: clip; }
.stage {
  display: grid;
  grid-template-columns: 55fr 45fr;
  height: clamp(640px,calc(100vh - 140px),780px);
  max-width: 1680px;
  margin-inline: auto;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: var(--shadow-stage);
}
.copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 52px 42px 56px;
  min-width: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  min-height: 28px;
  max-width: 100%;
  padding: 3px 13px 3px 11px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-pill);
  background: var(--on-dark-fill-2);
  color: var(--on-dark-2);
  font-size: var(--text-xs);
}
.badge b { font-weight: var(--weight-medium); color: var(--on-dark); }
.badge .dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-dot); background: var(--success); color: var(--on-dark); box-shadow: 0 0 0 3px var(--success-halo); }
.hero-toc { margin-top: 22px; border-top: 1px solid var(--on-dark-line); }
.hero-toc a {
  position: relative;
  display: grid;
  grid-template-columns: 18px 76px minmax(0,1fr);
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--on-dark-line);
  color: var(--on-dark-3);
  font-size: var(--text-sm);
}
.hero-toc a svg { width: 17px; height: 17px; }
.hero-toc b { color: var(--on-dark-2); font-size: var(--text-nav); font-weight: var(--weight-medium); }
.hero-toc a:hover,.hero-toc a.is-selected { background: var(--on-dark-fill-2); color: var(--on-dark-2); }
.hero-toc a.is-selected::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--accent); border-radius: var(--r-small); }
.lead h1 { margin: 0; font-size: clamp(30px,3.2vw,46px); }
.lead h1 .dim { color: var(--on-dark-heading); }
.lead h1 .key { color: var(--on-dark); }
.lead p { margin: 18px 0 0; max-width: 560px; font-size: var(--text-lead); line-height: 1.7; color: var(--on-dark-2); }
.lead p strong { color: var(--on-dark); font-weight: var(--weight-medium); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 24px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--on-dark-line); }
.platforms li,.platforms a { display: flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: var(--on-dark-2); }
.platforms a { min-height: 28px; }
.platforms svg { width: 15px; height: 15px; color: var(--on-dark); }
.platforms .price { margin-left: auto; min-height: 26px; padding: 3px 12px; border-radius: var(--r-pill); border: 1px solid var(--on-dark-line-2); font-size: var(--text-xs); color: var(--on-dark); }

.field {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: linear-gradient(142deg,var(--panel-2) 0%,var(--teal-mid) 52%,var(--teal-2) 100%);
  color: var(--on-dark);
}
.field::before,.field::after { content: ""; position: absolute; border-radius: var(--r-dot); pointer-events: none; }
.field::before { width: 520px; height: 520px; left: -200px; bottom: -220px; background: radial-gradient(closest-side,var(--blob-a),var(--clear)); }
.field::after { width: 460px; height: 460px; right: -170px; top: -200px; background: radial-gradient(closest-side,var(--blob-b),var(--clear)); }
.ipad {
  position: absolute;
  z-index: 1;
  left: 64px;
  top: 198px;
  width: 880px;
  height: 620px;
  border: 14px solid var(--bezel);
  border-radius: var(--r-device);
  box-shadow: 0 0 0 1px var(--bezel-edge),var(--shadow-device);
}
.ipad::before { content: ""; position: absolute; top: -9.5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: var(--r-dot); background: var(--bezel-cam); }
.screen { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-shot); background: var(--screen); color: var(--code-val); }
.code { position: absolute; top: 40px; left: 26px; font-family: var(--font-mono); font-size: 17px; line-height: var(--code-line); color: var(--code-val); white-space: pre; }
.ln { display: flex; align-items: center; height: var(--code-line); }
.no { width: 36px; flex-shrink: 0; font-size: var(--text-xs); color: var(--code-dim); }
.t .k { color: var(--code-type); font-weight: var(--weight-medium); }
.ln.sec .t { color: var(--code-dim); }
.ln.f1 { opacity: .74; }
.ln.f2 { opacity: .56; }
.ln.f3 { opacity: .4; }
.hit { position: relative; }
.hit::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; border-radius: var(--r-small); background: var(--accent); transform-origin: left center; animation: draw .8s var(--ease-out) .35s both; }
.cursor { display: inline-block; width: .55ch; height: 1.15em; margin-left: 3px; border-radius: var(--r-small); background: var(--accent); }
.tip { position: absolute; z-index: 2; top: calc(var(--code-line) * 2 + 12px); left: calc(36px + 12ch); white-space: normal; animation: tip-in .6s var(--ease-out) 1.15s both; }
.tip-card { width: 300px; padding: 16px 18px; border-radius: var(--r-card); background: var(--panel); color: var(--text); box-shadow: var(--shadow-float); font-family: var(--font-body); animation: bob 7s ease-in-out 1.8s infinite; }
.tip-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1; color: var(--muted); }
.tip-head i { width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-dot); background: var(--accent); }
.tip-head b { font-weight: var(--weight-medium); color: var(--text); }
.tip-body { margin-top: 12px; font-size: var(--text-base); line-height: 1.55; }
.tip-sub { margin: 6px 0 0; font-size: var(--text-xs); line-height: 1.5; color: var(--muted); }
.tip-pills { display: flex; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.pill { display: inline-flex; align-items: center; min-height: 26px; max-width: 100%; padding: 3px 11px; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--muted); font-family: var(--font-mono); font-size: 11.5px; overflow-wrap: anywhere; }
.pill.sel { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }
.facts-wrap { padding-inline: 24px; }
.facts { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 42px; max-width: 1680px; margin: 14px auto 0; padding: 8px 30px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); flex-wrap: wrap; }
.fact { display: flex; align-items: center; gap: 9px; }
.fact i { width: 5px; height: 5px; border-radius: var(--r-dot); background: var(--teal-2); flex-shrink: 0; }
.fact em { font-style: normal; color: var(--text); }

@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tip-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (max-width: 1180px) {
  .mainnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) {
    display: block;
    position: absolute;
    z-index: 10;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-height));
    padding: 16px var(--gutter) 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--panel);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-menu);
  }
  .mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-btn); }
  .mobile-drawer a[aria-current],.mobile-drawer a:hover { background: var(--accent-soft); color: var(--accent); }
  .drawer-languages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
  .drawer-heading { padding-inline: 14px; font-size: var(--text-xs); color: var(--muted); }
}
@media (max-width: 1080px) {
  .stage { grid-template-columns: minmax(0,1fr); height: auto; }
  .copy { gap: 40px; padding: 32px 32px 36px; }
  .field { height: 460px; }
  .ipad { left: 32px; top: 72px; }
  .facts { justify-content: flex-start; }
}
@media (max-width: 768px) {
  :root { --text-h1: clamp(24px,5vw,30px); --section-space: 56px; }
  .grid-three { grid-template-columns: minmax(0,1fr); }
  .footer-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --code-line: 34px; }
  .wrap { padding-inline: var(--gutter); }
  .masthead { gap: 10px; }
  .brand { min-width: 0; flex-shrink: 1; font-size: var(--text-nav); gap: 8px; }
  .brand > span { min-width: 0; overflow-wrap: anywhere; }
  .header-tools { gap: 7px; margin-left: auto; }
  .navsep { display: none; }
  .lang { min-height: 40px; padding-inline: 11px; }
  .lang-full,.lang svg { display: none; }
  .lang-short { display: inline; }
  .grid-two { grid-template-columns: minmax(0,1fr); }
  .panel { padding: 24px; }
  .card { padding: 22px; }
  .hero { padding: 8px 12px 0; }
  .copy { padding: 24px 20px 28px; gap: 28px; }
  .lead h1 { font-size: clamp(24px,6vw,30px); }
  .lead p { font-size: var(--text-base); }
  .hero-toc { display: none; }
  .platforms { gap: 8px 13px; margin-top: 20px; padding-top: 14px; }
  .platforms .price { margin-left: 0; }
  .field { height: 400px; }
  .ipad { left: 20px; top: 60px; }
  .code { font-size: 14px; left: 18px; }
  .tip { left: 56px; }
  .tip-card { width: 250px; }
  .facts-wrap { padding-inline: 16px; }
  .facts { padding-inline: 8px; gap: 12px 20px; }
  .tilt,[data-tilt] { transform: none !important; }
  .footer-bottom { display: block; }
  .footer-bottom > * + * { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}
@media print {
  .header-tools,.mobile-drawer,.nav-veil,.dl-fab { display: none !important; }
  html.reveal-ready .reveal { opacity: 1; transform: none; }
}