:root {
  --bg: #0a0b0d;
  --bg-soft: #0d0f13;
  --surface: #14171c;
  --surface-2: #191d24;
  --surface-3: #20252e;
  --border: #232830;
  --border-strong: #313845;
  --text: #e6e9ef;
  --muted: #9aa3b2;
  --faint: #6b7382;
  --accent: #b6ff3c;
  --accent-ink: #0a0b0d;
  --accent-dim: rgba(182, 255, 60, 0.12);
  --ok: #7dffa4;
  --danger: #ff7b7b;
  --warn: #ffd166;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.36);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#root {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mono,
code,
pre,
kbd {
  font-family: var(--mono);
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

.small {
  font-size: 13px;
}

.tiny {
  font-size: 12px;
}

.nowrap {
  white-space: nowrap;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.grow {
  flex: 1;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wrap {
  flex-wrap: wrap;
}

.center {
  text-align: center;
}

/* ---------- logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--accent);
}

.logo-word span {
  color: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-sm {
  padding: 8px 13px;
  font-size: 13px;
}

.btn-md {
  padding: 10px 17px;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 15px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover:not(:disabled) {
  background: #c7ff6b;
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-3);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-2);
}

.btn-danger {
  background: rgba(255, 123, 123, 0.12);
  border-color: rgba(255, 123, 123, 0.35);
  color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(255, 123, 123, 0.2);
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* ---------- inputs ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.field-hint {
  font-size: 12px;
  color: var(--faint);
}

.field-error {
  font-size: 12px;
  color: var(--danger);
}

.input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.input::placeholder {
  color: #5d6573;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.checkbox-row input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

/* ---------- cards / surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card-flat {
  background: var(--bg-soft);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-head h2,
.card-head h3 {
  font-size: 16px;
}

.card-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- badges / alerts ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-neutral {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--border);
}

.badge-accent {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(182, 255, 60, 0.25);
}

.badge-ok {
  background: rgba(125, 255, 164, 0.1);
  color: var(--ok);
  border-color: rgba(125, 255, 164, 0.22);
}

.badge-warn {
  background: rgba(255, 209, 102, 0.1);
  color: var(--warn);
  border-color: rgba(255, 209, 102, 0.22);
}

.badge-danger {
  background: rgba(255, 123, 123, 0.1);
  color: var(--danger);
  border-color: rgba(255, 123, 123, 0.22);
}

.alert {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13.5px;
  border: 1px solid;
}

.alert-error {
  background: rgba(255, 123, 123, 0.08);
  border-color: rgba(255, 123, 123, 0.3);
  color: #ffc0c0;
}

.alert-success {
  background: rgba(125, 255, 164, 0.08);
  border-color: rgba(125, 255, 164, 0.3);
  color: #b9ffcf;
}

.alert-info {
  background: var(--accent-dim);
  border-color: rgba(182, 255, 60, 0.25);
  color: #dcffa6;
}

.alert-warn {
  background: rgba(255, 209, 102, 0.08);
  border-color: rgba(255, 209, 102, 0.28);
  color: #ffe3a3;
}

.alert-x {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  padding: 0;
}

/* ---------- spinner ---------- */
.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.spinner-sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fullpage {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

/* ---------- nav / marketing ---------- */
.marketing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 13, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  color: var(--muted);
  margin-left: 12px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-burger,
.nav-mobile-cta {
  display: none;
}

.marketing main {
  flex: 1;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 84px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto;
  height: 520px;
  background: radial-gradient(closest-side, rgba(182, 255, 60, 0.13), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(182, 255, 60, 0.22);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-proof {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--faint);
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-proof .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.mock-window {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.mock-head {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}

.mock-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface-3);
}

.mock-body {
  padding: 22px;
}

.mock-label {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 8px;
}

.mock-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.mock-verify {
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font);
  font-weight: 650;
  font-size: 11.5px;
  padding: 5px 9px;
  border-radius: 7px;
}

.mock-chat {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bubble {
  max-width: 88%;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.45;
}

.bubble-out {
  align-self: flex-end;
  background: #1d3a24;
  color: #c6ffd6;
  border-bottom-right-radius: 4px;
}

.bubble-in {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--muted);
  border-bottom-left-radius: 4px;
}

.bubble-code {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.verified-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ok);
  background: rgba(125, 255, 164, 0.1);
  border: 1px solid rgba(125, 255, 164, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

.kicker {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
  font-family: var(--mono);
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step p {
  font-size: 13.5px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 15.5px;
  margin-bottom: 7px;
}

.feature p {
  font-size: 13.5px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.checklist li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.checklist .tick {
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}

/* code block */
.codeblock {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}

.codeblock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--faint);
  font-family: var(--mono);
}

.codeblock pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.7;
  color: #cfd6e2;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0;
  color: var(--faint);
  font-size: 11.5px;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 6px;
}

.copy:hover {
  color: var(--text);
  background: var(--surface-2);
}

.copy .icon {
  width: 14px;
  height: 14px;
}

/* pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.plan.featured {
  border-color: rgba(182, 255, 60, 0.4);
  box-shadow: 0 0 0 1px rgba(182, 255, 60, 0.12), var(--shadow);
}

.plan-tag {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

.plan-name {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-price {
  font-size: 36px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin: 6px 0 2px;
}

.plan-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0;
}

.plan-desc {
  font-size: 13px;
  color: var(--muted);
  min-height: 40px;
}

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 16px 0 22px;
  font-size: 13px;
  color: var(--muted);
}

.plan-list li {
  display: flex;
  gap: 8px;
}

.plan-list .tick {
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}

.plan .btn {
  margin-top: auto;
}

.quote-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  background: linear-gradient(150deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.quote-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.range-value {
  min-width: 84px;
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.quote-result {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.quote-total {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.quote-total span {
  font-size: 13px;
  color: var(--faint);
  font-weight: 500;
}

.quote-lines {
  list-style: none;
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
}

.quote-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.quote-lines li span:last-child {
  color: var(--text);
  font-family: var(--mono);
}

.cta-band {
  border: 1px solid rgba(182, 255, 60, 0.25);
  background: linear-gradient(120deg, rgba(182, 255, 60, 0.1), rgba(182, 255, 60, 0.02));
  border-radius: 18px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.cta-band p {
  color: var(--muted);
}

/* footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  margin-top: auto;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  color: var(--faint);
  font-size: 13px;
  margin-top: 12px;
}

.footer-cols {
  display: flex;
  gap: 64px;
}

.footer-cols h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin-bottom: 12px;
}

.footer-cols a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-cols a:hover {
  color: var(--text);
}

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--faint);
  flex-wrap: wrap;
}

/* ---------- auth ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 22px;
  background:
    radial-gradient(600px 300px at 50% -10%, rgba(182, 255, 60, 0.08), transparent 70%),
    var(--bg);
}

.auth-logo {
  margin-bottom: 4px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 23px;
  margin-bottom: 6px;
}

.auth-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 22px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-footer {
  font-size: 13px;
  color: var(--faint);
}

.auth-footer a {
  color: var(--accent);
}

.auth-aside {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 16px;
}

.auth-aside a {
  color: var(--muted);
}

.auth-aside a:hover {
  color: var(--text);
}

/* ---------- app shell ---------- */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  width: 256px;
  flex: none;
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px 16px;
}

.sidebar-close {
  display: none;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.account-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.account-meta strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-meta span {
  font-size: 11px;
  color: var(--faint);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--muted);
  border: 1px solid transparent;
}

.side-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

.side-nav a.active {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.side-nav a.active .icon {
  color: var(--accent);
}

.side-nav .admin-link {
  margin-top: 10px;
}

.side-nav .admin-link.active .icon {
  color: var(--warn);
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-link {
  font-size: 12.5px;
  color: var(--faint);
  padding: 6px 10px;
}

.side-link:hover {
  color: var(--text);
}

.side-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: 0;
  color: var(--faint);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.side-user:hover {
  background: var(--surface);
  color: var(--text);
}

.side-user-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 11, 13, 0.9);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.app-topbar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
}

.verify-banner {
  background: rgba(255, 209, 102, 0.08);
  border-bottom: 1px solid rgba(255, 209, 102, 0.25);
  color: #ffe3a3;
  font-size: 12.5px;
  padding: 9px 24px;
}

.verify-banner a {
  color: var(--warn);
  text-decoration: underline;
}

.app-content {
  padding: 34px 34px 64px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.page-head h1 {
  font-size: 25px;
  letter-spacing: -0.025em;
}

.page-head p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 5px;
}

.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  font-weight: 600;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-value.tone-accent {
  color: var(--accent);
}

.stat-value.tone-danger {
  color: var(--danger);
}

.stat-hint {
  font-size: 11.5px;
  color: var(--faint);
}

.meter {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 8px;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.meter-warn span {
  background: var(--warn);
}

.meter-danger span {
  background: var(--danger);
}

/* tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
  font-weight: 650;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.table td strong {
  color: var(--text);
  font-weight: 600;
}

.table .mono {
  font-size: 12px;
}

/* empty */
.empty {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.empty-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.empty h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.empty p {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 420px;
  margin: 0 auto 18px;
}

/* modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 9, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  font-size: 16px;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

/* key/value */
.kv {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.kv-row:last-child {
  border-bottom: 0;
}

.kv-key {
  color: var(--faint);
}

.kv-val {
  color: var(--text);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.secret {
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 9px;
  color: var(--muted);
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.origin-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.origin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

.origin-chip button {
  background: transparent;
  border: 0;
  color: var(--faint);
  cursor: pointer;
  display: inline-flex;
  padding: 0;
}

.origin-chip button:hover {
  color: var(--danger);
}

/* tabs */
.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 18px;
}

.tabs button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  padding: 7px 13px;
  border-radius: 7px;
  cursor: pointer;
}

.tabs button.active {
  background: var(--surface-3);
  color: var(--text);
}

/* chart */
.chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 150px;
  padding-top: 12px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), rgba(182, 255, 60, 0.35));
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  position: relative;
}

.chart-bar:hover {
  background: var(--accent);
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--faint);
  margin-top: 8px;
}

/* docs */
.docs-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 48px;
  padding: 48px 0 80px;
}

.docs-nav {
  position: sticky;
  top: 90px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
}

.docs-nav h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin: 16px 0 6px;
}

.docs-nav a {
  color: var(--muted);
  padding: 5px 8px;
  border-radius: 7px;
}

.docs-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.docs-body {
  max-width: 720px;
  min-width: 0;
}

.docs-body h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.docs-body h2 {
  font-size: 22px;
  margin: 42px 0 12px;
  scroll-margin-top: 90px;
}

.docs-body h3 {
  font-size: 16px;
  margin: 26px 0 8px;
}

.docs-body p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 10px 0;
}

.docs-body li {
  color: var(--muted);
  font-size: 14.5px;
  margin: 6px 0 6px 20px;
}

.docs-body code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 12.5px;
  color: #d7deea;
}

.docs-body .codeblock {
  margin: 16px 0;
}

.docs-body .codeblock pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: #cfd6e2;
}

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #dcffa6;
  margin: 16px 0;
}

/* playground */
.playground-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: start;
  padding: 40px 0 80px;
}

.playground-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.demo-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-phone-wrap {
  position: relative;
}

.playground-note {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 12px;
}

/* admin */
.admin-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search {
  max-width: 280px;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

/* responsive */
@media (max-width: 980px) {
  .hero-inner,
  .split,
  .quote-card,
  .docs-layout,
  .playground-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

  .grid-3,
  .feature-grid,
  .steps,
  .pricing-grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-nav {
    display: none;
  }

  .app-content {
    padding: 24px 20px 56px;
  }
}

@media (max-width: 820px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }

  .sidebar.open {
    transform: none;
  }

  .sidebar-close {
    display: inline-flex;
  }

  .app-topbar {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
    margin: 0;
  }

  .nav-links.open a {
    padding: 10px;
    border-radius: 8px;
  }

  .nav-links.open a:hover {
    background: var(--surface-2);
  }

  .nav-mobile-cta {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }

  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .feature-grid,
  .steps,
  .pricing-grid,
  .stats,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    padding: 12px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .section {
    padding: 52px 0;
  }

  .cta-band {
    padding: 28px;
  }

  .app-content {
    padding: 20px 16px 48px;
  }

  .page-head {
    align-items: flex-start;
  }

  .modal {
    max-height: 94vh;
  }

  .footer-cols {
    gap: 32px;
  }
}

.grid-span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 620px) {
  .grid-span-2 {
    grid-column: auto;
  }
}

/* ---------- public app pages (playground, 404) ---------- */
.public-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(700px 320px at 50% -10%, rgba(182, 255, 60, 0.08), transparent 70%),
    var(--bg);
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.public-nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.public-nav nav a:hover {
  color: var(--text);
}

.public-main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  font-size: 12px;
  color: var(--faint);
  border-top: 1px solid var(--border);
}

.public-404 {
  text-align: center;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.public-404 h1 {
  font-size: 38px;
}

/* marketing-only tweaks */
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.marketing .logo {
  color: var(--text);
}

.marketing .nav-logo:hover .logo-word span {
  color: #c7ff6b;
}
