:root {
  --bg: #0d1220;
  --bg2: #121a2e;
  --card: #182238;
  --text: #e8ecf5;
  --muted: #9aa5bd;
  --accent: #5b8cff;
  --accent2: #8f6bff;
  --border: #23304d;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { vertical-align: middle; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 18, 32, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .tag { font-size: .65rem; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-weight: 500; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 600; font-size: .95rem; border: none; cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .88; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }

/* Hero */
.hero { padding: 90px 0 70px; text-align: center; background:
  radial-gradient(900px 400px at 50% -10%, rgba(91, 140, 255, .16), transparent), var(--bg); }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.5px; max-width: 840px; margin: 0 auto 18px; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto 30px; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 1.8rem; letter-spacing: -.3px; }
.section-title p { color: var(--muted); margin-top: 8px; }

.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--accent); }
.stat .lbl { color: var(--muted); font-size: .88rem; }

/* Pricing */
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 40px rgba(91, 140, 255, .15); }
.price-card .plan { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }
.price-card .amount { font-size: 2.2rem; font-weight: 800; margin: 12px 0 4px; }
.price-card .amount small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; margin: 20px 0; flex: 1; }
.price-card ul li { padding: 7px 0; color: var(--muted); font-size: .93rem; }
.price-card ul li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 9px; }

/* Page head (subpages) */
.page-head { padding: 58px 0 34px; background: radial-gradient(700px 300px at 50% -10%, rgba(143, 107, 255, .14), transparent), var(--bg); }
.page-head h1 { font-size: 2.1rem; letter-spacing: -.4px; }
.page-head p { color: var(--muted); max-width: 640px; margin-top: 10px; }

.prose { color: var(--text); max-width: 780px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose h3 { margin: 26px 0 10px; font-size: 1.15rem; }
.prose ul { padding-left: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 36px; background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); font-size: .92rem; }
.site-footer .about { color: var(--muted); font-size: .9rem; max-width: 300px; }
.copyright { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Misc */
.badge { display: inline-block; font-size: .72rem; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; color: var(--muted); margin-right: 6px; }
.center { text-align: center; }
.mt { margin-top: 28px; }
.api-demo {
  background: #0a0f1c; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .82rem; color: #a8ffe0; overflow-x: auto; white-space: pre;
}
.api-demo .c { color: #5a6c92; }
