:root {
  --sky-1: #2c5ef6;
  --sky-2: #3f99f4;
  --arrow-1: #f5de69;
  --arrow-2: #f88836;
  --grad-arrow: linear-gradient(135deg, var(--arrow-1) 0%, #f9b24a 52%, var(--arrow-2) 100%);
  --blue: #0a1d6b;
  --yellow: #ffd03c;
  --red: #ff5449;
  --ok: #3ddc97;
  --deep: #061340;
  --surface: #0c1e5a;
  --surface-2: #12276d;
  --border: #24418f;
  --text: #f3f7ff;
  --muted: #a9c2ef;
  --radius: 18px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--deep); color: var(--text); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code, pre, .mono { font-family: var(--mono); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.8125rem; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--yellow); color: var(--blue); padding: 8px 12px; border-radius: 8px; font-weight: 700; text-decoration: none; z-index: 99; }
.skip:focus { top: 16px; }

.topbar { position: sticky; top: 0; z-index: 30; background: rgb(6 19 64 / 0.82); backdrop-filter: blur(16px); border-bottom: 1px solid rgb(36 65 143 / 0.7); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.brand b { color: var(--yellow); }
.badge-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border); color: var(--yellow); }
.nav-links { display: none; gap: 24px; font-size: 0.9375rem; color: var(--muted); }
.nav-links a { text-decoration: none; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
@media (min-width: 820px) { .nav-links { display: flex; } }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.workspace-chip { display: none; padding: 5px 12px; border-radius: 9999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.8125rem; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 600px) { .workspace-chip { display: inline-block; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 9999px; font: inherit; font-weight: 700; font-size: 0.9375rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .18s, filter .18s, background-color .18s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 0.84375rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-arrow); color: var(--blue); box-shadow: 0 10px 24px -12px rgb(248 136 54 / 0.85); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--border); }
.btn-danger { background: rgb(255 84 73 / 0.14); color: #ff8e86; border-color: rgb(255 84 73 / 0.4); }
.btn-danger:hover { background: rgb(255 84 73 / 0.24); }

.hero { padding: 64px 0 72px; background: radial-gradient(70% 70% at 80% 10%, rgb(63 153 244 / 0.22), transparent 65%), linear-gradient(180deg, #1639a8 0%, #0b1e63 55%, var(--deep) 100%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 9999px; background: rgb(6 19 64 / 0.55); border: 1px solid rgb(255 255 255 / 0.18); font-size: 0.8125rem; font-weight: 600; color: #d6e7ff; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero h1 { margin: 18px 0 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; }
.lede { color: #d3e4ff; font-size: 1.0625rem; max-width: 58ch; margin: 0 0 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid rgb(255 255 255 / 0.14); padding-top: 20px; }
.hero-metrics strong { display: block; font-size: 1.25rem; color: var(--yellow); }
.hero-metrics span { font-size: 0.8125rem; color: var(--muted); }

.code-card { background: #040d2b; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.75); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #081542; border-bottom: 1px solid var(--border); font-size: 0.75rem; color: var(--muted); font-family: var(--mono); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); display: block; }
.code-card pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 0.8125rem; line-height: 1.5; color: #dbe9ff; }
.code-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--muted); }
.code-foot a { color: var(--yellow); font-weight: 600; text-decoration: none; }

.section { padding: 64px 0; }
.section-alt { background: #08174b; border-top: 1px solid rgb(36 65 143 / 0.5); border-bottom: 1px solid rgb(36 65 143 / 0.5); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.125rem); letter-spacing: -0.025em; }
.section-head p { margin: 0; color: var(--muted); }

.feature-grid, .docs-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.125rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.pricing-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--yellow); background: linear-gradient(180deg, #132a73 0%, var(--surface) 100%); box-shadow: 0 24px 60px -28px rgb(255 208 60 / 0.35); }
.price-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--yellow); margin-bottom: 8px; }
.price-card h3 { margin: 0 0 8px; font-size: 1.375rem; }
.price-amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.price-amount span { font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.price-setup { margin: 0 0 18px; font-size: 0.875rem; color: var(--muted); }
.price-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 0.9375rem; flex: 1; }
.price-list li::before { content: "✓ "; color: var(--ok); font-weight: 800; }

.compare-box { margin-top: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.compare-box h3 { margin: 0 0 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgb(36 65 143 / 0.65); }
th { color: var(--muted); font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; }
.highlight-row td { background: rgb(255 208 60 / 0.08); }

.auth-layout { display: grid; gap: 32px; padding: 48px 24px; align-items: start; }
@media (min-width: 860px) { .auth-layout { grid-template-columns: 0.9fr 1.1fr; } }
.auth-center { max-width: 480px; padding: 56px 24px; }
.auth-summary h2 { margin: 12px 0; font-size: 1.875rem; letter-spacing: -0.02em; }
.plan-summary-box { margin-top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 0.9375rem; }
.summary-row.total { font-size: 1.0625rem; color: var(--yellow); }
.summary-divider { height: 1px; background: var(--border); margin: 10px 0; }
.summary-note { margin: 12px 0 0; font-size: 0.8125rem; color: var(--muted); }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; }
.form-card h3 { margin: 0 0 12px; font-size: 1.375rem; }
.form-narrow { max-width: 640px; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 580px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-group { display: grid; gap: 6px; margin-bottom: 14px; }
.field-group label { font-size: 0.875rem; font-weight: 600; color: #dbe8ff; }
input, select, textarea { width: 100%; background: #07133a; color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 0.9375rem; }
input:focus, select:focus, textarea:focus { border-color: var(--yellow); outline: none; }
.password-wrap { display: flex; gap: 8px; }
.password-wrap input { flex: 1; }
.toggle-pw { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; cursor: pointer; font: inherit; font-size: 0.8125rem; font-weight: 600; }
.form-foot { margin: 16px 0 0; text-align: center; font-size: 0.875rem; color: var(--muted); }
.form-foot a { color: var(--yellow); font-weight: 600; }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 0.875rem; margin-bottom: 14px; border: 1px solid transparent; }
.alert.error { background: rgb(255 84 73 / 0.14); border-color: rgb(255 84 73 / 0.45); color: #ffb3ad; }
.alert.ok { background: rgb(61 220 151 / 0.14); border-color: rgb(61 220 151 / 0.45); color: #9cf5cb; }
.notice-box { padding: 14px; border-radius: 12px; background: rgb(255 208 60 / 0.1); border: 1px solid rgb(255 208 60 / 0.35); font-size: 0.875rem; margin-bottom: 16px; color: #ffe99c; }

.console-wrap { padding: 36px 24px 72px; }
.console-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.console-kicker { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--yellow); }
.console-header h2 { margin: 4px 0 0; font-size: 1.75rem; }
.console-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-pill, .billing-pill { padding: 6px 12px; border-radius: 9999px; font-size: 0.8125rem; font-weight: 700; background: var(--surface); border: 1px solid var(--border); }
.plan-pill { color: var(--yellow); }
.billing-pill.active { color: var(--ok); border-color: rgb(61 220 151 / 0.45); }

.key-reveal { background: linear-gradient(135deg, rgb(255 208 60 / 0.16), rgb(44 94 246 / 0.18)); border: 1px solid var(--yellow); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; display: grid; gap: 12px; }
.key-reveal p { margin: 4px 0 0; font-size: 0.875rem; color: var(--muted); }
.key-reveal-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.key-reveal-row code { flex: 1; min-width: 240px; padding: 10px 12px; border-radius: 10px; background: #040d2b; border: 1px solid var(--border); color: var(--yellow); font-size: 0.875rem; word-break: break-all; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.tab { background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 9999px; padding: 8px 16px; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-2); color: var(--yellow); border-color: var(--border); }

.two-col { display: grid; gap: 20px; }
@media (min-width: 880px) { .two-col { grid-template-columns: 1fr 1fr; } }
.card-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.mini-seg { display: inline-flex; background: #07133a; border: 1px solid var(--border); border-radius: 9999px; padding: 3px; }
.mini-seg button { background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 0.75rem; font-weight: 700; padding: 5px 10px; border-radius: 9999px; cursor: pointer; }
.mini-seg button.active { background: var(--grad-arrow); color: var(--blue); }
.snippet-box { background: #040d2b; border: 1px solid var(--border); border-radius: 12px; padding: 14px; overflow-x: auto; font-size: 0.8125rem; line-height: 1.5; margin: 0 0 12px; color: #dbe9ff; }
.response-box { min-height: 280px; max-height: 440px; }

.checklist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #081542; border: 1px solid rgb(36 65 143 / 0.6); }
.checklist li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; background: var(--surface-2); border: 1px solid var(--border); flex: none; }
.checklist li.done span { background: var(--ok); color: var(--blue); border-color: var(--ok); }
.checklist li small { display: block; color: var(--muted); margin-top: 2px; }

.inline-form { display: grid; gap: 10px; margin: 14px 0 16px; }
@media (min-width: 680px) { .inline-form { grid-template-columns: 1.4fr 1fr auto; } }

.stats-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 20px; }
.stat span { font-size: 0.8125rem; color: var(--muted); }
.stat strong { display: block; font-size: 1.625rem; color: var(--yellow); margin: 4px 0; }
.stat small { color: var(--muted); }

.req-list { display: grid; gap: 10px; margin-top: 10px; }
.req-item { padding: 12px; border-radius: 12px; background: #081542; border: 1px solid var(--border); font-size: 0.875rem; }
.subhead { margin: 18px 0 6px; }

.docs-wrap { padding: 42px 24px 72px; }
.docs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.docs-head h2 { margin: 10px 0 6px; font-size: 2rem; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; background: #040d2b; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-links { display: flex; gap: 18px; font-size: 0.875rem; color: var(--muted); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
