*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

:root {
  --purple: #8A63D2;
  --purple-light: #A78BFA;
  --purple-dark: #6D28D9;
  --bg: #0A0A0F;
  --surface: #12121A;
  --surface-2: #1A1A26;
  --border: #2A2A3A;
  --text: #E4E4EC;
  --text-muted: #9494A8;
  --radius: 12px;
}

html { scroll-behavior: smooth }

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

a { color: inherit; text-decoration: none }
ul { list-style: none }

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text) }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-sm { padding: 6px 16px; font-size: 13px }
.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover { background: var(--purple-dark) }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--purple-light); color: var(--purple-light) }
.full-width { width: 100% }

/* Hero */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 160px 24px 80px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--purple-light);
  margin-bottom: 24px;
  background: rgba(138,99,210,0.08);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), #C084FC, #E879F9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.stat span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Sections */
section { padding: 80px 24px }
h2 {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 48px;
}

/* Features */
.feature-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--purple) }
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(138,99,210,0.12);
  color: var(--purple-light);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Code */
.stack { max-width: 700px; margin: 0 auto }
.code-tabs {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.tab {
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.active {
  color: var(--purple-light);
  border-bottom-color: var(--purple);
}
.code-block {
  padding: 24px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--purple);
  box-shadow: 0 0 40px rgba(138,99,210,0.15);
}
.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
}
.pricing-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.price {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
}
.price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-card ul {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-card li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.pricing-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.6;
}

/* CTA */
.cta {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}
.cta h2 { margin-bottom: 12px }
.cta p { color: var(--text-muted); margin-bottom: 32px }
.cta-form {
  display: flex;
  gap: 8px;
}
.cta-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.cta-form input:focus { border-color: var(--purple) }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}
.footer-links {
  display: flex;
  gap: 64px;
}
.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
}
.footer-links a:hover { color: var(--text) }

/* Responsive */
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr }
  .hero-stats { flex-wrap: wrap; gap: 24px }
  .hero-stats .stat { flex: 0 0 40% }
  .footer-inner { flex-direction: column }
  .footer-links { gap: 32px }
  .cta-form { flex-direction: column }
}
