/* =========================================================
   Buran API — design system
   ========================================================= */
:root {
  --bg: #05060b;
  --bg-2: #090b13;
  --bg-3: #0e111c;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --surface-3: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.075);
  --border-2: rgba(255, 255, 255, 0.13);
  --text: #eceef6;
  --text-2: #b9bdcf;
  --muted: #868ba3;
  --dim: #5a5f76;

  --cyan: #22d3ee;
  --cyan-2: #67e8f9;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --magenta: #e879f9;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 55%, var(--magenta) 100%);
  --grad-soft: linear-gradient(100deg, rgba(34, 211, 238, .16), rgba(139, 92, 246, .16));

  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --none: #262a3a;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1200px;
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
code, pre, kbd { font-family: var(--mono); }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ---------- background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(34, 211, 238, .13), transparent 60%),
    radial-gradient(800px 500px at 85% -5%, rgba(139, 92, 246, .16), transparent 60%);
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; }
h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -0.04em; line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.035em; }
h3 { font-size: 18px; letter-spacing: -0.015em; }
p { margin: 0; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan-2);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- buttons ---------- */
.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 560; font-size: 14px; letter-spacing: -0.005em; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, box-shadow .25s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { --h: 50px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-primary {
  background: #fff; color: #07080d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 8px 30px -8px rgba(103, 232, 249, .45);
}
.btn-primary:hover { background: #e8fbff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 10px 40px -6px rgba(103, 232, 249, .6); }
.btn-neon {
  position: relative; color: #fff; background: linear-gradient(180deg, rgba(139, 92, 246, .35), rgba(34, 211, 238, .18));
  border-color: rgba(167, 139, 250, .5);
  box-shadow: 0 0 24px -6px rgba(139, 92, 246, .7), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.btn-neon:hover { border-color: rgba(103, 232, 249, .7); box-shadow: 0 0 34px -4px rgba(34, 211, 238, .6), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--border-2); }
.btn-text { background: transparent; color: var(--text-2); padding: 0 10px; }
.btn-text:hover { color: #fff; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: rgba(5, 6, 11, .62);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(5, 6, 11, .82); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; font-size: 17px; letter-spacing: -0.03em; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.logo small { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0; padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .15s, background .15s; }
.nav a:hover { color: #fff; background: var(--surface-2); }
.nav a.active { color: #fff; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); align-items: center; justify-content: center; }
.burger svg { width: 18px; height: 18px; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .nav, .header-actions .btn-text { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
    background: rgba(5, 6, 11, .97); backdrop-filter: blur(16px);
    padding: 16px; flex-direction: column; gap: 4px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 14px 12px; border-radius: 10px; font-size: 17px; font-weight: 550; border-bottom: 1px solid var(--border); }
  .mobile-nav .btn { margin-top: 16px; }
}
@media (max-width: 420px) { .header-actions .btn-primary { display: none; } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 112px 0; }
.section-sm { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); }
@media (max-width: 640px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px;
  border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface);
  font-size: 13px; color: var(--text-2); margin-bottom: 26px;
}
.hero-badge b { font-weight: 600; font-size: 11px; font-family: var(--mono); letter-spacing: .04em; color: #07080d; background: var(--grad); padding: 2px 8px; border-radius: 999px; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; font-size: 13px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--ok); }
#starfield { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: .8; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 56px; } }

/* ---------- code window ---------- */
.code-window {
  position: relative; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 19, 32, .92), rgba(9, 11, 19, .95));
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 80px -30px rgba(139, 92, 246, .55);
  overflow: hidden; min-width: 0;
}
.code-window::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(103, 232, 249, .55), transparent 35%, transparent 65%, rgba(167, 139, 250, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.cw-bar { display: flex; align-items: center; gap: 14px; padding: 0 14px; height: 46px; border-bottom: 1px solid var(--border); }
.cw-dots { display: flex; gap: 6px; }
.cw-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2e3f; }
.tabs { display: flex; gap: 2px; }
.tab { padding: 6px 10px; border-radius: 7px; font-size: 12.5px; font-family: var(--mono); color: var(--muted); background: none; border: 0; }
.tab:hover { color: var(--text); }
.tab.active { color: #fff; background: var(--surface-3); }
.cw-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: color .15s, border-color .15s; }
.icon-btn:hover { color: #fff; border-color: var(--border-2); }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn.copied { color: var(--ok); border-color: rgba(52, 211, 153, .5); }
.code-body { padding: 18px 20px 22px; overflow-x: auto; font-size: 13px; line-height: 1.75; }
.code-body pre { margin: 0; white-space: pre; color: #c8cce0; }
.tok-k { color: #c4b5fd; }
.tok-s { color: #67e8f9; }
.tok-n { color: #fbbf24; }
.tok-c { color: #5a5f76; font-style: italic; }
.tok-f { color: #f0abfc; }
.tok-p { color: #7dd3fc; }
.cw-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.cw-foot select {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 5px 28px 5px 10px; font-family: var(--mono); font-size: 12px; color: var(--text);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23868ba3' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.cw-foot .latency { margin-left: auto; white-space: nowrap; font-family: var(--mono); display: inline-flex; align-items: center; gap: 6px; }

.response-stream { padding: 0 20px 20px; font-size: 13px; }
.response-stream .resp-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 8px; }
.response-stream .resp { color: var(--text-2); min-height: 44px; }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--cyan); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; box-shadow: 0 0 10px var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 28px 28px 26px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-value { font-size: clamp(28px, 3vw, 38px); font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* ---------- providers marquee ---------- */
.providers { padding: 44px 0 8px; }
.providers p { text-align: center; color: var(--dim); font-size: 13px; margin-bottom: 22px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-size: 21px; font-weight: 640; letter-spacing: -0.03em; color: #6c7189; white-space: nowrap; transition: color .2s; }
.marquee-track span:hover { color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- cards / features ---------- */
.card {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  padding: 28px; transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: var(--border-2); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature .ico {
  width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .28); color: var(--cyan-2); margin-bottom: 20px;
  box-shadow: 0 0 24px -8px rgba(34, 211, 238, .5);
}
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .features { grid-template-columns: 1fr; } .feature.wide { grid-column: auto; grid-template-columns: 1fr; } }

/* balance mock */
.balance-mock { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(0, 0, 0, .3); padding: 18px; font-size: 13px; }
.balance-mock .bm-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.balance-mock .bm-amount { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bm-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; margin-bottom: 14px; }
.bm-bar i { display: block; height: 100%; }
.bm-rows { display: grid; gap: 8px; }
.bm-row { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.bm-row .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.bm-row b { margin-left: auto; font-weight: 550; font-family: var(--mono); font-size: 12.5px; color: var(--text); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); position: relative; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--cyan-2); margin-bottom: 18px; display: inline-flex; padding: 3px 9px; border: 1px solid rgba(103, 232, 249, .3); border-radius: 999px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step code { display: block; margin-top: 18px; padding: 10px 12px; border-radius: 9px; background: rgba(0, 0, 0, .35); border: 1px solid var(--border); font-size: 12.5px; color: var(--cyan-2); overflow-x: auto; white-space: nowrap; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- tables ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.data th {
  text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .015); white-space: nowrap;
}
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable:hover { color: var(--text); }
table.data th .arrow { opacity: .5; margin-left: 4px; font-size: 10px; }
table.data th.sorted { color: var(--text); }
table.data th.sorted .arrow { opacity: 1; color: var(--cyan-2); }
table.data td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
table.data tbody tr { transition: background .15s; }
table.data tbody tr:hover { background: rgba(255, 255, 255, .025); }
table.data tbody tr.clickable { cursor: pointer; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13px; }
table.data th.num { text-align: right; }

.model-cell { display: flex; align-items: center; gap: 12px; }
.prov-ico { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; border: 1px solid var(--border-2); letter-spacing: -0.02em; }
.model-name { font-weight: 560; color: var(--text); display: flex; align-items: center; gap: 8px; }
.model-id { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 560; border: 1px solid var(--border-2); color: var(--text-2); background: var(--surface-2); white-space: nowrap; }
.badge-new { color: #07080d; background: var(--cyan-2); border-color: transparent; }
.badge-save { color: var(--ok); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 10px rgba(52, 211, 153, .7); }
.status-dot.degraded { background: var(--warn); box-shadow: 0 0 10px rgba(251, 191, 36, .7); }
.status-dot.down { background: var(--bad); box-shadow: 0 0 10px rgba(248, 113, 113, .7); }
.status-dot.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.uptime-cell { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.spark { display: inline-flex; gap: 2px; align-items: flex-end; height: 18px; }
.spark i { width: 3px; border-radius: 1px; background: var(--ok); opacity: .85; }
.spark i.w { background: var(--warn); }
.spark i.b { background: var(--bad); }

/* ---------- filters / toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search {
  position: relative; flex: 1 1 280px; max-width: 420px;
}
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--dim); }
.input {
  width: 100%; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .03);
  color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; font-size: 14px;
}
.search .input { padding-left: 38px; }
.input::placeholder { color: var(--dim); }
.input:focus { border-color: rgba(103, 232, 249, .6); box-shadow: 0 0 0 4px rgba(34, 211, 238, .1); background: rgba(255, 255, 255, .045); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500; transition: all .15s; }
.chip:hover { border-color: var(--border-2); color: #fff; }
.chip.active { background: #fff; color: #07080d; border-color: #fff; }
.chip .count { opacity: .55; margin-left: 4px; font-family: var(--mono); font-size: 11.5px; }
.select {
  height: 42px; padding: 0 34px 0 14px; border-radius: 10px; border: 1px solid var(--border-2); background-color: rgba(255, 255, 255, .03);
  appearance: none; -webkit-appearance: none; font-size: 14px; color: var(--text); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23868ba3' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.select option { background: var(--bg-3); }
.result-count { color: var(--muted); font-size: 13px; margin-left: auto; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }

/* ---------- page head ---------- */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); margin: 14px 0 16px; }
.page-head .lead { max-width: 680px; }

/* ---------- uptime / status ---------- */
.status-banner {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius-lg);
  border: 1px solid rgba(52, 211, 153, .3); background: linear-gradient(90deg, rgba(52, 211, 153, .1), rgba(52, 211, 153, .02));
}
.status-banner.degraded { border-color: rgba(251, 191, 36, .35); background: linear-gradient(90deg, rgba(251, 191, 36, .1), rgba(251, 191, 36, .02)); }
.status-banner .big-dot { width: 14px; height: 14px; }
.status-banner h3 { font-size: 18px; }
.status-banner p { color: var(--muted); font-size: 13.5px; }
.status-banner .meta { margin-left: auto; text-align: right; font-size: 13px; color: var(--muted); }

.status-group { margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.status-group-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .015); }
.status-group-head h3 { font-size: 15px; }
.status-row { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.status-row:last-child { border-bottom: 0; }
.status-row-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.status-row-top .name { font-weight: 560; }
.status-row-top .right { margin-left: auto; display: flex; gap: 18px; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.status-row-top .right b { color: var(--text); font-weight: 500; }
.bars { display: flex; gap: 2px; height: 34px; }
.bars i { flex: 1; border-radius: 2px; background: var(--ok); opacity: .9; position: relative; min-width: 2px; transition: opacity .15s, transform .15s; }
.bars i:hover { opacity: 1; transform: scaleY(1.08); }
.bars i.w { background: var(--warn); }
.bars i.b { background: var(--bad); }
.bars i.n { background: var(--none); }
.bars-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--dim); }
.tooltip {
  position: fixed; z-index: 100; pointer-events: none; padding: 10px 12px; border-radius: 10px; font-size: 12.5px;
  background: #11141f; border: 1px solid var(--border-2); box-shadow: var(--shadow); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; min-width: 160px;
}
.tooltip.show { opacity: 1; transform: none; }
.tooltip b { display: block; font-weight: 600; margin-bottom: 3px; }

.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* home status preview */
.status-preview { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .status-preview { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; }
.plan.featured { border-color: rgba(167, 139, 250, .5); background: linear-gradient(180deg, rgba(139, 92, 246, .12), rgba(34, 211, 238, .03)); box-shadow: 0 0 60px -20px rgba(139, 92, 246, .5); }
.plan-name { font-size: 14px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; }
.plan-price { font-size: 40px; font-weight: 660; letter-spacing: -0.04em; margin: 16px 0 4px; }
.plan-price small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan-desc { color: var(--muted); font-size: 14px; min-height: 44px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; font-size: 14px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--cyan-2); }
.plan .btn { margin-top: auto; width: 100%; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

.bonus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.bonus { background: var(--bg-2); padding: 22px 24px; }
.bonus .amt { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.bonus .pct { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; margin-top: 4px; }
@media (max-width: 760px) { .bonus-grid { grid-template-columns: repeat(2, 1fr); } }

/* calculator */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.calc-form { padding: 30px; display: grid; gap: 22px; border-right: 1px solid var(--border); }
.calc-out { padding: 30px; background: linear-gradient(180deg, rgba(139, 92, 246, .08), rgba(34, 211, 238, .03)); display: flex; flex-direction: column; }
.field label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); font-weight: 500; margin-bottom: 9px; }
.field label span { font-family: var(--mono); color: var(--text); }
.field .select { width: 100%; }
input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 99px; background: var(--surface-3); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(34, 211, 238, .25), 0 0 14px rgba(34, 211, 238, .6); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(34, 211, 238, .25), 0 0 14px rgba(34, 211, 238, .6); cursor: pointer; }
.calc-total { font-size: 44px; font-weight: 660; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.calc-lines { margin-top: 22px; display: grid; gap: 10px; font-size: 14px; }
.calc-lines div { display: flex; justify-content: space-between; color: var(--text-2); }
.calc-lines div b { font-family: var(--mono); font-weight: 500; color: var(--text); font-size: 13px; }
.calc-out .btn { margin-top: auto; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc-form { border-right: 0; border-bottom: 1px solid var(--border); } }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 16.5px; font-weight: 560; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--cyan-2); }
.faq .ans { padding: 0 40px 24px 0; color: var(--muted); font-size: 15px; }
.faq .ans code { font-size: 13px; color: var(--cyan-2); background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; overflow: hidden; text-align: center; padding: 80px 28px; border-radius: 28px; border: 1px solid var(--border-2);
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(139, 92, 246, .35), transparent 70%),
    radial-gradient(500px 250px at 50% -40%, rgba(34, 211, 238, .2), transparent 70%),
    var(--bg-2);
}
.cta-box h2 { max-width: 720px; margin: 0 auto 16px; }
.cta-box .lead { max-width: 560px; margin: 0 auto; }
.cta-box .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 40px; margin-top: 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); transition: color .15s; }
.footer-grid a:hover { color: #fff; }
.footer-about p { color: var(--muted); margin-top: 14px; max-width: 300px; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--dim); font-size: 13px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 81; background: var(--bg-2); border-left: 1px solid var(--border-2);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; box-shadow: -30px 0 80px rgba(0, 0, 0, .5);
}
.drawer.open { transform: none; }
.drawer-head { position: sticky; top: 0; background: rgba(9, 11, 19, .92); backdrop-filter: blur(12px); padding: 22px 26px; border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: flex-start; z-index: 2; }
.drawer-head h3 { font-size: 20px; }
.drawer-head .icon-btn { margin-left: auto; width: 34px; height: 34px; }
.drawer-body { padding: 24px 26px 40px; display: grid; gap: 26px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.kv div { background: var(--bg-2); padding: 14px 16px; }
.kv span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.kv b { font-weight: 560; font-family: var(--mono); font-size: 14px; }
.drawer h4 { font-size: 13px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.mini-code { border-radius: var(--radius); background: rgba(0, 0, 0, .35); border: 1px solid var(--border); padding: 14px 16px; font-size: 12.5px; overflow-x: auto; position: relative; }
.mini-code pre { margin: 0; color: #c8cce0; line-height: 1.7; }
.mini-code .icon-btn { position: absolute; top: 10px; right: 10px; }
.copy-id { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.copy-id:hover { border-color: var(--border-2); color: #fff; }
.copy-id svg { width: 13px; height: 13px; }

/* ---------- docs ---------- */
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 48px 0 40px; }
.docs-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: 14px; }
.docs-nav h5 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); font-weight: 600; }
.docs-nav ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 2px; }
.docs-nav a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--muted); border-left: 2px solid transparent; }
.docs-nav a:hover { color: #fff; background: var(--surface); }
.docs-nav a.active { color: #fff; background: var(--surface-2); border-left-color: var(--cyan); }
.docs-content { max-width: 820px; }
.docs-content section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--border); }
.docs-content section:last-child { border-bottom: 0; }
.docs-content h2 { font-size: 28px; margin-bottom: 14px; }
.docs-content h3 { margin: 28px 0 10px; }
.docs-content p { color: var(--text-2); margin-bottom: 14px; }
.docs-content p code, .docs-content li code, .docs-content td code { font-size: 12.5px; color: var(--cyan-2); background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.docs-content ul { color: var(--text-2); padding-left: 20px; }
.docs-content li { margin-bottom: 6px; }
.docs-content .code-window { margin: 18px 0 8px; border-radius: var(--radius); }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgba(103, 232, 249, .25); background: rgba(34, 211, 238, .05); font-size: 14px; color: var(--text-2); margin: 18px 0; }
.callout svg { width: 18px; height: 18px; flex: none; color: var(--cyan-2); margin-top: 2px; }
table.simple { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.simple th, table.simple td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.simple th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; background: rgba(255, 255, 255, .02); }
table.simple td:first-child { white-space: nowrap; }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; gap: 24px; } .docs-nav { position: static; display: none; } }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 120; padding: 11px 16px; border-radius: 10px; background: #fff; color: #07080d; font-size: 14px; font-weight: 550; opacity: 0; transition: all .25s; pointer-events: none; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
