/* Site CJK: local fonts with metric overrides so font-display:swap does not shift layout */
@font-face {
  font-family: "Site CJK";
  src: local("PingFang SC"), local("Hiragino Sans GB"), local("Microsoft YaHei"), local("Noto Sans SC");
  font-display: swap;
  size-adjust: 100%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* Latin fallback metrics aligned to Site CJK to limit CLS during swap */
@font-face {
  font-family: "Site UI Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Noto Sans");
  font-display: swap;
  size-adjust: 104%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  --brand: #1a5fd0;
  --brand-hover: #144aa8;
  --brand-ink: #1347a0;
  --brand-soft: #eaf2fc;
  --ink: #0f172a;
  --text: #334155;
  --muted: #475569;
  --paper: #f4f7fb;
  --line: #cfd9e6;
  --white: #fff;
  --shadow: 0 8px 24px -12px rgba(15, 35, 70, 0.18);
  --shadow-panel: 0 22px 60px -28px rgba(20, 74, 168, 0.35);
  --wrap: 1200px;
  --header-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Site CJK", "Site UI Fallback", "PingFang SC", "Microsoft YaHei", "Malgun Gothic", "Yu Gothic", "Leelawadee UI", "Myanmar Text", "Khmer UI", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { max-width: 720px; }

.icon {
  width: 1em;
  height: 1em;
  display: block;
  flex-shrink: 0;
  fill: currentColor;
}
.icon-inline {
  display: inline-block;
  vertical-align: -0.15em;
  margin-right: 0.4em;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-right .lang-switch { flex-shrink: 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-desktop {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}
.nav-desktop a:hover { color: var(--brand-ink); }
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: var(--white);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary .icon { width: 14px; height: 14px; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(220px, 70vw);
  max-height: min(70vh, 420px);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 60;
  display: grid;
}
.lang-menu a {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.lang-menu a:hover,
.lang-menu a.is-active {
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 600;
}
.drawer .lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 0 4px;
}
.drawer .lang-grid a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}
.drawer .lang-grid a.is-active {
  border-color: var(--brand);
  color: var(--brand-ink);
  background: var(--brand-soft);
}
.lang-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--muted);
}
.lang-footer a:hover,
.lang-footer a.is-active { color: var(--brand-ink); }
.menu-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text);
}
.drawer {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding: 8px 20px 16px;
  font-size: 14px;
}
.drawer.is-open { display: flex; }
.drawer a { padding: 10px 0; color: var(--text); }
.drawer .btn { margin-top: 8px; text-align: center; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
  .drawer,
  .drawer.is-open { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
}
.btn-xs {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost {
  background: var(--white);
  color: var(--text);
  border-color: var(--line);
  font-weight: 500;
}
.btn-ghost:hover { border-color: #9db6d9; }
.btn-on-brand {
  background: var(--white);
  color: var(--brand-ink);
}
.btn-on-brand:hover { background: var(--brand-soft); }

/* Hero */
.hero {
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--white) 72%);
}
.hero-grid {
  display: grid;
  gap: 32px;
  padding: 40px 0 48px;
  align-items: center;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}
.h1 {
  color: var(--ink);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.h1 span { color: var(--brand-ink); }
.lead {
  margin-top: 16px;
  max-width: 36rem;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.tldr {
  margin-top: 32px;
  background: var(--white);
  border-left: 3px solid var(--brand);
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.tldr-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.tldr p { margin-top: 6px; font-size: 14px; line-height: 1.65; color: var(--text); }
.hero-frame {
  border-radius: 16px;
  background: #0c0e12;
  padding: 8px;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

@media (min-width: 640px) {
  .h1 { font-size: 42px; }
  .hero-frame { padding: 12px; }
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 64px 0 80px;
  }
  .h1 { font-size: 46px; }
}

/* Stats */
.stats {
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 32px 0;
  text-align: center;
}
.stats dd:first-of-type {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}
.stats .accent { color: var(--brand-ink); }
.stats dd:last-of-type {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Sections */
.section { padding: 64px 0; }
.section-alt {
  padding: 64px 0;
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.h2 {
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
}
.section-desc {
  margin-top: 12px;
  max-width: 42rem;
  font-size: 16px;
  color: var(--muted);
}
@media (min-width: 1024px) {
  .section,
  .section-alt { padding: 80px 0; }
  .h2 { font-size: 32px; }
}

/* Feature cards */
.cards {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-body { padding: 20px; }
.card h3 { color: var(--ink); font-size: 16px; font-weight: 600; }
.card p { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted); }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }

/* Table */
.table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
table { min-width: 720px; font-size: 14px; text-align: left; }
thead { background: var(--brand); color: var(--white); }
th, td { padding: 14px 20px; }
tbody th { font-weight: 600; color: var(--ink); }
tbody td { color: var(--text); }
tbody tr:nth-child(even) { background: var(--paper); }
.cell-yes { color: var(--brand-ink); font-weight: 500; }

/* Quotes */
.quotes {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.quote h3 { font-size: 14px; color: var(--ink); }
.quote .role { font-size: 13px; color: var(--muted); }
.quote blockquote {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
}
@media (min-width: 640px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .quotes { grid-template-columns: repeat(5, 1fr); } }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.faq-item summary {
  list-style: none;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { width: 12px; height: 12px; color: var(--muted); transition: transform 0.15s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  border-radius: 16px;
  background: var(--brand);
  color: var(--white);
  text-align: center;
  padding: 48px 32px;
}
.cta-band .h2 { color: var(--white); }
.cta-band p {
  margin: 12px auto 0;
  max-width: 32rem;
  color: #fff;
}
.cta-band .btn { margin-top: 28px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.brand-sm img { width: 28px; height: 28px; object-fit: contain; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--muted);
}
.footer-nav a:hover { color: var(--ink); }
.legal { font-size: 13px; color: var(--muted); }
@media (min-width: 1024px) {
  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Download page extras */
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumb a:hover { color: var(--brand-ink); }
.editions {
  margin-top: 32px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}
.edition {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-top: 1px solid var(--line);
}
.edition:first-child { border-top: 0; }
.edition-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
}
.edition-icon .icon { width: 20px; height: 20px; }
.edition h3 { color: var(--ink); font-size: 16px; }
.edition p { margin-top: 2px; font-size: 13px; color: var(--muted); }
.steps { margin-top: 32px; max-width: 48rem; display: grid; gap: 24px; }
.steps h3 { color: var(--ink); }
.steps p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.spec-table { min-width: 640px; }

@media (min-width: 640px) {
  .edition {
    flex-direction: row;
    align-items: center;
  }
  .edition > div { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-chevron { transition: none; }
}

html[lang="zh-Hant"] body { font-family: "PingFang TC", "Microsoft JhengHei", "Site CJK", "PMingLiU", sans-serif; }
html[lang="ja"] body { font-family: "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", "Meiryo", sans-serif; }
html[lang="ko"] body { font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
html[lang="th"] body { font-family: "Leelawadee UI", "Thonburi", "Tahoma", sans-serif; line-height: 1.7; }
html[lang="my"] body { font-family: "Myanmar Text", "Noto Sans Myanmar", sans-serif; line-height: 1.75; }
html[lang="km"] body { font-family: "Khmer UI", "Leelawadee UI", sans-serif; line-height: 1.75; }
html[lang="vi"] body,
html[lang="fil"] body,
html[lang="en"] body { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
