
:root {
  --bg: #0a0c11;
  --bg-2: #0f1218;
  --card: #13171f;
  --card-2: #181d27;
  --line: #222835;
  --line-2: #2c3443;
  --ink: #e6e9f0;
  --ink-2: #c3c9d6;
  --muted: #8a92a6;
  --accent: #7c8cff;
  --accent-2: #a78bfa;
  --accent-ink: #0a0c11;
  --accent-soft: rgba(124, 140, 255, 0.14);
  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, 0.14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.14);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.14);
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 8px 24px rgba(0,0,0,0.3);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
* { scrollbar-width: thin; scrollbar-color: #2c3443 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2c3443; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
p { margin: 0; }
::selection { background: rgba(124,140,255,0.35); }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; background: var(--card); padding: 8px 12px; z-index: 20; border-radius: 8px; }

/* ── Shared atoms ─────────────────────────────────────────────────────── */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 28px; }
.mb { margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; }
.inline-form { display: inline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink);
  font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, transform .06s;
}
.btn:hover { background: #1f2531; border-color: #3a4353; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: #8e9cff; border-color: #8e9cff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--card-2); border-color: transparent; color: var(--ink); }
.btn-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn-danger:hover { background: rgba(255,107,107,0.24); border-color: transparent; }
.btn-block { width: 100%; }
.btn-small { height: 28px; padding: 0 9px; font-size: 12.5px; }
.btn-lg { height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 15px; height: 15px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge-plain::before { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 10px;
  border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--ink-2); max-width: 100%;
}
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 22px; min-width: 22px; padding: 0 6px; border-radius: 6px; border: 0;
  background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 500;
}
.copy:hover { background: var(--card-2); color: var(--ink); }
.copy.copied { color: var(--ok); }
.copy svg { width: 13px; height: 13px; }

.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 18px;
  border: 1px solid transparent; font-size: 13.5px; word-break: break-word;
}
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-err { background: var(--danger-soft); color: var(--danger); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-info { background: var(--accent-soft); color: var(--accent); }

.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.input {
  height: 34px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; font-family: var(--mono); font-size: 12.5px; }
.input::placeholder { color: #5c6478; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a92a6' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.hint { font-size: 12px; color: var(--muted); }
.err { color: var(--danger); font-size: 13px; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { font-size: 15px; }
.card-head p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card-danger { border-color: rgba(255,107,107,0.35); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--bg-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255,255,255,0.015); }
.table td.wrap { white-space: normal; }
.table tr.is-new td { background: var(--accent-soft); }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
.empty strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stat strong { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.stat em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 6px; }

.code-block {
  margin: 0; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--ink-2);
  overflow-x: auto; white-space: pre;
}
.code-block .c { color: var(--muted); }
.code-block .k { color: var(--accent-2); }
.code-block .s { color: var(--ok); }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--card-2); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-size: 12px; color: var(--muted); }
.code-head + .code-block { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab-active { color: var(--ink); border-bottom-color: var(--accent); }
.tab .n { margin-left: 6px; font-size: 11px; color: var(--muted); background: var(--card-2); padding: 1px 6px; border-radius: 999px; }

.card-head form.row { flex-wrap: nowrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); }
.filter:hover { color: var(--ink); }
.filter-active { color: var(--ink); background: var(--card-2); border-color: var(--line-2); }

/* ── Public site ──────────────────────────────────────────────────────── */
.site { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.top-wrap { border-bottom: 1px solid var(--line); }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 15px; }
.brand-mark { width: 24px; height: 24px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); }
.brand-mark svg { width: 15px; height: 15px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav-link { text-decoration: none; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.nav-link:hover { color: var(--ink); background: var(--card); }
.page { flex: 1; width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 60px; }
.footer { border-top: 1px solid var(--line); }
.footer-in { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.footer-in a { text-decoration: none; color: var(--muted); margin-left: 14px; }
.footer-in a:hover { color: var(--ink); }

.hero > *, .grid-2 > *, .snips > *, .app-body, .app-main { min-width: 0; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 72px 0 56px; }
.kicker svg { width: 14px; height: 14px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; max-width: 14ch; }
.lead { font-size: 16px; color: var(--muted); margin-top: 16px; max-width: 480px; line-height: 1.6; }
.actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.hero-code { position: relative; }
.hero-code .code-block { font-size: 12.5px; box-shadow: var(--shadow); }

.proof { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 72px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.proof strong { color: var(--ink); font-weight: 500; margin-right: 6px; }

.section-head { max-width: 560px; margin: 0 0 24px; }
.section-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 72px; }
.feature { padding: 20px; background: var(--bg); }
.feature .ico { color: var(--accent); margin-bottom: 12px; }
.feature .ico svg { width: 18px; height: 18px; }
.side-link svg, .btn svg, .copy svg, .kicker svg { flex: none; }
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-bottom: 72px; counter-reset: step; }
.step { padding: 0; position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); color: var(--accent); font-size: 12px; font-weight: 600; display: block; margin-bottom: 10px; }
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13.5px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 720px; margin: 0; }
.plan { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: flex; flex-direction: column; position: relative; }
.plan-featured { border-color: var(--line-2); }
.plan-tag { position: absolute; top: 22px; right: 22px; color: var(--ok); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.plan h3 { font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.plan .amount { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; margin: 8px 0 2px; }
.plan .amount span { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .tagline { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; font-size: 13.5px; }
.plan li { display: flex; gap: 9px; align-items: center; }
.plan li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc97' stroke-width='3'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat; }
.plan .btn { margin-top: auto; }
.plan-current { border-color: var(--ok); }

#pricing { margin-bottom: 72px; }
.faq { max-width: 720px; margin: 0 0 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding-bottom: 14px; font-size: 13.5px; }

/* ── Auth ─────────────────────────────────────────────────────────────── */
.auth { flex: 1; display: grid; place-items: center; padding: 40px 16px; }
.panel { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h1 { font-size: 20px; margin-bottom: 4px; letter-spacing: -0.02em; }
.panel .lead { font-size: 13.5px; margin: 0 0 22px; }
.panel-foot { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.panel-foot a { color: var(--ink); }

/* ── Dashboard ────────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 0 8px; }
.side-nav { display: grid; gap: 2px; }
.side-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px 4px; font-weight: 600; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 13.5px; }
.side-link svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.side-link:hover { background: var(--card); color: var(--ink); }
.side-link-active { background: var(--card-2); color: var(--ink); }
.side-link-active svg { color: var(--accent); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 4px 6px; min-width: 0; text-decoration: none; border-radius: var(--radius-sm); }
.side-user:hover { background: var(--card); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 600; font-size: 12px; color: var(--ink); flex: none; }
.side-user div { min-width: 0; }
.side-user strong { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user span { font-size: 11.5px; color: var(--muted); }
.app-body { min-width: 0; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs strong { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-main { padding: 24px 28px; width: 100%; max-width: 1180px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); margin-top: 4px; font-size: 13.5px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.section { margin-top: 16px; }

.app-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.app-card { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color .12s, transform .12s; }
.app-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.app-card h3 { font-size: 15px; margin-bottom: 4px; }
.app-card .meta { display: flex; gap: 14px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.app-card .meta strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
.app-card .id { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.keys-new { margin-bottom: 18px; }
.keys-new textarea { min-height: 80px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.endpoint { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.method { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 5px; background: var(--ok-soft); color: var(--ok); }
.endpoint code { font-family: var(--mono); font-size: 14px; }
.docs-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.doc-table td:first-child { font-family: var(--mono); font-size: 12.5px; color: var(--accent-2); }
.snips { display: grid; gap: 14px; }

.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.code { font-family: var(--mono); font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); text-align: center; letter-spacing: .04em; }
.qr { width: 180px; padding: 8px; background: #fff; border-radius: 8px; }
.qr svg { width: 100%; height: auto; display: block; }
.prewrap { white-space: pre-wrap; }
.menu-toggle { display: none; }

@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .app { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 14px; gap: 10px; }
  .side-nav { display: flex; flex-wrap: wrap; gap: 2px; width: 100%; order: 3; }
  .side-label { display: none; }
  .side-link { padding: 7px 10px; font-size: 13px; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
  .side-user span, .side-user div { display: none; }
  .app-top { padding: 12px 16px; }
  .app-main { padding: 18px 16px; }
  .top { padding: 14px 0; }
  .nav .nav-link { display: none; }
  .table th, .table td { padding: 9px 10px; }
}

/* ── Landing ──────────────────────────────────────────────────────────── */
.site { position: relative; }
.site .page { position: relative; z-index: 1; }
.l-bg { position: absolute; inset: 0 0 auto 0; height: 1100px; pointer-events: none; overflow: hidden; z-index: 0; }
.l-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
}
.l-glow {
  position: absolute; left: 50%; top: -260px; width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124,140,255,0.28), rgba(167,139,250,0.10) 50%, transparent 75%);
  filter: blur(40px);
}
@keyframes l-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes l-in { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
.l-hero { text-align: center; padding: 84px 0 48px; max-width: 800px; margin: 0 auto; }
.l-hero > * { animation: l-up .6s cubic-bezier(.2,.7,.2,1) both; }
.l-hero > *:nth-child(2) { animation-delay: .06s }
.l-hero > *:nth-child(3) { animation-delay: .12s }
.l-hero > *:nth-child(4) { animation-delay: .18s }
.l-hero > *:nth-child(5) { animation-delay: .24s }
.l-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(19,23,31,0.7); color: var(--ink-2); font-size: 12.5px; text-decoration: none;
  backdrop-filter: blur(8px); transition: border-color .15s, color .15s;
}
.l-pill:hover { border-color: var(--accent); color: var(--ink); }
.l-pill span { background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.l-pill svg { width: 13px; height: 13px; color: var(--muted); }
.l-hero h1 {
  font-size: clamp(38px, 6.2vw, 68px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; margin-top: 26px;
  background: linear-gradient(180deg, #fff 30%, #a9b0c2 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.l-hero p { color: var(--muted); font-size: 17.5px; line-height: 1.6; margin: 22px auto 0; max-width: 580px; }
.l-cta { display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.l-btn-glass { background: rgba(255,255,255,0.04); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn-primary { box-shadow: 0 0 0 1px rgba(124,140,255,0.25), 0 8px 24px -8px rgba(124,140,255,0.6); }
.l-langs { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.l-langs b { font-weight: 500; color: var(--ink-2); background: rgba(255,255,255,0.04); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; font-family: var(--mono); font-size: 12px; }

/* mockup */
.l-mock-wrap { padding: 20px 0 0; animation: l-in .9s cubic-bezier(.2,.7,.2,1) .25s both; position: relative; }
.l-mock-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.l-mock {
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); overflow: hidden; font-size: 12px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 120px -40px rgba(124,140,255,0.35);
}
.l-mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.l-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.l-mock-bar em { font-style: normal; margin-left: auto; margin-right: auto; color: var(--muted); font-size: 11.5px; background: var(--bg-2); padding: 3px 60px; border-radius: 6px; border: 1px solid var(--line); }
.l-mock-body { display: grid; grid-template-columns: 180px 1fr; min-height: 420px; }
.l-mock-side { border-right: 1px solid var(--line); padding: 14px 10px; background: var(--bg-2); }
.l-mock-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; padding: 0 8px 14px; font-size: 13px; }
.l-mock-brand i { width: 18px; height: 18px; border-radius: 5px; background: var(--accent); }
.l-mock-nav b { display: block; font-weight: 500; color: var(--ink-2); padding: 6px 9px; border-radius: 6px; }
.l-mock-nav b.on { background: var(--card-2); color: var(--ink); }
.l-mock-main { padding: 18px 20px; text-align: left; }
.l-mock-head { display: flex; align-items: center; gap: 10px; }
.l-mock-head strong { font-size: 16px; }
.l-mock-btn { margin-left: auto; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 6px 11px; border-radius: 6px; }
.l-mock-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 14px 0; }
.l-mock-tabs b { font-weight: 500; color: var(--muted); padding: 7px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.l-mock-tabs b.on { color: var(--ink); border-color: var(--accent); }
.l-mock-tabs i { font-style: normal; font-size: 10px; background: var(--card-2); padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.l-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.l-mock-stats div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--card); }
.l-mock-stats span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.l-mock-stats strong { font-size: 18px; letter-spacing: -0.02em; }
.l-mock-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.l-mock-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; background: var(--card); border-bottom: 1px solid var(--line); }
.l-mock-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.l-mock-table tr:last-child td { border-bottom: 0; }
.l-mock-table code { font-family: var(--mono); font-size: 11.5px; background: var(--bg-2); border: 1px solid var(--line); padding: 3px 7px; border-radius: 5px; color: var(--ink); }
.l-mock-table td b { font-weight: 500; color: var(--muted); margin-left: 10px; }
.l-mock .badge { height: 18px; font-size: 10px; }

/* sections */
.l-section { padding: 96px 0 0; }
.l-head { max-width: 640px; margin-bottom: 40px; }
.l-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.l-eyebrow { display: inline-block; color: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.l-head h2, .l-code h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.035em; line-height: 1.1; }
.l-head p, .l-code-text > p { color: var(--muted); font-size: 16px; margin-top: 14px; line-height: 1.6; }

/* bento */
.l-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.l-cell {
  position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 40%), var(--card);
  transition: border-color .2s, transform .2s, box-shadow .2s; overflow: hidden;
}
.l-cell::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(124,140,255,0.10), transparent 60%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.l-cell:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 20px 40px -24px rgba(0,0,0,0.8); }
.l-cell:hover::before { opacity: 1; }
.l-cell-wide { grid-column: span 2; }
.l-cell h3 { font-size: 15.5px; margin-top: 18px; }
.l-cell p { color: var(--muted); font-size: 13.5px; margin-top: 6px; line-height: 1.55; }
.l-cell p code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.l-cell-visual { height: 150px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); padding: 14px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.l-cell-visual-row { justify-content: center; }
.l-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.l-key { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 7px; padding: 7px 10px; animation: l-up .6s both; }
.l-key code { font-family: var(--mono); font-size: 11.5px; }
.l-key svg { width: 12px; height: 12px; color: var(--muted); }
.l-hwid-row { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); }
.l-hwid-row svg { width: 13px; height: 13px; color: var(--muted); }
.l-hwid-row em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.l-hwid-row em.ok { color: var(--ok); } .l-hwid-row em.bad { color: var(--danger); }
.l-hwid-reset { border-color: rgba(124,140,255,0.5); background: var(--accent-soft); }
.l-hwid-reset svg, .l-hwid-reset em { color: var(--accent); }
.l-mini-code { margin: 0; font-family: var(--mono); font-size: 11.5px; line-height: 1.55; color: var(--ink-2); white-space: pre; }
.l-vars div, .l-bl div { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); font-size: 12px; }
.l-vars code, .l-bl code { font-family: var(--mono); font-size: 11.5px; color: var(--accent-2); }
.l-vars span { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-bl em { margin-left: auto; font-style: normal; color: var(--muted); }
.l-log { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); font-size: 12px; }
.l-log i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.l-log code { font-family: var(--mono); font-size: 11.5px; }
.l-log span { color: var(--muted); font-family: var(--mono); font-size: 11.5px; } .l-log span:last-child { margin-left: auto; }

/* code split */
.l-code { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.l-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.l-steps li { display: flex; gap: 14px; align-items: flex-start; }
.l-steps b { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--accent); }
.l-steps strong { display: block; font-size: 14px; font-weight: 600; }
.l-steps span { color: var(--muted); font-size: 13px; }
.l-code-panel { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8), 0 0 80px -40px rgba(124,140,255,0.3); }
.l-code-tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); background: var(--card); }
.l-code-tabs button { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); padding: 7px 10px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; border-radius: 0; }
.l-code-tabs button:hover { color: var(--ink-2); }
.l-code-tabs button.on { color: var(--ink); border-color: var(--accent); }
.l-code-panel .code-block { border: 0; border-radius: 0; padding: 18px 20px; font-size: 13px; min-height: 380px; }
.l-code-panel .code-block[hidden] { display: none; }

/* pricing */
.l-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; max-width: 820px; margin: 0 auto; }
.l-plan { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--card); display: flex; flex-direction: column; gap: 14px; }
.l-plan-featured { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(160deg, rgba(124,140,255,0.9), rgba(167,139,250,0.35) 50%, var(--line) 100%) border-box; box-shadow: 0 30px 60px -30px rgba(124,140,255,0.35); }
.l-plan-top { display: flex; align-items: center; justify-content: space-between; }
.l-plan h3 { font-size: 15px; font-weight: 600; }
.l-tag { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
.l-amount { font-size: 44px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.l-amount span { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 8px; }
.l-plan > p { color: var(--muted); font-size: 13.5px; }
.l-plan ul { list-style: none; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13.5px; }
.l-plan li { display: flex; align-items: center; gap: 10px; }
.l-plan li svg { width: 14px; height: 14px; color: var(--ok); flex: none; }

.l-faq .faq { max-width: 760px; margin-left: auto; margin-right: auto; }
.l-final { margin: 110px 0 40px; text-align: center; padding: 72px 24px; border: 1px solid var(--line); border-radius: 20px; position: relative; overflow: hidden; background: var(--card); }
.l-final::before { content: ""; position: absolute; inset: -40% 0 auto; height: 140%; background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(124,140,255,0.28), transparent 70%); pointer-events: none; }
.l-final > * { position: relative; }
.l-final h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.035em; }
.l-final p { color: var(--muted); margin: 12px 0 26px; font-size: 15px; }

@media (max-width: 1000px) { .l-bento { grid-template-columns: 1fr 1fr; } .l-cell-wide { grid-column: span 2; } .l-code { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 720px) {
  .l-hero { padding-top: 48px; } .l-hero p { font-size: 16px; }
  .l-bento { grid-template-columns: 1fr; } .l-cell-wide { grid-column: auto; } .l-keys { grid-template-columns: 1fr; }
  .l-mock-body { grid-template-columns: 1fr; } .l-mock-side { display: none; } .l-mock-stats { grid-template-columns: 1fr 1fr 1fr; }
  .l-mock-table th:nth-child(3), .l-mock-table td:nth-child(3), .l-mock-table th:nth-child(5), .l-mock-table td:nth-child(5) { display: none; }
  .l-section { padding-top: 72px; } .l-final { margin-top: 72px; padding: 48px 20px; }
  .l-mock-bar em { padding: 3px 16px; }
}
@media (prefers-reduced-motion: reduce) { .l-hero > *, .l-mock-wrap, .l-key { animation: none; } }
