:root {
  --bg: #0b0e14;
  --bg-alt: #0f141d;
  --surface: #151b26;
  --surface-2: #1a2130;
  --border: #232c3b;
  --text: #e7ecf3;
  --muted: #93a1b4;
  --accent: #4f8cff;
  --accent-2: #38d0c6;
  --accent-hover: #6ba0ff;
  --gold: #f5b301;
  --radius: 14px;
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease; white-space: nowrap;
}
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,14,20,.8); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.brand strong { color: var(--accent); font-weight: 800; }
.brand-mark { display: inline-flex; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 72px; background:
  radial-gradient(900px 400px at 80% -10%, rgba(79,140,255,.14), transparent 60%),
  radial-gradient(700px 400px at 0% 20%, rgba(56,208,198,.08), transparent 55%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--accent-2); background: rgba(56,208,198,.1); border: 1px solid rgba(56,208,198,.25);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: 52px; line-height: 1.08; font-weight: 800; letter-spacing: -1.5px; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 18px; margin: 20px 0 28px; max-width: 520px; }
.lead strong { color: var(--text); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 22px; color: #fff; }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ---------- code cards ---------- */
.hero-card, .code-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.code-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f56; } .dot.y { background: #ffbd2e; } .dot.g { background: #27c93f; }
.code-title { color: var(--muted); font-size: 13px; margin-left: 8px; font-weight: 600; }
.code { padding: 18px; overflow-x: auto; font-size: 13px; line-height: 1.7; color: #cdd6e3; }
.code code { color: inherit; }
.copy { margin-left: auto; background: transparent; border: 1px solid var(--border); color: var(--muted); font-size: 12px; padding: 4px 10px; border-radius: 7px; cursor: pointer; }
.copy:hover { color: #fff; border-color: var(--accent); }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 34px; font-weight: 800; letter-spacing: -.8px; text-align: center; }
.section-sub { text-align: center; color: var(--muted); font-size: 17px; margin: 12px 0 44px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card code { color: var(--accent-2); background: rgba(56,208,198,.1); padding: 1px 6px; border-radius: 5px; font-size: 13px; }

/* ---------- pricing ---------- */
.pricing .tier { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.tier h3 { font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.tier .price { font-size: 40px; font-weight: 800; margin: 8px 0 18px; }
.tier .price span { font-size: 15px; color: var(--muted); font-weight: 500; }
.tier ul { list-style: none; margin-bottom: 24px; flex: 1; }
.tier li { padding: 7px 0; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--border); }
.tier li:last-child { border-bottom: none; }
.tier-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(79,140,255,.15); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1a1200; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

/* ---------- cta ---------- */
.cta { padding: 80px 0; text-align: center; background: radial-gradient(700px 300px at 50% 0%, rgba(79,140,255,.14), transparent 60%); }
.cta h2 { font-size: 32px; font-weight: 800; letter-spacing: -.6px; }
.cta p { color: var(--muted); font-size: 17px; margin: 12px 0 26px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 54px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .muted { color: var(--muted); font-size: 14px; margin-top: 10px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 14px; margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 12px 24px 20px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle { display: block; }
}
