:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-panel: #0e0f12;
  --bg-panel-2: #16171b;
  --bg-panel-3: #1c1d22;
  --border: #23252b;
  --border-strong: #2e3037;
  --accent: #f0525e;
  --accent-dark: #c03c48;
  --accent-a06: rgba(240, 82, 94, .06);
  --accent-a08: rgba(240, 82, 94, .08);
  --accent-a18: rgba(240, 82, 94, .18);
  --accent-a32: rgba(240, 82, 94, .32);
  --accent-a50: rgba(240, 82, 94, .50);
  --text: #ededef;
  --text-soft: #c4c6cc;
  --text-value: #a6a8af;
  --text-muted: #8a8c93;
  --text-faint: #4b4d54;
  --success: #4fbf8b;
  --warn: #d9ad57;
  --error: #e8695a;
  --btn-ink: #0b0c0e;
  --hl: rgba(255, 255, 255, .06);
  --hl-strong: rgba(255, 255, 255, .12);
  --shade: rgba(0, 0, 0, .55);
  --shade-deep: rgba(0, 0, 0, .72);
  --clear: transparent;
  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --r-shot: 10px;
  --r-pill: 999px;
  --r-circle: 50%;
  --font-display: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --weight-normal: 400;
  --weight-title: 500;
  --weight-strong: 600;
  --size-body: 15px;
  --size-small: 13px;
  --size-h1: clamp(34px, 3.4vw, 48px);
  --size-h2: clamp(22px, 2.4vw, 30px);
  --size-h3: 20px;
  --tracking-title: -.01em;
  --leading-body: 1.6;
  --gutter: 32px;
  --wrap: 1200px;
  --reading: 800px;
  --header-span: 1280px;
  --section-gap: 160px;
  --line: 1px;
  --shadow-panel: inset 0 1px 0 var(--hl), 0 40px 80px -30px var(--shade-deep), 0 2px 6px var(--shade);
  --shadow-inner: inset 0 1px 0 var(--hl);
  --shadow-float: inset 0 1px 0 var(--hl), 0 16px 30px -18px var(--shade-deep);
  --shadow-nav: inset 0 1px 0 var(--hl), 0 12px 32px -18px var(--shade-deep);
  --ease: 200ms ease;
  --reveal-time: 650ms;
  --header-layer: 100;
  --floating-layer: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-behavior: smooth; scroll-padding-top: 32px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-normal);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main, section, article, aside, nav, header, footer, div { min-width: 0; }
img { max-width: 100%; }
svg { display: block; flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: var(--accent-a18); }
button { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--btn-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-title); text-wrap: balance; }
h1 { font-size: var(--size-h1); line-height: 1.2; letter-spacing: var(--tracking-title); }
h2 { font-size: var(--size-h2); line-height: 1.4; letter-spacing: -.005em; }
h3 { font-size: var(--size-h3); line-height: 1.45; }
p { margin-block: 0 20px; }
strong { font-weight: var(--weight-strong); color: var(--text); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .92em; }
pre {
  max-width: 100%;
  min-width: 0;
  margin-block: 24px;
  padding: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: var(--line) solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel-2);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.8;
  tab-size: 2;
}
pre code { font-size: inherit; overflow-wrap: normal; white-space: pre; }
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { width: 100%; max-width: var(--reading); margin-inline: auto; }
.section { padding-top: var(--section-gap); padding-bottom: 0; }
.section:last-child { padding-bottom: var(--section-gap); }
.section-title { margin: 0 0 40px; text-align: center; }
.section-title span { display: block; color: var(--text-muted); }
.section-intro { max-width: 660px; margin: 0 auto 40px; text-align: center; color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.text-link { color: var(--text-soft); border-bottom: var(--line) solid var(--border-strong); padding-bottom: 2px; }
.text-link:hover { color: var(--text); border-color: var(--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;
  left: 16px;
  top: 8px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 12px 18px;
  background: var(--text);
  color: var(--btn-ink);
  border-radius: var(--r-sm);
}
.skip-link:focus { transform: none; }
.grid-2, .grid-3 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.card, .panel {
  border: var(--line) solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-panel);
  color: var(--text-soft);
  box-shadow: var(--shadow-inner);
  padding: 28px;
}
.card h3, .panel h3 { margin: 0 0 12px; color: var(--text); }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.panel-inset {
  padding: 24px;
  border: var(--line) solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--bg-panel-2);
  color: var(--text-soft);
  box-shadow: var(--shadow-float);
}
.prose { color: var(--text-soft); line-height: 1.9; }
.prose h2 { color: var(--text); margin-top: 64px; margin-bottom: 24px; }
.prose h3 { color: var(--text); margin-top: 36px; margin-bottom: 16px; }
.prose a { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li + li { margin-top: 10px; }
.prose code:not(pre code) { color: var(--text); }
.prose :is(p, li, dd) { overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose section { scroll-margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 20px;
  border: var(--line) solid var(--clear);
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: var(--weight-title);
  line-height: 24px;
  letter-spacing: 0;
  text-align: center;
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), border-color var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn-store {
  background: var(--text);
  color: var(--btn-ink);
  box-shadow: inset 0 1px 0 var(--hl-strong), 0 1px 0 var(--border-strong), 0 10px 24px -12px var(--shade-deep);
}
.btn-store:hover { transform: translateY(-1px); }
.btn-ghost {
  background: var(--bg-panel);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-inner);
}
.btn-ghost:hover { border-color: var(--text-faint); }
.btn-ghost svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--text-muted);
  transition: transform var(--ease);
}
.btn-ghost:hover svg { transform: translateX(2px); }
.btn-accent { background: var(--accent); color: var(--btn-ink); }
.btn-accent:hover { box-shadow: 0 0 0 4px var(--accent-a18); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; background: var(--bg-panel-2); color: var(--text-muted); border-color: var(--border); box-shadow: none; transform: none; }

.topbar { padding-top: 16px; position: relative; z-index: var(--header-layer); }
.header-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(100%, calc(var(--header-span) + var(--gutter) * 2));
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.navcap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 5px 10px 5px 16px;
  background: var(--bg-panel);
  color: var(--text);
  border: var(--line) solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-nav);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 15px; font-weight: var(--weight-strong); letter-spacing: 0; }
.brand img { display: block; width: 28px; height: 28px; border-radius: var(--r-circle); flex-shrink: 0; }
.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--bg-panel-3);
  color: var(--text);
  border: var(--line) solid var(--border-strong);
  box-shadow: inset 0 1px 0 var(--hl-strong);
}
.desktop-nav { min-width: 0; margin-left: auto; }
.navlist { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.navlist a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  white-space: nowrap;
  color: var(--text-muted);
  transition: color var(--ease), background-color var(--ease);
}
.navlist a svg, .drawer a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.navlist a:hover { color: var(--text); background: var(--bg-panel-2); }
.navlist a[aria-current="page"] { color: var(--text); background: var(--bg-panel-2); box-shadow: var(--shadow-inner); }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.language-picker { position: relative; }
.lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: var(--line) solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel-2);
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 20px;
}
.lang svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lang .caret { color: var(--text-muted); font-size: 11px; }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 200px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: var(--line) solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--bg-panel-2);
  color: var(--text-soft);
  box-shadow: var(--shadow-panel);
  z-index: 5;
}
.language-menu a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel-3); color: var(--text); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: var(--line) solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel-2);
  color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.drawer {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(100% + 8px);
  padding: 16px;
  border: var(--line) solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  color: var(--text-soft);
  box-shadow: var(--shadow-panel);
  max-height: calc(100dvh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 4;
}
.drawer ul { padding: 0; margin: 0; list-style: none; }
.drawer a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px; border-radius: var(--r-sm); }
.drawer a:hover, .drawer a[aria-current] { background: var(--bg-panel-2); color: var(--text); }
.drawer-label { margin: 16px 12px 8px; padding-top: 16px; border-top: var(--line) solid var(--border); color: var(--text-muted); font-size: var(--size-small); }
.nav-veil { position: fixed; inset: 0; z-index: 1; border: 0; background: var(--shade-deep); color: var(--text); cursor: default; }

.hero { position: relative; padding-top: 60px; padding-bottom: 120px; text-align: center; overflow-x: clip; }
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 30px;
  padding: 4px 14px 4px 12px;
  border: var(--line) solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 20px;
  box-shadow: var(--shadow-inner);
}
.tag-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--accent); color: var(--text); box-shadow: 0 0 0 3px var(--accent-a18), 0 0 10px var(--accent-a50); }
.tag b { font-weight: var(--weight-title); color: var(--text-soft); }
.tag i { width: 1px; height: 12px; flex-shrink: 0; background: var(--border-strong); }
.hero h1 {
  margin: 24px auto 0;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: var(--weight-title);
  line-height: 1.2;
  letter-spacing: var(--tracking-title);
  color: var(--text);
  background: linear-gradient(180deg, var(--text) 30%, var(--text-soft) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--clear);
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.lede { max-width: 640px; margin: 24px auto 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.lede strong { font-weight: var(--weight-title); }
.devices { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-muted); }
.devices li, .devices a { display: flex; align-items: center; gap: 7px; min-height: 30px; }
.devices .dev svg { width: 18px; height: 18px; stroke: var(--text-soft); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.devices .sep { width: 1px; height: 14px; min-height: 14px; background: var(--border); }
.chip { padding: 4px 12px; border: var(--line) solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-soft); box-shadow: var(--shadow-inner); }
.chip svg { width: 12px; height: 12px; margin-top: -1px; }
.devices a:hover { color: var(--text); }
.next { padding-top: 40px; padding-bottom: 160px; text-align: center; }
.next h2 { margin: 0; font-size: 22px; line-height: 1.45; }
.next h2 span { display: block; color: var(--text-muted); }
.next a { display: inline-flex; margin-top: 18px; font-size: 14px; color: var(--text-soft); border-bottom: var(--line) solid var(--border-strong); padding-bottom: 2px; }
.next a:hover { color: var(--text); border-color: var(--accent); }

.site-footer { margin-top: var(--section-gap); padding-top: 64px; padding-bottom: 32px; border-top: var(--line) solid var(--border); background: var(--bg); color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 48px; }
.footer-brand p { max-width: 350px; margin-top: 20px; font-size: 14px; }
.footer-brand .brand { color: var(--text); }
.footer-title { margin: 0 0 18px; font-size: 14px; font-weight: var(--weight-title); color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links li { max-width: 100%; }
.footer-links a { display: inline-block; padding-block: 5px; overflow-wrap: anywhere; font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-pages { flex-direction: column; gap: 2px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: var(--line) solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-languages { margin-top: 28px; }
.footer-languages a[aria-current="true"] { color: var(--text); }

.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(20px); }
.reveal-ready .reveal { transition: opacity var(--reveal-time) ease, transform var(--reveal-time) ease; }
.reveal-ready .reveal.shown { opacity: 1; transform: none; }

@media (max-width: 1279px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: flex; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --gutter: 24px; --size-h1: clamp(24px, 5vw, 30px); }
  .hero h1 { font-size: clamp(24px, 5vw, 30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .wrap, .header-wrap { padding-inline: var(--gutter); }
  .navcap { gap: 8px; padding-left: 12px; padding-right: 6px; }
  .brand { font-size: 13px; gap: 8px; }
  .brand img, .brand-mark { width: 24px; height: 24px; }
  .header-tools { margin-left: auto; gap: 6px; }
  .lang { min-height: 44px; padding-inline: 9px; gap: 5px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang svg { display: none; }
  .hero { padding-top: 44px; padding-bottom: 96px; }
  .hero h1 { font-size: clamp(24px, 7vw, 30px); }
  .cta { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .devices { gap: 10px 14px; }
  .devices .sep { display: none; }
  .tag { font-size: 12px; }
  .tag .tag-extra, .tag i { display: none; }
  .grid-2, .grid-3, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { gap: 32px; }
  .card, .panel { padding: 22px; }
  .panel-inset { padding: 18px; }
  pre { padding: 16px; }
  .tilt, [data-tilt] { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}
@media print {
  .topbar, .dl-fab, .nav-veil { display: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}