/* 寰宇 Cosmos 官网 — Apple-minimalist design system (Light #ffffff/#f5f5f7, Dark #000000/#161618). */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --card-2: #f5f5f7;
  --text: #1d1d1f;
  --secondary: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.05);
  --line-strong: rgba(0, 0, 0, 0.16);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-fg: #ffffff;
  --accent-soft: rgba(0, 113, 227, 0.09);
  --green: #15803d;
  --red: #c9342d;
  --header-bg: rgba(255, 255, 255, 0.78);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.08);
  --shadow-stage: 0 28px 72px -18px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC",
    "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
  --mono: "SF Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tracking: -0.015em;
  --header-h: 56px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #111113;
  --card: #161618;
  --card-2: #1c1c1e;
  --text: #f5f5f7;
  --secondary: #a1a1a6;
  --muted: #86868b;
  --line: rgba(255, 255, 255, 0.11);
  --line-2: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #2997ff;
  --accent-hover: #47a6ff;
  --accent-fg: #000000;
  --accent-soft: rgba(41, 151, 255, 0.16);
  --green: #30d158;
  --red: #ff6961;
  --header-bg: rgba(18, 18, 20, 0.78);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-stage: 0 32px 84px -14px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

html[lang="en"] {
  --tracking: -0.025em;
}

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

html {
  font-size: 16px;
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-color: var(--muted) transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

summary {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#main:focus {
  outline: none;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-card);
}

.skip-link:focus {
  top: 12px;
}

.js-only {
  display: none !important;
}

html.js-ready .lang-switch {
  display: flex !important;
}

html.js-ready .theme-toggle {
  display: inline-flex !important;
}

html.js-ready .stage-tabs {
  display: inline-flex !important;
}

html.js-ready .copy-btn {
  display: inline-flex !important;
}

html.js-ready #follow-system {
  display: inline-flex !important;
}

/* Typography */

h1,
h2,
h3 {
  font-weight: 600;
  color: var(--text);
  letter-spacing: var(--tracking);
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.06;
}

h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  max-width: 24ch;
}

h3 {
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.24;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.lead {
  max-width: 44em;
  color: var(--secondary);
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.6;
}

.note {
  max-width: 66ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Frosted Glass Sticky Header */

#site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

#site-header .brand {
  grid-column: 1;
  margin-left: -6px;
}

.brand-mark {
  width: 24px;
  height: 24px;
  flex: none;
  object-fit: contain;
}

.brand-mark--light {
  display: none;
}

:root[data-theme="dark"] .brand-mark--ink {
  display: none;
}

:root[data-theme="dark"] .brand-mark--light {
  display: block;
}

.site-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 980px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.site-nav a:hover {
  background: var(--card-2);
  color: var(--text);
}

.site-nav a.is-current {
  color: var(--accent);
}

#nav-market {
  color: var(--accent);
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lang-switch {
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--card-2);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 980px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn[aria-pressed="true"] {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

:root[data-theme="dark"] .lang-btn[aria-pressed="true"] {
  background: #2c2c2e;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.theme-toggle {
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 980px;
  color: var(--secondary);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.theme-toggle:hover {
  background: var(--card-2);
  color: var(--text);
}

.theme-track {
  position: relative;
  display: block;
  flex: none;
  width: 34px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  background: var(--card-2);
  transition: background-color 0.2s var(--ease);
}

.theme-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary);
  transition:
    transform 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.theme-toggle[aria-pressed="true"] .theme-knob {
  transform: translateX(14px);
  background: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 980px;
  color: var(--text);
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background: var(--card-2);
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

/* Apple-Style Centered Hero & Wide Product Stage */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 108px);
  background: var(--bg);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vw, 60px);
}

.hero-copy {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.hero-copy .eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--card-2);
  color: var(--secondary);
}

#hero-title {
  margin: 0 auto 20px;
  max-width: 14ch;
}

html[lang="en"] #hero-title {
  max-width: 16ch;
}

.hero-lead {
  max-width: 42em;
  margin-inline: auto;
  color: var(--secondary);
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-fg);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.26);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: var(--card);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text);
  background: var(--card-2);
  color: var(--text);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--card-2);
  color: var(--secondary);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.hero-stage {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  will-change: transform;
  transform: translate3d(0, var(--stage-y, 0px), 0) scale(var(--stage-s, 1));
  transition: transform 0.12s linear;
}

.stage {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-stage);
}

.stage-bar {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.stage-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stage-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

html:not(.js-ready) .stage-bar {
  grid-template-columns: auto 1fr;
}

.stage-tabs {
  position: relative;
  justify-self: center;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: var(--card-2);
  max-width: 100%;
  overflow: hidden;
}

.stage-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  width: var(--ind-w, 0px);
  border-radius: 980px;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translate3d(var(--ind-x, 0px), 0, 0);
  pointer-events: none;
}

.stage-tabs.is-animated .stage-indicator {
  transition:
    transform 0.34s var(--ease),
    width 0.34s var(--ease);
}

:root[data-theme="dark"] .stage-indicator {
  background: #2c2c2e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.stage-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 980px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.stage-tab:hover {
  color: var(--text);
}

.stage-tab.is-active,
.stage-tab[aria-selected="true"] {
  color: var(--text);
  font-weight: 600;
}

.stage-version {
  justify-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
}

.stage-body {
  position: relative;
  aspect-ratio: 1200 / 660;
  overflow: hidden;
  background: #141418;
}

.stage-panel {
  position: absolute;
  inset: 0;
  display: none;
  margin: 0;
}

.stage-panel.is-active {
  display: block;
  animation: panelEnter 0.36s var(--ease) both;
}

.stage-panel[hidden] {
  display: none;
}

@keyframes panelEnter {
  from {
    opacity: 0;
    transform: scale(0.988);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stage-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.stage-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-top: 14px;
  text-align: center;
}

.stage-caption {
  color: var(--secondary);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.stage-meta .note {
  margin-top: 0;
}

/* Sections (Alternating Surface Bands) */

.section {
  padding: clamp(80px, 9vw, 118px) 0;
  background: var(--bg);
}

.section--alt {
  background: var(--bg-alt);
}

#problem,
#pillars,
#features,
#trust,
#faq,
#download {
  border-top: 1px solid var(--line-2);
  scroll-margin-top: 80px;
}

.section-head {
  margin-bottom: clamp(44px, 5.5vw, 60px);
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

.section-head h2 {
  margin-bottom: 16px;
}

/* Problem */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.problem-item {
  min-width: 0;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.problem-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.problem-item .index {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 10px;
  border-radius: 980px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
}

.problem-item h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.problem-item p {
  color: var(--secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

.bridge {
  max-width: 34em;
  margin-top: clamp(44px, 5vw, 64px);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: var(--tracking);
  line-height: 1.35;
  color: var(--text);
  text-wrap: balance;
}

/* Pillars (Apple Bento Cards) */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pillar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 260px;
  padding: 32px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-2);
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.pillar:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.pillar-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.pillar-icon {
  width: 22px;
  height: 22px;
}

.pillar h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.pillar > p {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.65;
}

.pillar-tag {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.pillar > p.pillar-tag {
  margin-top: 22px;
}

/* Features */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
}

.feature + .feature {
  margin-top: clamp(56px, 6.5vw, 84px);
  padding-top: clamp(56px, 6.5vw, 84px);
  border-top: 1px solid var(--line);
}

.feature-copy {
  min-width: 0;
}

.feature-kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.feature-copy h3 {
  margin-bottom: 14px;
}

.feature-copy > p:not(.feature-kicker) {
  max-width: 34em;
  color: var(--secondary);
  font-size: 15.5px;
  line-height: 1.65;
}

.feature-list {
  margin-top: 22px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

.feature-list li + li {
  margin-top: 8px;
}

.feature-list li::before {
  content: "–";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
}

.feature--reverse .feature-copy {
  order: 2;
}

.feature--reverse .feature-visual {
  order: 1;
}

.feature-visual {
  min-width: 0;
}

/* Data plate */

.data-plate {
  padding: 8px 28px 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.data-label {
  padding: 18px 0 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.data-row strong {
  flex: none;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.data-row span {
  max-width: 14ch;
  color: var(--secondary);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: right;
}

/* Diagrams */

.diagram-card {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.merge-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.15fr);
  align-items: center;
  gap: 0;
  min-height: 220px;
}

.merge-agents {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.agent-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--card-2);
  color: var(--secondary);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.merge-line {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
}

.merge-line::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  transform: rotate(45deg);
}

.merge-target {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-2);
}

.merge-kicker,
.diagram-label {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.merge-target strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.diagram-caption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.session-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 20px minmax(0, 0.95fr) 20px minmax(0, 1.05fr);
  align-items: center;
  gap: 0;
}

.session-lane {
  min-width: 0;
}

.session-agents {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  min-width: 0;
}

.session-agents .agent-pill {
  min-height: 30px;
  padding: 0 11px;
  font-size: 11.5px;
}

.session-arrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

.session-index {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-2);
}

.session-index strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.plan-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.plan-line .diagram-label {
  flex: none;
  margin-right: 4px;
}

.plan-step {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--card-2);
  color: var(--secondary);
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
}

.plan-arrow {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.diagram-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* Trust */

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(36px, 5.5vw, 84px);
}

.trust-layout .section-head {
  margin: 0;
}

.trust-list {
  margin-top: 36px;
  counter-reset: trust;
}

.trust-list li {
  counter-increment: trust;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.trust-list li::before {
  content: "0" counter(trust);
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 3px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}

.trust-list strong {
  grid-column: 2;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.trust-list p {
  grid-column: 2;
  margin-top: 6px;
  max-width: 46em;
  color: var(--secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

.verify-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-2);
  box-shadow: var(--shadow-card);
}

.verify-card .eyebrow {
  margin-bottom: 10px;
}

.verify-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.35;
}

.verify-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.verify-label {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.verify-size {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.verify-row code {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--secondary);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.copy-btn {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  background: var(--card);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-btn[data-copied="1"] {
  border-color: var(--green);
  color: var(--green);
}

.verify-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 12.5px;
  line-height: 1.6;
}

.verify-source {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* FAQ */

.faq-wrap {
  max-width: 780px;
}

.faq-list {
  border-bottom: 1px solid var(--line);
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 18px 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.faq-list summary:hover {
  color: var(--accent);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::marker {
  content: "";
}

.faq-list summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s var(--ease), color 0.2s var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
  color: var(--text);
}

.faq-list details > p {
  max-width: 62ch;
  padding: 0 40px 24px 0;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* Download */

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-2);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.download-card h3 {
  margin-bottom: 8px;
}

.download-size {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

.download-card .btn {
  margin-top: 26px;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

#download .note {
  max-width: 80ch;
  margin-top: 14px;
}

/* Footer */

.site-footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 40px;
}

.footer-brand {
  min-width: 0;
}

.brand--footer {
  margin-left: -6px;
  font-size: 15px;
}

.footer-brand p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  min-width: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.4;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}

.text-btn {
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  background: var(--card);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.text-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 40px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-legal p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Scroll Reveal Motion */

[data-reveal] {
  opacity: 1;
  transform: none;
}

html.js-ready [data-reveal] {
  transition:
    opacity 0.56s var(--ease),
    transform 0.56s var(--ease);
}

html.js-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

html.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 1080px) {
  .theme-label {
    display: none;
  }

  .theme-toggle {
    justify-content: center;
    padding: 0 6px;
  }

  .site-nav {
    display: none;
  }

  html:not(.js-ready) .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  html:not(.js-ready) .header-actions {
    display: none;
  }

  html:not(.js-ready) .site-nav {
    display: flex;
    grid-column: 2;
    justify-self: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  html:not(.js-ready) .site-nav::-webkit-scrollbar {
    display: none;
  }

  html:not(.js-ready) .site-nav a {
    flex: none;
    min-width: 44px;
    padding: 0 8px;
    font-size: 13px;
  }

  html.js-ready #site-nav {
    display: none;
  }

  html.js-ready #site-nav.is-open {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-h));
    padding: 8px 24px 20px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow-hover);
    justify-self: stretch;
  }

  html.js-ready #site-nav.is-open a {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 6px;
    border-top: 1px solid var(--line-2);
    border-radius: 0;
    color: var(--text);
    font-size: 16px;
  }

  html.js-ready #site-nav.is-open a:first-child {
    border-top: 0;
  }

  html.js-ready .nav-toggle {
    display: inline-flex !important;
    position: relative;
  }

  #nav-toggle[aria-expanded="true"] svg {
    opacity: 0;
  }

  #nav-toggle[aria-expanded="true"]::before,
  #nav-toggle[aria-expanded="true"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  #nav-toggle[aria-expanded="true"]::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  body:has(#site-nav.is-open)::before {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 48;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(4px);
    pointer-events: auto;
  }
}

@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .pillar-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillar {
    min-height: 0;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .feature--reverse .feature-copy,
  .feature--reverse .feature-visual {
    order: 0;
  }

  .merge-diagram {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .merge-agents {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .merge-line {
    width: 1px;
    height: 28px;
    margin: 8px auto;
  }

  .merge-line::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: -3px;
    transform: rotate(135deg);
  }

  .session-diagram {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .session-agents {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .session-arrow {
    padding: 2px 0;
    transform: rotate(90deg);
  }

  .trust-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .verify-card {
    position: static;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (min-width: 901px) {
  .verify-card {
    position: sticky;
    top: 76px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 44px 0 56px;
  }

  #hero-title,
  html[lang="en"] #hero-title {
    max-width: none;
    font-size: 36px;
  }

  .section {
    padding: 64px 0;
  }

  .stage-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 6px 10px;
  }

  .stage-dots {
    display: none;
  }

  .stage-tabs {
    justify-self: start;
  }

  .stage-tab {
    padding: 0 11px;
    font-size: 12.5px;
  }

  .download-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .download-card {
    padding: 24px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
  }
}

@media (max-width: 520px) {
  .brand-name {
    display: none;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .hero-proof .chip {
    width: 100%;
    padding: 0 8px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stage-tab {
    padding: 0 9px;
    font-size: 12px;
  }

  .stage-version {
    font-size: 10.5px;
  }
}

@media (max-width: 400px) {
  .header-inner {
    padding-inline: 16px;
    gap: 6px;
  }

  .lang-btn {
    padding: 0 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-stage {
    transform: none !important;
  }

  html.js-ready [data-reveal],
  html.js-ready [data-reveal]:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
  }
}
