/* ============================================================
   AI 大模型聚合平台 · Marketing Site
   Fully light theme — self-contained stylesheet, no external fonts / libraries
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --ink: #0b1020;
  --ink-2: #24314a;
  --muted: #5b6a83;
  --muted-2: #8b97ab;
  --bg: #ffffff;
  --bg-soft: #f6f7fc;
  --bg-soft-2: #eef1f9;
  --surface: #ffffff;
  --line: #e7eaf3;
  --line-strong: #d8deeb;

  --brand: #6d5efc;
  --brand-2: #4f7cff;
  --brand-3: #06b6d4;
  --brand-grad: linear-gradient(135deg, #7c5cff 0%, #4f7cff 52%, #06b6d4 100%);
  --brand-soft: rgba(109, 94, 252, .09);
  --brand-soft-2: rgba(79, 124, 255, .12);
  --brand-ink: #4c3fe0;

  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, .1);
  --amber: #b45309;
  --amber-soft: rgba(180, 83, 9, .1);
  --danger: #dc2626;

  /* Legacy dark palette tokens removed — the marketing site now uses a fully light theme. */

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(11, 16, 32, .05);
  --shadow-sm: 0 6px 18px -10px rgba(11, 16, 32, .16);
  --shadow-md: 0 20px 44px -22px rgba(11, 16, 32, .26);
  --shadow-lg: 0 40px 90px -40px rgba(11, 16, 32, .42);
  --shadow-brand: 0 16px 38px -16px rgba(109, 94, 252, .5);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--brand-ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
code, pre, .mono { font-family: var(--mono); }
::selection { background: rgba(109, 94, 252, .22); }

:focus-visible { outline: 2px solid rgba(109, 94, 252, .6); outline-offset: 3px; border-radius: 6px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--brand-ink); }

/* thin scrollbars */
* { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfd6e4; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Layout helpers ---------- */
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.text-gradient {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .45; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn .icon { width: 17px; height: 17px; }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff;
  background: var(--brand-grad);
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 20px 44px -16px rgba(109, 94, 252, .6), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost {
  color: var(--ink-2);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { color: var(--brand-ink); border-color: rgba(109, 94, 252, .4); background: #fbfbff; }
.btn-dark-ghost {
  color: var(--ink-2);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn-dark-ghost:hover { color: var(--brand-ink); border-color: rgba(109, 94, 252, .4); background: #fbfbff; }
.btn-lg { --btn-h: 50px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-sm { --btn-h: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 600;
}
.link-arrow .icon { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow-sm { font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px -22px rgba(11, 16, 32, .4);
  background: rgba(255, 255, 255, .94);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 10px 22px -10px rgba(109, 94, 252, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: inherit; }
.brand-mark.has-logo { background: transparent; box-shadow: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 3px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.site-nav .nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.site-nav .nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-grad);
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.site-nav .nav-link.is-active { color: var(--ink); font-weight: 600; }
.site-nav .nav-link.is-active::after { opacity: 1; transform: scaleX(1); }
.nav-mobile-actions { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-menu { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(760px 420px at 10% -10%, rgba(124, 92, 255, .16), transparent 62%),
    radial-gradient(680px 400px at 94% -6%, rgba(6, 182, 212, .12), transparent 64%),
    linear-gradient(180deg, #f7f9ff 0%, #fbfcff 58%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-grid {
  position: absolute;
  inset: -10% -10% 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 68% at 50% 8%, #000 38%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 80% 68% at 50% 8%, #000 38%, transparent 76%);
  opacity: .8;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .32;
  pointer-events: none;
}
.hero-orb-1 { width: 560px; height: 560px; top: -240px; left: -120px; background: radial-gradient(circle, rgba(124, 92, 255, .38), transparent 68%); }
.hero-orb-2 { width: 620px; height: 620px; top: -180px; right: -200px; background: radial-gradient(circle, rgba(6, 182, 212, .26), transparent 68%); }
.hero-orb-3 { width: 520px; height: 520px; bottom: -320px; left: 34%; background: radial-gradient(circle, rgba(79, 124, 255, .2), transparent 70%); }
.hero-fade {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .72) 70%, #ffffff);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: 56px;
  padding: 96px 0 116px;
}
.hero-copy { max-width: 620px; }
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(109, 94, 252, .18);
  background: rgba(255, 255, 255, .88);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(8px);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .16);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, .16); }
  50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, .06); }
}
.hero h1 {
  margin: 24px 0 0;
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 760;
  color: var(--ink);
}
.hero h1 .text-gradient { filter: drop-shadow(0 6px 24px rgba(109, 94, 252, .18)); }
.hero-lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.75;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 34px;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.hero-meta .icon { width: 15px; height: 15px; color: var(--emerald); stroke-width: 2.4; }

/* hero code window */
.hero-visual { position: relative; min-width: 0; }
.code-window {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 34px 74px -46px rgba(15, 23, 42, .38), 0 1px 0 rgba(255, 255, 255, .9) inset;
  overflow: hidden;
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfdff, #f7f9ff);
}
.window-dots { display: inline-flex; gap: 6px; flex: none; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: #dbe2ef; }
.window-dots i:nth-child(1) { background: #fda4af; }
.window-dots i:nth-child(2) { background: #fcd34d; }
.window-dots i:nth-child(3) { background: #6ee7b7; }
.window-title { font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid rgba(5, 150, 105, .22);
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}
.pulse-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); flex: none; }
.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.code-copy .icon { width: 13px; height: 13px; }
.code-copy:hover { background: var(--bg-soft); color: var(--brand-ink); border-color: var(--line-strong); }
.code-copy.is-copied { color: var(--emerald); border-color: rgba(5, 150, 105, .34); background: var(--emerald-soft); }
.code-tabs { display: flex; gap: 2px; padding: 10px 14px 0; }
.code-tab {
  padding: 6px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.code-tab:hover { color: var(--ink); }
.code-tab.is-active { color: var(--brand-ink); background: var(--brand-soft); }
.code-body { padding: 12px 0 6px; background: #ffffff; }
.code-panel {
  margin: 0;
  padding: 8px 18px 14px;
  font-size: 12.3px;
  line-height: 1.75;
  color: var(--ink-2);
  overflow-x: auto;
  tab-size: 2;
}
.code-panel[hidden] { display: none; }
.code-panel code { font-family: var(--mono); }
.tok-kw { color: #7c3aed; }
.tok-str { color: #047857; }
.tok-key { color: #1d4ed8; }
.tok-num { color: #b45309; }
.tok-fn { color: #be185d; }
.tok-cm { color: #94a3b8; }
.code-preview { border-top: 1px solid var(--line); background: var(--bg-soft); }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px 0; }
.preview-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--muted-2); }
.preview-meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.preview-body { margin: 0; padding: 10px 18px 16px; font-size: 11.5px; line-height: 1.7; color: var(--ink-2); overflow-x: auto; }
.preview-body code { font-family: var(--mono); }

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  animation: float 7s ease-in-out infinite;
}
.float-card-a { left: 22px; top: calc(100% + 16px); }
.float-card-b { right: 22px; top: calc(100% + 16px); animation-delay: -3.2s; }
.float-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: 1px solid rgba(109, 94, 252, .14);
  color: var(--brand-ink);
  flex: none;
}
.float-icon-cyan { background: rgba(6, 182, 212, .1); border-color: rgba(6, 182, 212, .18); color: #0891b2; }
.float-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.float-text { display: flex; flex-direction: column; line-height: 1.3; }
.float-text strong { font-size: 12px; color: var(--ink); font-weight: 600; }
.float-text small { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Metrics band ---------- */
.metrics-band { background: var(--bg); border-bottom: 1px solid var(--line); }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 38px 0;
}
.metric {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 20px;
  text-align: center;
}
.metric + .metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 34px;
  background: var(--line);
}
.metric-value {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 760;
  letter-spacing: -.03em;
  line-height: 1.1;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-value-sm { font-size: clamp(1.15rem, 2.1vw, 1.5rem); letter-spacing: -.01em; }
.metric-label { font-size: 12.5px; color: var(--muted); letter-spacing: .01em; }

/* ---------- Section headers ---------- */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow-line { width: 24px; height: 2px; border-radius: 2px; background: var(--brand-grad); }
.section-head h2, .section-title {
  margin-top: 16px;
  font-size: clamp(1.85rem, 3.3vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -.028em;
  font-weight: 730;
  color: var(--ink);
}
.section-sub { margin-top: 16px; font-size: 15.5px; line-height: 1.75; color: var(--muted); }

/* ---------- Features ---------- */
.features { background: linear-gradient(180deg, #fff 0%, #f9fafe 100%); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card {
  position: relative;
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--brand-grad);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(109, 94, 252, .28); box-shadow: var(--shadow-md); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border: 1px solid rgba(109, 94, 252, .12);
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon-violet { color: #7c3aed; background: rgba(124, 58, 237, .09); border-color: rgba(124, 58, 237, .12); }
.feature-icon-cyan { color: #0891b2; background: rgba(8, 145, 178, .09); border-color: rgba(8, 145, 178, .12); }
.feature-icon-amber { color: var(--amber); background: var(--amber-soft); border-color: rgba(180, 83, 9, .14); }
.feature-icon-emerald { color: var(--emerald); background: var(--emerald-soft); border-color: rgba(5, 150, 105, .14); }
.feature-icon-blue { color: #2563eb; background: rgba(37, 99, 235, .09); border-color: rgba(37, 99, 235, .12); }
.feature-card h3 { margin-top: 20px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.feature-card p { margin-top: 9px; font-size: 13.8px; line-height: 1.7; color: var(--muted); }
.feature-card code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: .01em;
}

/* ---------- Steps ---------- */
.steps-section { background: var(--bg-soft); border-block: 1px solid var(--line); }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step-card {
  position: relative;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--brand-grad);
  opacity: .8;
}
.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--brand-ink);
}
.step-card h3 { margin-top: 14px; font-size: 17.5px; font-weight: 650; letter-spacing: -.01em; }
.step-card p { margin-top: 9px; font-size: 13.8px; line-height: 1.7; color: var(--muted); min-height: 72px; }
.step-card p code { padding: 1px 5px; border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.step-code {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.step-code code { font-family: var(--mono); font-size: 11.5px; color: var(--brand-ink); white-space: nowrap; }

/* ---------- Pricing preview / price table ---------- */
.pricing-preview { background: linear-gradient(180deg, #fff, #f7f9ff); }
.pricing-preview-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.pricing-preview-head h2 { margin-top: 16px; font-size: clamp(1.85rem, 3.3vw, 2.5rem); line-height: 1.2; letter-spacing: -.028em; font-weight: 730; }
.pricing-preview-head .section-sub { max-width: 620px; margin-top: 14px; }
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfdff, #f9fafe);
}
.price-card-title { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.price-card-unit { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table thead th {
  padding: 13px 26px;
  text-align: left;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.price-table tbody td { padding: 16px 26px; border-bottom: 1px solid var(--line); font-size: 14px; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr { transition: background .2s var(--ease); }
.price-table tbody tr:hover { background: #fbfbff; }
.price-table .th-num, .price-table .th-status { text-align: right; }
.price-table .th-status { text-align: center; }
.model-name { font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.price-cell { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.status-pill-ok { background: var(--emerald-soft); color: var(--emerald); border: 1px solid rgba(5, 150, 105, .16); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.price-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: #fcfdff;
  font-size: 12.5px;
  color: var(--muted);
}
.empty-state { padding: 56px 24px; text-align: center; }
.empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted-2);
}
.empty-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h3 { font-size: 16px; font-weight: 650; }
.empty-state p { margin-top: 7px; font-size: 13.5px; color: var(--muted); }

/* ---------- Security ---------- */
.security-section { background: #fff; }
.security-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 48px;
  padding: 56px;
  border-radius: var(--radius-xl);
  color: var(--ink);
  background:
    radial-gradient(700px 380px at 8% 0%, rgba(124, 92, 255, .12), transparent 62%),
    radial-gradient(520px 360px at 100% 100%, rgba(6, 182, 212, .1), transparent 64%),
    linear-gradient(160deg, #fbfcff, #f6f8ff 62%, #f2f6ff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.security-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 80% at 20% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 0%, #000, transparent 70%);
  pointer-events: none;
}
.security-copy { position: relative; }
.security-copy h2 { margin-top: 16px; font-size: clamp(1.7rem, 2.9vw, 2.3rem); line-height: 1.22; letter-spacing: -.028em; font-weight: 720; color: var(--ink); }
.security-copy > p { margin-top: 16px; font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.compliance-note {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  padding: 15px 16px;
  border-radius: 13px;
  border: 1px solid rgba(180, 83, 9, .18);
  background: var(--amber-soft);
}
.compliance-note .icon { width: 19px; height: 19px; color: var(--amber); flex: none; margin-top: 1px; }
.compliance-note div { display: flex; flex-direction: column; gap: 2px; }
.compliance-note strong { font-size: 13px; color: #92400e; font-weight: 650; }
.compliance-note span { font-size: 12.5px; color: #7c521a; line-height: 1.6; }
.security-list { position: relative; display: grid; gap: 12px; align-content: start; }
.security-list li {
  display: flex;
  gap: 13px;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-xs);
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.security-list li:hover { background: #fff; border-color: rgba(109, 94, 252, .22); box-shadow: var(--shadow-sm); }
.security-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border: 1px solid rgba(109, 94, 252, .14);
}
.security-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.security-list strong { display: block; font-size: 13.5px; color: var(--ink); font-weight: 620; }
.security-list p { margin-top: 3px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-section { padding-top: 0; }
.cta-panel {
  position: relative;
  padding: 68px 40px;
  border-radius: var(--radius-xl);
  text-align: center;
  color: var(--ink-2);
  background:
    radial-gradient(600px 320px at 50% -20%, rgba(124, 92, 255, .2), transparent 62%),
    radial-gradient(480px 300px at 90% 110%, rgba(6, 182, 212, .12), transparent 64%),
    linear-gradient(160deg, #f8faff, #eef3ff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  left: 50%;
  top: -200px;
  width: 620px;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(124, 92, 255, .22), transparent 68%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-panel h2 { position: relative; margin-top: 16px; font-size: clamp(1.8rem, 3.2vw, 2.55rem); line-height: 1.22; letter-spacing: -.028em; font-weight: 730; color: var(--ink); }
.cta-panel > p { position: relative; margin-top: 14px; font-size: 15px; color: var(--muted); }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.cta-note { position: relative; margin-top: 26px; font-size: 12px; color: var(--muted-2); }
.cta-panel .eyebrow { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #fbfcff, #f6f8fd); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
  padding: 64px 0 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-desc { max-width: 360px; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.footer-compliance {
  display: flex;
  gap: 9px;
  margin-top: 20px;
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(180, 83, 9, .06);
  border: 1px solid rgba(180, 83, 9, .14);
  max-width: 380px;
}
.footer-compliance .icon { width: 16px; height: 16px; color: var(--amber); flex: none; margin-top: 2px; }
.footer-compliance span { font-size: 12px; line-height: 1.6; color: #8a5a1c; }
.footer-col { display: flex; flex-direction: column; gap: 11px; padding-top: 4px; }
.footer-col h4 { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.footer-col a { font-size: 13.5px; color: var(--muted); }
.footer-col a:hover { color: var(--brand-ink); }
.footer-static { font-size: 13px; color: var(--muted-2); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}
.footer-bottom p { margin: 0; }
.footer-meta { display: inline-flex; align-items: center; gap: 9px; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding: 76px 0 56px;
  background:
    radial-gradient(700px 320px at 16% -10%, rgba(109, 94, 252, .1), transparent 62%),
    radial-gradient(560px 300px at 90% 0%, rgba(6, 182, 212, .08), transparent 64%),
    linear-gradient(180deg, #fbfcff, #fff);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000, transparent 72%);
  pointer-events: none;
}
.page-hero-inner { position: relative; max-width: 780px; }
.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -.032em;
  font-weight: 750;
}
.page-hero-sub { margin-top: 18px; font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 660px; }
.page-hero .hero-actions { margin-top: 28px; }
.base-url-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 9px 10px 9px 14px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow-xs);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
}
.base-url-pill .label { font-family: var(--font); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.copy-btn .icon { width: 13px; height: 13px; }
.copy-btn:hover { color: var(--brand-ink); border-color: rgba(109, 94, 252, .35); background: #fbfbff; }
.copy-btn.is-copied { color: var(--emerald); border-color: rgba(5, 150, 105, .3); background: var(--emerald-soft); }

/* ---------- Pricing page ---------- */
.billing-section { padding: 64px 0 0; }
.billing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.billing-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.billing-card h3 { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 650; }
.billing-card h3 .icon { width: 17px; height: 17px; color: var(--brand-ink); }
.billing-card p { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.billing-formula {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 9px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-2);
  overflow-x: auto;
}
.pricing-main { padding: 48px 0 0; }
.pricing-main .price-card { box-shadow: var(--shadow-sm); }
.pricing-note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid rgba(79, 124, 255, .16);
  background: rgba(79, 124, 255, .05);
  font-size: 12.5px;
  line-height: 1.65;
  color: #3f5578;
}
.pricing-note .icon { width: 17px; height: 17px; color: var(--brand-2); flex: none; margin-top: 1px; }
.faq-section { padding: 72px 0 96px; }
.faq-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
.faq-head h2 { margin-top: 16px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.24; letter-spacing: -.025em; }
.faq-head p { margin-top: 14px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[open] { border-color: rgba(109, 94, 252, .26); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 17px; height: 17px; color: var(--muted-2); transition: transform .25s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); color: var(--brand-ink); }
.faq-answer { padding: 0 18px 17px; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.faq-answer code { padding: 1px 5px; border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }

/* ---------- Docs ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 44px 0 96px;
}
.docs-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc-title { font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); padding: 0 12px 10px; }
.toc-nav { display: flex; flex-direction: column; gap: 1px; border-left: 1px solid var(--line); }
.toc-link {
  position: relative;
  display: block;
  padding: 7px 12px 7px 16px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 0 8px 8px 0;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.toc-link::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--brand-grad);
  opacity: 0;
  transform: scaleY(.4);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toc-link:hover { color: var(--ink); background: var(--bg-soft); }
.toc-link.is-active { color: var(--brand-ink); font-weight: 600; background: var(--brand-soft); }
.toc-link.is-active::before { opacity: 1; transform: scaleY(1); }
.toc-sub { padding-left: 28px; font-size: 12.5px; }
.docs-content { min-width: 0; max-width: 860px; }
.doc-section { scroll-margin-top: calc(var(--header-h) + 24px); padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.doc-section > h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -.022em;
  line-height: 1.25;
  font-weight: 720;
}
.doc-section > h3 { margin-top: 30px; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.doc-section > p { margin-top: 13px; font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.doc-section > p strong { color: var(--ink-2); }
.doc-section ul.doc-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.doc-section ul.doc-list li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.doc-section ul.doc-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-2);
  opacity: .7;
}
.doc-section ul.doc-list code, .doc-section p code, .doc-section li code, .table-note { margin-top: 12px; font-size: 12.5px; line-height: 1.7; color: var(--muted-2); }
.table-note code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}
.endpoint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcff;
  font-family: var(--mono);
  font-size: 13px;
}
.endpoint-method {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(5, 150, 105, .1);
  border: 1px solid rgba(5, 150, 105, .18);
  color: var(--emerald);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
}
.endpoint-path { color: var(--ink-2); font-weight: 600; }
.endpoint-note { margin-left: auto; font-family: var(--font); font-size: 11.5px; color: var(--muted-2); }
.code-block {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8faff;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.code-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8faff);
}
.code-lang { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.code-file { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); margin-left: auto; }
.code-block-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.code-block pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); tab-size: 2; }
.code-block pre code { font-family: var(--mono); }
.code-tabs-inline { display: flex; gap: 2px; }
.code-tabs-inline button {
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  cursor: pointer;
}
.code-tabs-inline button.is-active { color: var(--brand-ink); background: var(--brand-soft); }
.code-block .code-copy { border-color: var(--line); }
.callout {
  display: flex;
  gap: 11px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(79, 124, 255, .16);
  background: rgba(79, 124, 255, .045);
  font-size: 13px;
  line-height: 1.7;
  color: #3f5578;
}
.callout .icon { width: 17px; height: 17px; color: var(--brand-2); flex: none; margin-top: 2px; }
.callout-warn { border-color: rgba(180, 83, 9, .18); background: rgba(180, 83, 9, .05); color: #7c521a; }
.callout-warn .icon { color: var(--amber); }
.doc-table-wrap { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; overflow-x: auto; }
.doc-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.doc-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.doc-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); vertical-align: top; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td:first-child { color: var(--ink-2); font-weight: 500; }
.doc-table code { font-size: 12px; }
.doc-table .col-type { font-family: var(--mono); font-size: 11.5px; color: var(--brand-ink); white-space: nowrap; }
.doc-table .th-num { text-align: right; }
.docs-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #fbfbff, #f5f8ff);
}
.docs-cta-stack { flex-direction: column; align-items: flex-start; gap: 12px; }
.docs-cta strong { font-size: 14px; }
.docs-cta p { margin-top: 3px; font-size: 12.5px; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-reveal-delay="1"] { transition-delay: .08s; }
.js .reveal[data-reveal-delay="2"] { transition-delay: .16s; }
.js .reveal[data-reveal-delay="3"] { transition-delay: .24s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 52px; padding: 76px 0 96px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 640px; }
  .float-card-a { left: -18px; top: 56px; }
  .float-card-b { right: -10px; bottom: 30px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
  .security-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .container { width: calc(100% - 36px); }
  .section { padding: 72px 0; }
  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    z-index: 79;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 18px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -24px rgba(11, 16, 32, .28);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  body.nav-open .site-nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .site-nav .nav-link { padding: 12px 12px; font-size: 15px; }
  .site-nav .nav-link::after { display: none; }
  .site-nav .nav-link.is-active { background: var(--brand-soft); color: var(--brand-ink); }
  .nav-mobile-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav-mobile-actions .btn { color: var(--ink-2); }
  .nav-mobile-actions .btn-primary { color: #fff; }
  .header-actions { display: none; }
  .nav-toggle { display: grid; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .hero-lead { font-size: 15px; }
  .float-card { display: none; }
  .step-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .step-card p { min-height: 0; }
  .billing-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .docs-toc {
    position: static;
    padding: 10px 4px 14px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .toc-title { display: none; }
  .toc-nav { flex-direction: row; gap: 6px; border-left: 0; padding-bottom: 2px; }
  .toc-link {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
    font-size: 12.5px;
    background: #fff;
  }
  .toc-link::before { display: none; }
  .toc-link.is-active { border-color: rgba(109, 94, 252, .32); }
  .toc-sub { padding-left: 12px; }
  .security-panel { padding: 36px 28px; }
  .cta-panel { padding: 52px 26px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; padding: 48px 0 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .pricing-preview-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 28px); }
  .section { padding: 56px 0; }
  .hero-inner { padding: 56px 0 72px; gap: 40px; }
  .hero h1 { font-size: clamp(2rem, 9.4vw, 2.7rem); letter-spacing: -.03em; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { margin-top: 24px; gap: 8px 16px; }
  .hero-meta li { font-size: 12px; }
  .code-window-bar { padding: 10px 11px; }
  .window-title { font-size: 10px; }
  .window-status { font-size: 9.5px; padding: 3px 7px; }
  .code-copy span { display: none; }
  .code-panel { font-size: 11px; padding: 8px 13px 12px; }
  .preview-body { font-size: 10.5px; padding: 8px 13px 13px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 26px 0; row-gap: 22px; }
  .metric:nth-child(3)::before { display: none; }
  .metric-value { font-size: 1.6rem; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { margin-bottom: 36px; }
  .section-head h2, .section-title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .price-table thead th { padding: 11px 16px; }
  .price-table tbody td { padding: 13px 16px; }
  .price-card-head, .price-card-foot { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-hero { padding: 52px 0 42px; }
  .page-hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .page-hero-sub { font-size: 14.5px; }
  .base-url-pill { width: 100%; justify-content: space-between; font-size: 11.5px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .security-panel { padding: 30px 20px; border-radius: 22px; }
  .security-copy h2 { font-size: 1.6rem; }
  .cta-panel { padding: 44px 20px; border-radius: 22px; }
  .cta-actions .btn { width: 100%; }
  .docs-content { max-width: 100%; }
  .code-block pre { font-size: 11.5px; padding: 14px; }
  .endpoint { font-size: 12px; }
  .endpoint-note { margin-left: 0; }
  .docs-cta { flex-direction: column; align-items: flex-start; }
  .doc-section { padding-bottom: 34px; margin-bottom: 34px; }
  .doc-table { min-width: 520px; }
}

/* ============================================================
   Light theme final pass — long brand safety & readability
   The marketing site intentionally contains NO dark surfaces:
   header / hero / code windows / security panel / CTA / footer
   all use white or soft tinted backgrounds with dark ink text.
   ============================================================ */
.site-nav { min-width: 0; }
.header-actions { flex: none; }
.nav-toggle { flex: none; }
.site-header { background: rgba(255, 255, 255, .9); }
.site-header.is-scrolled { background: rgba(255, 255, 255, .96); }

@media (max-width: 1080px) {
  .header-inner { gap: 18px; }
}
@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .brand { flex: 1 1 auto; max-width: calc(100% - 60px); }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 14px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark svg { width: 17px; height: 17px; }
  .brand-sub { font-size: 8.5px; letter-spacing: .06em; }
}


/* Native controls follow light theme */
html { color-scheme: light; }
