:root {
  color-scheme: dark;
  --bg: #070708;
  --card: rgba(16, 16, 18, .86);
  --line: rgba(255, 255, 255, .12);
  --text: #f5f5f4;
  --muted: #a3a3a3;
  --danger: #ffb4b4;
  --ok: #b6f2c2;
  --wait: #ffe08a;
  --shadow: 0 30px 80px rgba(0, 0, 0, .35);
  font-family: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(124, 58, 237, .28), transparent 60%),
    radial-gradient(680px 360px at -10% 0%, rgba(255, 77, 157, .16), transparent 55%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bar, main, .foot { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 76px; position: sticky; top: 0; z-index: 5;
  background: rgba(7, 7, 8, .72); backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.04em; }
.brand svg { width: 28px; height: 28px; }
#nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
#nav a, .text-link { color: var(--muted); padding: 8px 10px; border-radius: 999px; }
#nav a.current, #nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
main { padding: 28px 0 72px; }
.eyebrow { margin: 0 0 12px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; }
h1 { margin: 0 0 14px; font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: .96; letter-spacing: -0.055em; font-weight: 650; }
h2 { margin: 0 0 8px; letter-spacing: -0.03em; }
.lede, .muted { color: var(--muted); font-size: 1.05rem; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
.steps, .cards, .stack { display: grid; gap: 14px; }
.steps { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card, .panel, form.panel, dialog {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px;
  box-shadow: var(--shadow);
}
.step strong { display: block; font-size: 1.35rem; letter-spacing: -0.04em; margin-bottom: 6px; }
.step span { color: var(--muted); }
.featured { border-width: 2px; border-color: transparent; background:
  linear-gradient(var(--card), var(--card)) padding-box,
  linear-gradient(135deg, #ff4d9d, #7c3aed) border-box;
}
.price { font-size: 2.4rem; letter-spacing: -0.05em; font-weight: 700; margin: 12px 0 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn, button, .btn-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 0 18px; border-radius: 999px; border: 1px solid #fff; background: #fff; color: #111;
  font-weight: 700; cursor: pointer;
}
.ghost, button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.danger { background: #3a1218; color: #fff; border-color: #7a3038; }
button:disabled { opacity: .55; cursor: wait; }
label { display: grid; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: .92rem; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: #0c0c0e; color: var(--text);
}
textarea { min-height: 180px; font-family: Consolas, ui-monospace, monospace; }
.note { border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--muted); }
.error { color: var(--danger); }
.ok-text { color: var(--ok); }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px 10px; border: 1px solid var(--line); font-size: .85rem; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--wait); }
.pill.ok i { background: #3ddc84; }
.pill.off i { background: #888; }
.server { display: grid; gap: 12px; }
.server header, .split { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.split > * { flex: 1; min-width: 0; }
code, .mono { font-family: Consolas, ui-monospace, monospace; }
.auth { max-width: 460px; }
.legal { max-width: 720px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal h2 { margin-top: 28px; }
.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 32px; color: var(--muted); border-top: 1px solid var(--line);
}
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
dialog { color: var(--text); max-width: 440px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0,0,0,.62); }
.loading { color: var(--muted); }
.empty { padding: 28px; }
@media (max-width: 860px) {
  .hero, .steps, .cards, .server header, .split { grid-template-columns: 1fr; display: grid; }
  .bar, main, .foot { width: min(1120px, calc(100% - 28px)); }
  .bar { align-items: flex-start; flex-wrap: wrap; min-height: 0; padding: 14px 0; }
  #nav { width: 100%; justify-content: flex-start; }
  h1 { font-size: clamp(2.3rem, 12vw, 3.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
