:root {
  --bg: #0b0f17;
  --panel: #121826;
  --panel-2: #0e1420;
  --text: #e6edf3;
  --muted: #8b97a7;
  --brand: #4f8cff;
  --brand-2: #36d39a;
  --danger: #ff5d5d;
  --border: #1e2940;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, #15233f 0%, var(--bg) 55%);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11,15,23,0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand .logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: inline-block;
}
.nav-links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn {
  display: inline-block; padding: 9px 16px; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; transition: transform .05s ease, opacity .2s;
}
.btn:hover { opacity: .92; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.green { background: var(--brand-2); }

/* Hero */
.hero { padding: 86px 0 40px; text-align: center; }
.hero h1 { font-size: 46px; line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; }

/* Command box */
.cmd {
  margin: 34px auto 0; max-width: 760px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: left; overflow: hidden;
}
.cmd .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.cmd .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3550; }
.cmd .bar span.title { margin-left: auto; color: var(--muted); font-size: 12px; }
.cmd pre {
  margin: 0; padding: 16px; overflow-x: auto;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #cfe3ff;
}
.cmd .copy {
  display: block; width: 100%; padding: 11px; border: none; border-top: 1px solid var(--border);
  background: var(--panel); color: var(--text); cursor: pointer; font-weight: 600; font-size: 13px;
}
.cmd .copy:hover { background: #16203a; }

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: 28px; margin: 0 0 8px; text-align: center; }
.section-sub { color: var(--muted); text-align: center; margin: 0 0 36px; }

.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .icon { font-size: 22px; margin-bottom: 12px; }

/* Pricing */
.price-grid { grid-template-columns: repeat(3, 1fr); }
.price { text-align: center; position: relative; }
.price.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.price .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 999px; }
.price h3 { font-size: 18px; }
.price .amount { font-size: 38px; font-weight: 700; margin: 8px 0; }
.price .amount small { font-size: 14px; color: var(--muted); font-weight: 400; }
.price ul { list-style: none; padding: 0; margin: 16px 0 22px; text-align: left; }
.price li { padding: 7px 0; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--border); }
.price li::before { content: "✓"; color: var(--brand-2); margin-right: 8px; }

/* Warning banner */
.warn {
  background: rgba(255,93,93,0.08); border: 1px solid rgba(255,93,93,0.35);
  color: #ffc9c9; border-radius: var(--radius); padding: 14px 18px; font-size: 14px;
}
.warn b { color: var(--danger); }

/* Login / modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none;
  align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%; max-width: 420px; padding: 26px;
}
.modal h2 { margin: 0 0 6px; font-size: 22px; }
.modal p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.modal label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.modal input {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font-size: 14px; margin-bottom: 14px;
}
.modal input:focus { outline: none; border-color: var(--brand); }
.modal .msg { font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.modal .msg.err { color: var(--danger); }
.modal .msg.ok { color: var(--brand-2); }
.modal .close { float: right; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; }

/* Docs */
.doc { max-width: 820px; margin: 0 auto; }
.doc h2 { margin-top: 38px; }
.doc pre {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; overflow-x: auto; font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace; color: #cfe3ff;
}
.doc code { background: var(--panel-2); padding: 2px 6px; border-radius: 6px; font-size: 13px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.doc th, .doc td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
.doc th { color: var(--muted); font-weight: 600; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-inner .links { margin-left: auto; display: flex; gap: 16px; }
.footer-inner a { color: var(--muted); }

@media (max-width: 760px) {
  .grid.cols-3, .price-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .nav-links a:not(.btn) { display: none; }
}
