:root {
  --bg: #fbfaf7;
  --bg-panel: #ffffff;
  --bg-panel-2: #f1f0ec;
  --border: #e7e5df;
  --accent: #f29a12;
  --accent-dark: #b9680a;
  --accent-from: #f7b52c;
  --accent-to: #ec8b0c;
  --accent-wash: rgba(242, 154, 18, .26);
  --accent-edge: rgba(185, 104, 10, .32);
  --text: #1a1915;
  --text-muted: #6b6a64;
  --on-accent: #1a1915;
  --ink: #15140f;
  --on-ink: #ffffff;
  --ink-muted: #c6c4bc;
  --success: #2f9e5b;
  --warn: #b7791f;
  --error: #d4483b;
  --clear: transparent;
  --veil: rgba(23, 22, 15, .28);

  --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;
  --weight-body: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display: 800;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lede: 17px;
  --text-h3: 22px;
  --text-h2: clamp(26px, 2.5vw, 36px);
  --text-h1: clamp(34px, 3.4vw, 48px);
  --tracking-display: -.04em;
  --tracking-heading: -.02em;
  --leading-body: 1.6;
  --leading-display: 1.18;

  --r-panel: 28px;
  --r-float: 20px;
  --r-pill: 999px;
  --r-app-icon: 22.5%;
  --r-tile: 7px;
  --r-check: 5px;
  --r-mark: 9px;
  --r-shot: 10px;
  --r-round: 50%;
  --shadow-float: 0 1px 2px rgba(23, 22, 15, .05), 0 40px 80px -24px rgba(23, 22, 15, .18);
  --shadow-hair: 0 1px 2px rgba(23, 22, 15, .08), 0 1px 1px rgba(23, 22, 15, .04);
  --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 26px -12px rgba(185, 104, 10, .6);
  --shadow-btn-soft: 0 1px 2px rgba(23, 22, 15, .06), 0 10px 24px -14px rgba(23, 22, 15, .22);
  --shadow-icon-inset: inset 0 0 0 1px rgba(23, 22, 15, .06);

  --content: 1200px;
  --reading: 800px;
  --header-content: 1280px;
  --gutter: 32px;
  --space-section: 80px;
  --space-panel: 32px;
  --gap: 24px;
  --header-height: 80px;
  --tilt: -1.5deg;
  --motion-fast: 180ms;
  --motion-reveal: 500ms;
  --ease: cubic-bezier(.2, .65, .3, 1);
  --layer-header: 50;
  --layer-veil: 1;
  --layer-drawer: 3;
  --layer-tools: 4;
  --layer-fab: 30;
}

*, *::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-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: var(--clear); }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: var(--text); }
[hidden] { display: none !important; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-check);
}
::selection { background: var(--accent-wash); color: var(--text); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.25;
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p { margin-top: 0; }
h1, h2, h3, p, ul, ol, figure { min-width: 0; }
code {
  font-family: var(--font-mono);
  font-size: .9em;
  overflow-wrap: anywhere;
}
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-float);
  background: var(--bg-panel-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.8;
  tab-size: 2;
}
pre code {
  font-size: inherit;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}
.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: var(--reading); }
.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}
.section-heading { margin: 0 0 24px; }
.section-intro { max-width: 700px; margin: 0 auto 32px; color: var(--text-muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.text-link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-thickness: 2px; }
.grid-two, .grid-three {
  display: grid;
  gap: var(--gap);
}
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-two > *, .grid-three > *, .feature-panel > *, .footer-grid > * { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.card, .panel {
  min-width: 0;
  padding: var(--space-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--bg-panel);
  color: var(--text);
}
.panel { box-shadow: var(--shadow-float); }
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.prose {
  min-width: 0;
  line-height: 1.85;
}
.prose h2 { margin-top: 56px; margin-bottom: 20px; }
.prose h3 { margin-top: 32px; margin-bottom: 14px; }
.prose p, .prose ul, .prose ol { margin-bottom: 22px; }
.prose a:not(.btn):not(.app-store-button) {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose li + li { margin-top: 8px; }
.prose img { max-width: 100%; }
.prose > :first-child { margin-top: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 8px;
  z-index: calc(var(--layer-header) + 10);
  transform: translateY(-160%);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--on-ink);
}
.skip-link:focus { transform: none; }

.btn, .app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  max-width: 100%;
  padding: 12px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: 1.4;
  letter-spacing: -.01em;
  text-align: center;
  transition: transform var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary, .app-store-button {
  background: linear-gradient(180deg, var(--accent-from), var(--accent-to));
  color: var(--on-accent);
  border-color: var(--accent-edge);
  box-shadow: var(--shadow-btn);
}
.btn-ghost {
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-btn-soft);
}
.btn-primary:hover, .btn-ghost:hover, .app-store-button:hover { transform: translateY(-1px); }
.btn:active, .app-store-button:active { transform: translateY(1px); box-shadow: var(--shadow-hair); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-arrow { color: var(--text-muted); font-weight: var(--weight-medium); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

#site-header, .topbar { position: relative; z-index: var(--layer-header); }
.topbar { padding-top: 18px; padding-bottom: 18px; }
.header-wrap {
  width: 100%;
  max-width: min(100%, calc(var(--header-content) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  font-weight: var(--weight-bold);
  font-size: 15.5px;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-mark);
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hair);
}
.desktop-nav { min-width: 0; margin-left: auto; }
.rail {
  padding: 4px;
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border-radius: var(--r-pill);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}
.nav-list a:hover { color: var(--text); }
.nav-list a[aria-current="page"] {
  background: var(--bg-panel);
  color: var(--text);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-hair);
}
.header-tools { position: relative; display: flex; align-items: center; gap: 8px; flex-shrink: 0; z-index: var(--layer-tools); }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 13.5px;
  font-weight: var(--weight-medium);
  line-height: 1;
  white-space: nowrap;
}
.lang-caret { color: var(--text-muted); font-size: 11px; }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 200px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-float);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-float);
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--r-tile); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel-2); color: var(--text); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; }
.nav-veil {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: var(--layer-veil);
  border: 0;
  padding: 0;
  background: var(--veil);
  color: var(--text);
}

.hero { padding-top: 30px; padding-bottom: 46px; overflow-x: clip; }
.hero-title {
  margin: 0 auto;
  max-width: 900px;
  font-size: var(--text-h1);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  text-align: center;
}
.hero-title .line { display: block; }
.key { position: relative; display: inline-block; white-space: nowrap; }
.key-stroke {
  position: absolute;
  left: -3%;
  bottom: -.2em;
  width: 106%;
  height: .32em;
  overflow: visible;
  pointer-events: none;
}
.key-stroke path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.hero-lede {
  max-width: 700px;
  margin: 18px auto 0;
  font-size: var(--text-lede);
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}
.hero-lede strong { color: var(--text); font-weight: var(--weight-semibold); }
.device-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.device-row li, .device-row a { display: inline-flex; align-items: center; gap: 7px; }
.device-row a:hover { color: var(--text); }
.dev-ico { width: 18px; height: 18px; color: var(--text); flex: none; }
.device-row .sep { width: 1px; height: 16px; background: var(--border); }
.status-strip {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border-block: 1px solid var(--border);
}
.status-strip ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 0 auto;
  padding: 11px var(--gutter);
  max-width: var(--content);
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.status-strip li { display: inline-flex; align-items: center; gap: 8px; }
.status-strip li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: var(--r-round);
  background: var(--accent);
}
.status-strip b { color: var(--text); font-weight: var(--weight-semibold); }
.ink-section {
  padding-top: 88px;
  padding-bottom: 88px;
  background: var(--ink);
  color: var(--on-ink);
}
.ink-section h2 { margin-top: 0; }
.ink-section p { color: var(--ink-muted); }
.ink-section .text-link { color: var(--accent-from); }
.ink-section .fact-pill { background: var(--ink); color: var(--on-ink); border-color: var(--text-muted); }

.site-footer {
  padding-top: 64px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel-2);
  color: var(--text);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 40px; }
.footer-brand .brand { white-space: normal; }
.footer-brand p { margin-top: 20px; max-width: 290px; color: var(--text-muted); font-size: var(--text-sm); }
.footer-heading { margin: 0 0 16px; font-size: var(--text-sm); font-weight: var(--weight-bold); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding-block: 5px; font-size: var(--text-sm); color: var(--text-muted); overflow-wrap: break-word; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(14px); }
.reveal-ready .reveal { transition: opacity var(--motion-reveal) var(--ease), transform var(--motion-reveal) var(--ease); }

@media (max-width: 1279px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) {
    display: block;
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 100%;
    z-index: var(--layer-drawer);
    max-height: calc(100dvh - var(--header-height) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-float);
    background: var(--bg-panel);
    color: var(--text);
    box-shadow: var(--shadow-float);
  }
  .mobile-drawer ul { margin: 0; padding: 0; list-style: none; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 11px 16px; border-radius: var(--r-tile); }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--bg-panel-2); color: var(--text); }
  .drawer-languages { margin-top: 12px !important; padding-top: 12px !important; border-top: 1px solid var(--border); }
  .preview-header .desktop-nav { display: block; order: 3; width: 100%; }
  .preview-header .topbar-inner { flex-wrap: wrap; }
  .preview-header .nav-list { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; --space-section: 60px; --space-panel: 24px; }
  .grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --text-h1: clamp(24px, 4.6vw, 30px); }
  .hero-title { letter-spacing: var(--tracking-heading); }
  .hero-lede { font-size: var(--text-base); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --space-section: 48px; --space-panel: 22px; --gap: 18px; }
  .grid-two, .grid-three, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar-inner { gap: 10px; }
  .brand { font-size: 13px; gap: 7px; }
  .brand-mark { width: 28px; height: 28px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang { min-height: 44px; padding-inline: 11px; }
  .header-tools { gap: 6px; margin-left: auto; }
  .hero { padding-top: 24px; }
  .hero-title .line { text-wrap: balance; }
  .cta-row { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .device-row { gap: 10px 14px; font-size: var(--text-xs); }
  .device-row .sep { display: none; }
  .tilt, .verify, [data-decorative-tilt] { transform: none !important; }
  .ink-section { padding-top: 56px; padding-bottom: 56px; }
  .footer-grid { gap: 28px; }
  .footer-bottom { flex-direction: column; }
  pre { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}