:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070708;
  --elevated: #141416;
  --card: #121214;
  --pill: #1a1a1d;
  --icon: #1c1c20;
  --glass: rgba(18, 18, 20, 0.78);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.38);
  --cta: #f3f3f4;
  --cta-ink: #111114;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px rgba(0, 0, 0, 0.28);
  --glow: radial-gradient(ellipse 70% 50% at 50% 18%, rgba(255, 255, 255, 0.045), transparent 62%);
  --window-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 30px 80px rgba(0, 0, 0, 0.35);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f4;
  --elevated: #ffffff;
  --card: #ffffff;
  --pill: #ececec;
  --icon: #f0f0ee;
  --glass: rgba(255, 255, 255, 0.86);
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --ink: rgba(20, 20, 20, 0.92);
  --muted: rgba(20, 20, 20, 0.55);
  --faint: rgba(20, 20, 20, 0.38);
  --cta: #141416;
  --cta-ink: #f7f7f6;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 16px 36px rgba(20, 20, 20, 0.06);
  --glow: radial-gradient(ellipse 70% 50% at 50% 18%, rgba(0, 0, 0, 0.035), transparent 62%);
  --window-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 30px 80px rgba(20, 20, 20, 0.12);
}
:root {
  --radius: 24px;
  --radius-win: 18px;
  --max: 1120px;
  --header: 72px;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ease: 0.18s ease;
}

*,
*::before,
*::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--glow), var(--bg);
  color: var(--ink);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--cta);
  color: var(--cta-ink);
}
.skip:focus { top: 12px; }

.wrap,
.section,
.hero,
.site-footer,
.page {
  width: min(var(--max), calc(100% - 80px));
  margin-inline: auto;
}
.section { padding: 72px 0 8px; }
.section + .section,
.download,
.shot-grid {
  content-visibility: auto;
  contain-intrinsic-size: 1px 640px;
}
.page { padding: 56px 0 48px; }

.kicker {
  width: fit-content;
  margin: 0 auto 28px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--pill);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.kicker-left { margin-left: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: 0.01em;
  transition: transform var(--ease), background-color var(--ease), border-color var(--ease);
}
.btn-solid { background: var(--cta); color: var(--cta-ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn:hover { transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-inner {
  width: min(var(--max), calc(100% - 80px));
  height: var(--header);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.header-start {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.header-download { white-space: nowrap; }
.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.locale-switcher button {
  min-height: 44px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: 0;
  border-radius: 0;
}
.locale-switcher button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 620;
}
.locale-switcher button:hover { color: var(--ink); }
.locale-sep { color: var(--faint); pointer-events: none; }
html[data-locale="en"] .hero-sub {
  white-space: normal;
  max-width: 40em;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.brand-name {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.02em;
}
.nav-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}
.pill-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--pill);
}
.pill-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.pill-nav a[aria-current="page"],
.pill-nav a:hover,
.pill-nav a:focus-visible {
  background: color-mix(in srgb, var(--elevated) 80%, var(--ink) 6%);
  color: var(--ink);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
}
.theme-toggle { display: inline-flex; align-items: center; gap: 2px; }
.theme-toggle button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--muted);
}
.theme-toggle button[aria-pressed="true"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--elevated) 80%, var(--ink) 6%);
}
.theme-toggle button:hover { color: var(--ink); }

.hero {
  padding: 56px 0 24px;
  text-align: center;
}
.hero-title {
  margin: 0 auto;
  max-width: 18em;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.18;
}
.hero-title em {
  font-style: normal;
  font-weight: 650;
}
.hero-sub {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
  white-space: nowrap;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.hero-stage {
  position: relative;
  margin: 64px auto 0;
  max-width: 940px;
}
.hero-window,
.shot-window {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-win);
  background: var(--elevated);
  box-shadow: var(--window-shadow);
}
.hero-window img {
  width: 100%;
  aspect-ratio: 1440 / 1000;
  object-fit: contain;
}
.shot-window img {
  width: 100%;
  height: auto;
}
.hero-window .shot-light,
.shot-window .shot-light,
.shot-card .shot-light {
  display: none;
}
html[data-theme="light"] .hero-window .shot-dark,
html[data-theme="light"] .shot-window .shot-dark,
html[data-theme="light"] .shot-card .shot-dark {
  display: none;
}
html[data-theme="light"] .hero-window .shot-light,
html[data-theme="light"] .shot-window .shot-light,
html[data-theme="light"] .shot-card .shot-light {
  display: block;
}
.caption {
  margin-top: 12px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

.float-pill {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  text-align: left;
}
.float-pill strong,
.float-pill small { display: block; }
.float-pill strong { font-size: 13px; font-weight: 620; }
.float-pill small { color: var(--muted); font-size: 12px; }
.float-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--icon);
  color: var(--ink);
  flex: none;
}
.float-pill--a { top: -18px; left: -118px; }
.float-pill--b { top: 18px; right: -108px; }
.float-pill--c { bottom: 36px; left: -96px; }

.card-grid { display: grid; gap: 16px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: 1fr 1fr; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card-value {
  padding: 36px 28px 32px;
  text-align: center;
}
.card-value h2 {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.02em;
}
.card-value p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 16px;
  background: var(--icon);
  color: var(--ink);
}
.card-cap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
}
.card-cap .card-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 13px;
  flex: none;
}
.card-cap h2 { font-size: 16px; font-weight: 620; }
.card-cap p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.shot-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--elevated);
}
.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left center;
}
.shot-card figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 13px;
  font-weight: 560;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
  color: #fff;
}
html[data-theme="light"] .shot-card figcaption {
  color: #161616;
  text-shadow: 0 8px 18px rgba(255, 255, 255, 0.85);
}

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
}
.banner-copy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
.banner h2 { font-size: 20px; font-weight: 620; }
.banner p {
  margin-top: 6px;
  max-width: 46em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.banner .btn { flex: none; }

.download { padding-top: 88px; padding-bottom: 48px; text-align: center; }
.dl-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 640;
  letter-spacing: -0.03em;
}
.dl-sub { margin-top: 12px; color: var(--muted); font-size: 15px; }
.dl-ver { margin-top: 8px; color: var(--faint); font-size: 13px; }
.dl-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  text-align: left;
}
.dl-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}
.dl-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 18px 20px;
}
.dl-os {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--ink);
}
.dl-card strong { display: block; font-size: 16px; font-weight: 620; }
.dl-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.dl-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 18px;
  margin: 0 20px 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.dl-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--faint);
  font-size: 13px;
}
.dl-menu a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.dl-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 22px;
}
.dl-more a { color: var(--faint); font-size: 13px; }
.dl-more a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.missing { color: #c4a056 !important; }

.site-footer {
  padding: 28px 0 calc(40px + env(safe-area-inset-bottom));
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}
.site-footer p + p { margin-top: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-sep { margin: 0 8px; color: var(--faint); }

.page h1 {
  max-width: 16em;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.18;
}
.lead {
  max-width: 42em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--pill);
  font-size: 12px;
  color: var(--muted);
}

.faq-list { display: grid; gap: 14px; margin-top: 36px; }
.faq-item {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.faq-item h2,
.faq-item summary {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p,
.faq-item dd {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: center;
  margin: 48px 0;
}
.split.flip { grid-template-columns: 1.08fr 0.92fr; }
.split.flip .copy { order: 2; }
.split h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 620;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.split p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.split ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.split li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.step { padding: 24px 20px 22px; }
.step .n {
  display: block;
  color: var(--faint);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; font-weight: 620; }
.step p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.spec > div {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt { color: var(--faint); font-size: 13px; padding-top: 2px; }
.spec dd { margin: 0; color: var(--ink); font-size: 15px; }

.code {
  margin-top: 16px;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}
.fine {
  margin-top: 16px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.65;
  max-width: 46em;
}
kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 1px 6px;
}

@media (max-width: 1279px) {
  .wrap, .section, .hero, .site-footer, .page, .header-inner {
    width: min(var(--max), calc(100% - 56px));
  }
  .hero-stage { display: grid; gap: 10px; margin-top: 40px; }
  .float-pill { position: static; width: 100%; }
  .hero-window { order: -1; }
}
@media (max-width: 1023px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .banner { flex-direction: column; align-items: stretch; }
  .dl-platforms, .steps, .spec, .split, .split.flip, .card-grid-2 {
    grid-template-columns: 1fr;
  }
  .split.flip .copy { order: unset; }
}
@media (max-width: 768px) {
  .header-inner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "brand download burger" "locale theme theme";
    height: auto;
    min-height: 60px;
    padding: 10px 0;
    row-gap: 4px;
    column-gap: 8px;
  }
  .header-start, .header-end { display: contents; }
  .brand { grid-area: brand; }
  .locale-switcher { grid-area: locale; justify-self: start; }
  .theme-toggle { grid-area: theme; justify-self: end; }
  .header-download { grid-area: download; }
  .nav-cluster { grid-area: burger; position: relative; justify-self: end; }
  .nav-toggle { display: grid; }
  .pill-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    min-width: 168px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .site-header[data-nav-open="true"] .pill-nav { display: flex; }
  .pill-nav a { justify-content: flex-start; min-height: 44px; padding: 0 14px; }
}
@media (max-width: 719px) {
  .wrap, .section, .hero, .site-footer, .page, .header-inner {
    width: calc(100% - 32px);
  }
  .hero { padding-top: 36px; }
  .hero-title { font-size: 32px; }
  .hero-sub { white-space: normal; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .card-grid-3, .shot-grid { grid-template-columns: 1fr; }
  .card-value { text-align: left; }
  .card-value .card-icon { margin: 0; }
  .banner-copy { flex-direction: column; }
  .spec > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
