:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-panel: #0a0a0b;
  --bg-panel-2: #141416;
  --border: #26272b;
  --accent: #1f86ff;
  --accent-dark: #0a5fd6;
  --text: #f2f3f5;
  --text-muted: #8b8d94;
  --text-soft: #b9bbc2;
  --text-faint: #4f5158;
  --text-hover: #d6d8dd;
  --success: #3ecf8e;
  --warn: #e6b450;
  --error: #f2555a;
  --canvas-top: #030814;
  --accent-glow: rgba(31, 134, 255, .6);
  --accent-soft: rgba(31, 134, 255, .16);
  --accent-band: rgba(31, 134, 255, .08);
  --accent-line: rgba(31, 134, 255, .34);
  --accent-hair: rgba(31, 134, 255, .18);
  --veil: rgba(0, 0, 0, .78);
  --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-regular: 400;
  --weight-medium: 500;
  --h1-size: clamp(34px, 3.2vw, 46px);
  --h2-size: clamp(26px, 3vw, 38px);
  --h3-size: 22px;
  --body-size: 15px;
  --tracking-tight: -.02em;

  --radius-card: 28px;
  --radius-tray: 24px;
  --radius-inner: 20px;
  --radius-menu: 16px;
  --radius-frame: 14px;
  --radius-btn: 12px;
  --radius-shot: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  --container: 1312px;
  --reading-width: 840px;
  --header-width: 1312px;
  --gutter: 64px;
  --nav-h: 64px;
  --section-space: 160px;
  --row-h: 28px;
  --stroke: 1px;
  --focus-width: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --time-fast: .18s;
  --time-reveal: .65s;
  --z-header: 40;
  --z-fab: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--text);
  -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(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button {
  padding: 0;
  border: 0;
  background: var(--clear);
  color: var(--text);
  cursor: pointer;
}
button:disabled { cursor: not-allowed; }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
svg { flex-shrink: 0; }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--h1-size); line-height: 1.14; }
h2 { font-size: var(--h2-size); line-height: 1.25; }
h3 { font-size: var(--h3-size); line-height: 1.35; }
h4 { font-size: 18px; line-height: 1.4; }
strong { font-weight: var(--weight-medium); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg-panel-2);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.9;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
[hidden] { display: none !important; }
:focus-visible {
  outline: var(--focus-width) solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
::selection { background: var(--accent); color: var(--bg); }
.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: calc(var(--z-fab) + 10);
  padding: 12px 18px;
  transform: translateY(-160%);
  border-radius: var(--radius-btn);
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { transform: translateY(0); }
.shell, .wrap, .reading-shell {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell, .wrap { max-width: calc(var(--container) + var(--gutter) * 2); }
.reading-shell { max-width: calc(var(--reading-width) + var(--gutter) * 2); }
.shell > *, .wrap > *, .reading-shell > *,
.grid > *, .hero__grid > *, .site-head__row > *,
.footer-grid > *, .two-columns > * { min-width: 0; }
.section { padding-top: var(--section-space); }
.section:last-child { padding-bottom: 120px; }
.section-head { margin-bottom: 28px; }
.section-head p { margin-top: 14px; max-width: 680px; color: var(--text-muted); }
.eyebrow { margin-bottom: 12px; color: var(--accent); font-size: 13px; }
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }
.nowrap { white-space: nowrap; }
.flow > * + * { margin-top: 20px; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.card {
  min-width: 0;
  padding: 28px;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  color: var(--text);
}
.panel {
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-inner);
  background: var(--bg-panel-2);
  color: var(--text);
}
.card h3 + p, .panel h3 + p { margin-top: 12px; color: var(--text-muted); }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--text); }
.prose { min-width: 0; max-width: 100%; color: var(--text-soft); line-height: 1.9; }
.prose h2, .prose h3, .prose h4 { color: var(--text); }
.prose h2 { margin-top: 64px; margin-bottom: 24px; }
.prose h3 { margin-top: 36px; margin-bottom: 16px; }
.prose p + p { margin-top: 20px; }
.prose ul, .prose ol { padding-left: 1.5em; margin-block: 20px; }
.prose li + li { margin-top: 10px; }
.prose a:not(.btn):not(.store-button) { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose pre, .prose figure, .prose .callout { margin-block: 28px; }
.prose :not(pre) > code { color: var(--text); font-size: .9em; }
.prose > :first-child { margin-top: 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 22px;
  border: var(--stroke) solid var(--clear);
  border-radius: var(--radius-btn);
  font-size: 15px;
  letter-spacing: -.005em;
  text-align: center;
  line-height: 1.4;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--text-hover); color: var(--bg); }
.btn--secondary { background: var(--bg-panel-2); color: var(--text); border-color: var(--border); }
.btn--secondary:hover, .btn--secondary.is-hover { border-color: var(--accent-line); }
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { background: var(--text); color: var(--bg); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border-color: var(--border);
}
.btn.is-focus { outline: var(--focus-width) solid var(--accent); outline-offset: 3px; }
.btn__arrow { transition: transform var(--time-fast) var(--ease); }
.btn--secondary:hover .btn__arrow { transform: translateX(3px); }

.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: var(--stroke) solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.site-head__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--nav-h);
  width: 100%;
  max-width: min(100%, calc(var(--header-width) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-circle);
  background: var(--bg-panel-2);
  color: var(--text-muted);
}
.brand__mark img { display: block; width: 100%; height: 100%; }
.brand__placeholder {
  width: 16px;
  height: 16px;
  border: var(--stroke) solid var(--text-muted);
  border-radius: var(--radius-sm);
}
.brand__name { font-size: 15px; letter-spacing: var(--tracking-tight); }
.primary-nav { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links > li { position: relative; flex-shrink: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link[aria-expanded="true"] { color: var(--text); }
.nav-link__chev { width: 10px; height: 10px; }
.nav-menu, .language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  padding: 10px;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-menu);
  background: var(--bg-panel);
  color: var(--text);
}
.nav-menu__group + .nav-menu__group { margin-top: 6px; padding-top: 6px; border-top: var(--stroke) solid var(--border); }
.nav-menu__label { padding: 8px 12px 4px; color: var(--text-muted); font-size: 11px; letter-spacing: .04em; }
.nav-menu__item { display: block; padding: 10px 12px; border-radius: var(--radius-shot); }
.nav-menu__item:hover, .nav-menu__item[aria-current="page"] { background: var(--bg-panel-2); color: var(--text); }
.nav-menu__title { display: block; font-size: 14px; }
.nav-menu__desc { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.head-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-picker { position: relative; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}
.lang-switch:hover { color: var(--text); }
.lang-switch svg { width: 10px; height: 10px; }
.language-menu { width: 190px; }
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel-2); color: var(--text); }
.lang-short { display: none; }
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-btn);
}
.hamburger svg { width: 20px; height: 20px; }
.mobile-drawer, .nav-veil { display: none; }
.preview-more { position: relative; }
.preview-more summary { list-style: none; cursor: pointer; }
.preview-more summary::-webkit-details-marker { display: none; }

.hero { padding-top: 48px; overflow-x: clip; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  gap: 48px;
  align-items: stretch;
}
.hero__copy { display: flex; flex-direction: column; min-height: 560px; }
.hero__title {
  margin-top: 28px;
  font-size: var(--h1-size);
  font-weight: var(--weight-regular);
  line-height: 1.14;
}
.hero__title-sub { display: block; color: var(--text-muted); }
.hero__lede { max-width: 500px; margin-top: 32px; color: var(--text-muted); font-size: 15.5px; line-height: 1.75; }
.hero__lede strong { color: var(--text); }
.device-strip { margin-top: auto; padding-top: 18px; border-top: var(--stroke) solid var(--border); }
.device-strip__note { color: var(--text-muted); font-size: 12px; }
.device-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 12px; list-style: none; }
.device { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; color: var(--text-soft); font-size: 13px; }
.device:hover { color: var(--text); }
.device svg { width: 18px; height: 18px; color: var(--text-muted); }
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 11px;
  border: var(--stroke) solid var(--accent-line);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 12px;
}

.site-footer {
  margin-top: var(--section-space);
  padding-top: 64px;
  padding-bottom: 104px;
  border-top: var(--stroke) solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
}
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr 1.3fr .7fr; gap: 40px; }
.footer-brand p { max-width: 310px; margin-top: 18px; font-size: 13px; line-height: 1.85; }
.footer-title { margin-bottom: 16px; color: var(--text); font-size: 14px; }
.footer-links { display: grid; gap: 4px; list-style: none; }
.footer-links a { display: block; padding-block: 6px; font-size: 13px; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: var(--stroke) solid var(--border);
  font-size: 12px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a:hover { color: var(--text); }

.reveal { opacity: 1; transform: none; }
.reveal.is-observed {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--time-reveal) var(--ease), transform var(--time-reveal) var(--ease);
}
.reveal.shown { opacity: 1; transform: none; }

@media (max-width: 1279px) {
  .site-head__row { gap: 20px; }
  .primary-nav { display: none; }
  .head-tools { margin-left: auto; }
  .hamburger { display: inline-flex; }
  .site-head .lang-switch { min-height: 44px; }
  .nav-veil:not([hidden]) {
    display: block;
    position: fixed;
    inset: var(--nav-h) 0 0;
    z-index: 1;
    background: var(--veil);
    color: var(--text);
  }
  .mobile-drawer:not([hidden]) {
    display: block;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    z-index: 2;
    max-height: calc(100dvh - var(--nav-h));
    padding: 18px var(--gutter) 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: var(--stroke) solid var(--border);
    background: var(--bg-panel);
    color: var(--text);
  }
  .mobile-drawer ul { list-style: none; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radius-btn); }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current="page"], .mobile-drawer a[aria-current="true"] { background: var(--bg-panel-2); color: var(--text); }
  .drawer-languages { margin-top: 20px; padding-top: 18px; border-top: var(--stroke) solid var(--border); }
  .drawer-label { padding-inline: 16px; margin-bottom: 8px; color: var(--text-muted); font-size: 12px; }
}
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero__copy { min-height: 0; }
  .device-strip { margin-top: 40px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --h1-size: clamp(24px, 4vw, 30px); --h2-size: clamp(24px, 4vw, 30px); }
  .two-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .site-head__row { gap: 10px; }
  .brand { gap: 8px; }
  .brand__name { font-size: 13px; }
  .head-tools { margin-left: auto; gap: 6px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang-switch { padding-inline: 11px; }
  .language-menu { right: 0; }
  .hero { padding-top: 36px; }
  .hero__grid { gap: 40px; }
  .hero__lede { font-size: 15px; }
  .device-list { gap: 8px 14px; }
  .card { padding: 22px; }
  .panel { padding: 20px; }
  .footer-grid { gap: 32px 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding-top: 48px; }
  .tilt, [data-tilt] { transform: none !important; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand__name { font-size: 12px; }
  .brand__mark { width: 28px; height: 28px; }
  .head-tools { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.is-observed, .reveal.shown { opacity: 1; transform: none; transition: none; }
  .btn__arrow, .skip-link { transition: none; }
}