/* ==========================================================================
   Nebula API — Design System
   视觉基调：留白、细边框、克制的紫蓝渐变（参考主流模型平台的科技极简风）
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #12121c;
  --ink-2: #33364a;
  --muted: #6a6f80;
  --muted-2: #9aa0b0;
  --line: #e9ebf2;
  --line-2: #f1f3f8;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --bg-ink: #12121c;

  --brand: #5b4bff;
  --brand-600: #4a3ae8;
  --brand-100: #efedff;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --ok: #0b9e6e;
  --ok-bg: #eafaf3;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --danger: #dc2626;

  --grad: linear-gradient(118deg, #5b4bff 0%, #8b5cf6 58%, #22d3ee 128%);
  --grad-soft: linear-gradient(135deg, rgba(91, 75, 255, .1), rgba(139, 92, 246, .07) 55%, rgba(34, 211, 238, .08));

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 26px;

  --sh-1: 0 1px 2px rgba(18, 18, 28, .04);
  --sh-2: 0 2px 8px rgba(18, 18, 28, .04), 0 18px 40px -24px rgba(18, 18, 28, .18);
  --sh-3: 0 30px 70px -40px rgba(35, 26, 90, .35), 0 2px 8px rgba(18, 18, 28, .04);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --max: 1200px;
  --hdr: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.03em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(91, 75, 255, .16); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  height: var(--hdr);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-2);
}
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; letter-spacing: -.02em; flex-shrink: 0; }
.brand-mark { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.brand-mark img, .brand-mark svg { width: 28px; height: 28px; display: block; }
.brand small { display: block; font-size: 10px; font-weight: 500; color: var(--muted-2); letter-spacing: .08em; text-transform: uppercase; line-height: 1; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav a {
  padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); font-weight: 500;
  transition: background .16s, color .16s;
}
.nav a:hover { background: var(--bg-soft); color: var(--brand); }

.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.seg {
  display: inline-flex; align-items: center; padding: 2px; gap: 1px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
}
.seg button {
  border: 0; background: transparent; cursor: pointer; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--muted); transition: all .16s; line-height: 1.5;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(18, 18, 28, .08); }

/* ---------- Mobile nav ---------- */
.hamb {
  display: none; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; align-items: center; justify-content: center; cursor: pointer; padding: 0; margin-left: 2px;
}
.hamb svg { width: 18px; height: 18px; color: var(--ink-2); }
.mnav {
  display: none; position: absolute; top: var(--hdr); left: 0; right: 0; z-index: 59;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(18,18,28,.35);
  padding: 10px 18px 18px;
}
.mnav.open { display: block; }
.mnav a.mlink { display: block; padding: 11px 8px; font-size: 15px; font-weight: 500; border-radius: 8px; color: var(--ink-2); }
.mnav a.mlink:hover { background: var(--bg-soft); color: var(--brand); }
.mnav .row { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.mnav .row .btn { flex: 1; }
.mnav hr { border: 0; border-top: 1px solid var(--line-2); margin: 12px 0 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .14s, box-shadow .18s, background .18s, border-color .18s, color .18s;
  background: #fff; color: var(--ink);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -10px rgba(91, 75, 255, .9); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 10px 24px -12px rgba(91, 75, 255, .85); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #262636; }
.btn-ghost { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn-ghost:hover { border-color: #d5d9e6; background: #fcfcff; }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 12px; }
.btn-quiet:hover { background: var(--bg-soft); }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 11px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: 76px 0 84px;
  background: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 780px; z-index: 0;
  background:
    radial-gradient(720px 380px at 22% 0%, rgba(91, 75, 255, .13), transparent 62%),
    radial-gradient(680px 360px at 80% 4%, rgba(139, 92, 246, .12), transparent 64%),
    radial-gradient(560px 300px at 52% 26%, rgba(34, 211, 238, .08), transparent 68%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-2); box-shadow: var(--sh-1);
  transition: border-color .18s, box-shadow .18s;
}
.pill:hover { border-color: #cfc9ff; box-shadow: 0 4px 14px -8px rgba(91, 75, 255, .6); }
.pill b {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--brand-600);
  background: var(--brand-100); border-radius: 999px; padding: 2px 8px;
}
.pill svg { width: 13px; height: 13px; color: var(--muted-2); }

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.1;
  letter-spacing: -.045em;
  font-weight: 750;
}
.hero h1 .grad {
  display: inline-block;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 22px auto 0; max-width: 720px;
  font-size: 16.5px; line-height: 1.8; color: var(--muted);
}
.hero-cta { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-trust { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.hero-trust svg { width: 14px; height: 14px; color: var(--brand); flex-shrink: 0; }

/* ---------- 控制台模拟卡片 ---------- */
.mock-wrap { position: relative; max-width: 1020px; margin: 54px auto 0; }
.mock {
  border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(35, 26, 90, .45), 0 1px 0 rgba(255, 255, 255, .8) inset;
  text-align: left;
}
.mock-bar {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 16px;
  border-bottom: 1px solid var(--line-2); background: #fbfbfe;
}
.mdots { display: flex; gap: 6px; }
.mdots i { width: 9px; height: 9px; border-radius: 50%; background: #e2e5ef; }
.murl {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2);
  background: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 10px; max-width: 340px; margin: 0 auto;
}
.mlive { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ok); font-weight: 600; }
.mlive i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.mock-body { display: grid; grid-template-columns: 208px 1fr; min-height: 340px; }
.mock-side { border-right: 1px solid var(--line-2); background: #fcfcfe; padding: 14px 12px; }
.ms-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; font-size: 12.5px; color: var(--muted); }
.ms-item.on { background: #fff; color: var(--ink); font-weight: 600; border: 1px solid var(--line-2); }
.ms-item svg { width: 14px; height: 14px; color: var(--muted-2); }
.ms-item.on svg { color: var(--brand); }
.ms-label { margin: 16px 0 6px; padding: 0 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.ms-models { display: grid; gap: 2px; }
.ms-models span { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 7px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.ms-models span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #dfe3ef; flex-shrink: 0; }
.ms-models span.on { background: var(--brand-100); color: var(--brand-600); font-weight: 600; }
.ms-models span.on::before { background: var(--brand); }

.mock-main { display: flex; flex-direction: column; min-width: 0; }
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.mm-model { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 9px; }
.mm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.mm-tags { display: flex; gap: 6px; }
.tagpill { font-size: 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

.mock-chat { padding: 18px 16px; display: grid; gap: 12px; flex: 1; min-width: 0; }
.bubble { border-radius: 12px; padding: 11px 13px; font-size: 12.8px; line-height: 1.7; max-width: 92%; min-width: 0; overflow-wrap: anywhere; }
.bubble.user { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai { background: #fbfbfe; border: 1px solid var(--line-2); border-bottom-left-radius: 4px; color: var(--ink-2); }
.bubble.ai .who { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.avatar { width: 17px; height: 17px; border-radius: 5px; background: var(--grad); color: #fff; font-size: 8.5px; font-weight: 700; display: grid; place-items: center; font-family: var(--font); }
.bubble.ai pre {
  max-width: 100%;
  margin: 8px 0 0; padding: 9px 11px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.4px; line-height: 1.65; color: #4b5068; overflow-x: auto;
}
.bubble.ai .ok { margin-top: 8px; font-size: 11.5px; color: var(--ok); display: flex; align-items: center; gap: 5px; }
.bubble.ai .ok::before { content: "✓"; font-weight: 700; }
.mock-foot {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 16px; border-top: 1px solid var(--line-2); background: #fcfcfe;
  font-size: 11.5px; color: var(--muted);
}
.mock-foot b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.mf-badge { margin-left: auto; color: var(--brand-600); background: var(--brand-100); border-radius: 999px; padding: 2px 9px; font-weight: 600; }


/* ---------- Logo strip ---------- */
.logos { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: #fff; padding: 26px 0; }
.logos .wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.logos .label { font-size: 12.5px; color: var(--muted-2); flex-shrink: 0; }
.logo-list { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; justify-content: center; }
.logo-list span { font-size: 15px; font-weight: 700; color: #a6abbb; letter-spacing: -.02em; transition: color .2s; }
.logo-list span:hover { color: var(--ink-2); }

/* ---------- Section ---------- */
.sec { padding: 92px 0; }
.sec-soft { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.sec-head { max-width: 720px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--brand); margin-bottom: 14px;
}
.sec h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.04em; line-height: 1.25; }
.sec-sub { margin-top: 14px; font-size: 15.5px; color: var(--muted); line-height: 1.8; }

/* ---------- 产品矩阵 ---------- */
.prods { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod {
  display: flex; flex-direction: column; padding: 26px 22px 22px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: #fff; transition: transform .2s, box-shadow .24s, border-color .2s;
}
.prod:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #dcd8ff; }
.prod-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(91, 75, 255, .1); margin-bottom: 16px;
}
.prod-ico svg { width: 20px; height: 20px; color: var(--brand); }
.prod h3 { font-size: 16px; letter-spacing: -.02em; }
.prod p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.72; flex: 1; }
.prod .more { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 5px; }
.prod .more svg { width: 13px; height: 13px; transition: transform .18s; }
.prod:hover .more svg { transform: translateX(3px); }

/* ---------- 核心优势 ---------- */
.advs { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.adv { background: #fff; padding: 30px 26px; transition: background .2s; }
.adv:hover { background: #fcfcff; }
.adv-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-100); margin-bottom: 16px; }
.adv-ico svg { width: 18px; height: 18px; color: var(--brand); }
.adv h3 { font-size: 15.5px; }
.adv p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.adv b { color: var(--brand-600); font-weight: 700; }

/* ---------- Pricing ---------- */
.plans { margin-top: 42px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  transition: transform .2s, box-shadow .24s, border-color .2s;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: #dcd8ff; }
.plan.hot {
  border-color: var(--brand); border-width: 1.5px;
  box-shadow: 0 18px 44px -26px rgba(91, 75, 255, .55);
  background: linear-gradient(180deg, #fbfaff, #fff 42%);
}
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 11px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap;
}
.plan-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.plan-tag { margin-top: 6px; font-size: 12.5px; color: var(--muted); min-height: 19px; }
.plan-price { margin-top: 18px; display: flex; align-items: baseline; gap: 5px; }
.plan-price .amt { font-size: 36px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.plan-price .cur { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.plan-price .per { font-size: 12.5px; color: var(--muted-2); margin-left: 2px; }
.plan-credit {
  margin-top: 12px; padding: 9px 12px; border-radius: 9px; background: var(--bg-soft);
  font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line-2);
}
.plan-credit b { font-weight: 700; }
.plan-credit .bonus { color: var(--ok); font-weight: 700; font-size: 11.5px; background: var(--ok-bg); padding: 2px 7px; border-radius: 999px; }
.plan-aud { margin-top: 14px; font-size: 12.5px; color: var(--muted); display: flex; gap: 7px; align-items: flex-start; }
.plan-aud svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; color: var(--brand); }
.plan ul { margin: 16px 0 22px; display: grid; gap: 9px; }
.plan li { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.plan li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--brand); }
.plan .btn { margin-top: auto; }

.pay-note {
  margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.pay-note .item { display: flex; align-items: center; gap: 7px; }
.pay-note svg { width: 15px; height: 15px; color: var(--muted-2); }

.topup {
  margin-top: 18px; padding: 20px 22px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.topup .txt { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.topup .txt span { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.topup .field { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 42px; }
.topup .field span { color: var(--muted-2); font-size: 14px; font-weight: 600; }
.topup .field input { border: 0; outline: 0; width: 110px; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; background: transparent; }
.topup .eq { font-size: 12.5px; color: var(--muted); }
.topup .eq b { color: var(--ink); }
.topup .grow { margin-left: auto; }

/* ---------- Model table ---------- */
.tbl-box { margin-top: 38px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.tbl-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: all .16s;
}
.chip:hover { border-color: #cfc9ff; color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tbl-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; height: 34px; min-width: 200px; }
.tbl-search svg { width: 14px; height: 14px; color: var(--muted-2); }
.tbl-search input { border: 0; background: transparent; outline: 0; font-size: 13px; width: 100%; }

table.models { width: 100%; border-collapse: collapse; }
table.models th {
  text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted-2); padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fcfcfe;
}
table.models td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; vertical-align: middle; }
table.models tr:last-child td { border-bottom: 0; }
table.models tbody tr { transition: background .14s; }
table.models tbody tr:hover { background: #fbfaff; }
.m-name { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 13.5px; }
.m-vendor { font-size: 11.5px; color: var(--muted-2); font-weight: 400; font-family: var(--mono); }
.m-badge { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--brand-100); color: var(--brand-600); }
.m-badge.soon { background: #f2f4f9; color: var(--muted-2); }
.m-cap { display: inline-flex; gap: 4px; }
.m-cap i {
  font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 5px;
}
.m-price { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12.5px; }
.m-price em { font-style: normal; color: var(--muted-2); }
.tbl-foot { padding: 12px 18px; font-size: 12px; color: var(--muted-2); border-top: 1px solid var(--line-2); background: #fcfcfe; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- 接入：步骤 + 代码 ---------- */
.start-grid { margin-top: 44px; display: grid; grid-template-columns: 1fr 1.02fr; gap: 48px; align-items: center; }
.steps { display: grid; gap: 2px; counter-reset: s; }
.step { position: relative; padding: 18px 0 18px 58px; border-bottom: 1px solid var(--line-2); }
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 18px;
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--brand);
  background: var(--brand-100); border: 1px solid rgba(91, 75, 255, .14);
}
.step h3 { font-size: 16px; }
.step p { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.step code { font-family: var(--mono); font-size: 12px; background: var(--bg-soft); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 5px; color: var(--brand-600); }

.code-card {
  background: #14141f; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(18, 18, 28, .6);
  border: 1px solid rgba(255, 255, 255, .07);
}
.code-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.code-dots { display: flex; gap: 6px; }
.code-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.code-tabs { display: flex; gap: 2px; margin-left: 8px; }
.code-tabs button {
  background: transparent; border: 0; color: rgba(255, 255, 255, .48); font-size: 11.5px;
  font-weight: 600; padding: 4px 9px; border-radius: 6px; cursor: pointer; letter-spacing: .02em;
}
.code-tabs button.on { background: rgba(255, 255, 255, .1); color: #fff; }
.code-body { padding: 16px 16px 18px; overflow-x: auto; }
.code-body pre { margin: 0; font-family: var(--mono); font-size: 12.4px; line-height: 1.85; color: #c8d3f5; }
.code-body .k { color: #a78bfa; }
.code-body .s { color: #7dd3fc; }
.code-body .c { color: #5b6785; font-style: italic; }
.code-body .f { color: #67e8f9; }
.code-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 11.5px; color: rgba(255, 255, 255, .42); font-family: var(--mono);
}
.code-foot .live { display: inline-flex; align-items: center; gap: 6px; color: #34d399; }
.code-foot .live i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Metrics ---------- */
.metrics { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.metric { padding: 26px 24px 4px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric .v { font-size: 32px; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric .v small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.metric .v small.plus { font-size: 20px; color: var(--brand); font-weight: 700; }
.metric .l { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { margin-top: 36px; display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: #dcd8ff; box-shadow: 0 6px 20px -16px rgba(91, 75, 255, .5); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 17px 20px; font-size: 14.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  flex-shrink: 0; transition: transform .22s, background .2s, border-color .2s;
}
.faq-item summary .ic svg { width: 12px; height: 12px; color: var(--muted); }
.faq-item[open] summary .ic { transform: rotate(45deg); background: var(--brand); border-color: var(--brand); }
.faq-item[open] summary .ic svg { color: #fff; }
.faq-item .ans { padding: 0 20px 18px; font-size: 13.5px; color: var(--muted); line-height: 1.85; max-width: 92%; }

/* ---------- 双 CTA ---------- */
.cta2 { padding: 0 0 92px; }
.cta2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cta2-card {
  position: relative; overflow: hidden; padding: 40px 38px; border-radius: var(--r-xl);
  border: 1px solid var(--line); background: #fff;
}
.cta2-card.dark {
  border-color: transparent; color: #fff;
  background: radial-gradient(700px 320px at 12% -10%, rgba(139, 92, 246, .55), transparent 62%),
    radial-gradient(600px 300px at 92% 120%, rgba(34, 211, 238, .28), transparent 64%), #16132b;
}
.cta2-card h2 { font-size: clamp(22px, 2.6vw, 29px); letter-spacing: -.035em; }
.cta2-card p { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 420px; }
.cta2-card.dark p { color: rgba(255, 255, 255, .68); }
.cta2-card .row { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta2-card.dark .btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.cta2-card.dark .btn-ghost:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Footer ---------- */
.ftr { background: #fbfbfd; border-top: 1px solid var(--line-2); padding: 60px 0 32px; }
.ftr-grid { display: grid; grid-template-columns: 1.8fr repeat(4, 1fr); gap: 36px; }
.ftr-brand p { margin-top: 16px; font-size: 13px; color: var(--muted); max-width: 300px; line-height: 1.8; }
.ftr h4 { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em; }
.ftr ul { display: grid; gap: 10px; }
.ftr a { font-size: 13.5px; color: var(--muted); }
.ftr a:hover { color: var(--brand); }
.ftr-bot { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); }
.ftr-bot .badges { display: flex; gap: 16px; flex-wrap: wrap; }
.ftr-bot .badges span { display: inline-flex; align-items: center; gap: 5px; }
.ftr-bot svg { width: 13px; height: 13px; }

/* ---------- Forms ---------- */
.form-row { display: grid; gap: 7px; }
.form-row label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.input {
  height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 14px; width: 100%; transition: border-color .16s, box-shadow .16s; outline: 0;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 75, 255, .12); }
.input::placeholder { color: #a8b0c2; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a6f80' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; z-index: 200; top: 80px; right: 24px; display: grid; gap: 10px; pointer-events: none; }
.toast {
  min-width: 260px; max-width: 360px; background: var(--ink); color: #fff; border-radius: 11px;
  padding: 13px 16px; font-size: 13.5px; box-shadow: var(--sh-3); display: flex; gap: 10px; align-items: flex-start;
  animation: toastIn .24s cubic-bezier(.2, .8, .2, 1);
}
.toast.ok { background: #065f46; }
.toast.err { background: #7f1d1d; }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---------- Reveal on scroll ---------- */
.reveal { transition: opacity .6s, transform .6s; }
.reveal.pending { opacity: 0; transform: translateY(14px); }
.reveal.pending.in { opacity: 1; transform: none; }
.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; }
}

/* ==========================================================================
   Console
   ========================================================================== */
.app-shell { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - var(--hdr)); }
.side { border-right: 1px solid var(--line-2); padding: 22px 14px; background: #fcfcfe; }
.side .grp { margin-bottom: 22px; }
.side .grp-t { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); padding: 0 10px 8px; }
.side a {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px;
  font-size: 13.5px; color: var(--ink-2); font-weight: 500; transition: background .14s, color .14s;
}
.side a svg { width: 16px; height: 16px; color: var(--muted-2); }
.side a:hover { background: #f1f3f9; }
.side a.on { background: #fff; color: var(--ink); font-weight: 650; box-shadow: var(--sh-1); border: 1px solid var(--line-2); }
.side a.on svg { color: var(--brand); }

.main { padding: 28px 32px 60px; max-width: 1160px; width: 100%; margin: 0 auto; }
.page-t { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-t h1 { font-size: 24px; letter-spacing: -.03em; }
.page-t p { font-size: 13.5px; color: var(--muted); margin-top: 5px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; background: #fff; }
.kpi .k { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .v { margin-top: 8px; font-size: 26px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .d { margin-top: 4px; font-size: 11.5px; color: var(--muted-2); }

.panel { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; margin-top: 16px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.panel-h h3 { font-size: 14.5px; }
.panel-b { padding: 18px; }
.panel-b.flush { padding: 0; }

.onboard { display: grid; gap: 10px; }
.onboard-step { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; }
.onboard-step .n { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-soft); color: var(--ink-2); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.onboard-step.done .n { background: #dcfce7; color: #15803d; }
.onboard-step .b { flex: 1; min-width: 0; }
.onboard-step .b b { font-size: 13.5px; }
.onboard-step .b p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.onboard-step > .btn { flex-shrink: 0; }
.onboard-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

.guide-step { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.guide-step:first-of-type { padding-top: 0; }
.guide-step:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.guide-step .g-n { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.guide-step .g-b { flex: 1; min-width: 0; }
.guide-step .g-b b { font-size: 13.5px; }
.guide-step .g-b p { margin: 4px 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.guide-step .g-b .btn { margin-bottom: 2px; }
.guide-hint { margin: 8px 0 0 !important; font-size: 12px !important; color: var(--muted-2) !important; }
.guide-errors { border-top: 1px solid var(--line-2); padding-top: 12px; font-size: 12.5px; color: var(--muted); }
.guide-errors b { color: var(--ink-2); }
.guide-errors ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.85; }
.guide-errors code { font-family: var(--mono); font-size: 11.5px; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 4px; }

table.flat { width: 100%; border-collapse: collapse; }
table.flat th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; padding: 10px 18px; border-bottom: 1px solid var(--line-2); background: #fcfcfe; }
table.flat td { padding: 12px 18px; font-size: 13px; border-bottom: 1px solid var(--line-2); }
table.flat tr:last-child td { border-bottom: 0; }
table.flat td.mono { font-family: var(--mono); font-size: 12px; }

.keychip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; background: var(--bg-soft); border: 1px solid var(--line-2); padding: 3px 9px; border-radius: 7px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.off { background: #f2f4f9; color: var(--muted-2); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.spark i { flex: 1; background: linear-gradient(#6366f1, #a5b4fc); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; transition: opacity .2s; }
.spark i:hover { opacity: 1; }

/* Auth page */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--hdr)); }
.auth-left { padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-card { max-width: 400px; width: 100%; margin: 0 auto; }
.auth-card h1 { font-size: 27px; letter-spacing: -.03em; }
.auth-card .sub { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.auth-tabs { display: flex; gap: 4px; background: var(--bg-soft); border-radius: 11px; padding: 4px; margin: 22px 0; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.auth-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.auth-form { display: grid; gap: 14px; }
.auth-form .forgot-link { margin: -1px 0 0; text-align: right; font-size: 12.5px; }
.auth-form .forgot-link a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.auth-right { background: var(--bg-ink); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 56px; }
.auth-right::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 10%, rgba(91, 75, 255, .45), transparent 60%), radial-gradient(500px 260px at 90% 90%, rgba(34, 211, 238, .26), transparent 62%); }
.auth-right > * { position: relative; }
.auth-right h2 { color: #fff; font-size: 24px; letter-spacing: -.03em; }
.auth-right p { color: rgba(255, 255, 255, .62); font-size: 13.5px; margin-top: 10px; }
.auth-list { margin-top: 26px; display: grid; gap: 14px; }
.auth-list div { display: flex; gap: 11px; color: rgba(255, 255, 255, .82); font-size: 13.5px; align-items: flex-start; }
.auth-list svg { width: 17px; height: 17px; color: #6ee7b7; flex-shrink: 0; margin-top: 2px; }

/* ==========================================================================
   Docs
   ========================================================================== */
.doc-shell { display: grid; grid-template-columns: 220px 1fr; gap: 44px; padding: 40px 0 80px; }
.doc-nav { position: sticky; top: calc(var(--hdr) + 26px); align-self: start; }
.doc-nav .grp-t { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px; }
.doc-nav a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); border-left: 2px solid transparent; }
.doc-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.doc-body { min-width: 0; }
.doc-body h1 { font-size: 32px; letter-spacing: -.035em; }
.doc-body h2 { font-size: 20px; margin: 42px 0 12px; padding-top: 10px; scroll-margin-top: 90px; }
.doc-body h3 { font-size: 15px; margin: 26px 0 8px; }
.doc-body p { font-size: 14px; color: var(--ink-2); line-height: 1.8; margin: 10px 0; }
.doc-body ul { margin: 10px 0; padding-left: 0; display: grid; gap: 6px; }
.doc-body ul li { font-size: 14px; color: var(--ink-2); padding-left: 16px; position: relative; }
.doc-body ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }
.doc-body code.inline { font-family: var(--mono); font-size: 12.5px; background: var(--bg-soft); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 5px; color: var(--brand-600); }
pre.block { position: relative; background: #0d1226; color: #c8d3f5; border-radius: var(--r); padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 12.6px; line-height: 1.8; margin: 14px 0; }
pre.block .c { color: #5b6785; }
pre.block .s { color: #7dd3fc; }
pre.block .k { color: #a78bfa; }
.copy-btn { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 6px; cursor: pointer; opacity: 0; transition: opacity .2s; }
pre.block:hover .copy-btn { opacity: 1; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--brand-100); border: 1px solid rgba(79, 70, 229, .14); margin: 16px 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.callout svg { width: 17px; height: 17px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }

/* ==========================================================================
   Pay page
   ========================================================================== */
.pay-wrap { max-width: 980px; margin: 0 auto; padding: 44px 24px 80px; }
.pay-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
.order-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; box-shadow: var(--sh-1); }
.order-h { padding: 18px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.order-h h3 { font-size: 15px; }
.order-b { padding: 20px; }
.ch-list { display: grid; gap: 10px; }
.ch {
  display: flex; align-items: center; gap: 13px; padding: 14px 15px; border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; transition: all .16s; background: #fff;
}
.ch:hover { border-color: #cfd6e4; background: #fcfcff; }
.ch.on { border-color: var(--brand); background: #f8f8ff; box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); }
.ch-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line-2); flex-shrink: 0; }
.ch-ico svg { width: 20px; height: 20px; }
.ch-txt { flex: 1; min-width: 0; }
.ch-txt b { font-size: 13.5px; font-weight: 650; display: block; }
.ch-txt > span { font-size: 12px; color: var(--muted); display: block; margin-top: 1px; }
.ch-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; }
.ch.on .ch-radio { border-color: var(--brand); }
.ch.on .ch-radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.ch.locked { cursor: default; }
.ch.locked:hover { border-color: var(--line); background: #fff; }
.ch.locked.on:hover { border-color: var(--brand); background: #f8f8ff; }
.ch-state { display: inline-block; vertical-align: 1px; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); margin-left: 4px; }

.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 9px 0; color: var(--muted); }
.sum-row b { color: var(--ink); font-weight: 650; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 6px; border-top: 1px dashed var(--line); }
.sum-total span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.sum-total b { font-size: 26px; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.demo-note { margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: var(--warn-bg); border: 1px solid #fde68a; font-size: 12px; color: #92400e; line-height: 1.65; display: flex; gap: 8px; }
.demo-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

.qr-box { text-align: center; padding: 8px 0 4px; }
.qr-frame { width: 176px; height: 176px; margin: 0 auto; border-radius: 14px; border: 1px solid var(--line); padding: 10px; background: #fff; box-shadow: var(--sh-1); }
.qr-frame svg { width: 100%; height: 100%; }

.paid-box { text-align: center; padding: 22px 0 8px; }
.paid-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); display: grid; place-items: center; margin: 0 auto 14px; }
.paid-ico svg { width: 26px; height: 26px; color: var(--ok); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .prods { grid-template-columns: repeat(2, 1fr); }
  .advs { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .start-grid { grid-template-columns: 1fr; gap: 36px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:nth-child(odd) { border-right: 1px solid var(--line); }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .app-shell { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; }
  .side .grp { margin: 0; display: flex; gap: 4px; }
  .side .grp-t { display: none; }
  .side a { white-space: nowrap; }
  .side a.on { border: 0; }
  .main { padding: 22px 18px 50px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .float-card { display: none; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hamb { display: inline-flex; }
  .doc-shell { grid-template-columns: 1fr; gap: 10px; }
  .doc-nav { display: none; }
  .pay-grid { grid-template-columns: 1fr; }
  .cta2-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-right { display: none; }
  .hero { padding: 52px 0 60px; }
  .hero-sub { font-size: 15.5px; }
  .mock-wrap { margin-top: 38px; }
  .sec { padding: 64px 0; }
  .cta2 { padding-bottom: 64px; }
  .cta2-card { padding: 30px 24px; }
  .metric .v { font-size: 27px; }
}
@media (max-width: 660px) {
  .wrap { padding: 0 18px; }
  .prods { grid-template-columns: 1fr; }
  .advs { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 20px 16px 0; }
  .ftr-grid { grid-template-columns: 1fr; }
  .hdr-right .seg { display: none; }
  .hdr-right .btn-quiet { display: none; }
  .brand small { display: none; }
  .hdr .wrap { gap: 10px; }
  .hero h1 { font-size: 34px; letter-spacing: -.035em; }
  .hero-trust { gap: 10px 16px; }
  .plan-price .amt { font-size: 32px; }
  table.models th:nth-child(3), table.models td:nth-child(3) { display: none; }
  .tbl-search { min-width: 0; width: 100%; margin-left: 0; }
  .tbl-head { padding: 12px; }
  .topup { padding: 16px; }
  .topup .grow { margin-left: 0; width: 100%; }
  .mock-chat { padding: 14px 12px; }
  .bubble { max-width: 100%; }
  .logos .logo-list { gap: 10px 20px; }
  .logo-list span { font-size: 13.5px; }
  .cards-3 { grid-template-columns: 1fr; }
  .metric:nth-child(odd) { border-right: 0; }
}
@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; }
  .plan-badge { font-size: 10.5px; }
}

.local-demo-notice{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);z-index:1000;background:#fff8e7;color:#805600;border:1px solid #e8cf8c;border-radius:12px;padding:9px 16px;font-size:12px;line-height:1.5;box-shadow:0 4px 18px #00000012;max-width:calc(100vw - 24px);width:max-content;text-align:center;pointer-events:none}

button.ch{width:100%;text-align:left}button.ch:disabled{opacity:.55;cursor:not-allowed}button.ch:disabled:hover{border-color:var(--line);background:#fff}

.ftr-brand .ftr-operator{font-size:11px;line-height:1.8;color:var(--muted-2);overflow-wrap:anywhere}.ftr-operator strong{font-weight:550;color:var(--ink-2)}

.document-links{font-size:11.5px;color:var(--muted-2);text-align:center;line-height:1.9;margin-top:14px;overflow-wrap:anywhere}.document-links a{color:var(--brand);text-decoration:underline;text-underline-offset:3px}

/* ---------- Narrow header: keep the visitor bar inside small viewports ---------- */
@media (max-width: 560px) {
  .hdr .wrap { gap: 10px; }
  .brand small { display: none; }
  .hdr-right { gap: 6px; }
  .hdr-right .btn { padding: 8px 11px; font-size: 12.5px; white-space: nowrap; }
  .hamb { flex-shrink: 0; }
}

/* ---------- Language picker (visitor pages) ---------- */
.lang-picker { display: inline-flex; align-items: center; }
.lang-picker select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line, #e6e6ef); background: #fff; color: #2b2b3d;
  border-radius: 9px; padding: 7px 26px 7px 10px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; max-width: 132px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b6d7e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.lang-picker select:hover { border-color: #cfc8f4; color: #6b4bf5; }
.lang-picker select:focus-visible { outline: 2px solid #cfc8f4; outline-offset: 2px; }
@media (max-width: 560px) {
  .lang-picker select { max-width: 96px; padding: 6px 22px 6px 8px; font-size: 12px; }
}

/* Console usage receipts */
.usage-charge-scroll { overflow-x: auto; }
.usage-charge-details { min-width: 94px; font-size: 12px; }
.usage-charge-details summary { cursor: pointer; color: var(--accent, #5846e9); }
.usage-charge-details dl { margin: 8px 0 0; display: grid; grid-template-columns: auto auto; gap: 5px 10px; min-width: 208px; }
.usage-charge-details dt { color: var(--muted); }
.usage-charge-details dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.usage-charge-bar { margin-top: 10px; display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.usage-charge-bar span { background: #6555ed; }
.usage-charge-bar span:nth-child(2n) { background: #3284ac; }
.usage-charge-bar span:nth-child(3n) { background: #278555; }
