:root {
  --bg: #ffffff;
  --bg-panel: #f6f7f8;
  --ink-block: #111419;
  --ink-card: #161a20;
  --ink-card-2: #1a1e25;
  --ink-chip: #0f1115;
  --border: #e5e7eb;
  --accent: #eedb1f;
  --accent-dark: #7d6b00;
  --text: #0f1115;
  --text-muted: #5f6672;
  --success: #15803d;
  --warn: #b45309;
  --error: #c62828;
  --clear: transparent;

  --on-ink: #f4f5f7;
  --on-ink-2: rgba(244, 245, 247, 0.74);
  --on-ink-3: rgba(244, 245, 247, 0.64);
  --on-ink-4: rgba(244, 245, 247, 0.62);
  --line-ink: rgba(255, 255, 255, 0.07);
  --line-ink-10: rgba(255, 255, 255, 0.10);
  --line-ink-2: rgba(255, 255, 255, 0.13);
  --line-ink-3: rgba(255, 255, 255, 0.22);
  --line-ink-ghost: rgba(255, 255, 255, 0.30);
  --dot-ink: rgba(255, 255, 255, 0.06);
  --cell-faint: rgba(255, 255, 255, 0.022);
  --sheen: rgba(255, 255, 255, 0.04);
  --accent-wash: rgba(238, 219, 31, 0.075);
  --accent-dim: rgba(238, 219, 31, 0.86);
  --accent-ring: rgba(238, 219, 31, 0.20);
  --veil: rgba(15, 17, 21, 0.42);

  --glow-accent: 0 10px 26px -12px rgba(238, 219, 31, 0.55);
  --shadow-card: 0 1px 2px rgba(15, 17, 21, 0.05), 0 6px 18px -6px rgba(15, 17, 21, 0.10);
  --shadow-block: 0 36px 70px -36px rgba(15, 17, 21, 0.55), 0 14px 28px -16px rgba(15, 17, 21, 0.28);
  --shadow-back: 0 26px 50px -22px rgba(0, 0, 0, 0.60), 0 0 0 1px rgba(0, 0, 0, 0.20);
  --shadow-front: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 46px 90px -26px rgba(0, 0, 0, 0.82), 0 20px 40px -18px rgba(0, 0, 0, 0.60), 0 0 0 1px rgba(255, 255, 255, 0.10);
  --shadow-fact-hover: 0 14px 28px -16px rgba(0, 0, 0, 0.70);

  --r-block: 18px;
  --r-card: 10px;
  --r-control: 8px;
  --r-logo: 9px;
  --r-chip: 5px;
  --r-small: 3px;
  --r-focus: 4px;
  --r-pill: 999px;
  --r-round: 50%;

  --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, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --weight-normal: 400;
  --weight-medium: 600;
  --weight-bold: 700;
  --weight-display: 800;
  --size-body: 15px;
  --size-small: 13px;
  --size-label: 12px;
  --size-h1: clamp(34px, 1.6vw + 24px, 48px);
  --size-h2: clamp(22px, 2vw, 30px);
  --size-h3: 20px;
  --leading-body: 1.75;
  --leading-title: 1.12;

  --gutter: 24px;
  --reading-width: 1120px;
  --header-width: 1280px;
  --section-space: 160px;
  --header-height: 68px;
  --row: 42px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --duration-fast: .18s;
  --duration-base: .22s;
  --duration-reveal: .55s;
}

*, *::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: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-normal);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { display: block; }
svg { display: block; flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--clear); }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; }
ul, ol { padding-left: 1.5em; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--size-h1); letter-spacing: -.02em; }
h2 { font-size: var(--size-h2); letter-spacing: -.02em; }
h3 { font-size: var(--size-h3); }
h1, h2, h3 { scroll-margin-top: 28px; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  font-size: var(--size-small);
  line-height: 1.8;
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; border-radius: var(--r-focus); }
.stage :focus-visible { outline-color: var(--accent); }
::selection { background: var(--accent); color: var(--text); }
.wrap {
  width: 100%;
  max-width: calc(var(--reading-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap > *, .grid > *, .bento > *, .feature-pair > *, .footer-grid > * { min-width: 0; }
.section { padding-top: var(--section-space); padding-bottom: 0; }
.section:last-child { padding-bottom: 100px; }
.flow > * + * { margin-top: 24px; }
.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)); }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.small { font-size: var(--size-small); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.prose { min-width: 0; line-height: var(--leading-body); }
.prose h2 { margin-top: 2.7em; margin-bottom: .8em; }
.prose h3 { margin-top: 1.8em; }
.prose li + li { margin-top: .55em; }
.prose :not(pre) > code {
  padding: .1em .3em;
  background: var(--bg-panel);
  color: var(--text);
  border-radius: var(--r-small);
  font-size: .9em;
}
.text-link, .prose a:not(.btn):not(.store-button) {
  color: var(--text);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% .35em;
  padding-inline: 1px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size var(--duration-base) var(--ease);
}
.text-link:hover, .prose a:not(.btn):not(.store-button):hover { background-size: 100% 100%; }
.hl {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0;
  transition: background-size var(--duration-base) var(--ease);
  padding-inline: 1px;
}
.sec-title { display: flex; align-items: center; gap: 28px; max-width: var(--reading-width); margin-inline: auto; }
.sec-title::before, .sec-title::after { content: ""; flex: 1; min-width: 12px; height: 1px; background: var(--border); }
.sec-title h2 { margin: 0; font-size: 24px; text-align: center; }
.sec-sub { margin: 10px 0 32px; text-align: center; color: var(--text-muted); }
.card, .panel {
  padding: 28px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.card h3, .panel h3 { margin-top: 0; }
.panel-muted, .fact-band { background: var(--bg-panel); color: var(--text); }
.fact-band { margin-top: var(--section-space); padding-top: 64px; padding-bottom: 64px; }
.btn, .cta-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding-inline: 22px;
  padding-block: 10px;
  border: 1px solid var(--clear);
  border-radius: var(--r-card);
  font-size: var(--size-body);
  font-weight: var(--weight-bold);
  line-height: 1.4;
  text-align: center;
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { color: var(--text); background: var(--accent); box-shadow: var(--glow-accent); }
.btn-primary:hover, .btn-primary.is-hover { transform: translateY(-1px); box-shadow: var(--glow-accent), 0 0 0 4px var(--accent-ring); }
.btn-secondary { color: var(--text); background: var(--bg); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-panel); color: var(--text); }
.btn-ghost { color: var(--on-ink); background: var(--clear); border-color: var(--line-ink-ghost); }
.btn-ghost:hover { background: var(--cell-faint); color: var(--on-ink); border-color: var(--on-ink-2); }
.btn:active, .cta-ink:active { transform: translateY(1px); }
.btn:disabled { background: var(--bg-panel); color: var(--text-muted); box-shadow: none; border-color: var(--border); }
.btn.is-focus { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }

#site-header { position: relative; z-index: 50; background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.topbar {
  position: relative;
  z-index: 52;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  width: 100%;
  max-width: min(100%, calc(var(--header-width) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
  background: var(--bg);
  color: var(--text);
}
.preview-header { border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; flex-shrink: 0; }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--r-logo); }
.brand-placeholder { background: linear-gradient(160deg, var(--bg), var(--bg-panel)); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.brand-name { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 16px; letter-spacing: -.01em; }
.mainnav { min-width: 0; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 8px 13px;
  font-size: 14.5px;
  font-weight: var(--weight-medium);
  color: var(--text);
  background: var(--clear);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover .hl, .nav-link[aria-current="page"] .hl { background-size: 100% .35em; }
.nav-link:hover .hl { background-size: 100% 100%; }
.nav-more, .language-picker { position: relative; }
.more-btn svg { width: 12px; height: 12px; transition: transform var(--duration-fast) var(--ease); }
.more-btn[aria-expanded="true"] svg, details[open] > .more-btn svg { transform: rotate(180deg); }
summary.more-btn { list-style: none; }
summary.more-btn::-webkit-details-marker { display: none; }
.menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
  width: 440px;
  max-width: calc(100vw - 32px);
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transform: translateX(-50%);
}
.menu-group-title { margin: 0 0 6px; padding-inline: 10px; font-size: 11.5px; font-weight: var(--weight-bold); letter-spacing: .06em; color: var(--text-muted); }
.menu-item { display: block; min-height: 44px; padding: 8px 10px; border-radius: var(--r-control); }
.menu-item:hover { background: var(--bg-panel); color: var(--text); }
.menu-item-t { display: block; font-size: 14px; font-weight: var(--weight-bold); }
.menu-item-d { display: block; font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.top-actions { display: flex; align-items: center; gap: 10px; justify-self: end; flex-shrink: 0; }
.lang-btn { min-height: 36px; padding: 7px 12px; font-size: 13.5px; font-weight: var(--weight-medium); color: var(--text-muted); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-pill); white-space: nowrap; }
.lang-short { display: none; }
.language-menu { position: absolute; z-index: 61; right: 0; top: calc(100% + 10px); width: 180px; padding: 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.language-menu a { display: flex; align-items: center; min-height: 44px; width: 100%; padding: 8px 12px; border-radius: var(--r-control); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel); color: var(--text); }
.cta-ink { gap: 7px; min-height: 38px; padding: 8px 18px 8px 15px; font-size: 14px; color: var(--bg); background: var(--text); border-radius: var(--r-pill); }
.cta-ink svg { width: 15px; height: 15px; }
.cta-ink:hover { transform: translateY(-1px); }
.hamburger { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-control); }
.hamburger svg { width: 22px; height: 22px; }
.mobile-drawer { position: absolute; z-index: 56; left: 0; right: 0; top: 100%; 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-card); }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-control); }
.mobile-drawer a:hover, .mobile-drawer a[aria-current="page"] { background: var(--bg-panel); color: var(--text); }
.drawer-label { margin: 20px 14px 6px; color: var(--text-muted); font-size: var(--size-label); font-weight: var(--weight-bold); }
.nav-veil { position: fixed; z-index: 51; inset: var(--header-height) 0 0; border: 0; padding: 0; background: var(--veil); color: var(--text); }
.skip-link { position: absolute; z-index: 100; top: 8px; left: var(--gutter); width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: var(--accent); color: var(--text); border-radius: var(--r-control); }
.skip-link:focus { width: auto; height: auto; padding: 10px 16px; overflow: visible; clip-path: none; white-space: normal; }

.hero { padding: 64px 24px 0; overflow-x: clip; }
.stage { position: relative; padding: 36px 44px; background: var(--ink-block); color: var(--on-ink); border-radius: var(--r-block); box-shadow: var(--shadow-block); isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: radial-gradient(circle, var(--dot-ink) 1px, var(--clear) 1.3px); background-size: 22px 22px; background-position: 11px 11px; pointer-events: none; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(56% 74% at 76% 36%, var(--sheen), var(--clear) 72%); pointer-events: none; }
.bento { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); grid-template-rows: auto auto; gap: 14px 18px; }
.cell-main { grid-column: 1; grid-row: 1; padding: 32px 38px 28px; background: var(--cell-faint); color: var(--on-ink); border: 1px solid var(--line-ink); border-radius: var(--r-card); }
.badge { display: inline-flex; align-items: center; gap: 9px; min-height: 28px; max-width: 100%; padding: 4px 13px 4px 11px; font-size: 12.5px; font-weight: var(--weight-medium); color: var(--on-ink-2); background: var(--cell-faint); border: 1px solid var(--line-ink-2); border-radius: var(--r-pill); }
.badge-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-round); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.h1 { margin: 22px 0 0; font-size: var(--size-h1); line-height: var(--leading-title); letter-spacing: -.02em; color: var(--on-ink); }
.h1-line { display: block; }
.mark { display: inline-block; padding-inline: .08em; margin-left: .04em; background: linear-gradient(to bottom, var(--clear) 56%, var(--accent) 56%); border-radius: var(--r-small); }
.mark-txt { display: block; background: linear-gradient(to bottom, var(--on-ink) 56%, var(--text) 56%); -webkit-background-clip: text; background-clip: text; color: var(--clear); }
.lede { max-width: 31em; margin: 22px 0 0; font-size: var(--size-body); line-height: var(--leading-body); color: var(--on-ink-2); }
.lede strong { color: var(--on-ink); font-weight: var(--weight-bold); }
.devices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-ink); }
.device { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; font-size: var(--size-small); font-weight: var(--weight-medium); color: var(--on-ink-2); }
.device:hover { color: var(--accent); }
.device svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.store-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 11px 3px 9px; margin-left: auto; font-size: var(--size-label); font-weight: var(--weight-bold); color: var(--on-ink); border: 1px solid var(--line-ink-3); border-radius: var(--r-pill); }

.rig-cell { grid-column: 2; grid-row: 1; position: relative; min-height: 430px; }
.rig { position: absolute; inset: 0; transform: perspective(1600px) rotateY(-9deg) rotateX(4deg); transform-origin: 50% 40%; }
.card-back { position: absolute; left: 0; top: -76px; width: 352px; padding-bottom: 18px; background: var(--ink-card-2); color: var(--on-ink); border: 1px solid var(--line-ink-10); border-radius: var(--r-card); box-shadow: var(--shadow-back); }
.back-head, .front-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 10px 18px; border-bottom: 1px solid var(--line-ink); }
.file-name { font-family: var(--font-mono); font-size: var(--size-label); font-weight: var(--weight-medium); color: var(--on-ink-2); }
.head-note { font-size: 11.5px; color: var(--on-ink-3); }
.back-body { max-width: 246px; padding: 16px 0 0 20px; }
.toc-index { position: relative; padding-left: 18px; }
.toc-index::before { content: ""; position: absolute; left: 3px; top: 8px; bottom: 22px; width: 1px; background: var(--line-ink-3); }
.toc-item { position: relative; padding-bottom: 12px; }
.toc-item::before { content: ""; position: absolute; left: -18px; top: 6px; width: 7px; height: 7px; border-radius: var(--r-round); background: var(--ink-card-2); border: 1px solid var(--line-ink-3); }
.toc-item.is-on::before { background: var(--accent); border-color: var(--accent); }
.toc-name { display: block; font-family: var(--font-mono); font-size: 12.5px; font-weight: var(--weight-bold); line-height: 1.5; color: var(--on-ink); }
.toc-field { display: block; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.55; color: var(--on-ink-3); overflow-wrap: anywhere; }
.chips-block { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line-ink); }
.chips-label { display: block; margin: 0 0 7px; font-size: 10.5px; font-weight: var(--weight-bold); letter-spacing: .06em; color: var(--on-ink-4); }
.chips-label + .chips { margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip-k { display: inline-flex; align-items: center; min-height: 22px; max-width: 100%; padding: 2px 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: var(--weight-medium); color: var(--on-ink-2); border: 1px solid var(--line-ink-2); border-radius: var(--r-chip); overflow-wrap: anywhere; }
.pol { display: inline-flex; align-items: center; justify-content: center; min-height: 22px; padding: 2px 8px; font-family: var(--font-mono); font-size: 10.5px; font-weight: var(--weight-bold); letter-spacing: .02em; color: var(--on-ink); background: var(--ink-chip); border: 1px solid var(--line-ink-3); border-radius: var(--r-pill); }
.card-front { position: absolute; left: 266px; top: 0; width: 430px; background: var(--ink-card); color: var(--on-ink); border-radius: var(--r-card); box-shadow: var(--shadow-front); }
.front-head { min-height: 44px; border-color: var(--line-ink-2); }
.sec-tag { font-family: var(--font-mono); font-size: var(--size-small); font-weight: var(--weight-bold); color: var(--on-ink); }
.order-note { font-size: 11.5px; color: var(--on-ink-3); }
.rules { position: relative; }
.rule { position: relative; z-index: 1; display: grid; grid-template-columns: 18px minmax(0, 1fr) 62px; align-items: center; gap: 8px; min-height: var(--row); padding: 8px 14px; font-family: var(--font-mono); font-size: 10.5px; border-top: 1px solid var(--line-ink); }
.rule:first-child { border-top: 0; }
.ln { font-size: 10.5px; color: var(--on-ink-4); text-align: right; }
.rt { min-width: 0; overflow-wrap: anywhere; }
.rt-type { color: var(--on-ink); font-weight: var(--weight-medium); }
.rt-sep { color: var(--on-ink-4); }
.rt-val { color: var(--on-ink-2); }
.rule .pol { justify-self: start; }
.scan { position: absolute; z-index: 0; inset: 0 0 auto; height: var(--row); background: var(--accent-wash); pointer-events: none; }
.scan::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--accent); }
.front-foot { padding: 11px 18px 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-dim); border-top: 1px solid var(--line-ink-2); }
.facts { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1.45fr 1.2fr 1.25fr 1fr; gap: 14px; }
.fact { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 96px; padding: 16px 18px; background: var(--ink-card); color: var(--on-ink); border: 1px solid var(--line-ink); border-radius: var(--r-card); transition: transform var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease); }
.fact.tier-3 { background: var(--ink-card-2); color: var(--on-ink); border-color: var(--line-ink-2); }
.fact:hover { transform: translateY(-2px); border-color: var(--line-ink-3); box-shadow: var(--shadow-fact-hover); }
.fact-k { font-family: var(--font-mono); font-size: 11px; font-weight: var(--weight-medium); letter-spacing: .04em; color: var(--on-ink-4); }
.fact-v { font-size: 14.5px; font-weight: var(--weight-bold); line-height: 1.45; color: var(--on-ink); }
.fact-s { font-size: 12.5px; line-height: 1.5; color: var(--on-ink-3); }
.next { padding: 88px var(--gutter) 40px; }

.site-footer { margin-top: var(--section-space); padding-top: 64px; padding-bottom: 28px; background: var(--bg-panel); color: var(--text); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr .7fr; gap: 40px; }
.footer-brand p { max-width: 30em; margin-top: 18px; color: var(--text-muted); font-size: var(--size-small); }
.footer-title { margin: 0 0 16px; font-size: 14px; font-weight: var(--weight-bold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { display: inline-block; padding-block: 3px; font-size: var(--size-small); }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--accent-dark); text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: var(--size-label); color: var(--text-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.reveal { opacity: 1; transform: none; }
.reveal.is-waiting { opacity: 0; transform: translateY(18px); transition: opacity var(--duration-reveal) var(--ease), transform var(--duration-reveal) var(--ease); }
.reveal.shown { opacity: 1; transform: none; }

@media (min-width: 1440px) {
  .topbar { padding-inline: 44px; max-width: calc(var(--header-width) + 88px); }
}
@media (max-width: 1279px) {
  .topbar { display: flex; gap: 16px; }
  .mainnav { display: none; }
  .top-actions { margin-left: auto; }
  .hamburger { display: inline-flex; }
}
@media (min-width: 1280px) {
  .mobile-drawer, .nav-veil { display: none !important; }
}
@media (max-width: 1180px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell-main { grid-column: 1; grid-row: 1; }
  .rig-cell { grid-column: 1; grid-row: 2; min-height: 440px; margin-top: 90px; max-width: 696px; width: 100%; justify-self: center; }
  .facts { grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --section-space: 96px; --size-h1: clamp(24px, 5vw, 30px); }
  .h1 { font-size: var(--size-h1); }
  .grid-three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --header-height: 60px; }
  .topbar { min-height: var(--header-height); gap: 10px; }
  .top-actions { gap: 8px; margin-left: auto; }
  .top-actions > .cta-ink { display: none; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .hero { padding: 20px 12px 0; }
  .stage { padding: 18px; }
  .cell-main { padding: 24px 20px; }
  .rig-cell { min-height: 0; margin-top: 4px; }
  .rig { position: relative; inset: auto; transform: none; }
  .card-back { display: none; }
  .card-front { position: relative; left: 0; width: 100%; }
  .rule { grid-template-columns: 16px minmax(0, 1fr) 62px; padding-inline: 10px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .store-pill { margin-left: 0; }
  .devices { gap: 10px 16px; }
  .sec-title { gap: 16px; }
  .sec-title h2 { font-size: 20px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid-two, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .tilt, [data-tilt], .rig { transform: none; }
  .card, .panel { padding: 22px; }
  .footer-grid { gap: 28px; }
  .brand-name { font-size: 14px; }
  .brand { gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .lang-btn { padding-inline: 10px; }
  .hero .btn { padding-inline: 14px; font-size: 14px; }
  .cell-main { padding-inline: 16px; }
  .badge { font-size: 11.5px; }
  .h1-line { overflow-wrap: normal; }
  .section:last-child { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-waiting { opacity: 1; transform: none; }
  .scan { transform: translateY(calc(var(--row) * 6)); }
}