/* =========================================================
   ADAMASC5O — Global Stylesheet
   结构：1 变量 · 2 基础 · 3 布局 · 4 导航 · 5 按钮/徽章
         6 首页各区块 · 7 法律文档页 · 8 页脚 · 9 动画 · 10 响应式
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #06070b;
  --bg-elev: #0c0e15;
  --bg-card: rgba(255, 255, 255, 0.028);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eceef4;
  --text-dim: #a3a8b8;
  --text-mute: #6d7284;

  /* 棱镜色（Adamas = 钻石）：冷青 → 淡紫 → 玫瑰金 */
  --c1: #7fe7ff;
  --c2: #a99bff;
  --c3: #ffb9c9;
  --prism: linear-gradient(110deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);

  --ok: #7ee2b8;
  --warn: #ffd27a;

  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --nav-h: 68px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }

::selection { background: rgba(169, 155, 255, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #000; }

.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;
}

/* 背景光晕 + 细网格（纯 CSS，无图片请求） */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(127, 231, 255, 0.10), transparent 60%),
    radial-gradient(800px 600px at 8% 12%, rgba(169, 155, 255, 0.10), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(255, 185, 201, 0.06), transparent 60%),
    var(--bg);
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 80%);
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 120px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--prism);
}

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  max-width: 18em;
  margin-bottom: 20px;
}
.section-lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-dim);
  max-width: 40em;
}

.prism-text {
  background: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 15px;
}
.brand svg { width: 26px; height: 26px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after { top: 5px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 5. Buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: #f4f5f9;
  color: #07080c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 40px -10px rgba(127, 231, 255, 0.45);
}
.btn--primary:hover {
  color: #07080c;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 14px 50px -10px rgba(169, 155, 255, 0.6);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.05); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--dev { color: var(--c1); border-color: rgba(127, 231, 255, 0.3); background: rgba(127, 231, 255, 0.06); }
.badge--plan { color: var(--c2); border-color: rgba(169, 155, 255, 0.3); background: rgba(169, 155, 255, 0.06); }
.badge--vision { color: var(--c3); border-color: rgba(255, 185, 201, 0.3); background: rgba(255, 185, 201, 0.05); }

/* 待确认标记：上线前必须由网站所有者替换或确认 */
.tbc {
  display: inline;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.88em;
  font-weight: 500;
  color: var(--warn);
  background: rgba(255, 210, 122, 0.08);
  border: 1px dashed rgba(255, 210, 122, 0.45);
  white-space: normal;
}

/* ---------- 6. Home ---------- */

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 90px;
  position: relative;
  overflow-x: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero__brand {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--text-dim);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero__brand i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 12px var(--c1);
  animation: pulse 2.6s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero h1 .line { display: block; }
.hero h1 .line { white-space: nowrap; }
.hero__sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-dim);
  max-width: 34em;
  margin-bottom: 40px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__meta {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 13px;
  color: var(--text-mute);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 14px; height: 14px; opacity: 0.7; }

/* Hero visual — 抽象的“晶体核心”，象征 XiaoQing 中枢 */
.core {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}
.core__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.core__ring--2 { inset: 12%; border-color: rgba(255, 255, 255, 0.06); }
.core__ring--3 { inset: 26%; border-style: dashed; border-color: rgba(255, 255, 255, 0.08); animation: spin 60s linear infinite; }
.core__orbit {
  position: absolute;
  inset: 0;
  animation: spin 28s linear infinite;
}
.core__orbit--rev { inset: 12%; animation-duration: 40s; animation-direction: reverse; }
.core__dot {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 16px var(--c1);
}
.core__orbit--rev .core__dot { background: var(--c3); box-shadow: 0 0 16px var(--c3); top: auto; bottom: -5px; }
.core__gem {
  position: absolute;
  inset: 32%;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 40px rgba(169, 155, 255, 0.45));
  animation: float 7s ease-in-out infinite;
}
.core__glow {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 155, 255, 0.28), rgba(127, 231, 255, 0.08) 45%, transparent 70%);
  filter: blur(10px);
}
.core__label {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 7, 11, 0.6);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.core__label--a { top: 6%; left: -2%; }
.core__label--b { top: 46%; right: -6%; }
.core__label--c { bottom: 6%; left: 8%; }

/* Meet XiaoQing */
.meet__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.profile {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--bg-elev);
  overflow: hidden;
}
.profile::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(127, 231, 255, 0.5), transparent 35%, transparent 65%, rgba(255, 185, 201, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.profile__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 600;
  color: #0a0b10;
  background: var(--prism);
  box-shadow: 0 8px 30px -8px rgba(169, 155, 255, 0.6);
}
.profile__name { font-size: 20px; font-weight: 600; }
.profile__role { font-size: 13px; color: var(--text-mute); font-family: var(--mono); letter-spacing: 0.04em; }
.profile dl { margin: 0; display: grid; gap: 14px; }
.profile dl div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.profile dt { color: var(--text-mute); }
.profile dd { margin: 0; color: var(--text); }
.profile__note {
  margin: 22px 0 0;
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.7;
}

.duties { display: grid; gap: 14px; margin-top: 40px; }
.duty {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.duty:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); transform: translateY(-2px); }
.duty__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-mute);
  padding-top: 3px;
}
.duty h3 { font-size: 17px; margin-bottom: 6px; }
.duty p { margin: 0; font-size: 15px; color: var(--text-dim); }

.principles {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.principle {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-dim);
}
.principle strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; font-weight: 600; }

/* Capabilities */
.cap__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.legend { display: flex; flex-wrap: wrap; gap: 10px; }
.cap__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.card {
  grid-column: span 2;
  position: relative;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.card:nth-child(4),
.card:nth-child(5) { grid-column: span 3; }
.card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: var(--mx, 50%);
  top: var(--my, 0%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(169, 155, 255, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 24px;
}
.card__icon svg { width: 20px; height: 20px; stroke: var(--text); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-dim); margin-bottom: 20px; }
.card ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-mute);
}
.card li { padding-left: 16px; position: relative; }
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 1px;
  background: var(--text-mute);
}
.cap__note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-mute);
}

/* Vision — 编排流程图 */
.vision__flow {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.node {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-card);
}
.node__k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.node h3 { font-size: 17px; margin-bottom: 6px; }
.node p { margin: 0; font-size: 14px; color: var(--text-dim); }
.node--center {
  border-color: rgba(169, 155, 255, 0.35);
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(169, 155, 255, 0.14), transparent 70%),
    var(--bg-elev);
  text-align: center;
}
.agents {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.agents span {
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}
.arrow {
  width: 56px;
  height: 2px;
  position: relative;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25));
  overflow: hidden;
}
.arrow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--prism);
  animation: flow 2.4s ease-in-out infinite;
}

.roadmap {
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.roadmap li {
  list-style: none;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}
.roadmap li:last-child { border-right: 0; }
.roadmap .step {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}
.roadmap h3 { font-size: 16px; margin-bottom: 6px; }
.roadmap p { margin: 0 0 14px; font-size: 13.5px; color: var(--text-dim); }

/* Privacy & Trust */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.trust {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
}
.trust svg { width: 22px; height: 22px; stroke: var(--c1); margin-top: 3px; }
.trust h3 { font-size: 17px; margin-bottom: 6px; }
.trust p { margin: 0; font-size: 14.5px; color: var(--text-dim); }
.trust code {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  word-break: break-all;
}
.trust__cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

/* CTA band */
.band {
  margin: 0 auto;
  text-align: center;
  padding: 80px 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(127, 231, 255, 0.12), transparent 70%),
    radial-gradient(600px 300px at 50% 100%, rgba(255, 185, 201, 0.08), transparent 70%),
    var(--bg-elev);
}
.band h2 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 16px; }
.band p { color: var(--text-dim); max-width: 34em; margin: 0 auto 32px; }
.band .hero__cta { justify-content: center; }

/* ---------- 7. Legal pages ---------- */
.doc-hero {
  padding: calc(var(--nav-h) + 80px) 0 48px;
  border-bottom: 1px solid var(--line);
}
.doc-hero h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 18px; }
.doc-hero p { color: var(--text-dim); max-width: 44em; }
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--text-mute);
  font-family: var(--mono);
}

.doc-notice {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 210, 122, 0.45);
  background: rgba(255, 210, 122, 0.05);
  font-size: 14px;
  color: #f1e2c2;
  max-width: 52em;
}
.doc-notice strong { color: var(--warn); }

.doc {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 120px;
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow: auto;
}
.toc p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.5;
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--c2); }

.prose { max-width: 760px; font-size: 16px; color: #d4d7e1; }
.prose section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.prose section:last-child { border-bottom: 0; }
.prose h2 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 18px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.prose h2 .n { font-family: var(--mono); font-size: 13px; color: var(--text-mute); font-weight: 400; }
.prose h3 { font-size: 17px; color: var(--text); margin: 28px 0 10px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--text-mute); }
.prose a { color: var(--c1); text-decoration: underline; text-decoration-color: rgba(127, 231, 255, 0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--c1); }
.prose strong { color: var(--text); }
.prose code {
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  word-break: break-all;
}
.prose .callout {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  margin: 18px 0;
}
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; background: rgba(255, 255, 255, 0.03); }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- 8. Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  font-size: 14px;
  color: var(--text-mute);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__about { max-width: 26em; margin-top: 16px; line-height: 1.7; }
.footer h2 {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--text-mute); transition: color 0.2s; }
.footer a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* 404 */
.nf {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px;
}
.nf__code {
  font-family: var(--mono);
  font-size: clamp(72px, 14vw, 160px);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 20px;
}
.nf p { color: var(--text-dim); margin-bottom: 32px; }

/* ---------- 9. Motion ---------- */
/* 仅在 JS 可用时隐藏，保证无 JS 时内容依然可读 */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes flow { 0% { left: -40%; } 100% { left: 100%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 1024px) {
  .section { padding: 96px 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .core { max-width: 300px; margin: 8px auto 0; }
  .meet__grid { grid-template-columns: 1fr; gap: 48px; }
  .profile { position: relative; top: 0; }
  .cap__grid { grid-template-columns: repeat(2, 1fr); }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: span 1; }
  .card:nth-child(5) { grid-column: span 2; }
  .vision__flow { grid-template-columns: 1fr; }
  .arrow { width: 2px; height: 36px; margin: 0 auto; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.25)); }
  .arrow::after { width: 100%; height: 40%; left: 0; top: -40%; animation-name: flow-v; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .roadmap li:nth-child(2) { border-right: 0; }
  .roadmap li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .doc { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: relative; top: 0; max-height: none; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
}
@keyframes flow-v { 0% { top: -40%; } 100% { top: 100%; } }

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: rgba(6, 7, 11, 0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { padding: 14px 4px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .br-desk { display: none; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .core__label--b { right: 0; }
  .principles { grid-template-columns: 1fr; }
  .cap__grid { grid-template-columns: 1fr; }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: span 1; }
  .roadmap { grid-template-columns: 1fr; }
  .roadmap li { border-right: 0; border-bottom: 1px solid var(--line); }
  .roadmap li:last-child { border-bottom: 0; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .band { padding: 56px 20px; border-radius: 20px; }
  .profile { padding: 24px; }
  .profile dl div { grid-template-columns: 72px 1fr; }
}
