:root {
  --bg: #07080a;
  --bg-panel: #0e0f12;
  --bg-panel-2: #15161a;
  --border: #23252b;
  --border-strong: #2e3037;
  --accent: #fa6450;
  --accent-dark: #c9442f;
  --text: #ededef;
  --text-muted: #8b8d94;
  --text-faint: #55575e;
  --text-ghost: #25272c;
  --success: #3ecf8e;
  --warn: #e8b04a;
  --error: #ff4d5e;
  --device-line: #2a2c33;
  --device-line-inner: #1c1d22;
  --device-body-top: #16171b;
  --device-body-bottom: #0c0d10;
  --screen: #050608;
  --screen-edge: #020203;
  --rule-ink: rgba(237, 237, 239, .7);
  --ink-on-light: #07080a;
  --accent-a60: rgba(250, 100, 80, .6);
  --accent-a40: rgba(250, 100, 80, .4);
  --accent-a22: rgba(250, 100, 80, .22);
  --accent-a10: rgba(250, 100, 80, .1);
  --white-a12: rgba(255, 255, 255, .12);
  --white-a06: rgba(255, 255, 255, .06);
  --white-a03: rgba(255, 255, 255, .03);
  --ink-a14: rgba(0, 0, 0, .14);
  --shadow-deep: rgba(0, 0, 0, .72);
  --shadow-soft: rgba(0, 0, 0, .45);
  --mask-on: #000;
  --clear: transparent;
  --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-medium: 500;
  --r-device: 36px;
  --r-xl: 28px;
  --r-screen: 22px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 11px;
  --r-xs: 8px;
  --r-shot: 10px;
  --r-mini: 5px;
  --r-mobile-device: 24px;
  --r-mobile-inner: 19px;
  --r-pill: 999px;
  --r-circle: 50%;
  --gutter: 24px;
  --content-width: 1180px;
  --header-width: 1280px;
  --reading-width: 780px;
  --section-space: 160px;
  --ease: .18s ease;
  --glow-primary: 0 0 0 1px var(--accent-a60), 0 0 18px var(--accent-a40), 0 0 56px var(--accent-a10), inset 0 -2px 0 var(--ink-a14);
  --glow-primary-sm: 0 0 0 1px var(--accent-a40), 0 0 14px var(--accent-a22), inset 0 -1px 0 var(--ink-a14);
  --shadow-panel: inset 0 1px 0 var(--white-a03), 0 26px 50px -14px var(--shadow-deep), 0 8px 18px -8px var(--shadow-soft);
  --shadow-device: 0 0 0 1px var(--screen-edge), 0 60px 140px -30px var(--shadow-deep), 0 20px 40px -20px var(--shadow-soft);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
html, body { margin: 0; padding: 0; }
html.nav-open { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font: var(--weight-normal) 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration-color: var(--text-muted); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: var(--clear); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
img { max-width: 100%; }
svg { display: block; flex-shrink: 0; }
svg.icon { width: 20px; height: 20px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 1.4rem + 1.9vw, 48px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 22px; }
p { text-wrap: pretty; }
strong { font-weight: var(--weight-medium); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  background: var(--screen);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.9;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
:where(main, section, article, aside, div, nav, li) { min-width: 0; }
.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading-width) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: 0; }
.section:last-child { padding-bottom: var(--section-space); }
.section-heading { margin: 0 0 36px; }
.section-heading p, .muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.prose { line-height: 1.9; overflow-wrap: break-word; }
.prose h2 { margin-top: 64px; }
.prose h3 { margin-top: 36px; }
.prose a:not(.btn):not(.app-store-button) { text-decoration: underline; text-underline-offset: 4px; }
.prose li + li { margin-top: 10px; }
.prose > :first-child { margin-top: 0; }
.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)); }
.flow > * + * { margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid var(--clear);
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: var(--weight-medium);
  letter-spacing: -.005em;
  text-align: center;
  transition: transform var(--ease), border-color var(--ease), background-color var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--ink-on-light); box-shadow: var(--glow-primary); }
.btn-primary svg { width: 17px; height: 17px; margin-top: -2px; }
.btn-ghost { background: var(--bg-panel); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-panel-2); color: var(--text); border-color: var(--text-faint); }
.btn-ghost svg { width: 15px; height: 15px; color: var(--text-muted); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.panel, .card {
  position: relative;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-panel);
}
.panel::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, var(--clear), var(--accent-a40), var(--clear));
  pointer-events: none;
}
.panel-inner {
  background: var(--bg-panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.reveal { opacity: 1; transform: none; }
.reveal-pending .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
.reveal-pending .reveal { transition: opacity .65s ease, transform .65s ease; }
.reveal.shown { opacity: 1; transform: none; }
.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;
  padding: 12px 20px;
  background: var(--text);
  color: var(--ink-on-light);
  border-radius: var(--r-xs);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.masthead { flex: none; padding: 20px var(--gutter) 0; position: relative; z-index: 40; }
.masthead-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: var(--header-width);
  min-height: 56px;
  margin-inline: auto;
  padding: 0 9px 0 18px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: inset 0 1px 0 var(--white-a03);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: block; width: 28px; height: 28px; border-radius: var(--r-xs); flex-shrink: 0; }
.brand-placeholder { background: var(--text); color: var(--ink-on-light); box-shadow: 0 0 0 1px var(--border); }
.brand-name { font-size: 15px; font-weight: var(--weight-medium); letter-spacing: -.01em; }
.dotnav { min-width: 0; margin-inline: auto; }
.dotnav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 11px; }
.dotnav li { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.dotnav li + li::before { content: "·"; color: var(--text-faint); font-size: 14px; }
.dotnav a { padding: 6px 1px; font-size: 14px; color: var(--text-muted); white-space: nowrap; transition: color var(--ease); }
.dotnav a:hover, .dotnav a[aria-current="page"] { color: var(--text); }
.masthead-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.language-picker { position: relative; }
.lang, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--clear);
  color: var(--text-muted);
  border: 0;
  border-radius: var(--r-sm);
  font-size: 13.5px;
}
.lang:hover, .menu-toggle:hover { background: var(--bg-panel-2); color: var(--text); }
.lang-caret { font-size: 10px; }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 180px;
  padding: 8px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-panel);
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-xs); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel-2); color: var(--text); }
.btn-store-sm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 15px 8px 13px;
  background: var(--text);
  color: var(--ink-on-light);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: var(--weight-medium);
  box-shadow: var(--glow-primary-sm);
  white-space: nowrap;
  transition: transform var(--ease);
}
.btn-store-sm svg { width: 15px; height: 15px; margin-top: -2px; }
.btn-store-sm:hover { transform: translateY(-1px); }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; padding: 10px; }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer {
  position: absolute;
  z-index: 42;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(100% + 10px);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-panel);
}
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer a { display: flex; width: 100%; min-height: 44px; align-items: center; padding: 12px; border-bottom: 1px solid var(--border); }
.mobile-drawer a[aria-current] { background: var(--bg-panel-2); color: var(--text); }
.drawer-languages { margin-top: 20px; }
.nav-veil { position: fixed; inset: 0; z-index: 35; background: var(--shadow-deep); color: var(--text); border: 0; }
.site-footer { margin-top: var(--section-space); padding-top: 56px; padding-bottom: 110px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: 40px; }
.footer-brand p { max-width: 320px; color: var(--text-muted); font-size: 14px; }
.footer-title { margin: 0 0 18px; font-size: 15px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list a { display: inline-block; padding-block: 6px; font-size: 14px; color: var(--text-muted); overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 1200px) {
  .dotnav { display: none; }
  .menu-toggle { display: inline-flex; }
  .masthead-tools { margin-left: auto; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1 { font-size: clamp(24px, 5vw, 30px); }
  .grid-three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .masthead { padding: 12px 12px 0; }
  .masthead-bar { gap: 6px; min-height: 52px; padding: 0 7px 0 14px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 14px; }
  .masthead-tools { gap: 0; margin-left: auto; }
  .lang { padding-inline: 8px; }
  .lang-text { display: none; }
  .lang-short { display: inline; }
  .masthead-tools .btn-store-sm { display: none; }
  .mobile-drawer { left: 12px; right: 12px; }
  .grid-two, .footer-grid { grid-template-columns: 1fr; }
  .panel, .card, .panel-inner { padding: 20px; }
  .tilt, [data-tilt] { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending .reveal:not(.shown) { opacity: 1; transform: none; }
}