:root {
  --bg: #ffffff;
  --bg-panel: #f7f7f9;
  --bg-dark: #111116;
  --bg-dark-card: #1a1a22;
  --border: #e6e6eb;
  --border-strong: #d8d8df;
  --border-dark: #34343f;
  --grid-line: #ececf0;
  --accent: #6449f0;
  --accent-dark: #4a32c8;
  --accent-light: #b5a7ff;
  --text: #131316;
  --text-muted: #5f6069;
  --text-faint: #a3a4ad;
  --text-dark-muted: #b9b9c5;
  --success: #1f9d6b;
  --warn: #c98a12;
  --error: #d6423a;
  --on-ink: #ffffff;
  --ink-hover: #26262c;
  --accent-a06: rgba(100, 73, 240, 0.06);
  --accent-a14: rgba(100, 73, 240, 0.14);
  --accent-a22: rgba(100, 73, 240, 0.22);
  --accent-glow: rgba(100, 73, 240, 0.34);
  --ink-a04: rgba(19, 19, 22, 0.04);
  --ink-a06: rgba(19, 19, 22, 0.06);
  --ink-a10: rgba(19, 19, 22, 0.10);
  --ink-a16: rgba(19, 19, 22, 0.16);
  --white-a14: rgba(255, 255, 255, 0.14);
  --veil: rgba(19, 19, 22, 0.32);
  --mask-on: #000000;
  --mask-off: 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;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display: 800;
  --size-body: 16px;
  --size-small: 14px;
  --size-caption: 12px;
  --tracking-display: -0.035em;
  --tracking-cjk: -0.02em;
  --r-card: 10px;
  --r-btn: 8px;
  --r-control: 6px;
  --r-pill: 999px;
  --r-circle: 50%;
  --gutter: 24px;
  --width-content: 1120px;
  --width-reading: 780px;
  --width-header: 1280px;
  --section-space: 88px;
  --grid-cell: 64px;
  --duration-fast: 180ms;
  --duration-reveal: 600ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-nav: 0 1px 1px var(--ink-a04), 0 6px 20px -12px var(--ink-a10);
  --shadow-soft: 0 1px 2px var(--ink-a06), 0 8px 18px -10px var(--ink-a10);
  --shadow-btn: inset 0 1px 0 var(--white-a14), 0 1px 2px var(--ink-a16), 0 8px 18px -8px var(--ink-a16);
  --shadow-float: 0 1px 1px var(--ink-a04), 0 6px 14px -6px var(--ink-a10), 0 22px 44px -18px var(--ink-a10), 0 40px 70px -30px var(--accent-a22);
}
*,
*::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: var(--weight-normal) var(--size-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--accent-a14); }
button:disabled { cursor: not-allowed; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
svg { vertical-align: middle; flex-shrink: 0; }
fieldset { min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-a22); color: var(--text); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 2.6vw + 10px, 48px); letter-spacing: var(--tracking-cjk); }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: var(--tracking-cjk); }
h3 { font-size: 21px; letter-spacing: var(--tracking-cjk); }
:lang(en) h1, :lang(en) h2 { letter-spacing: var(--tracking-display); }
p, ul, ol, dl, blockquote, pre { margin-top: 0; }
p { margin-bottom: 1.25em; }
li + li { margin-top: 0.35em; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
  font-size: var(--size-small);
  line-height: 1.8;
  overscroll-behavior-inline: contain;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 32px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: var(--gutter);
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--on-ink);
  border-radius: var(--r-btn);
}
.skip-link:focus { transform: none; }
.wrap {
  width: 100%;
  max-width: calc(var(--width-content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}
.wrap--reading { max-width: calc(var(--width-reading) + var(--gutter) * 2); }
.section {
  position: relative;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  overflow-x: clip;
}
.section--muted { background: var(--bg-panel); color: var(--text); }
.section-heading { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-heading h2 { margin: 12px 0 16px; }
.section-heading p { color: var(--text-muted); }
.eyebrow {
  color: var(--accent-dark);
  font: var(--weight-semibold) var(--size-caption)/1.5 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.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)); }
.grid > *, .split > *, .footer-grid > * { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.prose { min-width: 0; overflow-wrap: break-word; }
.prose h2 { margin-top: 2.2em; scroll-margin-top: 28px; }
.prose h3 { margin-top: 1.8em; }
.prose a:not(.btn):not(.app-store-button) { color: var(--accent-dark); }
.prose :not(pre) > code {
  color: var(--accent-dark);
  background: var(--accent-a06);
  border-radius: var(--r-control);
  padding: 0.08em 0.25em;
  font-size: 0.9em;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 22px;
  border: 1px solid var(--mask-off);
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active, .btn.is-pressed { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--text); color: var(--on-ink); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--ink-hover); color: var(--on-ink); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-soft); }
.btn-ghost:hover, .btn-ghost.is-hover { background: var(--bg-panel); color: var(--text); }
.btn-accent { background: var(--accent-dark); color: var(--on-ink); box-shadow: var(--shadow-btn); }
.btn-accent:hover { background: var(--accent); color: var(--on-ink); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg-panel);
  color: var(--text-muted);
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}
.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.card, .panel {
  position: relative;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.card--glow { box-shadow: var(--shadow-float); }
.panel--muted { background: var(--bg-panel); color: var(--text); }
.topbar {
  position: relative;
  z-index: 40;
  padding: 16px var(--gutter) 0;
}
.header-shell {
  width: 100%;
  max-width: var(--width-header);
  margin-inline: auto;
  position: relative;
}
.navpill {
  position: relative;
  z-index: 2;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 8px 0 16px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-nav);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-logo { width: 28px; height: 28px; border-radius: var(--r-circle); flex-shrink: 0; }
.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--r-control);
  background: linear-gradient(145deg, var(--bg), var(--bg-panel));
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--accent-a14);
}
.desktop-nav { min-width: 0; margin-left: 16px; padding-left: 12px; border-left: 1px solid var(--border); }
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  min-width: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  display: block;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
}
.nav-list a:hover { color: var(--text); }
.nav-list a.is-active {
  color: var(--text);
  background: var(--bg-panel);
  font-weight: var(--weight-semibold);
  box-shadow: inset 0 0 0 1px var(--border);
}
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.locale-control { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font: var(--weight-medium) 13.5px/1 var(--font-body);
  white-space: nowrap;
}
.lang svg { width: 14px; height: 14px; color: var(--text-muted); }
.lang-short { display: none; }
.locale-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 190px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-float);
  z-index: 5;
}
.locale-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--r-control); text-decoration: none; }
.locale-menu a:hover, .locale-menu a[aria-current] { background: var(--bg-panel); color: var(--accent-dark); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
}
.menu-toggle svg { width: 21px; height: 21px; }
.mobile-drawer {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: calc(100dvh - 94px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-float);
  z-index: 4;
}
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer li { margin: 0; }
.mobile-drawer a {
  display: flex;
  width: 100%;
  align-items: center;
  min-height: 46px;
  padding: 11px 16px;
  text-decoration: none;
  border-radius: var(--r-btn);
}
.mobile-drawer a:hover, .mobile-drawer a.is-active, .mobile-drawer a[aria-current="true"] { background: var(--bg-panel); color: var(--accent-dark); }
.drawer-label { margin: 12px 16px 4px; padding-top: 12px; border-top: 1px solid var(--border); font-size: var(--size-caption); color: var(--text-muted); }
.menu-veil { position: fixed; inset: 0; z-index: 1; border: 0; background: var(--veil); color: var(--on-ink); cursor: default; }
.site-footer {
  padding-top: 64px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.25fr 0.8fr; gap: 40px; }
.footer-brand p { max-width: 300px; margin-top: 18px; color: var(--text-muted); font-size: var(--size-small); }
.footer-title { margin: 0 0 16px; font-size: var(--size-small); font-weight: var(--weight-bold); }
.footer-links { list-style: none; margin: 0; padding: 0; font-size: var(--size-small); }
.footer-links li { margin: 0; }
.footer-links a { display: inline-block; padding-block: 6px; color: var(--text-muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--accent-dark); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--size-caption);
}
.footer-bottom p { margin: 0; }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
.reveal-ready .reveal { transition: opacity var(--duration-reveal) var(--ease), transform var(--duration-reveal) var(--ease); }
.reveal-ready .reveal.shown { opacity: 1; transform: none; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: max(820px, calc(100svh - 40px));
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg) 46%);
  color: var(--text);
}
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px var(--gutter) 64px;
  min-width: 0;
}
.hero-icon {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: var(--r-circle);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.hero-icon img { width: 100%; border-radius: var(--r-circle); }
.hero-icon--placeholder::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: var(--r-circle);
  background: linear-gradient(160deg, var(--bg), var(--bg-panel));
  box-shadow: inset 0 0 0 1px var(--accent-a14);
}
.hero-title {
  margin: 20px 0 0;
  font-size: clamp(34px, 2.6vw + 10px, 48px);
  font-weight: var(--weight-display);
  line-height: 1.12;
  letter-spacing: var(--tracking-cjk);
}
.hero-title > span { display: block; }
.lede { margin: 18px 0 0; max-width: 660px; font-size: 15.5px; line-height: 1.75; color: var(--text-muted); }
.lede strong { color: var(--text); font-weight: var(--weight-semibold); }
.horizon {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 64% 78% at 50% 96%, var(--mask-on) 28%, var(--mask-off) 78%);
  mask-image: radial-gradient(ellipse 64% 78% at 50% 96%, var(--mask-on) 28%, var(--mask-off) 78%);
}
.horizon-fade {
  position: absolute;
  inset: 0;
  perspective: 360px;
  perspective-origin: 50% 70%;
  -webkit-mask-image: linear-gradient(180deg, var(--mask-off) 70%, var(--mask-on) 88%);
  mask-image: linear-gradient(180deg, var(--mask-off) 70%, var(--mask-on) 88%);
}
.horizon-plane { position: absolute; left: -60%; right: -60%; bottom: 0; height: 2600px; overflow: hidden; transform-origin: 50% 100%; transform: rotateX(87deg); }
.horizon-lines {
  position: absolute;
  top: calc(var(--grid-cell) * -1);
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(180deg, var(--grid-line) 1px, var(--mask-off) 1px), linear-gradient(90deg, var(--grid-line) 1px, var(--mask-off) 1px);
  background-size: var(--grid-cell) var(--grid-cell);
  background-position: 50% 0;
  animation: horizon-drift 16s linear infinite;
}
@keyframes horizon-drift { to { transform: translateY(var(--grid-cell)); } }
.trail-link { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; font-size: var(--size-small); font-weight: var(--weight-semibold); text-decoration: none; }
.trail-link span { display: inline-block; color: var(--accent); transition: transform var(--duration-fast) var(--ease); }
.trail-link:hover span { transform: translateX(3px); }
.preview-mobile { display: none; }
@media (max-width: 1279px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .preview-mobile { display: block; position: static; }
  .preview-mobile summary { list-style: none; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; }
  .preview-mobile summary::-webkit-details-marker { display: none; }
}
@media (min-width: 1280px) {
  .mobile-drawer, .menu-veil { display: none !important; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1, .hero-title { font-size: clamp(24px, 4vw, 30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; --section-space: 56px; }
  .topbar { padding: 12px 12px 0; }
  .navpill { padding: 0 6px 0 12px; }
  .brand-name { display: none; }
  .footer-brand .brand-name { display: inline; }
  .lang { padding: 0 10px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .hero { min-height: 0; }
  .hero-inner { padding: 36px var(--gutter) 48px; }
  .hero-title { max-width: 100%; }
  .hero-title > span { white-space: normal; }
  .lede { font-size: 15px; }
  .grid--two, .grid--three { grid-template-columns: minmax(0, 1fr); }
  .card, .panel { padding: 22px; }
  .tilt, [data-tilt] { transform: none !important; }
  .section-heading { margin-bottom: 28px; }
  .footer-grid { gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom > * + * { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .horizon-lines { animation: none; }
  .reveal-ready .reveal:not(.shown), .reveal-ready .reveal.shown { opacity: 1; transform: none; }
  .reveal-ready .reveal, .btn, .trail-link span { transition: none; }
  .btn:hover, .trail-link:hover span { transform: none; }
}