:root {
  --c-bg: #f3f4f6;
  --c-panel: #ffffff;
  --c-panel2: #e8f1fb;
  --c-border: #dcdee3;
  --c-accent: #1477e8;
  --c-accent-dark: #0b5cbf;
  --c-text: #1b1c1f;
  --c-text-2: #3a3c42;
  --c-muted: #6b6e76;
  --c-success: #1f9a5a;
  --c-warn: #b9740a;
  --c-error: #d23a33;
  --c-clear: transparent;
  --c-mask: #000000;
  --c-accent-soft: rgba(20, 119, 232, 0.08);
  --c-accent-ring: rgba(20, 119, 232, 0.38);
  --c-focus: rgba(20, 119, 232, 0.45);
  --c-dot: rgba(20, 119, 232, 0.17);
  --c-arc: rgba(20, 119, 232, 0.2);
  --c-horizon: rgba(20, 119, 232, 0.2);
  --c-panel2-mid: rgba(232, 241, 251, 0.6);
  --c-panel2-clear: rgba(232, 241, 251, 0);
  --c-floor-glow: rgba(255, 255, 255, 0.85);
  --c-floor-clear: rgba(255, 255, 255, 0);
  --c-sheen: rgba(255, 255, 255, 0.55);
  --c-sheen-clear: rgba(255, 255, 255, 0);
  --c-hl: rgba(255, 255, 255, 0.72);
  --c-hl-soft: rgba(255, 255, 255, 0.28);
  --c-glass: #0c0d10;
  --c-glass-edge: #24262b;
  --c-lens: #2d323b;
  --c-shadow: rgba(27, 28, 31, 0.2);
  --c-shadow-soft: rgba(27, 28, 31, 0.07);
  --c-contact: rgba(27, 28, 31, 0.22);
  --c-contact-clear: rgba(27, 28, 31, 0);
  --c-veil: rgba(27, 28, 31, 0.2);
  --m-graphite-hi: #6b6f77;
  --m-graphite-1: #3a3d43;
  --m-graphite-2: #23252a;
  --m-graphite-edge: #15161a;
  --m-silver-hi: #fbfbfc;
  --m-silver-1: #dfe1e5;
  --m-silver-2: #b9bdc4;
  --m-silver-edge: #9ea2aa;
  --m-mist-hi: #f2f7fc;
  --m-mist-1: #cfdcec;
  --m-mist-2: #a7bcd6;
  --m-mist-edge: #8ea7c5;

  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Kaku Gothic ProN", "Apple SD Gothic Neo", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-pill: 999px;
  --r-circle: 50%;
  --r-menu: 14px;
  --r-item: 9px;
  --r-mark: 7px;
  --r-panel: 28px;
  --r-code: 14px;
  --r-shot: 10px;
  --r-zero: 0px;
  --r-phone: 34px;
  --r-phone-glass: 31px;
  --r-phone-screen: 26px;
  --r-pad: 24px;
  --r-pad-glass: 21px;
  --r-pad-screen: 10px;
  --r-mac: 10px;
  --r-mac-glass: 8px;
  --r-detail: 2px;
  --r-foot: 4px;
  --nav-h: 52px;
  --peek: 30px;
  --container: 1120px;
  --reading: 800px;
  --header-container: 1280px;
  --gutter: 24px;
  --section-space: 144px;
  --panel-pad: 40px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --text-small: 13px;
  --text-body: 16px;
  --text-lead: 20px;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --motion-fast: 180ms;
  --motion-reveal: 600ms;
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--c-accent-dark); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; vertical-align: middle; }
svg { flex-shrink: 0; }
img { height: auto; }
:focus-visible { outline: 2px solid var(--c-accent-dark); outline-offset: 3px; }
::selection { background: var(--c-panel2); color: var(--c-text); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 3.4vw + 12px, 48px); }
h2 { font-size: clamp(26px, 2.8vw, 38px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
p, li, dd { overflow-wrap: break-word; }
code { font-family: var(--font-mono); font-size: 0.875em; overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  margin: 24px 0;
  padding: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--c-border);
  border-radius: var(--r-code);
  background: var(--c-bg);
  color: var(--c-text);
  tab-size: 2;
}
pre code { font-size: 13px; white-space: pre; overflow-wrap: normal; word-break: normal; }
pre code .code-key { color: var(--c-accent-dark); }
hr { border: 0; border-top: 1px solid var(--c-border); margin: 32px 0; }
.wrap {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.band-white { background: var(--c-panel); color: var(--c-text); }
.band-blue { background: linear-gradient(to bottom, var(--c-panel2), var(--c-panel)); color: var(--c-text); }
.band-gray { background: var(--c-bg); color: var(--c-text); }
.section-intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-intro h2 { margin-top: 0; margin-bottom: 20px; }
.section-intro p { color: var(--c-muted); }
.lead { font-size: var(--text-lead); line-height: 1.65; }
.muted { color: var(--c-muted); }
.accent { color: var(--c-accent-dark); }
.nowrap { white-space: nowrap; }
.grid-two, .grid-three { 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-two > *, .grid-three > *, .prose, .prose div, .panel, .card { min-width: 0; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.stack > * + * { margin-top: 24px; }
.prose { line-height: 1.85; }
.prose h2 { margin-top: 64px; margin-bottom: 24px; }
.prose h3 { margin-top: 36px; }
.prose p { margin-top: 0; margin-bottom: 24px; }
.prose li + li { margin-top: 8px; }
.prose :is(h2, h3, section)[id] { scroll-margin-top: calc(var(--nav-h) + 28px); }
.prose :not(pre) > code { background: var(--c-panel2); color: var(--c-text-2); border-radius: var(--r-detail); padding: 2px 4px; }
.card, .panel {
  padding: var(--panel-pad);
  border: 1px solid var(--c-border);
  border-radius: var(--r-panel);
  background: var(--c-panel);
  color: var(--c-text);
}
.card h3, .panel h3 { margin-top: 0; }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.pill-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 24px;
  border: 1px solid var(--c-accent);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--weight-medium);
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background var(--motion-fast), border-color var(--motion-fast);
}
.pill-btn svg { width: 17px; height: 17px; }
.pill-btn--solid { background: var(--c-accent); color: var(--c-panel); }
.pill-btn--solid:hover, .pill-btn--solid.is-hover { background: var(--c-accent-dark); color: var(--c-panel); border-color: var(--c-accent-dark); }
.pill-btn--line { background: var(--c-clear); color: var(--c-accent-dark); }
.pill-btn--line:hover, .pill-btn--line.is-hover { background: var(--c-accent-soft); color: var(--c-accent-dark); }
.pill-btn:disabled { background: var(--c-bg); color: var(--c-muted); border-color: var(--c-border); }
.pill-btn.is-focus { outline: 2px solid var(--c-accent-dark); outline-offset: 3px; }
.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%); }
.skip-link:focus { transform: none; }

/* 顶栏独立宽版心；抽屉与工具区为兄弟。 */
#site-header, .topbar { position: sticky; top: 0; z-index: 40; }
.topbar { height: var(--nav-h); background: var(--c-panel); color: var(--c-text); border-bottom: 1px solid var(--c-border); }
#site-header .topbar { position: relative; }
.topbar-inner {
  max-width: min(100%, calc(var(--header-container) + var(--gutter) * 2));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--c-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}
.brand-logo { display: block; width: 28px; height: 28px; flex-shrink: 0; border-radius: var(--r-circle); }
.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-mark);
  background: linear-gradient(150deg, var(--c-panel), var(--c-panel2));
  color: var(--c-text);
}
.primary-nav { min-width: 0; margin-left: auto; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-link, .nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-clear);
  color: var(--c-text-2);
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover, .nav-more-btn:hover { color: var(--c-accent-dark); }
[aria-current="page"] { font-weight: var(--weight-semibold); }
.nav-link[aria-current="page"] { color: var(--c-text); }
.nav-more, .language-picker { position: relative; }
.nav-more-btn svg { width: 12px; height: 12px; }
.nav-menu, .language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-menu);
  background: var(--c-panel);
  color: var(--c-text);
}
.nav-menu-label { margin: 6px 10px 4px; font-size: 12px; color: var(--c-muted); }
.nav-menu-sep { height: 1px; margin: 6px 10px; background: var(--c-border); color: var(--c-text); }
.nav-menu-link, .language-menu a {
  display: block;
  width: 100%;
  padding: 11px 10px;
  min-height: 44px;
  border-radius: var(--r-item);
  color: var(--c-text);
  font-size: 14px;
  text-decoration: none;
}
.nav-menu-link:hover, .language-menu a:hover { background: var(--c-accent-soft); color: var(--c-accent-dark); }
.header-tools { display: flex; align-items: center; flex-shrink: 0; gap: 8px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 13px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-panel);
  color: var(--c-text-2);
  font-size: 13px;
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--c-accent); color: var(--c-accent-dark); }
.lang-short { display: none; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-clear);
  color: var(--c-text);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 2;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-panel);
  color: var(--c-text);
}
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px; color: var(--c-text); text-decoration: none; border-radius: var(--r-item); }
.mobile-drawer a:hover { background: var(--c-panel2); color: var(--c-accent-dark); }
.mobile-languages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 1; border: 0; background: var(--c-veil); color: var(--c-text); }
.preview-dropdown > summary { cursor: pointer; list-style: none; }
.preview-dropdown > summary::-webkit-details-marker { display: none; }

/* 首屏严格使用中性浅灰，蓝色仅位于底部地平线与屏内。 */
.hero {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  isolation: isolate;
  min-height: max(760px, calc(100svh - var(--nav-h) - var(--peek)));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px var(--gutter) 0;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  z-index: -2;
  background: linear-gradient(to top, var(--c-panel2), var(--c-panel2-mid) 46%, var(--c-panel2-clear));
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -60px;
  width: min(1240px, 96vw);
  height: 240px;
  z-index: -1;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--c-floor-glow), var(--c-floor-clear));
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  min-height: 30px;
  max-width: 100%;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-panel);
  color: var(--c-muted);
  font-size: 13px;
  line-height: 1.2;
}
.eyebrow strong { color: var(--c-text); font-weight: var(--weight-semibold); }
.eyebrow-sep { color: var(--c-muted); }
.pulse { position: relative; width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--c-accent); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: var(--r-circle); background: var(--c-accent-ring); animation: pulse-breathe 2.8s ease-in-out infinite; }
@keyframes pulse-breathe {
  0%, 100% { opacity: 0.12; transform: scale(0.55); }
  50% { opacity: 0.6; transform: scale(1.2); }
}
.hero-title { margin: 22px 0 0; font-size: clamp(34px, 3.4vw + 12px, 48px); line-height: 1.12; letter-spacing: -0.02em; }
.hero-title-brand { color: var(--c-accent); letter-spacing: -0.03em; }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-lede { max-width: 680px; margin: 22px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--c-muted); }
.hero-lede strong { color: var(--c-text); font-weight: var(--weight-semibold); }
.device-row { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 22px; }
.device-row li, .device-row a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.4; color: var(--c-text-2); text-decoration: none; }
.device-row a { min-height: 28px; }
.device-row a:hover { color: var(--c-accent-dark); }
.device-row svg { width: 18px; height: 18px; color: var(--c-muted); }
.device-row-sep { width: 1px; height: 14px; background: var(--c-border); }
.store-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 12px; border: 1px solid var(--c-accent); border-radius: var(--r-pill); color: var(--c-accent-dark); font-size: 12.5px; font-weight: var(--weight-medium); text-decoration: none; }
.stage {
  --k: 1;
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  margin-top: auto;
  padding-top: 28px;
  padding-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: calc(var(--k) * 56px);
}
.stage::before { content: ""; position: absolute; left: 50%; bottom: 30px; width: min(1200px, 94vw); height: 1px; z-index: -1; transform: translateX(-50%); background: linear-gradient(90deg, var(--c-panel2-clear), var(--c-horizon) 22%, var(--c-horizon) 78%, var(--c-panel2-clear)); }
.unit { position: relative; flex: none; }
.unit::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: calc(var(--k) * -9px); height: calc(var(--k) * 18px); z-index: -1; background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--c-contact), var(--c-contact-clear)); }
.dev { position: relative; padding: calc(var(--k) * 3px); }
.dev-glass { position: relative; height: 100%; background: var(--c-glass); color: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-glass-edge); }
.dev-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--c-text);
  background:
    radial-gradient(ellipse 150% 88% at 50% 118%, var(--c-panel2-clear) 51.4%, var(--c-arc) 52%, var(--c-panel2-clear) 53.2%),
    radial-gradient(ellipse 150% 88% at 50% 118%, var(--c-panel2) 0%, var(--c-panel2) 50%, var(--c-panel) 80%),
    var(--c-panel);
}
.dev-screen::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, var(--c-dot) 0, var(--c-dot) 0.9px, var(--c-panel2-clear) 1.4px); background-size: 7px 7px; mask-image: radial-gradient(ellipse 120% 78% at 50% 100%, var(--c-mask) 18%, var(--c-clear) 74%); -webkit-mask-image: radial-gradient(ellipse 120% 78% at 50% 100%, var(--c-mask) 18%, var(--c-clear) 74%); }
.dev-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, var(--c-sheen), var(--c-sheen-clear) 36%); pointer-events: none; }
.dev-code { position: relative; z-index: 1; margin: 0; font-family: var(--font-mono); font-weight: var(--weight-medium); line-height: 1.55; letter-spacing: -0.01em; white-space: nowrap; text-align: center; color: var(--c-text); }
.dev-code .v { color: var(--c-text-2); font-weight: 400; }
.dev-code b { color: var(--c-accent-dark); font-weight: var(--weight-semibold); }
.dev--phone {
  width: calc(var(--k) * 164px);
  height: calc(var(--k) * 334px);
  border-radius: calc(var(--k) * var(--r-phone));
  background: linear-gradient(135deg, var(--m-graphite-hi), var(--m-graphite-1) 18%, var(--m-graphite-2) 48%, var(--m-graphite-1) 70%, var(--m-graphite-hi) 86%, var(--m-graphite-2));
  color: var(--c-panel);
  box-shadow: 0 0 0 1px var(--m-graphite-edge), inset 0 0 0 1px var(--c-hl-soft), inset 0 1px 0 var(--c-hl), 0 30px 40px -28px var(--c-shadow), 0 2px 5px var(--c-shadow-soft);
}
.dev--phone .dev-glass { padding: calc(var(--k) * 6px); border-radius: calc(var(--k) * var(--r-phone-glass)); }
.dev--phone .dev-screen { border-radius: calc(var(--k) * var(--r-phone-screen)); }
.dev--phone .dev-code { font-size: calc(var(--k) * 11.5px); }
.island { position: absolute; top: calc(var(--k) * 10px); left: 50%; z-index: 2; width: calc(var(--k) * 46px); height: calc(var(--k) * 13px); border-radius: var(--r-pill); transform: translateX(-50%); background: var(--c-glass); }
.dev--phone::before, .dev--phone::after { content: ""; position: absolute; width: calc(var(--k) * 3px); background: linear-gradient(180deg, var(--m-graphite-hi), var(--m-graphite-2)); }
.dev--phone::before { left: calc(var(--k) * -3px); top: calc(var(--k) * 86px); height: calc(var(--k) * 26px); border-radius: var(--r-detail) 0 0 var(--r-detail); box-shadow: 0 calc(var(--k) * 34px) 0 var(--m-graphite-1); }
.dev--phone::after { right: calc(var(--k) * -3px); top: calc(var(--k) * 104px); height: calc(var(--k) * 42px); border-radius: 0 var(--r-detail) var(--r-detail) 0; }
.dev--pad {
  width: calc(var(--k) * 470px);
  height: calc(var(--k) * 336px);
  border-radius: calc(var(--k) * var(--r-pad));
  background: linear-gradient(135deg, var(--m-silver-hi), var(--m-silver-1) 26%, var(--m-silver-2) 50%, var(--m-silver-hi) 74%, var(--m-silver-1));
  color: var(--c-text);
  box-shadow: 0 0 0 1px var(--m-silver-edge), inset 0 0 0 1px var(--c-hl), inset 0 1px 0 var(--c-hl), 0 34px 46px -30px var(--c-shadow), 0 2px 5px var(--c-shadow-soft);
}
.dev--pad .dev-glass { padding: calc(var(--k) * 13px); border-radius: calc(var(--k) * var(--r-pad-glass)); }
.dev--pad .dev-screen { border-radius: calc(var(--k) * var(--r-pad-screen)); }
.dev--pad .dev-code { font-size: calc(var(--k) * 16px); }
.cam { position: absolute; top: calc(var(--k) * 4.5px); left: 50%; width: calc(var(--k) * 4px); height: calc(var(--k) * 4px); border-radius: var(--r-circle); transform: translateX(-50%); background: var(--c-lens); box-shadow: inset 0 0 0 1px var(--c-glass-edge); }
.unit--mac { display: flex; flex-direction: column; align-items: center; }
.dev--mac {
  width: calc(var(--k) * 340px);
  height: calc(var(--k) * 213px);
  border-radius: calc(var(--k) * var(--r-mac));
  background: linear-gradient(135deg, var(--m-mist-hi), var(--m-mist-1) 28%, var(--m-mist-2) 52%, var(--m-mist-hi) 76%, var(--m-mist-1));
  color: var(--c-text);
  box-shadow: 0 0 0 1px var(--m-mist-edge), inset 0 0 0 1px var(--c-hl), inset 0 1px 0 var(--c-hl), 0 26px 36px -26px var(--c-shadow), 0 2px 5px var(--c-shadow-soft);
}
.dev--mac .dev-glass { padding: calc(var(--k) * 9px); border-radius: calc(var(--k) * var(--r-mac-glass)); }
.dev--mac .dev-screen { border-radius: calc(var(--k) * var(--r-detail)); }
.dev--mac .dev-code { font-size: calc(var(--k) * 15px); }
.mac-neck { width: calc(var(--k) * 52px); height: calc(var(--k) * 52px); background: linear-gradient(180deg, var(--m-mist-edge), var(--m-mist-2) 14%, var(--c-panel2-clear) 40%), linear-gradient(90deg, var(--m-mist-2), var(--m-mist-hi) 34%, var(--m-mist-1) 66%, var(--m-mist-2)); clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); }
.mac-foot { width: calc(var(--k) * 150px); height: calc(var(--k) * 7px); border-radius: var(--r-foot) var(--r-foot) var(--r-detail) var(--r-detail); background: linear-gradient(180deg, var(--m-mist-hi), var(--m-mist-1) 55%, var(--m-mist-2)); box-shadow: 0 0 0 1px var(--m-mist-edge), inset 0 1px 0 var(--c-hl); }
.status-strip { position: relative; z-index: 3; min-height: 64px; padding: 11px var(--gutter); background: var(--c-panel); color: var(--c-muted); border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px; font-family: var(--font-mono); font-size: 12px; line-height: 1.4; }
.status-item { display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--c-border); }
.status-dot--ok { background: var(--c-success); }
.status-dot--accent { background: var(--c-accent); }

.site-footer { padding-top: 72px; padding-bottom: 32px; border-top: 1px solid var(--c-border); background: var(--c-panel); color: var(--c-text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.3fr; gap: 48px; }
.footer-grid > * { min-width: 0; }
.footer-brand p { max-width: 350px; color: var(--c-muted); font-size: 14px; }
.footer-title { margin-top: 0; font-size: 14px; font-weight: var(--weight-semibold); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .footer-languages a { color: var(--c-text-2); font-size: 13px; text-decoration: none; }
.footer-links a:hover, .footer-languages a:hover { color: var(--c-accent-dark); text-decoration: underline; }
.footer-languages { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 40px; }
.footer-bottom { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--c-border); color: var(--c-muted); font-size: 12px; }

.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(18px); }
html.reveal-ready .reveal { transition: opacity var(--motion-reveal) var(--ease), transform var(--motion-reveal) var(--ease); }
.decorative-region, [data-hero-visual] { overflow-x: clip; }

@media (min-height: 975px) and (min-width: 721px) {
  .hero { justify-content: center; }
  .hero .stage { margin-top: 40px; }
}
@media (max-width: 1160px) { .stage { --k: 0.8; } }
@media (max-width: 1000px) {
  .primary-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .topbar-inner { gap: 16px; }
}
@media (max-width: 900px) {
  .stage { --k: 0.6; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  h1, .hero-title { font-size: clamp(24px, 4vw, 30px); line-height: 1.2; }
  :root { --panel-pad: 28px; }
}
@media (max-width: 720px) {
  .hero { min-height: 0; padding-top: 32px; }
  .hero-lede { font-size: 15px; }
  .stage { --k: 0.42; gap: calc(var(--k) * 44px); padding-top: 40px; }
  .dev-screen::before { background-size: 5px 5px; }
  .brand { font-size: 14px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --panel-pad: 24px; }
  .grid-two, .grid-three { grid-template-columns: minmax(0, 1fr); }
  .tilt, [data-tilt] { transform: none !important; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang-switch { min-height: 36px; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-name { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
  .topbar-inner { gap: 8px; }
  .hero-title .nowrap { white-space: normal; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .device-row { gap: 8px 14px; }
  .hero-title-brand { white-space: nowrap; }
  pre { padding: 16px; }
}
@media (max-width: 440px) { .stage { --k: 0.32; } }
@media (max-width: 359px) {
  .stage { --k: 0.27; }
  .brand { gap: 6px; }
  .brand-logo, .brand-mark { width: 24px; height: 24px; }
  .brand-name { font-size: 12px; }
  .lang-switch { padding-inline: 9px; }
}
@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; }
  .pulse::after { opacity: 0.4; transform: scale(1); }
}
@media print {
  #site-header, .dl-fab, .toc, .nav-veil { display: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
  .section { padding-top: 32px; padding-bottom: 32px; }
}