:root {
  --bg: #FFFFFF;
  --bg-panel: #F6F6F9;
  --bg-panel-2: #EEEEF4;
  --border: #E3E3EA;
  --border-strong: #CFCFDA;
  --accent: #463CDB;
  --accent-dark: #3029B0;
  --accent-soft: #ECEBFC;
  --text: #0E0E14;
  --text-muted: #5E5E6B;
  --success: #17A398;
  --warn: #C98A12;
  --error: #D2433A;
  --on-accent: #FFFFFF;
  --transparent: transparent;
  --veil: rgba(14, 14, 20, .18);
  --font-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", "Malgun Gothic", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Yu Gothic UI", "Apple SD Gothic Neo", "Microsoft YaHei", "Malgun Gothic", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 6px;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --radius-round: 50%;
  --shadow-lift: 0 20px 34px -20px rgba(14, 14, 20, .30), 0 3px 8px -3px rgba(14, 14, 20, .08);
  --ring-gap: 0 0 0 4px #FFFFFF;
  --gutter: 40px;
  --wrap-width: 1360px;
  --reading-width: 840px;
  --header-h: 72px;
  --peek: 40px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lead: 17px;
  --title-xl: clamp(34px, 3.4vw, 48px);
  --title-lg: clamp(28px, 3vw, 40px);
  --title-md: 24px;
  --title-sm: 19px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display: 800;
  --speed-fast: 150ms;
  --speed-reveal: 500ms;
  --ease: ease;
  --section-space: 96px;
}

*, *::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-regular) var(--text-base)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--transparent); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: var(--accent-soft); color: var(--text); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--title-xl); font-weight: var(--weight-display); letter-spacing: -.02em; }
h2 { font-size: var(--title-lg); font-weight: var(--weight-display); letter-spacing: -.02em; }
h3 { font-size: var(--title-md); font-weight: var(--weight-bold); }
p { margin-top: 0; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .88em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text);
  font-size: var(--text-sm);
  line-height: 1.7;
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; font-size: inherit; }
blockquote { margin-inline: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 32px; }
.wrap {
  width: 100%;
  max-width: var(--wrap-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: var(--reading-width); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-title { margin: 0 0 40px; }
.section-intro { max-width: 640px; color: var(--text-muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .hero-grid > *, .footer-grid > *, .feature-workbench > * { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }
.keep { white-space: nowrap; }
.icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--text); }
.line-icon { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.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: 120;
  padding: 12px 18px;
  transform: translateY(-160%);
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.skip-link:focus { transform: none; }

.cta, .button-states { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: var(--weight-semibold) var(--text-base)/1.35 var(--font-body);
  text-align: center;
  text-decoration: none;
  transition: background-color var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--on-accent); border-color: var(--accent-dark); }
.btn-ghost { background: var(--bg); color: var(--text); }
.btn-ghost:hover, .btn-ghost.is-hover { background: var(--bg); color: var(--text); border-color: var(--text); }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-2); color: var(--text-muted); border-color: var(--border); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: var(--text-sm); }

#site-header { position: relative; z-index: 90; }
.topbar { height: var(--header-h); background: var(--bg); color: var(--text); position: relative; z-index: 92; }
.header-wrap {
  width: 100%;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.topbar-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  font: var(--weight-display) 17px/1.4 var(--font-display);
  letter-spacing: -.01em;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }
.desktop-nav { margin-left: auto; min-width: 0; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-list li { display: flex; align-items: center; min-width: 0; }
.nav-list li + li::before { content: "·"; color: var(--border-strong); font-weight: var(--weight-bold); margin-inline: 14px; flex-shrink: 0; }
.nav-link { color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: var(--weight-medium); padding-block: 6px; white-space: nowrap; }
.nav-link:hover { color: var(--accent); }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 9px; }
.header-tools { display: flex; align-items: center; flex-shrink: 0; position: relative; }
.lang {
  margin-left: 4px;
  padding: 4px 0 4px 28px;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--transparent);
  color: var(--text-muted);
  font: var(--weight-medium) var(--text-sm)/1.4 var(--font-body);
  min-height: 44px;
  white-space: nowrap;
}
.lang:hover { color: var(--text); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 6px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  z-index: 96;
}
.lang-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--text); text-decoration: none; border-radius: var(--radius-sm); }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--bg-panel); color: var(--accent); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; inset: var(--header-h) 0 0; z-index: 91; border: 0; background: var(--veil); color: var(--text); }

.hero {
  min-height: calc(100vh - var(--header-h) - var(--peek));
  min-height: calc(100svh - var(--header-h) - var(--peek));
  display: grid;
  align-content: center;
  padding-top: 32px;
  padding-bottom: 32px;
  overflow-x: clip;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 56px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
}
.chip-mono { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .01em; }
.hero-title { margin: 0 0 22px; font-size: clamp(30px, 3.4vw, 48px); font-weight: var(--weight-display); line-height: 1.14; letter-spacing: -.02em; }
.hero-title > span { display: block; }
.lead { margin: 0 0 34px; max-width: 500px; font-size: var(--text-lead); line-height: 1.75; color: var(--text-muted); }
.lead strong { color: var(--text); font-weight: var(--weight-semibold); }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 30px 0 0; padding: 0; list-style: none; }
.pf-label { font-size: 12.5px; color: var(--text-muted); padding-right: 20px; border-right: 1px solid var(--border); line-height: 1.2; }
.pf-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: var(--weight-medium); color: var(--text); text-decoration: none; }
.pf-link:hover { color: var(--accent); }
.pf-ic { width: 15px; height: 15px; flex-shrink: 0; }
.trust { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.trust span + span::before { content: "·"; margin-inline: 8px; color: var(--border-strong); font-weight: var(--weight-bold); }

.panel, .card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
.panel { background: var(--bg-panel); color: var(--text); }
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.prose { min-width: 0; }
.prose p, .prose li { line-height: 1.85; }
.prose h2 { margin-top: 64px; margin-bottom: 24px; font-size: 30px; }
.prose h3 { margin-top: 36px; margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose :where(h2, h3, h4, [id]) { scroll-margin-top: 28px; }
.prose > :first-child { margin-top: 0; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(12px); }
html.reveal-ready .reveal { transition: opacity var(--speed-reveal) var(--ease), transform var(--speed-reveal) var(--ease); }
html.reveal-ready .reveal.shown { opacity: 1; transform: none; }

.site-footer { padding-top: 72px; padding-bottom: 96px; border-top: 1px solid var(--border); background: var(--bg); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.2fr .7fr; gap: 40px; }
.footer-about p { max-width: 300px; margin: 18px 0 0; font-size: var(--text-sm); color: var(--text-muted); }
.footer-heading { margin: 0 0 16px; font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 9px; }
.footer-links a { color: var(--text-muted); font-size: var(--text-sm); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover, .footer-links a[aria-current="true"] { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { color: var(--text-muted); }

@media (max-width: 1180px) {
  .hero { min-height: 0; padding-top: 40px; padding-bottom: 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 95;
    padding: 16px var(--gutter) 24px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
  }
  .drawer-list { list-style: none; padding: 0; margin: 0; }
  .drawer-list a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 8px; color: var(--text); text-decoration: none; }
  .drawer-list a[aria-current] { color: var(--accent); }
  .drawer-heading { margin: 16px 8px 8px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--text-xs); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --section-space: 64px; --title-xl: clamp(24px, 7vw, 30px); --title-lg: 28px; }
  h1, .hero-title { font-size: clamp(24px, 7vw, 30px); }
  .lead { font-size: 15.5px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .prose h2 { font-size: 26px; }
}
@media (max-width: 640px) {
  .tilt, .tile-lift, [data-tilt] { transform: none !important; }
  .panel, .card { padding: 20px; }
  .lang { padding-left: 12px; margin-left: 0; }
  .topbar-in { gap: 8px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .chips { flex-direction: row; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand { font-size: 14px; }
  .lang { font-size: var(--text-xs); }
  .menu-toggle { margin-left: 4px; }
  .btn { padding-inline: 18px; }
  .platforms { gap: 10px 16px; }
}
@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; }
}