:root {
  --bg: #ffffff;
  --bg-panel: #f6f7fb;
  --bg-panel-2: #eef0fa;
  --border: #e6e8ef;
  --border-strong: #d6d9e2;
  --accent: #23263a;
  --accent-dark: #121420;
  --on-accent: #ffffff;
  --text: #16171d;
  --text-muted: #6b7080;
  --text-on-panel: #5d6272;
  --text-faint: #a2a6b3;
  --success: #1f9d6b;
  --warn: #c98a12;
  --error: #d0443b;
  --success-halo: rgba(31, 157, 107, 0.16);
  --glow-a: #c9d0fb;
  --glow-b: #e2dcfb;
  --dot: #d8dbe3;
  --veil: rgba(18, 20, 32, 0.22);
  --clear: transparent;

  --font-display: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --size-body: 15px;
  --size-small: 13px;
  --size-h1: clamp(34px, 3.4vw, 48px);
  --size-hero: clamp(30px, 3.4vw, 48px);
  --size-h2: clamp(26px, 3vw, 36px);
  --size-h3: clamp(19px, 2vw, 23px);
  --size-window: 12px;
  --size-lede: 16.5px;
  --weight-normal: 400;
  --weight-medium: 500;
  --tracking-title: -0.035em;
  --tracking-cjk: -0.02em;

  --r-section: 32px;
  --r-window: 22px;
  --r-card: 18px;
  --r-group: 12px;
  --r-btn: 10px;
  --r-pill: 999px;
  --r-shot: 8px;
  --r-app-lg: 27px;
  --r-app-md: 11px;
  --r-app-sm: 7px;
  --r-circle: 50%;

  --shadow-lift: 0 1px 2px rgba(22, 23, 29, 0.04), 0 40px 90px -40px rgba(22, 23, 29, 0.26);
  --shadow-card: 0 1px 2px rgba(22, 23, 29, 0.05), 0 28px 64px -30px rgba(22, 23, 29, 0.32);
  --shadow-slot: 0 1px 2px rgba(22, 23, 29, 0.06), 0 16px 32px -18px rgba(22, 23, 29, 0.30);
  --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 18px -10px rgba(18, 20, 32, 0.60);
  --shadow-ghost: 0 1px 2px rgba(22, 23, 29, 0.05);
  --focus-ring: 0 0 0 3px rgba(35, 38, 58, 0.18);

  --container: 1200px;
  --nav-span: 1280px;
  --reading: 820px;
  --header-h: 64px;
  --gutter: 32px;
  --section-gap: 160px;
  --tap: 44px;
  --fast: 180ms;
  --reveal-time: 420ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
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(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main, section, article, aside, figure { min-width: 0; }
a { color: inherit; text-underline-offset: 0.18em; }
button { font: inherit; }
img { max-width: 100%; }
svg, .icon, .pill-dot { flex-shrink: 0; }
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-btn);
  box-shadow: var(--focus-ring);
}
:where([id]) { scroll-margin-top: 24px; }

h1, h2, h3 {
  margin: 0 0 0.55em;
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  line-height: 1.2;
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
}
:where(h1, h2, h3):is(:lang(zh), :lang(ja), :lang(ko)) { letter-spacing: var(--tracking-cjk); }
h1 { font-size: var(--size-h1); line-height: 1.1; }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
p { margin: 0 0 1em; }
strong { font-weight: var(--weight-medium); }
small { font-size: var(--size-small); }
.keep-word { white-space: nowrap; }
.muted { color: var(--text-muted); }
.eyebrow { margin: 0 0 14px; font-size: var(--size-small); color: var(--text-muted); }
.prose { line-height: 1.8; overflow-wrap: break-word; }
.prose :where(h2, h3):not(:first-child) { margin-top: 1.65em; }
.prose :where(ul, ol) { padding-inline-start: 1.5em; }
.prose li + li { margin-top: 0.4em; }

code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-group);
  background: var(--bg-panel);
  color: var(--text);
  line-height: 1.55;
  white-space: pre;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: inherit; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-reading { max-width: calc(var(--reading) + 2 * var(--gutter)); }
.section-space { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.clip-decor { overflow-x: clip; }
.full-decor-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 16px;
}
:where(.card-grid, .footer-grid, .plat-grid, .feature-switch, .dmg-body) > * { min-width: 0; }
.card, .panel, .panel-section {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
}
.panel { box-shadow: var(--shadow-card); }
.panel-section { border-radius: var(--r-section); background: var(--bg-panel); color: var(--text); }
:where(.card, .panel, .panel-section) > :last-child { margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 46px;
  padding: 9px 20px;
  border: 1px solid var(--clear);
  border-radius: var(--r-btn);
  font: inherit;
  font-size: var(--size-body);
  font-weight: var(--weight-medium);
  letter-spacing: -0.005em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.btn-primary:is(:hover, .is-hover) { background: var(--accent-dark); color: var(--on-accent); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-ghost); }
.btn-ghost:is(:hover, .is-hover) { border-color: var(--border-strong); background: var(--bg-panel); color: var(--text); }
.btn:is(:active, .is-pressed):not(:disabled) { box-shadow: inset 0 0 0 1px currentColor; }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: var(--focus-ring); }
.btn:disabled { background: var(--bg-panel); color: var(--text-on-panel); border-color: var(--border); box-shadow: none; cursor: not-allowed; }

.masthead {
  height: var(--header-h);
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 20;
}
.masthead-in {
  max-width: min(100%, calc(var(--nav-span) + var(--gutter) * 2));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark, .app-mark, .app-slot {
  display: block;
  flex: none;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg), var(--bg-panel));
  color: var(--text);
}
.brand-mark { width: 28px; height: 28px; border-radius: var(--r-app-sm); box-shadow: var(--shadow-ghost); }
.main-nav { min-width: 0; margin-inline-start: auto; }
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(16px, 2.1vw, 30px);
}
.nav-list a {
  display: block;
  padding-block: 6px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--fast) ease;
}
.nav-list a:hover { color: var(--text); }
.nav-list a[aria-current] { color: var(--accent); font-weight: var(--weight-medium); }
.header-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; position: relative; }
.lang, .nav-toggle {
  background: var(--bg);
  color: var(--text);
  border: 0;
  cursor: pointer;
}
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 0 0 26px;
  border-inline-start: 1px solid var(--border);
  font-size: 14px;
  white-space: nowrap;
}
.lang-caret { margin-inline-start: 4px; color: var(--text-muted); font-size: 11px; }
.lang-short, .nav-toggle, .mobile-nav, .nav-veil { display: none; }
.nav-toggle { min-width: var(--tap); min-height: var(--tap); padding: 0; border-radius: var(--r-btn); }
.nav-toggle svg { width: 22px; height: 22px; }
.lang-pop {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 12px);
  z-index: 3;
  width: 176px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-group);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-slot);
}
.lang-pop a, .mobile-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--r-btn);
  color: var(--text);
  text-decoration: none;
}
.lang-pop a:is(:hover, [aria-current]), .mobile-nav a:is(:hover, [aria-current]) {
  background: var(--bg-panel);
  color: var(--accent);
}
.nav-veil {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 0;
  background: var(--veil);
  color: var(--text);
}
.masthead-in > :not(.nav-veil) { position: relative; z-index: 1; }
.masthead-in > .header-tools { z-index: 3; }

.site-foot {
  padding-top: 52px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.3fr 0.8fr;
  gap: 28px;
}
.footer-grid h2 { margin: 3px 0 14px; font-size: var(--size-small); font-weight: var(--weight-medium); }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li + li { margin-top: 6px; }
.footer-grid a:not(.brand), .footer-copy a { color: var(--text-muted); text-decoration: none; }
.footer-grid a:hover, .footer-copy a:hover { color: var(--accent); text-decoration: underline; }
.footer-brand p { margin: 12px 0 0; max-width: 32ch; color: var(--text-muted); }
.footer-copy {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--size-small);
}

.reveal { opacity: 1; }
.reveal.reveal-ready {
  transition: opacity var(--reveal-time) ease, transform var(--reveal-time) ease;
}
.reveal.reveal-ready:not(.shown):not(:focus-within) { opacity: 0; transform: translateY(10px); }

@media (max-width: 1279px) {
  .masthead-in { gap: 8px; }
  .main-nav { display: none; }
  .header-tools { margin-inline-start: auto; }
  .nav-toggle { display: grid; place-items: center; }
  .lang { border: 0; min-height: var(--tap); padding: 0 8px; }
  .masthead-in > .mobile-nav {
    display: block;
    position: absolute;
    inset: 100% 0 auto;
    z-index: 2;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px var(--gutter) 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-slot);
  }
  .mobile-nav ul { margin: 0; padding: 0; list-style: none; }
  .mobile-nav p { margin: 8px 0 0; padding: 10px 12px 4px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--size-small); }
  .nav-veil { display: block; }
}
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-gap: 88px;
    --size-h1: clamp(24px, 6vw, 30px);
    --size-hero: var(--size-h1);
    --size-lede: 15.5px;
  }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .tilt, .micro-tilt, [data-tilt] { transform: none !important; }
  .lang-short { display: inline; }
  .lang-full { display: none; }
  .masthead .brand { font-size: var(--size-small); gap: 7px; }
  .footer-grid { gap: 24px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.reveal-ready, .reveal.reveal-ready:not(.shown) { opacity: 1; transform: none; transition: none; }
  .btn, .nav-list a { transition: none; }
}