:root {
  color-scheme: dark;
  --bg: #130f03;
  --panel: #211b0e;
  --panel-dark: #130f03;
  --border: #3d3422;
  --border-strong: #65553a;
  --accent: #f25c22;
  --accent-dark: #ff9363;
  --text: #f3eee3;
  --muted: #bcb29e;
  --success: #2f8a5a;
  --warn: #d9922f;
  --error: #e5484d;
  --apricot: #302415;
  --screen-warm: #57351f;
  --screen-mid: #392719;
  --ink-bezel: #1b1710;
  --ink-raise: #3a3326;
  --on-dark: #f3eee3;
  --on-dark-muted: rgba(243, 238, 227, 0.68);
  --on-dark-faint: rgba(243, 238, 227, 0.36);
  --line-dark: rgba(231, 224, 209, 0.12);
  --line-dark-strong: rgba(231, 224, 209, 0.2);
  --accent-wash: rgba(242, 92, 34, 0.17);
  --accent-soft: rgba(242, 92, 34, 0.09);
  --accent-line: rgba(242, 92, 34, 0.55);
  --error-wash: rgba(229, 72, 77, 0.17);
  --error-line: rgba(229, 72, 77, 0.45);
  --grey-wash: rgba(231, 224, 209, 0.12);
  --screen-ring: rgba(255, 255, 255, 0.55);
  --frame-highlight: rgba(255, 255, 255, 0.7);
  --veil: rgba(19, 15, 3, 0.48);
  --clear: transparent;
  --shadow-hair: 0 1px 2px rgba(60, 40, 10, 0.06);
  --shadow-card: 0 12px 32px -24px rgba(60, 40, 10, 0.22);
  --shadow-frame: inset 0 1px 0 var(--frame-highlight), 0 12px 30px -18px rgba(90, 60, 20, 0.18), 0 60px 100px -56px rgba(90, 60, 20, 0.32);
  --shadow-device: 0 8px 18px -8px rgba(27, 23, 16, 0.28), 0 34px 64px -30px rgba(27, 23, 16, 0.5);
  --shadow-float-dark: 0 2px 4px rgba(19, 15, 3, 0.2), 0 18px 34px -12px rgba(19, 15, 3, 0.48), 0 48px 84px -30px rgba(19, 15, 3, 0.55);
  --shadow-float-light: 0 1px 2px rgba(60, 40, 10, 0.07), 0 14px 30px -14px rgba(60, 40, 10, 0.26), 0 44px 76px -36px rgba(60, 40, 10, 0.34);
  --shadow-cta: 0 12px 26px -12px rgba(242, 92, 34, 0.62);
  --shadow-fab: 0 10px 28px -10px rgba(27, 23, 16, 0.5);
  --r-xl: 28px;
  --r-lg: 24px;
  --r-md: 20px;
  --r-sm: 12px;
  --r-xs: 8px;
  --r-shot: 10px;
  --r-mobile-float: 16px;
  --r-device: 34px;
  --r-button-edge: 3px;
  --r-logo: 30%;
  --r-circle: 50%;
  --r-pill: 999px;
  --font-display: "Iowan Old Style", "Charter", "Palatino Linotype", Georgia, "Songti SC", "STSong", "Noto Serif SC", 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;
  --size-body: 16px;
  --size-small: 12.5px;
  --size-nav: 14.5px;
  --size-h1: clamp(34px, 3.4vw, 48px);
  --size-h2: clamp(28px, 3vw, 38px);
  --size-h3: 21px;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 600;
  --tracking-title: -0.02em;
  --gutter: 40px;
  --rail-width: 1312px;
  --reading-width: 900px;
  --header-span: 1280px;
  --header-height: 72px;
  --section-space: 140px;
  --card-space: 28px;
  --row-h: 36px;
  --scan-cycle: 10.8s;
  --motion-fast: 0.2s;
  --motion-reveal: 0.65s;
  --focus-width: 2px;
  --line-width: 1px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { margin: 0; padding: 0; }
html.nav-open { overflow: hidden; }
#site-header { position: relative; z-index: 1000; }
#site-header .mobile-drawer { z-index: 1001; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[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(--accent-soft); }
button { color: var(--text); }
img { max-width: 100%; }
svg { vertical-align: middle; flex-shrink: 0; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--size-h1); line-height: 1.2; }
h2 { font-size: var(--size-h2); line-height: 1.25; }
h3 { font-size: var(--size-h3); line-height: 1.4; }
p { margin-bottom: 1.2em; }
strong { font-weight: var(--weight-bold); }
code, kbd, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: 0.9em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 24px;
  background: var(--panel-dark);
  color: var(--on-dark);
  border: var(--line-width) solid var(--line-dark-strong);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.8;
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; font-size: inherit; }
:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: 3px; }
::selection { background: var(--apricot); color: var(--text); }
.wrap, .rail {
  width: 100%;
  max-width: var(--rail-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.rail { border-inline: var(--line-width) solid var(--border); }
.reading { max-width: var(--reading-width); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section + .section { padding-top: 0; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading p { color: var(--muted); }
.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)); }
.grid-two > *, .grid-three > *, .hero .rail > *, .footer-grid > *, .feature-tabs > * { min-width: 0; }
.keyword { white-space: nowrap; }
.muted, .fineprint { color: var(--muted); }
.fineprint { font-size: var(--size-small); }
.mono { font-family: var(--font-mono); }
.text-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--text); }
.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: var(--gutter);
  z-index: 100;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-sm);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  max-width: 100%;
  padding: 12px 24px;
  border: var(--line-width) solid var(--clear);
  border-radius: var(--r-pill);
  font-size: 15.5px;
  font-weight: var(--weight-bold);
  line-height: 1.5;
  text-align: center;
  background: var(--clear);
  color: var(--text);
  transition: background-color var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast);
}
.btn svg { width: 18px; height: 18px; }
.btn-store {
  padding-inline: 22px 26px;
  background: var(--accent);
  color: var(--panel);
  box-shadow: var(--shadow-cta);
}
.btn-store:hover, .btn-store.is-hover { background: var(--accent-dark); color: var(--panel); }
.btn-guide {
  padding-inline: 24px 20px;
  border-color: var(--border-strong);
  background: var(--clear);
  color: var(--text);
  font-weight: var(--weight-medium);
}
.btn-guide svg { width: 16px; height: 16px; color: var(--muted); }
.btn-guide:hover { border-color: var(--text); }
.btn:active, .btn.is-pressed { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; background: var(--border); color: var(--muted); box-shadow: none; }
.btn.is-focus { outline: var(--focus-width) solid var(--accent); outline-offset: 3px; }
.card, .panel {
  min-width: 0;
  padding: var(--card-space);
  border: var(--line-width) solid var(--border);
  border-radius: var(--r-lg);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 12px; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.prose { min-width: 0; overflow-wrap: break-word; }
.prose h2 { margin-top: 72px; margin-bottom: 24px; }
.prose h3 { margin-top: 40px; }
.prose p, .prose li { line-height: 1.9; }
.prose a:not(.btn):not(.appstore-button) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: 10px; }
.prose :where(div, section, article) { min-width: 0; max-width: 100%; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
html.reveal-ready .reveal { transition: opacity var(--motion-reveal) ease, transform var(--motion-reveal) ease; }
.masthead {
  min-height: var(--header-height);
  border-bottom: var(--line-width) solid var(--border);
  background: var(--bg);
  color: var(--text);
  position: relative;
  z-index: 50;
}
.header-rail {
  width: 100%;
  max-width: min(100%, calc(var(--header-span) + var(--gutter) * 2));
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: var(--r-logo);
  flex-shrink: 0;
}
.brand-placeholder {
  background: var(--panel);
  color: var(--text);
  border: var(--line-width) solid var(--border);
  box-shadow: var(--shadow-hair);
  position: relative;
}
.brand-placeholder::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: var(--line-width) dashed var(--border-strong);
  border-radius: var(--r-logo);
}
.brand-name { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.01em; line-height: 1; }
.brand-sub { font-size: var(--size-small); color: var(--muted); padding-left: 12px; border-left: var(--line-width) solid var(--border); line-height: 1; }
.primary-nav { min-width: 0; margin-left: auto; }
.primary-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.primary-nav a {
  display: block;
  padding: 8px 15px;
  border: var(--line-width) solid var(--clear);
  border-radius: var(--r-pill);
  font-size: var(--size-nav);
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--motion-fast), background-color var(--motion-fast);
}
.primary-nav a:hover { color: var(--text); }
.primary-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--panel);
  border-color: var(--border);
  box-shadow: var(--shadow-hair);
  font-weight: var(--weight-medium);
}
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.language-control { position: relative; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: var(--line-width) solid var(--border-strong);
  font-size: 13.5px;
  background: var(--clear);
  color: var(--text);
  white-space: nowrap;
  list-style: none;
}
.lang-switch::-webkit-details-marker { display: none; }
.lang-switch svg { width: 15px; height: 15px; color: var(--muted); }
.lang-caret { color: var(--muted); font-size: 11px; }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 200px;
  padding: 8px;
  border: var(--line-width) solid var(--border);
  border-radius: var(--r-md);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-float-light);
  z-index: 4;
}
.language-menu a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 14px; border-radius: var(--r-sm); }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--bg); color: var(--text); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: var(--panel);
  color: var(--text);
  border: var(--line-width) solid var(--border);
  border-radius: var(--r-pill);
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 28px;
  border-bottom: var(--line-width) solid var(--border);
  background: var(--bg);
  color: var(--text);
  z-index: 3;
}
.mobile-drawer ul { padding: 0; margin: 0; list-style: none; }
.mobile-drawer a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  color: var(--text);
}
.mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--panel); color: var(--text); }
.drawer-languages { margin-top: 16px; border-top: var(--line-width) solid var(--border); padding-top: 12px; }
.drawer-label { margin: 12px 16px 4px; color: var(--muted); font-size: var(--size-small); }

.nav-veil { position: fixed; inset: var(--header-height) 0 0; z-index: 40; background: var(--veil); }
.site-footer { border-top: var(--line-width) solid var(--border); background: var(--bg); color: var(--text); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 0.8fr;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 56px;
}
.footer-brand p { max-width: 300px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.footer-title { margin-bottom: 16px; font-family: var(--font-body); font-size: 14px; font-weight: var(--weight-bold); letter-spacing: 0; }
.footer-links { padding: 0; margin: 0; list-style: none; }
.footer-links a { display: inline-block; padding-top: 6px; padding-bottom: 6px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--accent-dark); }
.footer-bottom { padding-top: 24px; padding-bottom: 88px; border-top: var(--line-width) solid var(--border); color: var(--muted); font-size: var(--size-small); }
.footer-bottom p { margin-bottom: 8px; }
@media (max-width: 1360px) {
  .brand-sub { display: none; }
  .primary-nav a { padding-inline: 11px; font-size: 14px; }
  .header-rail { gap: 16px; }
}
@media (max-width: 1279px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .lang-switch { min-height: 44px; }
}
@media (min-width: 1280px) {
  .mobile-drawer, .nav-veil { display: none !important; }
}
@media (max-width: 980px) {
  .grid-three { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --size-h1: clamp(24px, 5vw, 30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --card-space: 22px; --row-h: 28px; }
  .rail { border-inline: 0; }
  .header-rail { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .lang-switch { padding-inline: 10px; gap: 5px; }
  .lang-switch svg { display: none; }
  .grid-two { grid-template-columns: minmax(0, 1fr); }
  .btn { min-height: 48px; font-size: 15px; padding-inline: 20px; }
  .footer-grid { gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-grid > :last-child .footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .tilt, [data-tilt] { transform: none !important; }
  pre { padding: 18px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}