:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 18px 50px rgba(15, 23, 42, .09);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.topbar-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--text); font-size: 20px; font-weight: 850; letter-spacing: -.03em; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; margin-right: 8px; color: white; background: linear-gradient(135deg,#2563eb,#7c3aed); }
.nav { display: flex; align-items: center; gap: 18px; }
.main { padding: 34px 0 64px; }
.hero { padding: 72px 0 64px; text-align: center; }
.hero h1 { max-width: 850px; margin: 0 auto 18px; font-size: clamp(38px,7vw,70px); line-height: 1.02; letter-spacing: -.055em; }
.hero p { max-width: 680px; margin: 0 auto 30px; color: var(--muted); font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 17px; background: var(--primary); color: white; font: inherit; font-weight: 750; cursor: pointer; transition: .18s ease; }
.button:hover, button:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.button.secondary, button.secondary { background: #e8eefc; color: #1d4ed8; }
.button.danger, button.danger { background: #fee2e2; color: #b91c1c; }
.button.small, button.small { padding: 7px 11px; border-radius: 9px; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-6 { grid-column: span 6; } .span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; }
.card h2, .card h3 { margin: 0 0 12px; letter-spacing: -.025em; }
.muted { color: var(--muted); }
.metric { font-size: 30px; font-weight: 850; letter-spacing: -.04em; }
.metric-label { color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 12px; font-weight: 750; }
.badge.succeeded, .badge.approved { background: #d1fae5; color: #047857; }
.badge.failed, .badge.rejected, .badge.reversed { background: #fee2e2; color: #b91c1c; }
.badge.pending, .badge.creating { background: #fef3c7; color: #92400e; }
.badge.review, .badge.suspended, .badge.expired { background: #ffedd5; color: #c2410c; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
form.stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: #334155; font-size: 13px; font-weight: 700; }
input, select { width: 100%; border: 1px solid #cbd5e1; background: white; border-radius: 11px; padding: 10px 12px; color: var(--text); font: inherit; }
input:focus, select:focus { outline: 3px solid rgba(37,99,235,.14); border-color: var(--primary); }
.inline { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.inline > * { flex: 1; }
.secret { overflow-wrap: anywhere; background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 12px; font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.notice { border: 1px solid #bfdbfe; background: #eff6ff; color: #1e40af; border-radius: 13px; padding: 13px 15px; }
.notice.warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.notice.danger { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.checkout-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 30px 0; }
.checkout { width: min(460px,100%); text-align: center; padding: 30px; }
.checkout .price { font-size: 43px; font-weight: 900; letter-spacing: -.05em; margin: 18px 0 4px; }
.checkout .stars { color: var(--muted); margin-bottom: 24px; }
.checkout .button { width: 100%; padding: 15px; font-size: 16px; }
.status-line { min-height: 28px; margin-top: 18px; color: var(--muted); }
.spinner { width: 15px; height: 15px; border: 2px solid #cbd5e1; border-top-color: var(--primary); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-card { width: min(520px,100%); margin: 60px auto; text-align: center; }
.login-card .button { margin: 15px 0; }
.chart { height: 190px; display: flex; align-items: end; gap: 7px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.chart-col { flex: 1; min-width: 8px; display: grid; align-items: end; height: 100%; }
.chart-bar { background: linear-gradient(#60a5fa,#2563eb); min-height: 3px; border-radius: 5px 5px 0 0; position: relative; }
.chart-bar:hover::after { content: attr(data-label); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); background: #0f172a; color: white; font-size: 11px; padding: 4px 7px; border-radius: 6px; white-space: nowrap; }
.docs { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 30px; }
.docs-nav { position: sticky; top: 92px; align-self: start; display: grid; gap: 7px; }
.docs-content { min-width: 0; }
.docs-content h1 { font-size: 42px; letter-spacing: -.04em; }
.docs-content h2 { margin-top: 44px; padding-top: 8px; border-top: 1px solid var(--line); }
pre { overflow-x: auto; padding: 17px; border-radius: 13px; background: #0f172a; color: #e2e8f0; font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
@media (max-width: 850px) {
  .span-8,.span-6,.span-4,.span-3 { grid-column: span 12; }
  .docs { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; }
  .nav a:not(.button) { display: none; }
}

