:root {
  --bg: #ffffff;
  --bg-panel: #f3f4f8;
  --bg-panel-2: #eceefe;
  --border: #e3e5ec;
  --accent: #5a54f6;
  --accent-dark: #3e37d4;
  --text: #1b1c24;
  --text-muted: #5d6170;
  --success: #2fc99a;
  --warn: #c9821a;
  --error: #d64545;
  --text-faint: #9a9eac;
  --line-no: #b9bcc8;
  --dot: #c5c7ec;
  --arc-deep: #e0e1fd;
  --on-accent: #ffffff;
  --clear: transparent;
  --accent-a06: rgb(90 84 246 / 0.06);
  --accent-a10: rgb(90 84 246 / 0.10);
  --accent-a14: rgb(90 84 246 / 0.14);
  --accent-a30: rgb(90 84 246 / 0.30);
  --success-a22: rgb(47 201 154 / 0.22);
  --veil: rgb(27 28 36 / 0.24);
  --shadow-float: 0 30px 80px -20px rgb(90 84 246 / 0.32), 0 2px 8px rgb(27 28 36 / 0.05);
  --shadow-card: 0 22px 44px -14px rgb(62 55 212 / 0.40), 0 4px 12px rgb(27 28 36 / 0.08);
  --shadow-btn: 0 10px 24px -10px rgb(90 84 246 / 0.55);
  --radius-card: 10px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --radius-window: 12px;
  --radius-mark: 8px;
  --radius-shot: 10px;
  --radius-dot: 50%;
  --radius-tiny: 2px;
  --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-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display: 800;
  --text-size: 17px;
  --text-small: 14px;
  --nav-h: 72px;
  --wrap: 1440px;
  --reading: 860px;
  --gutter: 80px;
  --section-space: 144px;
  --conf-line: 30px;
  --conf-pad: 20px;
  --ease: cubic-bezier(.2, .65, .3, 1);
  --duration: .2s;
}

*, *::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);
  font-size: var(--text-size);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--accent-a10); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, svg { max-width: 100%; }
img { height: auto; }
svg { vertical-align: middle; }
button svg, .icon, .status-dot, .match-dot, .device-ico { flex-shrink: 0; }
figure { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 2.4vw + 14px, 48px); }
h2 { font-size: clamp(26px, 2.3vw, 36px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); }
p { margin-top: 0; }
strong { font-weight: var(--weight-semibold); }
code, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 24px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-size: var(--text-small);
  line-height: 1.8;
  overscroll-behavior-inline: contain;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
section[id], h2[id], h3[id] { scroll-margin-top: 32px; }
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-panel { background: var(--bg-panel); color: var(--text); }
.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head h2 { margin-top: 18px; margin-bottom: 20px; }
.muted, figcaption { color: var(--text-muted); }
.keep { white-space: nowrap; }
.grid-two, .card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-two > *, .card-grid > *, .hero-grid > *, .footer-grid > *, .feature-band > * { min-width: 0; }
.flow > * + * { margin-top: 24px; }
.prose { min-width: 0; }
.prose h2 { margin-top: 64px; margin-bottom: 24px; }
.prose h3 { margin-top: 36px; margin-bottom: 16px; }
.prose p, .prose ul, .prose ol { margin-bottom: 24px; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose li + li { margin-top: 8px; }
.prose :not(pre) > code { background: var(--bg-panel); color: var(--text); border-radius: var(--radius-tiny); padding: 2px 5px; }
.card, .panel {
  padding: 32px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid var(--clear);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--weight-bold);
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
  transition: background-color var(--duration) ease, color var(--duration) ease, border-color var(--duration) ease, transform var(--duration) ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-ghost { background: var(--bg); color: var(--accent); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-a06); color: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel); color: var(--text-muted); border-color: var(--border); box-shadow: none; cursor: not-allowed; transform: none; }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-ico { width: 18px; height: 18px; margin-top: -2px; flex-shrink: 0; }
.text-link { font-size: 15px; font-weight: var(--weight-semibold); }
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: var(--weight-bold); line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.eyebrow-dash { display: block; width: 24px; height: 3px; margin-bottom: 10px; border-radius: var(--radius-tiny); background: var(--success); }
.status-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--text); font-size: 13.5px; font-weight: var(--weight-semibold); line-height: 1.4; max-width: 100%; }
.status-dot, .match-dot { width: 8px; height: 8px; border-radius: var(--radius-dot); background: var(--success); box-shadow: 0 0 0 4px var(--success-a22); }

.topbar { position: relative; z-index: 30; height: var(--nav-h); background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.topbar-inner { width: 100%; max-width: min(100%, calc(1280px + var(--gutter) * 2)); margin-inline: auto; padding-inline: var(--gutter); height: 100%; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark { display: block; width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--radius-mark); }
.brand-placeholder { border: 1.5px solid var(--accent); background: var(--bg); color: var(--text); box-shadow: 0 2px 6px var(--accent-a14); }
.brand-name { font-family: var(--font-display); font-size: 17px; font-weight: var(--weight-bold); letter-spacing: -.01em; white-space: nowrap; }
.brand-short { display: none; }
.primary-nav { margin-left: auto; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.nav-list li { display: flex; align-items: center; }
.nav-list li + li::before { content: "·"; color: var(--text-muted); padding-inline: 12px; font-weight: var(--weight-bold); }
.nav-list a { display: block; padding-block: 12px; color: var(--text); font-size: 15px; font-weight: var(--weight-medium); white-space: nowrap; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--accent); }
.nav-list a[aria-current="page"] { font-weight: var(--weight-semibold); }
.header-tools { display: flex; align-items: center; flex-shrink: 0; margin-left: 28px; gap: 8px; }
.language { position: relative; }
.lang-switch { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 6px 0 6px 24px; border: 0; border-left: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-size: 14px; font-weight: var(--weight-medium); white-space: nowrap; }
.lang-caret { font-size: 11px; }
.lang-short { display: none; }
.language-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 190px; margin: 0; padding: 8px; list-style: none; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); z-index: 5; }
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--text); border-radius: var(--radius-btn); font-size: 14px; }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel-2); color: var(--accent-dark); }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--bg); color: var(--text); }
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.menu-drawer { position: absolute; top: var(--nav-h); left: 0; right: 0; padding: 16px var(--gutter) 28px; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); z-index: 3; }
.menu-drawer ul { list-style: none; margin: 0; padding: 0; }
.menu-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; color: var(--text); border-radius: var(--radius-btn); }
.menu-drawer a:hover, .menu-drawer a[aria-current] { background: var(--bg-panel-2); color: var(--accent-dark); }
.drawer-languages { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.menu-veil { position: fixed; inset: var(--nav-h) 0 0; background: var(--veil); color: var(--text); z-index: 2; border: 0; cursor: default; }
.skip-link { position: absolute; top: 8px; left: var(--gutter); width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; background: var(--bg); color: var(--accent-dark); border: 0; border-radius: var(--radius-btn); z-index: 50; }
.skip-link:focus { width: auto; height: auto; padding: 10px 16px; overflow: visible; clip-path: none; border: 1px solid var(--accent); }

.hero { position: relative; overflow: hidden; height: calc(100vh - var(--nav-h)); min-height: 700px; max-height: 900px; background: var(--bg); color: var(--text); }
.hero-arc { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.arc-stop-a { stop-color: var(--bg-panel-2); }
.arc-stop-b { stop-color: var(--arc-deep); }
.arc-face { fill: url(#arcFill); }
.arc-edge { fill: none; stroke: var(--accent-a30); stroke-width: 1.25; stroke-dasharray: 2 7; stroke-linecap: round; }
.hero-grid { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; align-items: center; }
.hero-copy { max-width: 520px; }
.hero-title { margin: 28px 0 0; font-size: clamp(30px, 2.4vw + 14px, 48px); line-height: 1.16; letter-spacing: -.02em; }
.hero-title > span { display: block; }
.hero-title .title-key { color: var(--accent); white-space: nowrap; }
.hero-lede { margin: 22px 0 0; font-size: 17px; line-height: 1.75; color: var(--text-muted); }
.hero-lede strong { color: var(--text); }
.devices { margin-top: 46px; }
.device-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.device-list li, .device-list a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: var(--weight-semibold); line-height: 1; color: var(--text); }
.device-list a { min-height: 28px; }
.device-ico { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.device-list .store-pill { margin-left: 4px; padding: 7px 12px 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--text-muted); font-size: 13px; }
.stage { position: relative; margin-right: -40px; min-width: 0; }
.conf-window { margin: 0; background: var(--bg); color: var(--text); border: 1px solid var(--accent-a10); border-radius: var(--radius-window); box-shadow: var(--shadow-float); overflow: hidden; }
.conf-titlebar { position: relative; height: 44px; display: flex; align-items: center; padding-inline: 18px; background: var(--bg-panel-2); color: var(--text-muted); border-bottom: 1px solid var(--accent-a10); }
.conf-dots { display: inline-flex; gap: 8px; }
.conf-dots span { width: 11px; height: 11px; border-radius: var(--radius-dot); background: var(--dot); }
.conf-title { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 13px; font-weight: var(--weight-medium); letter-spacing: .01em; }
.conf-body { position: relative; padding: var(--conf-pad) 32px calc(var(--conf-pad) + 8px) 0; overflow-x: auto; }
.hit-bar { position: absolute; left: 0; right: 0; top: calc(var(--conf-pad) + var(--conf-line) * 6); height: var(--conf-line); background: var(--accent-a10); }
.hit-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); }
.conf-lines { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; counter-reset: conf; font-family: var(--font-mono); font-size: 14px; line-height: var(--conf-line); color: var(--text); }
.conf-lines li { counter-increment: conf; display: flex; height: var(--conf-line); width: max-content; min-width: 100%; }
.conf-lines li::before { content: counter(conf); flex: 0 0 56px; padding-right: 22px; text-align: right; color: var(--text-muted); font-size: 12.5px; user-select: none; }
.conf-lines code { font: inherit; white-space: pre; overflow-wrap: normal; }
.t-sec { color: var(--accent); font-weight: var(--weight-semibold); }
.t-key, .t-kw { color: var(--text); }
.t-op, .t-val { color: var(--text-muted); }
.t-pol { font-weight: var(--weight-semibold); color: var(--text); }
.t-proxy { color: var(--accent-dark); }
.caret { display: inline-block; width: 2px; height: 17px; margin-left: 3px; vertical-align: -3px; border-radius: var(--radius-tiny); background: var(--accent); }
.match-card { position: absolute; left: -48px; bottom: -40px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: calc(100% + 32px); padding: 16px 22px 16px 18px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); font-family: var(--font-mono); font-size: 14px; line-height: 1.3; }
.match-host { color: var(--text); font-weight: var(--weight-medium); }
.match-arrow, .match-rule { color: var(--text-muted); }
.match-policy { color: var(--accent-dark); font-weight: var(--weight-bold); }

.site-footer { padding-top: 80px; padding-bottom: 32px; background: var(--bg); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 48px; }
.footer-brand p { margin-top: 24px; max-width: 340px; font-size: var(--text-small); color: var(--text-muted); }
.footer-heading { margin: 0 0 20px; font-size: 15px; font-weight: var(--weight-bold); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list a { display: inline-block; padding-block: 5px; font-size: var(--text-small); color: var(--text-muted); }
.footer-list a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { color: var(--text-muted); }
.reveal { opacity: 1; transform: none; }
.reveal.is-observed { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.shown { opacity: 1; transform: none; }
.decorated, .feature-art { position: relative; overflow-x: clip; }

@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .lang-switch { border-left: 0; padding-left: 0; }
}
@media (min-width: 1181px) {
  .menu-drawer, .menu-veil { display: none !important; }
}
@media (max-width: 1180px) {
  :root { --gutter: 48px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  .hero { height: auto; max-height: none; min-height: 0; padding-top: 64px; padding-bottom: 120px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .stage { margin-right: 0; }
  .match-card { left: 16px; bottom: -32px; max-width: calc(100% - 32px); }
}
@media (max-width: 768px) {
  h1 { font-size: clamp(24px, 4vw, 30px); }
  .hero-title { font-size: clamp(24px, 4vw, 30px); }
  .grid-two, .card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --text-size: 16px; --conf-line: 26px; --section-space: 96px; }
  .brand-name { font-size: 15px; }
  .brand { gap: 8px; }
  .header-tools { margin-left: auto; gap: 4px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .hero { padding-top: 44px; padding-bottom: 96px; }
  .hero-title { font-size: clamp(24px, 6.4vw, 30px); }
  .hero-lede { font-size: 16px; }
  .btn { min-height: 48px; padding: 12px 20px; font-size: 15px; }
  .conf-lines { font-size: 12px; }
  .conf-lines li::before { flex-basis: 40px; padding-right: 14px; }
  .conf-body { padding-right: 16px; }
  .match-card { font-size: 12px; gap: 8px; padding: 12px 14px; }
  .card, .panel { padding: 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-bottom { margin-top: 40px; }
  .tilt, [data-tilt] { transform: none !important; }
}
@media (max-width: 400px) {
  .brand-full { display: none; }
  .brand-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.is-observed { opacity: 1; transform: none; }
}