:root {
  --bg: #0b1014;
  --bg-2: #10171e;
  --surface: #151d26;
  --surface-2: #1b2530;
  --line: #2a3848;
  --text: #e9eef4;
  --muted: #8b9bb0;
  --mint: #3ee0b7;
  --mint-dim: #1a8f74;
  --ink: #07120f;
  --danger: #ff7a7a;
  --warn: #f5c16c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(62, 224, 183, 0.08), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(91, 140, 255, 0.06), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.5;
}

a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1120px, calc(100% - 2.4rem)); margin: 0 auto; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--mint), #14997a);
  display: grid; place-items: center;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}
.nav { display: flex; gap: 1rem; align-items: center; color: var(--muted); font-size: 0.95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { border-color: #3d5368; text-decoration: none; }
.btn-primary {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
  font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-danger { border-color: #5a2a2a; color: var(--danger); }
.btn-ghost { background: transparent; }

.hero { padding: 4.2rem 0 3rem; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.kicker {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 1rem; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 38rem; margin: 0 0 1.6rem; }
.cta { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.terminal {
  background: #0a1210;
  border: 1px solid #1f3a32;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.terminal-bar {
  display: flex; gap: 6px; align-items: center;
  padding: 0.7rem 0.9rem;
  background: #10201b;
  border-bottom: 1px solid #1f3a32;
  color: #6f8f84;
  font-family: var(--mono);
  font-size: 0.75rem;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2c4a41; }
.terminal pre {
  margin: 0;
  padding: 1.1rem 1.15rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.65;
  color: #c8efe3;
  overflow-x: auto;
}
.terminal .cmd { color: var(--mint); }
.terminal .dim { color: #6f8f84; }

.section { padding: 1.2rem 0 3.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.3rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }

.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.price { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.price span { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

.auth-shell { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 2rem 0 4rem; }
.auth-card { width: min(440px, 100%); }
label { display: block; margin: 0 0 0.85rem; color: var(--muted); font-size: 0.92rem; }
.input {
  width: 100%;
  margin-top: 0.35rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}
.input:focus { outline: 2px solid rgba(62, 224, 183, 0.35); border-color: var(--mint-dim); }
.errorlist { color: var(--danger); list-style: none; padding: 0; margin: 0.3rem 0 0; font-size: 0.88rem; }
.nonfield { background: #2a1515; border: 1px solid #5a2a2a; color: #ffc9c9; padding: 0.7rem 0.85rem; border-radius: 10px; margin-bottom: 1rem; }

.flash { border-radius: 10px; padding: 0.7rem 0.9rem; margin: 0 0 1rem; }
.flash-success { background: #10261f; border: 1px solid #1f5a45; color: #b6f0dd; }
.flash-warning { background: #2a2212; border: 1px solid #6a5420; color: #ffe3a6; }
.flash-error { background: #2a1515; border: 1px solid #5a2a2a; color: #ffc9c9; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin: 1.2rem 0 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0.95rem 1rem; }
.stat b { display: block; font-size: 1.35rem; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 0.85rem; }

.token-box {
  display: flex; gap: 0.6rem; align-items: center;
  background: #0a1210; border: 1px dashed #2a5a4a;
  border-radius: 12px; padding: 0.7rem 0.8rem;
}
.token-box code {
  flex: 1; overflow: auto; white-space: nowrap;
  font-family: var(--mono); font-size: 0.88rem; color: var(--mint);
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.badge {
  display: inline-block; border-radius: 999px; padding: 0.12rem 0.55rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
}
.badge-on { background: #12352b; color: var(--mint); }
.badge-off { background: var(--surface-2); color: var(--muted); }

.docs pre, .prose pre {
  background: #0a1210; border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.1rem; overflow: auto; font-family: var(--mono); font-size: 0.86rem;
}
.prose h2 { margin-top: 2rem; }
.footer { padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .hero, .grid-3, .plan-grid, .stats { grid-template-columns: 1fr; }
  .nav .hide-sm { display: none; }
}
