/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-code: #1a1a2e;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --border: #27272a;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --radius: 12px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Nav */
.nav { padding: 16px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(10,10,10,0.9); backdrop-filter: blur(12px); z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 20px; font-weight: 700; color: var(--text); }
.logo:hover { color: var(--primary); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 100px 0 80px; text-align: center; }
.badge { display: inline-block; padding: 6px 16px; background: rgba(99,102,241,0.15); color: var(--primary); border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; line-height: 1.1; margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 500px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; }

/* Code Block */
.code-block { background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius); max-width: 640px; margin: 0 auto; text-align: left; overflow: hidden; }
.code-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.3); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }
.code-title { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.code-block pre { padding: 20px; overflow-x: auto; }
.code-block code { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; color: #c9d1d9; }
.kw { color: #79c0ff; }
.str { color: #a5d6ff; }

/* Features */
.features { padding: 80px 0; }
.features h2 { text-align: center; font-size: 32px; margin-bottom: 48px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.feature-card:hover { border-color: var(--primary); }
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* Pricing */
.pricing { padding: 80px 0; }
.pricing h2 { text-align: center; font-size: 32px; margin-bottom: 8px; }
.pricing-sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.price-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; position: relative; }
.price-card.featured { border-color: var(--primary); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 4px 16px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.price-card h3 { font-size: 20px; margin-bottom: 8px; }
.price { font-size: 42px; font-weight: 700; margin-bottom: 24px; }
.price span { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.price-card ul { list-style: none; margin-bottom: 28px; }
.price-card li { padding: 6px 0; color: var(--text-muted); font-size: 14px; }
.price-card li::before { content: "\2713 "; color: var(--green); margin-right: 8px; }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 24px; }

/* CTA */
.cta { padding: 80px 0; text-align: center; border-top: 1px solid var(--border); }
.cta h2 { font-size: 28px; margin-bottom: 12px; }
.cta p { color: var(--text-muted); margin-bottom: 28px; }
.signup-form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; }
.signup-form input { flex: 1; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-size: 15px; }
.signup-form input:focus { outline: none; border-color: var(--primary); }

/* Footer */
.footer { padding: 48px 0 24px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; margin-bottom: 32px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 64px; }
.footer-links h4 { font-size: 14px; margin-bottom: 12px; }
.footer-links a { display: block; color: var(--text-muted); font-size: 14px; padding: 4px 0; }
.footer-links a:hover { color: var(--text); }
.copyright { color: var(--text-muted); font-size: 13px; text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }

/* Responsive */
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .nav-links { gap: 16px; }
  .signup-form { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
}
