/* ============ Nordzhi AI — light SaaS theme (tokenplus-inspired) ============ */
:root {
  --paper: #ffffff;
  --paper-2: #fbfcff;
  --tint: #f6f8fe;
  --tint-2: #effbff;
  --ink: #151515;
  --ink-soft: #3f3f46;
  --muted: #707071;
  --muted-2: #9a9aa2;
  --line: #ececef;
  --line-2: #e5e5e5;
  --line-blue: #e8edf1;
  --accent: #00a5bd;
  --accent-2: #00b7cf;
  --cyan: #3be4ff;
  --violet: #d2adff;
  --grad: linear-gradient(90deg, #3be4ff 0%, #7dd3fc 45%, #d2adff 100%);
  --ok: #15803d;
  --ok-bg: #ecfdf3;
  --err: #b91c1c;
  --err-bg: #fef2f2;
  --wait: #a16207;
  --wait-bg: #fffbeb;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 24px 60px -24px rgba(23, 26, 46, 0.22);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 40px;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1320px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: #c9f6ff; color: #0b3b47; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: #f4f6f9; border-radius: 5px; padding: 1px 5px; color: #0f4c5c; }
pre code { background: none; padding: 0; color: inherit; }
.dim { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.r { text-align: right; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-soft { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-s { padding-top: 12px; padding-bottom: 90px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.topbar { background: #151515; color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 16px; height: 38px; }
.topbar-msg { font-size: 13.5px; font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-link { font-size: 13.5px; font-weight: 600; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar-link i { font-style: normal; }
.nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.nav-console { position: sticky; top: 0; z-index: 100; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; }
.brand-word { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; display: inline-flex; align-items: center; }
.brand-ai {
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em; line-height: 1;
  margin-left: 6px; padding: 4px 6px; border-radius: 999px;
  color: #06778a; background: var(--tint-2); border: 1px solid #d5f3fa;
  transform: translateY(-1px);
}
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 28px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover { color: #000; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-balance {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: 12px; color: #0e7490; background: #fff;
}
.nav-balance i { font-style: normal; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nav-balance:hover { border-color: #bfeaf3; background: var(--tint-2); }
.nav-toggle {
  display: none; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 9px;
  background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.announce { background: #151515; color: #fff; font-size: 13px; }
.announce .wrap { padding-top: 9px; padding-bottom: 9px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: transparent;
  font-family: var(--font); font-size: 14px; font-weight: 500; line-height: 1;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary { background: #151515; border-color: #151515; color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
.btn-outline { background: #fff; border-color: #151515; color: #151515; }
.btn-outline:hover { background: #151515; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: transparent; }
.btn-ghost:hover { background: #f4f6f9; color: #000; }
.btn-danger { background: #fff; color: var(--err); border-color: #f3c9c9; }
.btn-danger:hover { background: #fef2f2; border-color: #eaa6a6; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15.5px; border-radius: 9px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.link-arrow { font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.link-arrow:hover { color: var(--accent); }
.link-plain { font-size: 14.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #cfcfd6; }
.link-plain:hover { color: var(--accent); }

/* ---------- flashes ---------- */
.flashes { padding-top: 18px; }
.flash { border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 10px; border: 1px solid; }
.flash-ok { background: var(--ok-bg); border-color: #bbf7d0; color: #166534; }
.flash-err { background: var(--err-bg); border-color: #fecaca; color: #991b1b; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-art {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("/assets/img/hero-visual.jpg");
  background-repeat: no-repeat; background-position: right center; background-size: cover;
}
.hero-fade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.96) 34%, rgba(255,255,255,0.55) 62%, rgba(255,255,255,0.08) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 40px; align-items: center;
  min-height: 660px; padding-top: 84px; padding-bottom: 140px;
}
.hero-copy { max-width: 700px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--tint-2); border: 1px solid #d8f3fa;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #0b7e92;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 5.4vw, 70px); font-weight: 200; line-height: 1.05; letter-spacing: -0.035em; color: var(--ink);
}
.hero h1 strong { font-weight: 700; letter-spacing: -0.04em; }
.lead { font-size: 17.5px; font-weight: 300; line-height: 1.55; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-actions.center { justify-content: center; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid #e9e9ee; }
.hero-stats b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.hero-stats span { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero-side { align-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; padding-bottom: 44px; }
.hero-badge-stack { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 360px; }
.hero-badge-stack span {
  padding: 8px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: #334155;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px -14px rgba(30, 64, 90, 0.35); backdrop-filter: blur(10px);
}
.hero-note {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(14px);
}
.hero-note-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14); }
.hero-note b { display: block; font-size: 13.5px; font-weight: 600; }
.hero-note small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- catalog band ---------- */
.catalog-band { position: relative; z-index: 3; margin-top: -86px; padding-bottom: 96px; }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.band-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em; margin-top: 10px; }

/* ---------- section heads ---------- */
.section-head { margin-bottom: 38px; }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head h2 { font-size: clamp(32px, 3.9vw, 48px); font-weight: 600; line-height: 1.18; letter-spacing: -0.025em; }
.section-head .sub { margin-top: 14px; font-size: 17px; font-weight: 300; line-height: 1.55; color: var(--muted); max-width: 680px; }
.section-head .pill { margin-bottom: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  background: #fff; border: 1px solid #e9eef4; box-shadow: 0 10px 30px -20px rgba(80, 64, 160, 0.4);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #0096ac;
}
.pill i { font-style: normal; color: var(--accent-2); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* ---------- page head ---------- */
.page-head { padding: 78px 0 34px; text-align: center; }
.page-head h1 { margin-top: 20px; font-size: clamp(40px, 5vw, 60px); font-weight: 200; line-height: 1.08; letter-spacing: -0.035em; }
.page-head h1 strong { font-weight: 700; }
.page-head .lead { margin: 18px auto 0; max-width: 760px; text-align: center; }

/* ---------- why / features ---------- */
.why-shell { background: var(--tint); border: 1px solid var(--line-blue); border-radius: 44px; padding: 12px; }
.why-inner { background: #fff; border-radius: 36px; padding: 56px 32px 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 38px; }
.feature-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #dbe7f0; }
.feature-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md); background: #f3f7fb; }
.feature-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin: 20px 0 8px; }
.feature-card p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.feature-card code { font-size: 0.86em; }

/* ---------- quick start ---------- */
.quick-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.steps { padding-top: 4px; }
.step { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: 0; }
.step-no {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: #151515; color: #fff;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
}
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.code-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.code-tabs { display: flex; gap: 6px; padding: 12px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.code-tabs button {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer;
}
.code-tabs button:hover { color: var(--ink); background: #f0f4f8; }
.code-tabs button.on { background: #151515; color: #fff; }
.code-pane { display: none; }
.code-pane.on { display: block; }
.code-card .code { margin: 0; border: 0; border-radius: 0; background: #f8fafc; padding: 24px; min-height: 360px; overflow: auto; font-family: var(--mono); font-size: 12.8px; line-height: 1.8; color: #27272a; white-space: pre; }
.code-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.code-foot a { color: var(--ink); font-weight: 500; }
.code-foot a:hover { color: var(--accent); }
.tok-k { color: #7c3aed; }
.tok-s { color: #0e7490; }
.tok-n { color: #b45309; }
pre.code {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.8px; line-height: 1.75; color: #27272a;
  white-space: pre;
}

/* ---------- capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cap-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cap-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--tint-2); color: #0e7490; border: 1px solid #dff4f9; margin-bottom: 18px;
}
.cap-icon svg { width: 22px; height: 22px; }
.cap-card h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 8px; }
.cap-card p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: 40px; padding: 36px; border-radius: 28px;
  background: #fff; border: 1px solid var(--line-blue); box-shadow: var(--shadow);
}
.metrics b {
  display: block; font-size: 40px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(100deg, #0f172a 0%, #0e7490 55%, #7c3aed 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metrics span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { border-color: #cfe8f2; box-shadow: var(--shadow); }
.faq p { padding: 0 22px 20px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.faq p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- cta ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 32px; border-radius: var(--r-xl);
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(59, 228, 255, 0.16), transparent 60%),
    radial-gradient(520px 260px at 88% 100%, rgba(210, 173, 255, 0.22), transparent 62%),
    #f8fbff;
  border: 1px solid #e2edf7;
}
.cta h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -0.03em; margin: 18px 0 12px; }
.cta h2 strong { font-weight: 700; }
.cta p { font-size: 16.5px; font-weight: 300; color: var(--muted); }
.cta .hero-actions { margin-top: 28px; }

/* ---------- model cards & grids ---------- */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(272px, 100%), 1fr)); gap: 16px; }
.model-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: 20px; padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.model-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dbe7f0; }
.model-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.model-card-id { min-width: 0; }
.model-id {
  display: inline-block; font-family: var(--mono); font-size: 12.5px; color: #0e7490;
  background: var(--tint-2); border-radius: 6px; padding: 3px 7px; word-break: break-word;
  cursor: pointer;
}
.model-id.copy:hover { background: #dff7fc; }
.model-name { margin-top: 8px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.badge {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  padding: 4px 9px; border-radius: 999px; background: #f4f4f5; color: #52525b;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-openai { background: var(--ok-bg); color: #047857; }
.badge-anthropic { background: #fdf4ff; color: #a21caf; }
.badge-google { background: #eff6ff; color: #1d4ed8; }
.badge-deepseek { background: #f5f3ff; color: #6d28d9; }
.badge-metered { background: var(--tint-2); color: #0e7490; }
.model-prices { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.price-row .lbl { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.price-row .val { font-family: var(--mono); font-size: 13px; color: var(--ink); white-space: nowrap; }
.price-row .val em { font-style: normal; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.model-card-foot { display: flex; align-items: center; justify-content: space-between; }

/* ---------- page heads / panels ---------- */
.panel-head { margin-bottom: 24px; }
.panel-head-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.panel-head p { margin-top: 8px; font-size: 14.5px; color: var(--muted); max-width: 820px; }
.count-chip {
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px;
  background: var(--tint-2); color: #0e7490; border: 1px solid #d9f3fa;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.after-table { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.table-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-bottom: 64px; }
.price-card { background: #fff; border: 1px solid var(--line-2); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); }
.price-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-card h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #0e7490; }
.price-big { margin: 18px 0 12px; font-size: 58px; font-weight: 300; line-height: 1; letter-spacing: -0.04em; }
.price-big span { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-card > p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.price-card ul { list-style: none; margin: 22px 0; display: grid; gap: 10px; }
.price-card li { font-size: 14px; color: var(--ink-soft); padding-left: 18px; position: relative; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.price-side { border-radius: 28px; padding: 34px; background: #f8fbff; border: 1px solid #e2edf7; }
.price-side h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em; margin: 16px 0 10px; }
.price-side > p { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.price-points { margin-top: 22px; display: grid; }
.price-points div { padding: 14px 0; border-top: 1px solid #e4eef6; }
.price-points b { display: block; font-size: 15px; font-weight: 600; }
.price-points span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; padding-top: 10px; padding-bottom: 96px; align-items: start; }
.docs-nav { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 2px; }
.docs-nav .side-label { margin-bottom: 8px; }
.docs-nav a { font-size: 14px; color: var(--muted); padding: 7px 0; }
.docs-nav a:hover { color: var(--ink); }
.docs-body { min-width: 0; }
.doc-block { padding: 0 0 42px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.doc-block:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-block h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.doc-block h3 { font-size: 16.5px; font-weight: 600; margin: 22px 0 10px; }
.doc-block p { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin-bottom: 12px; }
.doc-block p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc-block ol, .doc-block ul { margin: 0 0 12px 20px; color: var(--muted); font-size: 14.5px; }
.doc-block li { margin-bottom: 6px; }
.doc-block code { font-size: 0.88em; }
.doc-block .code { margin: 10px 0 14px; }
.table-scroll { overflow-x: auto; margin-bottom: 14px; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.tbl th {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  background: var(--paper-2);
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl code { font-size: 12px; }
.tbl .tag { white-space: nowrap; }
.panel { background: #fff; border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; margin-bottom: 18px; overflow-x: auto; }
.panel h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.panel > .dim { font-size: 14px; }
.panel .form-card { border: 0; box-shadow: none; padding: 0; background: transparent; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form-card label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; padding: 12px 14px; border: 1px solid #e2e4e9; border-radius: 10px;
  background: #fff; font-size: 14.5px; font-weight: 400; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-card input::placeholder, .form-card textarea::placeholder { color: #b4b4bc; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus {
  outline: none; border-color: #7cd9e8; box-shadow: 0 0 0 4px rgba(59, 228, 255, 0.14);
}
.form-card input:disabled { background: #f7f8fa; color: var(--muted); }
.form-card textarea { resize: vertical; min-height: 120px; }
.form-card .btn { justify-self: start; }
.form-card .opt { font-weight: 400; color: var(--muted-2); font-size: 12.5px; }
.inline-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-form input[type="text"], .inline-form input[type="number"] {
  padding: 11px 13px; border: 1px solid #e2e4e9; border-radius: 9px; font-size: 14px; min-width: 200px; flex: 1 1 200px;
  background: #fff;
}
.inline-form input:focus { outline: none; border-color: #7cd9e8; box-shadow: 0 0 0 4px rgba(59, 228, 255, 0.14); }
.amount-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1 1 100%; }
.amount-cur { font-weight: 600; color: var(--muted); }
.amount-wrap > input { max-width: 180px; }
.amount-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.amount-quick button {
  border: 1px solid var(--line-2); background: var(--paper-2); border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; color: var(--ink-soft); cursor: pointer;
}
.amount-quick button:hover { background: var(--tint-2); border-color: #bfeaf3; color: #0e7490; }

/* ---------- auth ---------- */
.auth { padding: 76px 32px 110px; background: linear-gradient(180deg, #fbfcff 0%, #fff 70%); }
.auth-wrap { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 72px; align-items: center; }
.auth-intro h1 { margin: 20px 0 14px; font-size: clamp(36px, 4.6vw, 52px); font-weight: 200; line-height: 1.1; letter-spacing: -0.03em; }
.auth-intro h1 strong { font-weight: 700; }
.auth-intro p { font-size: 16.5px; font-weight: 300; line-height: 1.6; color: var(--muted); }
.auth-card { padding: 32px; }
.auth-alt { font-size: 13.5px; text-align: center; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 500; }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 28px; align-items: start; }
.contact-side .panel { margin-bottom: 14px; }
.contact-side h3 { font-size: 15px; }
.contact-side p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
.contact-side p + p { margin-top: 8px; }
.contact-side a { color: var(--accent); }

/* ---------- legal ---------- */
.legal { max-width: 840px; margin: 0 auto; padding-top: 8px; padding-bottom: 100px; }
.legal h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.legal ul { margin: 0 0 12px 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.legal-meta p + p { margin-top: 3px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { margin: 16px 0 12px; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 340px; }
.footer-mail { font-size: 13.5px; font-weight: 500; color: #0e7490; }
.footer-mail:hover { color: var(--accent); }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-soft); padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 26px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.footer-legal p + p { margin-top: 2px; }

/* ---------- console ---------- */
.console-wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; padding-top: 32px; padding-bottom: 80px; align-items: start; }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 3px; }
.side-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); padding: 0 12px 8px; }
.side a { padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.side a:hover { background: var(--paper-2); color: var(--ink); }
.side a.on { background: #151515; color: #fff; }
.side .side-back { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 400; color: var(--muted); }
.console-title { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 20px; }
.console-main { min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; }
.stat-card > span { font-size: 12px; color: var(--muted); }
.stat-card b { display: block; margin: 6px 0 4px; font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }
.stat-card b em { font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.stat-card a { font-size: 12.5px; color: var(--accent); font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 130px; margin-top: 16px; }
.bar { flex: 1; min-height: 2px; border-radius: 4px; background: linear-gradient(180deg, #3be4ff 0%, #a5b4fc 100%); }
.bars-x { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-err { background: var(--err-bg); color: var(--err); }
.tag-wait { background: var(--wait-bg); color: var(--wait); }
.newkey-panel { border-color: #cdeef5; background: #f7fdff; }
.newkey-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.newkey-row code { flex: 1 1 320px; padding: 11px 13px; background: #fff; border: 1px solid #d9eef5; border-radius: 9px; word-break: break-all; }
.pager { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; }
.pager a, .pager b { padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); }
.pager b { background: #151515; color: #fff; border-color: #151515; }

/* ---------- misc ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(42px, 6vw, 60px); }
}
@media (max-width: 980px) {
  .nav-links { gap: 20px; margin-left: 10px; }
  .nav { position: relative; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 72px; padding-bottom: 150px; }
  .hero-side { display: none; }
  .hero-art { background-position: right -120px center; opacity: 0.9; }
  .hero-fade { background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.96) 55%, rgba(255,255,255,0.55) 100%); }
  .quick-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .auth-wrap { grid-template-columns: 1fr; gap: 32px; max-width: 560px; }
  .auth-intro { text-align: center; }
  .contact-wrap { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .docs-nav .side-label { width: 100%; padding: 0; }
  .docs-nav a { padding: 2px 0; font-size: 13.5px; }
  .price-grid { grid-template-columns: 1fr; }
  .console-wrap { grid-template-columns: 1fr; gap: 18px; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .side .side-label { display: none; }
  .side .side-back { margin: 0 0 0 auto; padding: 9px 12px; border-top: 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.25);
    flex-direction: column; align-items: flex-start; gap: 0; margin: 0; padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-inner { gap: 14px; }
  .nav-cta { gap: 8px; }
  .section { padding: 72px 0; }
  .section-s { padding-bottom: 64px; }
  .topbar-link { display: none; }
  .topbar-inner { justify-content: flex-start; }
  .why-inner { padding: 42px 18px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .faq summary { font-size: 15px; padding: 16px 18px; }
  .faq p { padding: 0 18px 18px; }
  .cta { padding: 54px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .panel { padding: 20px; }
  .page-head { padding: 56px 0 24px; }
  .catalog-band { margin-top: -100px; padding-bottom: 64px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .brand-word { font-size: 18px; }
  .brand-ai { font-size: 8px; padding: 3px 5px; }
  .brand-logo { width: 28px; height: 28px; }
  .brand { gap: 8px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn { height: 38px; padding: 0 13px; font-size: 13px; }
  .nav-balance { display: none; }
  .hero-inner { padding-top: 52px; padding-bottom: 140px; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .lead { font-size: 15.5px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { gap: 10px; }
  .hero-stats { gap: 22px 30px; margin-top: 34px; }
  .hero-stats b { font-size: 22px; }
  .catalog-band { margin-top: -96px; }
  .hero-art { background-position: 62% center; }
  .section-head .sub { font-size: 15.5px; }
  .metrics { padding: 26px 22px; grid-template-columns: 1fr 1fr; }
  .metrics b { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 30px; }
  .footer-brand { grid-column: auto; }
  .footer { padding-top: 44px; }
  .stat-grid { grid-template-columns: 1fr; }
  .price-card, .price-side { padding: 26px 22px; }
  .auth { padding: 48px 20px 72px; }
  .auth-card { padding: 24px; }
  .form-card { padding: 22px; }
  .code-card .code { min-height: 0; padding: 18px; font-size: 11.5px; }
  .code-foot { flex-direction: column; align-items: flex-start; }
  .docs { padding-bottom: 64px; }
  .panel { border-radius: 16px; }
  .console-title { font-size: 26px; }
  .side a { padding: 8px 10px; font-size: 13px; }
  .side .side-back { margin-left: 0; width: 100%; }
  .cta h2 { font-size: 30px; }
}
