:root {
  --bg: #0b0e14;
  --bg-soft: #121722;
  --panel: #161c28;
  --border: #232c3d;
  --fg: #e6ebf4;
  --muted: #97a3b8;
  --accent: #4fd1c5;
  --accent-2: #6aa8ff;
  --danger: #ff6b6b;
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,14,20,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  background: var(--accent); color: #06231f; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--border); }

/* Hero */
.hero { padding: 96px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 480px;
  background: radial-gradient(600px 300px at 50% 0, rgba(79,209,197,.18), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  color: var(--accent); border: 1px solid var(--border); background: var(--panel);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.codesample {
  margin: 44px auto 0; max-width: 620px; text-align: left;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--mono); font-size: 13.5px; overflow: hidden;
}
.codesample .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.codesample .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c3648; }
.codesample pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: #cdd6e6; }
.codesample .k { color: var(--accent); }
.codesample .s { color: #a5d6a7; }
.codesample .c { color: var(--muted); }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--border); }
section h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 12px; letter-spacing: -.01em; text-align: center; }
section .sub { color: var(--muted); text-align: center; max-width: 560px; margin: 0 auto 44px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .ic { font-size: 24px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px -30px var(--accent); }
.plan .name { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.plan .price { font-size: 34px; font-weight: 700; margin: 10px 0 2px; }
.plan .price span { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan li { padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; color: var(--fg); }
.plan li:last-child { border-bottom: 0; }
.plan .tag { display: inline-block; font-size: 11px; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 9px; margin-left: 8px; vertical-align: middle; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 44px 0; color: var(--muted); font-size: 14px; }
footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }
footer .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.note { background: #2a1f0a; border: 1px solid #5a4410; color: #f0d488; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin: 18px auto 0; max-width: 620px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 20px 80px; }
.legal h1 { font-size: 32px; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { color: #cdd6e6; }
.legal a.back { display: inline-block; margin-bottom: 24px; font-size: 14px; }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}
