:root {
  --c-bg: #ffffff;
  --c-panel: #f7f8fa;
  --c-panel-2: #eef1fc;
  --c-margin: #fbfbfc;
  --c-border: #e6e7eb;
  --c-border-strong: #d6d9df;
  --c-accent: #6f86f7;
  --c-accent-dark: #4a5fd6;
  --c-accent-wash: #e9edfe;
  --c-accent-wash-2: #dde3fd;
  --c-halo-1: #c9d2fb;
  --c-halo-2: #e3e0fb;
  --c-halo-fade: rgba(255, 255, 255, 0);
  --c-text: #18191c;
  --c-ink-hover: #2c2e34;
  --c-muted: #6b7079;
  --c-faint: #a6abb4;
  --c-on-ink: #ffffff;
  --c-success: #2f9e6b;
  --c-warn: #c98a1a;
  --c-error: #d64545;
  --c-veil: rgba(24, 25, 28, 0.16);
  --sh-ink-1: rgba(24, 25, 28, 0.04);
  --sh-ink-2: rgba(24, 25, 28, 0.08);
  --sh-ink-3: rgba(24, 25, 28, 0.16);
  --sh-accent: rgba(74, 95, 214, 0.20);
  --shadow-panel: 0 1px 2px var(--sh-ink-1), 0 18px 40px -18px var(--sh-ink-2), 0 64px 120px -44px var(--sh-accent);
  --shadow-btn: 0 1px 2px var(--sh-ink-3), 0 8px 18px -8px var(--sh-ink-3);
  --shadow-soft: 0 1px 2px var(--sh-ink-1), 0 4px 12px -6px var(--sh-ink-2);
  --font-display: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-btn: 12px;
  --r-chip: 999px;
  --r-card: 20px;
  --r-panel: 28px;
  --r-mark: 28%;
  --r-hl: 6px;
  --r-shot: 10px;
  --r-round: 50%;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --track-display: -0.035em;
  --track-cjk: -0.02em;
  --nav-h: 72px;
  --page-w: 1312px;
  --reading-w: 800px;
  --gutter: 32px;
  --code-gutter: 52px;
  --margin-w: 212px;
  --row: 42px;
  --code-size: 14.5px;
  --section-space: 160px;
  --dur: 180ms;
  --reveal-dur: 650ms;
  --halo-dur: 18s;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 32px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--c-halo-fade); }
button { color: var(--c-text); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--c-accent-dark);
  outline-offset: 3px;
  border-radius: var(--r-btn);
}
img { max-width: 100%; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  line-height: 1.25;
  letter-spacing: var(--track-cjk);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 2.2vw + 16px, 48px); }
h2 { font-size: clamp(26px, 2.6vw, 36px); }
h3 { font-size: 22px; }
p { margin-block: 0 1.25em; }
strong { font-weight: var(--weight-medium); }
code, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 22px;
  background: var(--c-panel);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--r-btn);
  font-size: 14px;
  line-height: 1.8;
  overscroll-behavior-x: contain;
}
pre code { white-space: pre; overflow-wrap: normal; }
.wrap {
  width: 100%;
  max-width: calc(var(--page-w) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading-w) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-heading { margin-bottom: 48px; max-width: 720px; }
.section-heading h2 { margin-block: 12px 18px; }
.eyebrow, .next-eyebrow { font-size: 13px; color: var(--c-muted); letter-spacing: 0.02em; }
.muted { color: var(--c-muted); }
.nowrap { white-space: nowrap; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-two > *, .hero-grid > *, .footer-grid > *, .feature-tabs > * { min-width: 0; }
.stack { display: grid; gap: 24px; }
.card, .panel {
  min-width: 0;
  padding: 32px;
  background: var(--c-bg);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}
.panel { border-radius: var(--r-panel); box-shadow: var(--shadow-panel); }
.card h3, .panel h3 { margin-top: 0; }
.prose { min-width: 0; }
.prose h2 { margin-block: 80px 24px; }
.prose h3 { margin-block: 40px 18px; }
.prose p, .prose li { line-height: 1.9; }
.prose a:not(.btn):not(.appstore-button) { text-decoration: underline; text-underline-offset: 4px; }
.prose :not(pre) > code {
  padding: 2px 5px;
  border-radius: var(--r-hl);
  background: var(--c-panel-2);
  color: var(--c-text);
  font-size: 0.88em;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid var(--c-halo-fade);
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: var(--weight-medium);
  line-height: 1.5;
  text-align: center;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, transform var(--dur) ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--c-text); color: var(--c-on-ink); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--c-ink-hover); color: var(--c-on-ink); transform: translateY(-1px); }
.btn-ghost { background: var(--c-bg); color: var(--c-text); border-color: var(--c-border); }
.btn-ghost:hover, .btn-ghost.is-hover { border-color: var(--c-border-strong); background: var(--c-panel); color: var(--c-text); }
.btn-ghost svg { width: 16px; height: 16px; color: var(--c-muted); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--c-panel); color: var(--c-muted); border-color: var(--c-border); box-shadow: none; cursor: not-allowed; transform: none; }
.btn.is-focus { outline: 2px solid var(--c-accent-dark); outline-offset: 3px; }
.topnav { position: relative; z-index: 50; height: var(--nav-h); background: var(--c-bg); color: var(--c-text); border-bottom: 1px solid var(--c-border); }
.topnav-in {
  width: 100%;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; position: relative; z-index: 3; }
.brand-mark { display: block; width: 32px; height: 32px; border-radius: var(--r-mark); flex-shrink: 0; }
.brand-placeholder, .hero-mark {
  background: linear-gradient(160deg, var(--c-bg), var(--c-panel-2));
  color: var(--c-text);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-soft);
}
.brand-name { font-size: 16px; font-weight: var(--weight-medium); letter-spacing: -0.01em; white-space: nowrap; }
.brand-short { display: none; }
.nav-main { margin-left: auto; min-width: 0; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-list li { flex-shrink: 0; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--r-btn);
  font-size: 14.5px;
  white-space: nowrap;
  color: var(--c-muted);
  transition: color var(--dur) ease, background-color var(--dur) ease;
}
.nav-list svg { width: 16px; height: 16px; }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--c-panel); color: var(--c-text); }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; position: relative; z-index: 4; }
.language-control { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-btn);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 14px;
  white-space: nowrap;
}
.lang svg { width: 15px; height: 15px; color: var(--c-muted); }
.lang-short { display: none; }
.caret { font-size: 11px; color: var(--c-muted); }
.lang:hover { border-color: var(--c-border-strong); }
.language-menu {
  position: absolute;
  z-index: 6;
  right: 0;
  top: calc(100% + 10px);
  width: 190px;
  padding: 8px;
  background: var(--c-bg);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-panel);
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--r-btn); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--c-panel); color: var(--c-text); }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--c-border); border-radius: var(--r-btn); background: var(--c-bg); color: var(--c-text); }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-nav, .header-veil { display: none; }
.site-footer { margin-top: var(--section-space); padding-top: 72px; padding-bottom: 32px; border-top: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr 0.8fr; gap: 48px; }
.footer-brand p { max-width: 30em; margin-top: 22px; font-size: 14px; color: var(--c-muted); }
.footer-title { margin-block: 0 20px; font-size: 14px; font-weight: var(--weight-medium); }
.footer-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding-block: 4px; font-size: 14px; color: var(--c-muted); }
.footer-links a:hover { color: var(--c-text); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--c-border); color: var(--c-muted); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(18px); }
html.reveal-ready .reveal { transition: opacity var(--reveal-dur) ease, transform var(--reveal-dur) ease; }
.reveal.shown { opacity: 1; transform: none; }
.hero { position: relative; z-index: 2; padding-top: 112px; padding-bottom: 120px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(380px, 1fr); grid-template-areas: "stage copy"; column-gap: clamp(40px, 5vw, 72px); align-items: start; }
.copy { grid-area: copy; padding-top: 80px; }
.copy-top { display: flex; align-items: center; gap: 14px; }
.hero-mark { width: 40px; height: 40px; border-radius: var(--r-mark); flex-shrink: 0; }
.hero h1 { margin: 28px 0 0; font-size: clamp(34px, 2.2vw + 16px, 48px); line-height: 1.14; letter-spacing: var(--track-display); }
.h1-line { display: block; }
.lede { margin: 28px 0 0; max-width: 30em; font-size: 16px; line-height: 1.72; color: var(--c-muted); }
.lede strong { color: var(--c-text); font-weight: var(--weight-medium); }
.devices { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 30px 0 0; padding-top: 18px; padding-inline: 0; padding-bottom: 0; list-style: none; border-top: 1px solid var(--c-border); }
.devices a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; font-size: 14px; color: var(--c-muted); }
.devices a svg { width: 20px; height: 20px; color: var(--c-text); }
.devices a:hover { color: var(--c-text); }
.devices .store-item { margin-left: auto; }
.store-chip { padding-inline: 10px 12px; border: 1px solid var(--c-border); border-radius: var(--r-chip); background: var(--c-bg); color: var(--c-text); }
.stage { grid-area: stage; position: relative; isolation: isolate; min-width: 0; }
.halo { position: absolute; z-index: -1; border-radius: var(--r-round); pointer-events: none; will-change: transform, opacity; }
.halo-a { width: 980px; height: 820px; left: -200px; top: -150px; background: radial-gradient(closest-side, var(--c-halo-1), var(--c-halo-fade)); opacity: 0.62; animation: halo-drift var(--halo-dur) ease-in-out infinite; }
.halo-b { width: 760px; height: 640px; left: 260px; top: 300px; background: radial-gradient(closest-side, var(--c-halo-2), var(--c-halo-fade)); opacity: 0.78; animation: halo-drift var(--halo-dur) ease-in-out -9s infinite reverse; }
@keyframes halo-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.58; }
  50% { transform: translate3d(28px, -22px, 0) scale(1.06); opacity: 0.8; }
}
.sheet { position: relative; margin: 0; background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); border-radius: var(--r-panel); box-shadow: var(--shadow-panel); overflow: hidden; }
.sheet-bar { display: flex; align-items: center; gap: 12px; height: 56px; padding-inline: 22px; border-bottom: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); }
.sheet-file { font-family: var(--font-mono); font-size: 13px; }
.sheet-tag { display: inline-flex; align-items: center; min-height: 22px; padding-inline: 9px; border: 1px solid var(--c-border); border-radius: var(--r-chip); font-size: 11.5px; color: var(--c-muted); }
.conf { position: relative; margin: 0; padding-top: 24px; padding-bottom: 40px; padding-inline: 0; list-style: none; counter-reset: ln; font-family: var(--font-mono); font-size: var(--code-size); font-variant-ligatures: none; }
.conf::before, .conf::after { content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none; }
.conf::before { left: 0; width: var(--code-gutter); background: var(--c-panel); border-right: 1px solid var(--c-border); }
.conf::after { right: 0; width: var(--margin-w); background: var(--c-margin); border-left: 1px solid var(--c-border); }
.ln { position: relative; z-index: 1; display: grid; grid-template-columns: var(--code-gutter) auto minmax(0, 1fr) var(--margin-w); align-items: center; min-height: var(--row); counter-increment: ln; }
.ln::before { content: counter(ln); grid-column: 1; padding-right: 14px; text-align: right; font-size: 12px; color: var(--c-muted); }
.ln code { grid-column: 2; padding-left: 20px; font: inherit; line-height: var(--row); white-space: pre; overflow-wrap: normal; color: var(--c-text); }
.sec { font-weight: var(--weight-medium); color: var(--c-text); }
.br, .op, .val { color: var(--c-muted); }
.kw, .pol { display: inline-block; padding-inline: 6px; margin-inline: 1px; border-radius: var(--r-hl); line-height: 24px; background: var(--c-accent-wash); color: var(--c-accent-dark); }
.pol { background: var(--c-accent-wash-2); color: var(--c-accent-dark); font-weight: var(--weight-medium); }
.leader { grid-column: 3; position: relative; height: 1px; margin-left: 16px; background: var(--c-border-strong); }
.leader::before { content: ""; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: var(--r-round); background: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-wash); }
.note { grid-column: 4; position: relative; min-height: var(--row); padding-left: 26px; font-family: var(--font-body); font-size: 12.5px; line-height: var(--row); color: var(--c-text); white-space: nowrap; }
.note::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1px; background: var(--c-border-strong); }
.note-k { font-family: var(--font-mono); font-size: 12px; color: var(--c-accent-dark); margin-right: 2px; }
.note-s { position: absolute; left: 26px; top: 32px; font-size: 11.5px; line-height: 1.4; color: var(--c-muted); }
.next { padding-top: 200px; padding-bottom: 160px; }
.next h2 { margin-block: 12px 0; font-size: 32px; }
.next p { margin-top: 14px; max-width: 36em; color: var(--c-muted); }
@media (max-width: 1320px) {
  :root { --margin-w: 184px; --code-size: 13.5px; --code-gutter: 46px; }
  .nav-list a { padding-inline: 9px; font-size: 14px; }
  .topnav-in { gap: 24px; }
}
@media (max-width: 1200px) {
  .nav-main { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .header-veil:not([hidden]) { display: block; position: fixed; z-index: 1; inset: var(--nav-h) 0 0; border: 0; background: var(--c-veil); color: var(--c-text); }
  .mobile-nav:not([hidden]) { display: block; position: fixed; z-index: 3; inset: var(--nav-h) 0 auto; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; padding: 20px var(--gutter) 28px; border-bottom: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-soft); }
  .mobile-nav ul { margin: 0; padding: 0; list-style: none; }
  .mobile-nav a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-btn); }
  .mobile-nav a svg { width: 18px; height: 18px; }
  .mobile-nav a:hover, .mobile-nav a[aria-current] { background: var(--c-panel); color: var(--c-text); }
  .mobile-languages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-border); }
}
@media (max-width: 1100px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage"; row-gap: 64px; }
  .copy { padding-top: 0; max-width: 560px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1, .hero h1 { font-size: 28px; letter-spacing: var(--track-cjk); }
}
@media (max-width: 720px) {
  :root { --code-gutter: 36px; --row: 36px; --code-size: 12.5px; --gutter: 20px; }
  .devices .store-item { margin-left: 0; }
  .conf::after { display: none; }
  .ln { grid-template-columns: var(--code-gutter) minmax(0, 1fr); }
  .ln code { min-width: 0; max-width: 100%; overflow-x: auto; padding-left: 14px; }
  .leader { display: none; }
  .note { grid-column: 2; min-height: 0; margin: 0 14px 8px; padding: 6px 10px; line-height: 1.5; white-space: normal; background: var(--c-panel); color: var(--c-text); border-radius: var(--r-hl); }
  .note::before { display: none; }
  .note-s { position: static; display: block; }
  .halo-a { width: 640px; height: 560px; left: -160px; }
  .halo-b { width: 520px; height: 460px; left: 80px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-space: 96px; }
  .topnav-in { gap: 12px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 14px; }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang { min-height: 44px; padding-inline: 10px; }
  .lang svg { display: none; }
  .hero { padding-top: 40px; padding-bottom: 64px; }
  .hero-grid { row-gap: 48px; }
  .copy-top { gap: 10px; }
  .hero-mark { width: 32px; height: 32px; }
  .grid-two, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .card, .panel { padding: 24px; }
  .footer-grid { gap: 32px; }
  .tilt, [data-tilt] { transform: none !important; }
  .next { padding-top: 120px; padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .halo { animation: none; will-change: auto; }
  .btn, .nav-list a, html.reveal-ready .reveal { transition: none; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
  .btn-primary:hover { transform: none; }
}