:root {
  --bg: #fafbfd;
  --bg-panel: #ffffff;
  --bg-panel2: #2e2c86;
  --border: #d9dce5;
  --accent: #3b3fd8;
  --accent-dark: #2a2c9e;
  --text: #1d1f2b;
  --text-muted: #5a5f73;
  --text-faint: #9aa0b2;
  --success: #2fb67a;
  --warn: #f2a516;
  --error: #e0475b;
  --ink: #1d1f2b;
  --canvas: #eef0f4;
  --c-cyan: #63e2cb;
  --c-yellow: #fcc72c;
  --c-orange: #ff9e45;
  --c-pink: #f7a8da;
  --c-mint: #b9efc6;
  --c-blue: #c6ddfb;
  --wave-1: #3a38a0;
  --wave-2: #34329a;
  --on-dark: #ffffff;
  --on-dark-muted: #c6c5ee;
  --transparent: transparent;
  --radius: 0;
  --radius-icon: 8px;
  --radius-shot: 10px;
  --line: 2px;
  --line-thin: 1.5px;
  --line-selected: 3px;
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --reading: 800px;
  --header-wrap: 1280px;
  --gutter: 24px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --header-height: 72px;
  --duration: .18s;
  --reveal-duration: .5s;
  --ease: ease;
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 900;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.nav-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--transparent); }
button { border-radius: var(--radius); }
img { max-width: 100%; }
svg { max-width: 100%; }
svg, .icon, .dev-ico, .tag::before { flex-shrink: 0; }
:focus-visible { outline: var(--line) solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 3.35vw, 48px); font-weight: var(--weight-heavy); }
h2 { font-size: clamp(24px, 2.4vw, 34px); font-weight: var(--weight-heavy); }
h3 { font-size: 22px; font-weight: var(--weight-bold); }
p { margin-top: 0; margin-bottom: 1.25em; }
small, .small { font-size: 13px; }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
code, pre, kbd, samp { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .9em; }
pre {
  max-width: 100%;
  overflow-x: auto;
  padding: var(--space-3);
  background: var(--canvas);
  color: var(--text);
  border: var(--line-thin) solid var(--border);
  border-radius: var(--radius);
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; font-size: 13px; }
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.section { padding-top: var(--space-7); padding-bottom: var(--space-7); }
.section--white { background: var(--bg-panel); color: var(--text); }
.grid { display: grid; gap: var(--space-3); }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .hero__in > *, .top__in > *, .footer__grid > *, .prose, .prose div { min-width: 0; }
.stack > * + * { margin-top: var(--space-3); }
.prose { overflow-wrap: break-word; }
.prose h2 { margin-top: 2.25em; }
.prose h3 { margin-top: 1.75em; }
.prose li + li { margin-top: .6em; }
.prose a:not(.btn):not(.appstore-button) { color: var(--accent-dark); }
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-dark);
  text-decoration: none;
}
.skip:focus { top: 12px; }
.top {
  position: relative;
  z-index: 30;
  background: var(--bg);
  color: var(--text);
  border-bottom: var(--line-thin) solid var(--border);
}
.top__in {
  position: relative;
  width: 100%;
  max-width: min(100%, calc(var(--header-wrap) + var(--gutter) * 2));
  padding-inline: var(--gutter);
  margin-inline: auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand__mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-icon);
  background: var(--bg-panel);
  color: var(--text);
  border: var(--line-thin) solid var(--border);
  flex-shrink: 0;
}
.brand__name { font-family: var(--font-display); font-size: 17px; font-weight: var(--weight-bold); letter-spacing: -.01em; }
.brand__name span { font-weight: var(--weight-normal); color: var(--text-muted); }
.nav { min-width: 0; margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  white-space: nowrap;
}
.nav__list li { display: flex; align-items: center; }
.nav__list li + li::before { content: "·"; color: var(--text-faint); margin-inline: 14px; font-weight: var(--weight-bold); flex-shrink: 0; }
.nav__list a { color: var(--text-muted); text-decoration: none; padding-block: 6px; }
.nav__list a:hover { color: var(--text); }
.nav__list a[aria-current="page"] {
  color: var(--text);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-decoration-thickness: var(--line);
  text-underline-offset: 9px;
}
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.language { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 14px;
  font-size: 14px;
  background: var(--bg-panel);
  color: var(--text);
  border: var(--line-thin) solid var(--ink);
}
.lang:hover { background: var(--canvas); color: var(--text); }
.lang__short { display: none; }
.language__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border: var(--line) solid var(--ink);
  background: var(--bg-panel);
  color: var(--text);
  z-index: 4;
}
.language__menu a { display: block; min-height: 44px; padding: 10px 12px; text-decoration: none; }
.language__menu a:hover, .language__menu a[aria-current] { background: var(--canvas); color: var(--text); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: var(--line-thin) solid var(--ink);
  background: var(--bg-panel);
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.mobile-menu, .menu-veil { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 26px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: var(--weight-semibold);
  font-family: var(--font-body);
  text-decoration: none;
  letter-spacing: .01em;
  border: var(--line) solid var(--ink);
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
  text-align: center;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--ink); color: var(--on-dark); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--accent-dark); color: var(--on-dark); border-color: var(--accent-dark); }
.btn--ghost { background: var(--transparent); color: var(--text); }
.btn--ghost:hover, .btn--ghost.is-hover { background: var(--canvas); color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--canvas); color: var(--text-muted); border-color: var(--border); cursor: not-allowed; }
.btn.is-focus { outline: var(--line) solid var(--accent); outline-offset: 3px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.card, .panel {
  background: var(--bg-panel);
  color: var(--text);
  padding: var(--space-4);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  min-width: 0;
}
.card h3, .panel h3 { margin-top: 0; }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--canvas);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  letter-spacing: .04em;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.tag::before { content: ""; width: 8px; height: 8px; background: var(--accent); display: block; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 10px;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  background: var(--bg-panel);
  color: var(--text);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.hero { position: relative; z-index: 2; background: var(--bg-panel); color: var(--text); }
.hero__in {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: 64px;
  display: grid;
  grid-template-columns: 640px minmax(0, 1fr);
  column-gap: 64px;
  align-items: start;
}
.stage { position: relative; z-index: 3; margin-bottom: -72px; }
.stage__frame { position: absolute; top: -16px; left: -16px; right: 16px; bottom: 16px; border: var(--line) solid var(--accent); border-radius: var(--radius); }
.canvas { position: relative; background: var(--canvas); color: var(--text); padding: 40px; border-radius: var(--radius); margin: 1em 40px; }
.board { background: var(--bg-panel); color: var(--text); border: var(--line) solid var(--ink); border-radius: var(--radius); }
.flow { display: block; width: 100%; height: auto; }
.flow--narrow { display: none; }
.board__bar {
  background: var(--ink);
  color: var(--on-dark);
  min-height: 56px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: var(--weight-medium);
  letter-spacing: .01em;
}
.board__bar svg { width: 46px; height: 14px; }
.bar-arrow { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }
.fc-grid { fill: url(#fc-dots); }
.fcm-grid { fill: url(#fcm-dots); }
.fc-dot { fill: var(--border); }
.fc-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.fc-dash { stroke-dasharray: 6 5; }
.fc-head { fill: var(--ink); }
.fc-box { fill: var(--bg-panel); stroke: var(--ink); stroke-width: 2; }
.fc-dia { fill: var(--c-cyan); stroke: var(--ink); stroke-width: 2; }
.fc-act { stroke: var(--ink); stroke-width: 2; }
.fc-act--reject { fill: var(--c-pink); }
.fc-act--direct { fill: var(--c-mint); }
.fc-act--proxy { fill: var(--c-yellow); }
.fc-t { font-family: var(--font-mono); font-size: 13.5px; font-weight: var(--weight-medium); fill: var(--ink); text-anchor: middle; }
.fc-t--act { font-size: 14px; font-weight: var(--weight-bold); letter-spacing: .06em; }
.fc-zh { font-family: var(--font-body); font-weight: var(--weight-semibold); }
.fc-note { font-family: var(--font-body); font-size: 11.5px; font-weight: var(--weight-medium); fill: var(--text-muted); }
.fc-note--mid { text-anchor: middle; }
.fc-sec { font-family: var(--font-mono); font-size: 12px; fill: var(--text-muted); }
.fc-ring { fill: none; stroke: var(--accent); stroke-width: 3; opacity: 0; }
.flow--narrow .fc-t { font-size: 11px; }
.flow--narrow .fc-t--act { font-size: 11px; letter-spacing: .03em; }
.flow--narrow .fc-sec { font-size: 11px; }
.fc-ring--scan { animation: fc-scan 7s ease-in-out infinite; }
.fc-ring--hit { animation: fc-hit 7s ease-in-out infinite; }
.fc-ring--s1 { animation-delay: 0s; }
.fc-ring--s2 { animation-delay: .9s; }
.fc-ring--s3 { animation-delay: 1.8s; }
.fc-ring--s4 { animation-delay: 2.7s; }
.fc-ring--s5 { animation-delay: 3.6s; }
@keyframes fc-scan { 0%, 17%, 100% { opacity: 0; } 3%, 13% { opacity: 1; } }
@keyframes fc-hit { 0%, 44%, 100% { opacity: 0; } 3%, 38% { opacity: 1; } }
.copy { align-self: center; padding-bottom: 8px; }
.h1 { margin: 24px 0 0; font-size: clamp(30px, 3.35vw, 48px); line-height: 1.18; letter-spacing: -.015em; color: var(--text); }
.h1__a { display: block; font-weight: var(--weight-light); white-space: nowrap; }
.h1__b { display: block; font-weight: var(--weight-heavy); color: var(--accent); letter-spacing: .01em; }
.lede { margin: 24px 0 0; font-size: 16.5px; line-height: 1.78; color: var(--text-muted); max-width: 34em; }
.lede strong { color: var(--text); font-weight: var(--weight-semibold); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: var(--line); text-underline-offset: 5px; }
.devrow {
  margin: 36px 0 0;
  padding: 18px 0 0;
  border-top: var(--line-thin) solid var(--border);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--text);
}
.devrow li, .devrow a { display: inline-flex; align-items: center; gap: 7px; }
.devrow a { text-decoration: none; }
.devrow a:hover { text-decoration: underline; }
.dev-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.facts { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--text-muted); }
.band { position: relative; z-index: 1; background: var(--bg-panel2); color: var(--on-dark); padding-top: 176px; padding-bottom: 104px; overflow-x: clip; }
.band__waves { position: absolute; top: 0; left: 0; width: 100%; height: 150px; display: block; }
.wave-low { fill: var(--wave-2); }
.wave-high { fill: var(--wave-1); }
.band__in { position: relative; text-align: center; }
.band__kicker { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--on-dark-muted); letter-spacing: .02em; }
.band__title { margin: 16px 0 0; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; }
.t-a { font-weight: var(--weight-light); }
.t-b { font-weight: var(--weight-heavy); }
.band__text { margin: 16px auto 0; max-width: 36em; font-size: 16px; color: var(--on-dark-muted); }
.decorated { position: relative; overflow-x: clip; }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
.reveal-ready .reveal { transition: opacity var(--reveal-duration) var(--ease), transform var(--reveal-duration) var(--ease); }
.footer { background: var(--bg); color: var(--text); border-top: var(--line-thin) solid var(--border); padding-top: 64px; padding-bottom: 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr .7fr; gap: 40px; }
.footer__intro { margin-top: 20px; font-size: 14px; color: var(--text-muted); max-width: 28em; }
.footer h2 { font-size: 15px; margin: 0 0 16px; font-weight: var(--weight-bold); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 10px; }
.footer li a { font-size: 14px; color: var(--text-muted); text-decoration: none; overflow-wrap: anywhere; }
.footer li a:hover { color: var(--accent-dark); text-decoration: underline; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: var(--line-thin) solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--text-muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 1279px) {
  .top__in { gap: 20px; }
  .nav__list li + li::before { margin-inline: 10px; }
  .nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu:not([hidden]) {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px var(--gutter);
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg-panel);
    color: var(--text);
    border-bottom: var(--line) solid var(--ink);
    z-index: 3;
  }
  .mobile-menu ul { margin: 0; padding: 0; list-style: none; }
  .mobile-menu a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; text-decoration: none; border-bottom: var(--line-thin) solid var(--border); }
  .mobile-menu a:hover, .mobile-menu a[aria-current] { background: var(--canvas); color: var(--text); }
  .mobile-menu__languages { margin-top: 24px !important; }
  .menu-veil:not([hidden]) { display: block; position: fixed; inset: var(--header-height) 0 0; z-index: 20; background: var(--canvas); color: var(--text); border: 0; opacity: .85; }
}
@media (max-width: 1180px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); padding-top: 56px; }
  .copy { order: -1; max-width: 640px; }
  .stage { margin-top: 56px; max-width: 640px; width: calc(100% - 16px); margin-left: 16px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: clamp(24px, 4.6vw, 30px); }
  .grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --space-7: 64px; }
  .top__in { gap: 10px; }
  .brand { gap: 8px; }
  .brand__name { font-size: 14px; }
  .brand__mark { width: 30px; height: 30px; }
  .header-tools { gap: 8px; margin-left: auto; }
  .lang { padding-inline: 10px; min-height: 44px; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .h1 { font-size: clamp(24px, 7.4vw, 30px); }
  .h1__a { white-space: normal; }
  .lede { font-size: 15.5px; }
  .btn { min-height: 48px; padding: 10px 20px; font-size: 15px; }
  .stage { margin-left: 10px; margin-top: 44px; margin-bottom: -56px; width: calc(100% - 10px); }
  .stage__frame { top: -10px; left: -10px; right: 10px; bottom: 10px; }
  .canvas { padding: 14px; margin: 16px 0; }
  .flow--wide { display: none; }
  .flow--narrow { display: block; }
  .board__bar { font-size: 13px; padding: 12px 14px; min-height: 48px; }
  .board__bar svg { width: 30px; }
  .band { padding-top: 140px; }
  .grid--two, .grid--three, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .card, .panel { padding: 24px; }
  .tilt, [class*="tilt-"] { transform: none; }
  .devrow { gap: 10px 16px; }
}
@media (max-width: 360px) {
  .brand__name { font-size: 12px; }
  .brand__name span { display: block; line-height: 1.2; }
  .header-tools { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fc-ring--scan, .fc-ring--hit { animation: none; opacity: 0; }
  .fc-ring--final { opacity: 1; }
  .btn, .reveal-ready .reveal { transition: none; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}