:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-panel: #f7f7f9;
  --bg-panel-2: #eef0f4;
  --border: #e4e5ec;
  --accent: #7a5af8;
  --accent-dark: #5236d6;
  --accent-sky: #4d9bf0;
  --accent-soft: #f1edff;
  --text: #1b1d2a;
  --text-muted: #636779;
  --success: #1f9e6a;
  --warn: #c98a12;
  --error: #d6453d;
  --on-accent: #ffffff;
  --knob: #ffffff;
  --switch-on-top: #343748;
  --transparent: transparent;
  --ink-a04: rgba(27, 29, 42, 0.04);
  --ink-a06: rgba(27, 29, 42, 0.06);
  --ink-a18: rgba(27, 29, 42, 0.18);
  --ink-a30: rgba(27, 29, 42, 0.30);
  --violet-a05: rgba(82, 54, 214, 0.05);
  --violet-a07: rgba(82, 54, 214, 0.07);
  --violet-a10: rgba(82, 54, 214, 0.10);
  --violet-a20: rgba(82, 54, 214, 0.20);
  --accent-a14: rgba(122, 90, 248, 0.14);
  --accent-a30: rgba(122, 90, 248, 0.30);
  --white-a28: rgba(255, 255, 255, 0.28);
  --white-a90: rgba(255, 255, 255, 0.9);

  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, 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;
  --size-xs: 12px;
  --size-sm: 14px;
  --size-nav: 15px;
  --size-body: 16px;
  --size-lead: 17px;
  --size-subtitle: 20px;
  --size-h3: 22px;
  --size-h2: 32px;
  --size-h1: clamp(34px, 3.4vw, 48px);
  --tracking-display: -0.035em;
  --tracking-heading: -0.02em;
  --line-body: 1.6;
  --line-reading: 1.85;

  --r-card: 20px;
  --r-tile: 18px;
  --r-logo: 9px;
  --r-small: 6px;
  --r-shot: 10px;
  --r-pill: 999px;
  --r-round: 50%;
  --shadow-soft: 0 1px 2px var(--ink-a04), 0 10px 26px var(--violet-a05);
  --shadow-tile: 0 1px 2px var(--ink-a04), 0 12px 28px var(--violet-a07), inset 0 1px 0 var(--white-a90);
  --shadow-lift: 0 2px 6px var(--ink-a06), 0 24px 48px var(--violet-a10), inset 0 1px 0 var(--white-a90);
  --shadow-btn: inset 0 1px 0 var(--white-a28), 0 2px 4px var(--violet-a20), 0 12px 28px var(--accent-a30);
  --shadow-knob: 0 1px 3px var(--ink-a18), 0 0 0 0.5px var(--ink-a06);
  --shadow-track-on: inset 0 1px 2px var(--ink-a30);
  --grad-accent: linear-gradient(92deg, var(--accent) 0%, var(--accent-sky) 100%);
  --grad-field: linear-gradient(165deg, var(--accent) 0%, var(--accent-sky) 100%);
  --field-mask: radial-gradient(ellipse 50% 50% at 50% 50%, var(--knob) 0%, var(--white-a90) 30%, var(--white-a28) 70%, var(--transparent) 100%);
  --wrap: 1200px;
  --header-wrap: 1280px;
  --reading-wrap: 780px;
  --gutter: 40px;
  --header-h: 76px;
  --section-space: 128px;
  --card-pad: 28px;
  --motion-fast: 180ms;
  --motion-reveal: 600ms;
}

*,
*::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-size: var(--size-body);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
svg { flex-shrink: 0; }
button, a { -webkit-tap-highlight-color: var(--accent-a14); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-small);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 { font-size: var(--size-h1); line-height: 1.16; letter-spacing: var(--tracking-heading); }
h2 { font-size: var(--size-h2); line-height: 1.25; letter-spacing: var(--tracking-heading); }
h3 { font-size: var(--size-h3); line-height: 1.4; letter-spacing: var(--tracking-heading); }
p, li, dd { overflow-wrap: break-word; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: 0.9em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
  background: var(--bg-panel);
  color: var(--text);
  line-height: 1.8;
  overscroll-behavior-x: contain;
}
pre code { overflow-wrap: normal; white-space: pre; }
strong { font-weight: var(--weight-semibold); }
.no-break { white-space: nowrap; }
.muted { color: var(--text-muted); }
.small { font-size: var(--size-sm); }
.mono { font-family: var(--font-mono); }
.accent-text { color: var(--accent-dark); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.reading {
  width: 100%;
  max-width: calc(var(--reading-wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section, .band {
  padding-top: var(--section-space);
  padding-bottom: 140px;
}

.section { background: var(--bg); color: var(--text); }
.band { background: var(--bg-panel); color: var(--text); }
.section--decorated, .hero, .feature-stage { overflow-x: clip; }
.grid { display: grid; gap: 24px; }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .hero__grid > *, .footer-grid > *, .feature-layout > * { min-width: 0; }

.section-heading { margin-bottom: 48px; }
.band__eyebrow {
  margin: 0;
  font-size: var(--size-nav);
  font-weight: var(--weight-semibold);
  color: var(--accent-dark);
}
.band__title { margin: 12px 0 0; font-size: var(--size-h2); line-height: 1.25; letter-spacing: -0.03em; }
.band__text { margin: 16px 0 0; max-width: 600px; font-size: var(--size-lead); line-height: 1.8; color: var(--text-muted); }

.button, .btn-store, .btn-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid var(--transparent);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  text-align: center;
  transition: background var(--motion-fast), transform var(--motion-fast), border-color var(--motion-fast);
}

.button { padding: 11px 24px; background: var(--accent); color: var(--on-accent); }
.button:hover, .button.is-hover { background: var(--accent-dark); color: var(--on-accent); }
.button:active, .button.is-pressed { transform: translateY(1px); background: var(--accent-dark); color: var(--on-accent); }
.button--secondary { border-color: var(--border); background: var(--bg); color: var(--text); }
.button--secondary:hover { border-color: var(--accent-a30); background: var(--accent-soft); color: var(--accent-dark); }
.button:disabled, .button[aria-disabled="true"] { background: var(--bg-panel-2); color: var(--text-muted); box-shadow: none; cursor: not-allowed; }
.button.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.button svg, .btn-store svg { width: 19px; height: 19px; flex-shrink: 0; }

.btn-store {
  gap: 10px;
  height: 54px;
  padding: 0 28px 0 24px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--size-lead);
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-btn);
}
.btn-store:hover { background: var(--accent-dark); color: var(--on-accent); transform: translateY(-1px); }
.btn-guide {
  gap: 6px;
  padding: 0;
  background: var(--transparent);
  color: var(--text);
  font-size: var(--size-lead);
  font-weight: var(--weight-medium);
}
.btn-guide svg { width: 16px; height: 16px; color: var(--text-muted); transition: transform var(--motion-fast); }
.btn-guide:hover svg { transform: translateX(3px); }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 34px; }

.card, .panel {
  padding: var(--card-pad);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.card--lift { box-shadow: var(--shadow-lift); }

.prose { min-width: 0; line-height: var(--line-reading); }
.prose h2 { margin-top: 64px; margin-bottom: 24px; }
.prose h3 { margin-top: 36px; margin-bottom: 16px; }
.prose p { margin-top: 0; margin-bottom: 22px; }
.prose a:not(.button):not(.btn-store):not(.dl-fab) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.prose li + li { margin-top: 10px; }
.prose :not(pre) > code { background: var(--bg-panel); color: var(--text); border-radius: var(--r-small); padding: 2px 5px; }
.prose ul, .prose ol { padding-inline-start: 24px; }

.masthead { position: relative; z-index: 50; background: var(--bg); color: var(--text); }
.masthead__container {
  width: 100%;
  max-width: min(100%, calc(var(--header-wrap) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.masthead__row {
  position: relative;
  z-index: 3;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg);
  color: var(--text);
}
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--size-lead);
  letter-spacing: var(--tracking-heading);
  color: var(--text);
  white-space: nowrap;
}
.brandmark__slot {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: var(--r-logo);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.brandmark__short { display: none; }
.routes { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.routes__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.route {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: var(--size-nav);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  white-space: nowrap;
}
.route:hover { color: var(--text); background: var(--bg-panel); }
.route[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); font-weight: var(--weight-semibold); }
.header-tools { position: relative; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-switch {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--accent-dark);
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--accent-a30); }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 210px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-lift);
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-small); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-dark); }
.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);
  color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer {
  position: fixed;
  z-index: 3;
  inset: var(--header-h) 0 auto;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 28px;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-lift);
}
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-small); }
.mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--accent-soft); color: var(--accent-dark); }
.mobile-drawer__label { margin: 20px 16px 8px; color: var(--text-muted); font-size: var(--size-sm); }
.menu-veil { position: fixed; z-index: 1; inset: var(--header-h) 0 0; border: 0; background: var(--ink-a30); color: var(--text); }

.hero { position: relative; padding-top: 44px; padding-bottom: 116px; background: var(--bg); color: var(--text); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 560px; align-items: center; gap: 40px; }
.hero__copy { max-width: 580px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill);
  font-size: var(--size-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-soft);
}
.kicker:hover { color: var(--text); }
.kicker__dot { width: 8px; height: 8px; border-radius: var(--r-round); background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 4px var(--accent-a14); flex-shrink: 0; }
.kicker__chev { width: 14px; height: 14px; color: var(--text-muted); }
.headline { margin: 30px 0 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.16; letter-spacing: var(--tracking-display); }
.headline__line { display: block; }
.headline__accent { display: inline-block; padding-bottom: 0.06em; background: var(--grad-accent); color: var(--transparent); -webkit-background-clip: text; background-clip: text; }
.summary { margin: 28px 0 0; max-width: 540px; font-size: var(--size-lead); line-height: 1.8; color: var(--text-muted); }
.summary strong { color: var(--text); font-weight: var(--weight-semibold); }

.site-footer { padding-top: 88px; padding-bottom: 36px; background: var(--bg-panel); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 0.8fr; gap: 48px; }
.footer-brand p { max-width: 340px; font-size: var(--size-sm); color: var(--text-muted); line-height: 1.9; }
.footer-heading { margin: 0 0 16px; font-size: var(--size-sm); font-weight: var(--weight-semibold); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list a { display: inline-block; padding-top: 6px; padding-bottom: 6px; color: var(--text-muted); font-size: var(--size-sm); }
.footer-list a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; color: var(--text-muted); font-size: var(--size-xs); }
.footer-bottom p { margin: 0; }

.reveal { opacity: 1; transform: none; }
.reveal.reveal--waiting { opacity: 0; transform: translateY(16px); transition: opacity var(--motion-reveal) ease, transform var(--motion-reveal) ease; }
.reveal.shown { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .masthead .routes { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 480px; }
}
@media (max-width: 960px) {
  :root { --gutter: 22px; }
  .hero { padding-top: 28px; padding-bottom: 96px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__copy { max-width: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --size-h1: clamp(24px, 5vw, 30px); }
  .headline { font-size: clamp(25px, 5vw, 30px); letter-spacing: var(--tracking-heading); }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; --card-pad: 22px; --size-h2: 24px; --size-h3: 20px; }
  .masthead__row { gap: 8px; }
  .brandmark { gap: 8px; font-size: var(--size-sm); }
  .brandmark__slot { width: 28px; height: 28px; }
  .brandmark__full { display: none; }
  .brandmark__short { display: inline; }
  .header-tools { margin-left: auto; gap: 6px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang-switch { min-height: 44px; padding-inline: 12px; }
  .language-menu { right: 0; }
  .headline { font-size: clamp(25px, 7.2vw, 30px); }
  .summary { font-size: var(--size-body); }
  .cta-row { gap: 20px; }
  .btn-store { height: 50px; font-size: var(--size-body); }
  .grid--two, .grid--three { grid-template-columns: minmax(0, 1fr); }
  .tilt, .decorative-tilt, [data-tilt] { transform: none !important; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-bottom { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal.reveal--waiting { opacity: 1; transform: none; }
}