@charset "utf-8";

/* ==========================================================================
   UXTU 中文站 — 设计系统
   品牌色取自 UXTU 官方 Logo 的四段渐变：青 / 蓝 / 紫 / 品红
   ========================================================================== */

:root {
  /* 品牌色 */
  --cyan: #22e3f2;
  --blue: #3b7df7;
  --blue-ink: #2f6bf0;
  --blue-deep: #1e4fbd;
  --violet: #7c5cf0;
  --magenta: #c94bee;
  --brand-grad: linear-gradient(118deg, #22e3f2 0%, #3b7df7 36%, #7c5cf0 70%, #c94bee 100%);
  --brand-grad-soft: linear-gradient(118deg, rgba(34, 227, 242, .12) 0%, rgba(59, 125, 247, .12) 40%, rgba(124, 92, 240, .12) 72%, rgba(201, 75, 238, .12) 100%);

  /* 中性色 */
  --ink: #0b1322;
  --ink-2: #1a2438;
  --body-c: #495468;
  --muted: #6d7a8f;
  --line: #e4eaf3;
  --line-2: #d2dbe8;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #fafcff;
  --dark: #0c1526;

  /* 排版 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 结构 */
  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(12, 21, 38, .04);
  --shadow-2: 0 12px 32px -12px rgba(12, 21, 38, .16), 0 2px 6px rgba(12, 21, 38, .04);
  --shadow-3: 0 32px 64px -24px rgba(12, 21, 38, .28);

  --header-h: 66px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- reset --- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body-c);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
}

p { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { color: var(--blue-deep); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: rgba(59, 125, 247, .18); color: var(--ink); }

:focus-visible {
  outline: 3px solid rgba(59, 125, 247, .55);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------- layout --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }
.section--tight { padding-block: 68px; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--blue-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.65rem, 2.6vw, 2.4rem);
  margin-bottom: 18px;
}
.section-sub { font-size: 1.02rem; color: var(--body-c); }

/* -------------------------------------------------------------- buttons --- */
.btn {
  --btn-bg: var(--bg);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid var(--btn-bd);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease),
    border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-fg: #fff;
  --btn-bd: transparent;
  background: var(--blue-ink);
  box-shadow: 0 6px 18px -8px rgba(47, 107, 240, .75);
}
.btn--primary:hover { background: var(--blue-deep); box-shadow: 0 10px 22px -10px rgba(47, 107, 240, .8); }

.btn--brand {
  --btn-fg: #fff;
  --btn-bd: transparent;
  background: var(--brand-grad);
  background-size: 160% 160%;
  box-shadow: 0 8px 24px -10px rgba(84, 92, 240, .85);
}
.btn--brand:hover { background-position: 100% 0; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--ink); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: transparent; }
.btn--light:hover { --btn-bg: #f1f4f9; }

.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.btn--lg { padding: 15px 30px; font-size: 16px; border-radius: 11px; }
.btn--block { width: 100%; }

.btn .ico { width: 17px; height: 17px; flex: none; }

/* --------------------------------------------------------------- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 1px 14px rgba(12, 21, 38, .06); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 33px; height: 33px; border-radius: 9px; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
}
.brand-name small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue-ink); background: rgba(59, 125, 247, .08); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.5px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span { transform: rotate(45deg); box-shadow: 0 0 0 currentColor, 0 0 0 currentColor; }
.nav-toggle[aria-expanded="true"] span::after { content: ""; }

/* -------------------------------------------------------------- hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 78px 84px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 420px at 88% -8%, rgba(34, 227, 242, .14), transparent 64%),
    radial-gradient(700px 460px at 6% 8%, rgba(124, 92, 240, .12), transparent 62%),
    var(--bg);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(12, 21, 38, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 21, 38, .028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero .eyebrow { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  line-height: 1.14;
  letter-spacing: -.028em;
}
/* H1 内的品牌/环境前置行：让 H1 承载品牌词，同时保持原有视觉层级 */
.hero h1 .h1-kicker {
  display: block;
  margin-bottom: 15px;
  font-size: .285em;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.4;
  color: var(--blue-ink);
}
@media (max-width: 700px) {
  .hero h1 .h1-kicker { font-size: .33em; letter-spacing: .06em; margin-bottom: 12px; }
}

/* 文字渐变需保证对比度，故使用加深后的品牌色阶 */
.hero h1 .grad {
  background: linear-gradient(100deg, #1a56c9 0%, #5344d8 52%, #a533c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 560px;
  margin-top: 22px;
  font-size: 1.075rem;
  line-height: 1.82;
  color: var(--body-c);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13.5px;
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--blue-ink); flex: none; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div { padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats b {
  display: block;
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.hero-stats span { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }

/* --------------------------------------------------- app window mockup --- */
.app-window {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.app-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand-grad);
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px 13px;
  border-bottom: 1px solid var(--line);
  background: #fcfdff;
}
.app-dots { display: flex; gap: 5px; }
.app-dots i { width: 8px; height: 8px; border-radius: 50%; background: #dfe6f0; }
.app-title { color: var(--ink-2); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.app-tag {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(59, 125, 247, .1);
  color: var(--blue-ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
}
.app-body { padding: 18px; }

.app-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.app-tabs span {
  padding: 6px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  background: var(--bg-soft);
}
.app-tabs span.is-on { background: var(--ink); color: #fff; }

.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.preset {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.preset b { display: block; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.preset small { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.preset.is-on { border-color: rgba(59, 125, 247, .5); background: rgba(59, 125, 247, .05); }

.meter { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-tint); }
.meter-top { display: flex; align-items: baseline; justify-content: space-between; }
.meter-top span { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.meter-top b { color: var(--ink); font-family: var(--mono); font-size: 19px; font-weight: 700; }
.meter-top b i { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 2px; }
.track { position: relative; height: 6px; margin-top: 10px; border-radius: 99px; background: #e8eefa; }
.track::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 62%;
  border-radius: 99px;
  background: var(--brand-grad);
}
.track::after {
  content: "";
  position: absolute;
  left: 62%; top: 50%;
  width: 13px; height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--blue-ink);
  box-shadow: 0 0 0 3px rgba(47, 107, 240, .12);
}
.meter-scale { display: flex; justify-content: space-between; margin-top: 8px; color: #9aa7ba; font-family: var(--mono); font-size: 9.5px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip-row span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 10.5px;
}
.chip-row span.hot { border-color: rgba(201, 75, 238, .4); color: #9c34bb; background: rgba(201, 75, 238, .07); }

/* ------------------------------------------------------------ trust bar --- */
.trust {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 34px;
  padding-block: 20px;
}
.trust p { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.trust ul { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; }
.trust li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.trust li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-grad);
}

/* --------------------------------------------------------------- cards --- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card h3 { font-size: 1.06rem; margin-bottom: 9px; }
.card p { font-size: .945rem; line-height: 1.78; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: rgba(59, 125, 247, .08);
  color: var(--blue-ink);
}
.card__icon svg { width: 21px; height: 21px; }
.card__icon--violet { background: rgba(124, 92, 240, .1); color: #6a4bdd; }
.card__icon--magenta { background: rgba(201, 75, 238, .09); color: #b23ad0; }
.card__icon--cyan { background: rgba(34, 227, 242, .13); color: #0e9fb0; }

.card__index {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-ink);
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.card__meta {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.card__meta span {
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 11.5px;
}

.card--accent { border-color: rgba(59, 125, 247, .26); background: linear-gradient(180deg, rgba(59, 125, 247, .045), #fff 55%); }

/* --------------------------------------------------------------- split --- */
.split {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 64px;
  align-items: start;
}
.split--flip { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.split--flip .split__media { order: 2; }
.split h2 { font-size: clamp(1.5rem, 2.3vw, 2.05rem); margin-bottom: 16px; }
.split p + p { margin-top: 14px; }
.split__media { position: relative; }

.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 11px; font-size: .95rem; line-height: 1.7; color: var(--body-c); }
.check-list svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--blue-ink); }
.check-list b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- panel --- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.panel-body { padding: 22px; }

.state-table { width: 100%; font-size: .92rem; }
.state-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.state-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.state-table tr:last-child td { border-bottom: 0; }
.state-table td b { color: var(--ink); font-weight: 600; }
.state-table .num { font-family: var(--mono); white-space: nowrap; }

/* --------------------------------------------------------------- steps --- */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 34px;
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--blue-ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  z-index: 1;
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 22.5px;
  top: 46px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 1.02rem; margin-bottom: 7px; }
.steps p { max-width: 78ch; font-size: .94rem; }

/* --------------------------------------------------------------- table --- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table { min-width: 520px; font-size: .93rem; }
.split .data-table,
.panel .data-table { min-width: 0; }
.data-table caption {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  text-align: left;
}
.data-table th {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--bg-tint); }
.data-table td b { color: var(--ink); font-weight: 600; }
.data-table .mono { font-family: var(--mono); font-size: .88em; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.tag--ok { background: rgba(22, 163, 74, .09); color: #15803d; }
.tag--part { background: rgba(217, 119, 6, .1); color: #a16207; }
.tag--exp { background: rgba(201, 75, 238, .09); color: #a335c2; }
.tag--no { background: rgba(107, 114, 128, .1); color: #57606f; }

/* ---------------------------------------------------------- callout/faq --- */
.callout {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue-ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-tint);
}
.callout svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--blue-ink); }
.callout h3 { font-size: .98rem; margin-bottom: 6px; }
.callout p { max-width: 92ch; font-size: .925rem; }
.callout--warn { border-left-color: #d97706; background: #fffcf5; }
.callout--warn svg { color: #b45309; }

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .18s var(--ease);
}
.faq details[open] { border-color: var(--line-2); background: var(--bg-tint); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 9px; height: 9px;
  margin-left: auto;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq .faq-answer { padding: 0 20px 20px; font-size: .94rem; }
.faq .faq-answer a { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------- notes --- */
.note-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.note {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.note h3 { font-size: .95rem; margin-bottom: 7px; }
.note p { font-size: .9rem; }

/* ---------------------------------------------------------------- page --- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 62px 54px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(620px 320px at 92% -20%, rgba(34, 227, 242, .13), transparent 66%),
    radial-gradient(560px 340px at 4% 0%, rgba(124, 92, 240, .1), transparent 62%),
    var(--bg-tint);
}
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); letter-spacing: -.025em; }
.page-hero .lead { max-width: 700px; margin-top: 16px; font-size: 1.04rem; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 12.5px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue-ink); }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12.5px;
}
.page-meta span { display: inline-flex; align-items: center; gap: 7px; }
.page-meta b { color: var(--ink-2); font-weight: 600; }

/* ------------------------------------------------------------------ toc --- */
.docs-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding-right: 8px;
}
.toc p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 15px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--blue-ink); border-left-color: var(--blue-ink); font-weight: 600; }

.doc-section { padding-bottom: 52px; margin-bottom: 52px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.doc-section h2 { font-size: clamp(1.35rem, 2.1vw, 1.72rem); margin-bottom: 8px; }
.doc-section > .sec-num {
  display: block;
  margin-bottom: 10px;
  color: var(--blue-ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
}
.doc-section h3 { font-size: 1.02rem; margin: 26px 0 10px; }
.doc-section h4 { font-size: .95rem; margin: 20px 0 8px; }
.doc-section p { margin-top: 10px; }
.doc-section ul.bullets { margin-top: 14px; display: grid; gap: 9px; }
.doc-section ul.bullets li { position: relative; padding-left: 17px; font-size: .95rem; }
.doc-section ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue-ink);
}

.code-inline {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: .86em;
}

/* ---------------------------------------------------------------- cta --- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: 84px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(760px 420px at 84% 6%, rgba(34, 227, 242, .22), transparent 64%),
    radial-gradient(720px 440px at 8% 100%, rgba(124, 92, 240, .18), transparent 62%),
    linear-gradient(180deg, #f7faff 0%, #f2f6fd 100%);
}
.cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-grad);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.cta h2 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); margin-bottom: 10px; }
.cta p { max-width: 560px; font-size: .98rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------- footer --- */
.site-footer {
  padding-top: 60px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .8fr));
  gap: 40px;
  padding-bottom: 46px;
}
.footer-brand p { max-width: 330px; margin-top: 16px; color: var(--muted); font-size: .89rem; line-height: 1.8; }
.footer-col h3 {
  margin-bottom: 15px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--body-c); font-size: .9rem; }
.footer-col a:hover { color: var(--blue-ink); }
.footer-col span { color: var(--muted); font-size: .9rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
.footer-bottom p { max-width: 760px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------------------------------------------------------------- modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 26, .52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade .2s var(--ease);
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-3);
  animation: pop .22s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.modal__close svg { width: 15px; height: 15px; }

.modal__title { font-size: 1.24rem; letter-spacing: -.02em; }
.modal__desc { margin-top: 8px; font-size: .9rem; color: var(--muted); }

.modal__version {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.modal__version span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 11.5px;
  font-family: var(--mono);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-tint);
}
.qr-img {
  display: block;
  width: 100%;
  max-width: 172px;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}
.qr-label {
  margin-top: 12px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}
.qr-hint { margin-top: 4px; color: var(--muted); font-size: 11px; text-align: center; }

.modal__foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}
.modal__foot a { text-decoration: underline; text-underline-offset: 3px; }

body.is-locked { overflow: hidden; }

/* ------------------------------------------------------------ utilities --- */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.text-c { text-align: center; }
.small { font-size: .875rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------ responsive --- */
@media (max-width: 1080px) {
  .hero-grid { gap: 40px; }
  .split { gap: 44px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 920px) {
  .nav {
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    display: none;
    margin: 0;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 30px -22px rgba(12, 21, 38, .3);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 12px 14px; font-size: 15px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .header-inner { gap: 12px; }
  .nav { margin-left: auto; }

  .hero { padding-block: 54px 62px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero h1 { font-size: clamp(2rem, 7vw, 2.7rem); }
  .app-window { max-width: 560px; }

  .section { padding-block: 68px; }
  .split, .split--flip { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split--flip .split__media { order: 0; }
  .section-head { margin-bottom: 38px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-tint); }
  .doc-section { padding-bottom: 40px; margin-bottom: 40px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 660px) {
  .wrap { padding-inline: 18px; }
  .grid--2, .grid--3, .grid--4, .note-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 22px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-top: 22px;
  }
  .hero-stats div { padding: 0; margin: 0; border-right: 0; }
  .hero-stats b { font-size: 1.22rem; }
  .hero-stats span { font-size: 11.5px; line-height: 1.5; }
  .hero-actions .btn { flex: 1 1 100%; }
  .modal__dialog { padding: 24px 20px; }
  .qr-item { padding: 14px 8px; }
  .qr-label { font-size: 11.5px; }
  .qr-hint { font-size: 10px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .app-tabs { flex-wrap: wrap; }
  .data-table { min-width: 560px; }
  .steps > li { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .steps > li::before { width: 36px; height: 36px; font-size: 12px; }
  .steps > li::after { left: 17.5px; top: 36px; }
  .trust ul { gap: 10px 18px; }
}
