:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-panel: #F5F4F1;
  --bg-panel-2: #EEECE7;
  --bg-soft: #FAF9F7;
  --border: #E3E1DB;
  --border-strong: #D3D0C7;
  --accent: #FF5C28;
  --accent-dark: #D9441A;
  --accent-ink: #A93516;
  --accent-tint: rgba(255, 92, 40, .14);
  --accent-dot: rgba(255, 92, 40, .42);
  --text: #15161C;
  --text-muted: #5D6170;
  --text-faint: #8D909B;
  --success: #1FB386;
  --success-ink: #146650;
  --success-tint: rgba(31, 179, 134, .10);
  --success-line: rgba(31, 179, 134, .38);
  --warn: #E89A12;
  --error: #D63A3A;
  --cursor: #6A4BF0;
  --on-accent: #FFFFFF;
  --knob: #FFFFFF;
  --clear: transparent;
  --veil: rgba(21, 22, 28, .40);

  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 6px;
  --radius-sm: 4px;
  --radius-inset: 5px;
  --radius-dot: 1px;
  --radius-circle: 50%;
  --radius-pill: 999px;
  --shadow-hair: 0 1px 2px rgba(21, 22, 28, .05);
  --shadow-card: 0 1px 2px rgba(21, 22, 28, .06), 0 18px 40px -14px rgba(21, 22, 28, .16);
  --shadow-float: 0 2px 6px rgba(21, 22, 28, .07), 0 30px 60px -18px rgba(21, 22, 28, .26);
  --shadow-btn: 0 1px 0 rgba(21, 22, 28, .08), 0 8px 18px -8px rgba(255, 92, 40, .65);
  --shadow-tag: 0 6px 14px -6px rgba(106, 75, 240, .6);
  --shadow-knob: 0 1px 2px rgba(21, 22, 28, .25);

  --nav-h: 68px;
  --band-peek: 30px;
  --container: 1264px;
  --header-span: 1280px;
  --gutter: 32px;
  --measure: 76ch;
  --section-space: clamp(48px, 7vw, 96px);
  --title-size: clamp(34px, 3.4vw, 48px);
  --hero-title-size: clamp(30px, 3.4vw, 48px);
  --section-title-size: clamp(24px, 2.7vw, 36px);
  --subhead-size: clamp(19px, 2vw, 23px);
  --fast: .15s ease;
  --reveal-time: .45s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
main, section, article, aside, nav, figure, .wrap, .grid > *, .footer-grid > * {
  min-width: 0;
}
img, svg, video { max-inline-size: 100%; }
img, video { height: auto; }
svg, .brand__mark, .dot, .icon { flex-shrink: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--accent-ink); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
a:focus-visible, button:focus-visible { outline-color: var(--accent); }
:where([id]) { scroll-margin-top: 1.25rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  letter-spacing: -.02em;
}
h1, .h1 {
  margin: 0;
  color: var(--text);
  font: 900 var(--title-size)/1.14 var(--font-display);
}
h2 { margin: 0 0 .75em; font-size: var(--section-title-size); line-height: 1.22; font-weight: 800; }
h3 { margin: 0 0 .55em; font-size: var(--subhead-size); line-height: 1.32; font-weight: 800; }
.nowrap { white-space: nowrap; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-ink);
  font: 700 13px/normal var(--font-mono);
  letter-spacing: .06em;
}
.prose { max-inline-size: var(--measure); line-height: 1.78; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose :where(h2, h3):not(:first-child) { margin-top: 1.55em; }
.prose :where(ul, ol) { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .35em; }
code, kbd, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
:not(pre) > code {
  padding: .12em .28em;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text);
}
pre {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 16px;
  overflow: auto;
  background: var(--bg-soft);
  color: var(--text);
  font-size: .875rem;
  line-height: 1.6;
  white-space: pre;
}
pre code { overflow-wrap: normal; word-break: normal; }

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
}
.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-space); }
.section--panel { background: var(--bg-panel); color: var(--text); }
.decor-frame, .hero, .band { position: relative; overflow-x: clip; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 18px;
}
.stack { display: grid; gap: 16px; }
.stack > * { min-width: 0; }
.card, .panel {
  min-width: 0;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-card);
  overflow-wrap: break-word;
}
.card p, .panel p { line-height: 1.65; }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.panel--quiet { background: var(--bg-soft); color: var(--text); box-shadow: var(--shadow-hair); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--clear);
  border-radius: var(--radius);
  font: 700 15px/1.25 var(--font-display);
  text-decoration: none;
  text-align: center;
  transition: background-color var(--fast), border-color var(--fast), color var(--fast);
}
.btn--solid { background: var(--accent); color: var(--text); box-shadow: var(--shadow-btn); }
.btn--solid:hover, .btn--solid:active, .btn--sample-hover {
  background: var(--accent-dark);
  color: var(--on-accent);
}
.btn--ghost { background: var(--bg); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 40px; padding-inline: 18px; font-size: 14.5px; }
.btn--lg { min-height: 50px; padding-inline: 26px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; }
.btn--sample-focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border-color: var(--border);
  box-shadow: none;
}
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.topbar {
  position: relative;
  z-index: 10;
  height: var(--nav-h);
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: min(100%, calc(var(--header-span) + var(--gutter) * 2));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.topbar--proof .topbar__inner { max-width: var(--container); }
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 800 17px/1.25 var(--font-display);
  letter-spacing: -.01em;
}
.brand__mark { width: 32px; height: 30px; object-fit: contain; }
.nav { min-width: 0; margin-left: auto; font-size: 15px; }
.nav ul {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 6px 2px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--fast);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { font-weight: 700; }
.nav__sep { color: var(--border-strong); font: 400 14px/1 var(--font-mono); }
.topbar__tools { display: flex; align-items: center; flex-shrink: 0; gap: 8px; }
.langbox { position: relative; }
.lang, .hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.lang__caret { font-size: 11px; }
.lang__short { display: none; }
.lang-menu {
  position: absolute;
  z-index: 3;
  inset: calc(100% + 8px) 0 auto auto;
  width: max-content;
  min-width: 10rem;
  max-width: calc(100vw - var(--gutter) * 2);
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-float);
}
.lang-menu ul, .nav-drawer ul { margin: 0; padding: 0; list-style: none; }
.lang-menu a, .nav-drawer a:not(.btn) {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
}
.lang-menu a:hover, .nav-drawer a:not(.btn):hover,
.lang-menu a[aria-current], .nav-drawer a:not(.btn)[aria-current] {
  background: var(--bg-panel);
  color: var(--text);
}
.hamburger { display: none; min-width: 44px; min-height: 44px; padding: 0; }
.hamburger svg { width: 20px; height: 20px; }
.topbar__cta { flex-shrink: 0; background: var(--accent); color: var(--on-accent); white-space: nowrap; }
.nav-drawer, .nav-veil, .preview-menu { display: none; }
.nav-drawer {
  position: absolute;
  z-index: 2;
  inset: 100% 0 auto;
  max-height: calc(100vh - var(--nav-h));
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) 20px;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-float);
}
.nav-drawer__label { margin: 14px 12px 4px; color: var(--text-muted); font-size: .875rem; }
.nav-drawer .btn { width: 100%; margin-top: 8px; }
.nav-veil {
  position: fixed;
  z-index: -1;
  inset: var(--nav-h) 0 0;
  background: var(--veil);
  color: var(--on-accent);
}

.site-foot {
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr) minmax(0, 1.15fr) minmax(0, .7fr);
  gap: 24px;
  padding-block: 44px 28px;
}
.footer-grid p { max-width: 36ch; margin: 12px 0 0; color: var(--text-muted); line-height: 1.65; }
.footer-grid h2 { margin: 0 0 12px; font-size: 15px; text-wrap: wrap; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid li a { color: var(--text-muted); overflow-wrap: anywhere; }
.footer-grid li a:hover { color: var(--accent-ink); }
.footer-copy {
  margin: 0;
  padding-block: 18px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font: 400 12px/1.5 var(--font-mono);
}

.reveal-ready .reveal {
  transition: opacity var(--reveal-time), translate var(--reveal-time);
}
.reveal-ready .reveal:not(.shown):not(:focus-within):not(:target) { opacity: 0; translate: 0 10px; }

@media (max-width: 1180px) {
  .topbar__inner { gap: 16px; }
  .topbar--proof .langbox { display: none; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .topbar__tools { margin-left: auto; }
  .hamburger, .topbar--proof .preview-menu { display: inline-flex; }
  .topbar__cta { display: none; }
  .topbar:not(.topbar--proof) .nav-drawer:not([hidden]),
  .topbar:not(.topbar--proof) .nav-veil:not([hidden]),
  .preview-menu[open] .nav-drawer { display: block; }
  .lang { min-height: 44px; min-width: 44px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --gutter: 18px; --title-size: clamp(24px, 7vw, 30px); --hero-title-size: var(--title-size); }
  .btn--lg { min-height: 46px; padding-inline: 20px; font-size: 15px; }
}
@media (max-width: 640px) {
  .tilt, [data-tilt] { transform: none !important; rotate: none !important; }
  .topbar__inner { gap: 8px; }
  .topbar__inner .brand { font-size: 15px; gap: 6px; flex-shrink: 1; min-width: 0; }
  .topbar__inner .brand span { overflow-wrap: anywhere; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .lang { padding-inline: 8px; }
  .footer-grid { column-gap: 16px; }
  .footer-grid__brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; translate: none; }
}