/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #e0e0e6;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === Utilities === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; border-radius: 10px; transition: all .2s;
  cursor: pointer; border: none; font-family: inherit;
}
.btn-primary { background: #7C65C1; color: #fff; }
.btn-primary:hover { background: #6a54b0; transform: translateY(-1px); }
.btn-outline { border: 1.5px solid rgba(124,101,193,.5); color: #c4b5fd; background: transparent; }
.btn-outline:hover { border-color: #7C65C1; background: rgba(124,101,193,.08); }
.btn-sm { padding: 8px 18px; font-size: .875rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.gradient-text {
  background: linear-gradient(135deg, #7C65C1, #a78bfa, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub { color: #9090a0; font-size: 1.125rem; margin-top: 8px; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(10,10,15,.8); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .9rem; }
.nav-links a:not(.btn) { color: #a0a0b0; transition: color .2s; }
.nav-links a:not(.btn):hover { color: #fff; }
.mobile-toggle { display: none; background: none; border: none; color: #e0e0e6; cursor: pointer; }

/* === Hero === */
.hero {
  position: relative; text-align: center;
  padding: 160px 0 80px; overflow: hidden;
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  background: rgba(124,101,193,.15); color: #a78bfa;
  font-size: .8rem; font-weight: 600; margin-bottom: 24px;
  border: 1px solid rgba(124,101,193,.25);
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.hero-sub { max-width: 560px; margin: 20px auto 0; font-size: 1.15rem; color: #9090a0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  margin-top: 56px;
}
.stat-num { display: block; font-size: 1.6rem; font-weight: 700; color: #fff; }
.stat-label { font-size: .8rem; color: #7070a0; text-transform: uppercase; letter-spacing: .06em; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.1); }
.hero-glow {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,101,193,.15) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
}

/* === Code Preview === */
.code-section { padding: 0 0 80px; }
.code-window {
  background: #12121a; border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; overflow: hidden; max-width: 720px; margin: 0 auto;
}
.code-dots { display: flex; gap: 6px; padding: 14px 18px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.12); }
.code-window pre {
  padding: 0 24px 24px; font-size: .9rem; line-height: 1.75; overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.code-comment { color: #5a5a7a; }
.code-keyword { color: #c084fc; }
.code-string { color: #4ade80; }
.code-fn { color: #60a5fa; }

/* === Features === */
.features { padding: 100px 0; text-align: center; }
.features h2 { font-size: 2.2rem; font-weight: 700; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px; text-align: left;
}
.feature-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 28px;
  transition: border-color .2s, background .2s;
}
.feature-card:hover { border-color: rgba(124,101,193,.3); background: rgba(124,101,193,.04); }
.feature-icon { margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: .9rem; color: #9090a0; line-height: 1.55; }

/* === Developers === */
.developers { padding: 100px 0; }
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dev-text h2 { font-size: 2.2rem; font-weight: 700; line-height: 1.15; }
.dev-text p { color: #9090a0; margin-top: 16px; font-size: 1.05rem; }
.dev-list { margin: 28px 0; display: flex; flex-direction: column; gap: 12px; }
.dev-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.check { color: #4ade80; font-weight: 700; }

.terminal {
  background: #12121a; border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; overflow: hidden;
}
.terminal-bar { display: flex; gap: 6px; padding: 14px 18px; }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.12); }
.terminal-body {
  padding: 0 24px 24px; font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: .85rem; line-height: 1.8;
}
.t-prompt { color: #7C65C1; font-weight: 700; }
.t-dim { color: #5a5a7a; }
.t-success { color: #4ade80; }

/* === Pricing === */
.pricing { padding: 100px 0; text-align: center; }
.pricing h2 { font-size: 2.2rem; font-weight: 700; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px; text-align: left;
}
.price-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 32px; position: relative;
}
.price-card.featured {
  border-color: rgba(124,101,193,.4);
  background: linear-gradient(170deg, rgba(124,101,193,.1), rgba(10,10,15,.5));
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #7C65C1; color: #fff; padding: 4px 14px; border-radius: 100px;
  font-size: .75rem; font-weight: 600;
}
.price-card h3 { font-size: 1.1rem; color: #fff; font-weight: 600; }
.price { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 12px 0 4px; }
.price span { font-size: 1rem; font-weight: 500; color: #7070a0; }
.price-desc { color: #7070a0; font-size: .875rem; margin-bottom: 24px; }
.price-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-card li { font-size: .9rem; color: #b0b0c0; padding-left: 20px; position: relative; }
.price-card li::before { content: "~"; position: absolute; left: 0; color: #7C65C1; font-weight: 700; }

/* === CTA === */
.cta {
  padding: 100px 0; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(124,101,193,.06), transparent);
}
.cta h2 { font-size: 2.2rem; font-weight: 700; }
.cta p { color: #9090a0; margin: 12px 0 32px; font-size: 1.1rem; }

/* === Footer === */
.footer {
  padding: 40px 0; border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-links { display: flex; gap: 24px; font-size: .85rem; }
.footer-links a { color: #7070a0; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: #4a4a60; font-size: .8rem; }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; width: 100%; flex-direction: column; background: rgba(10,10,15,.95); padding: 24px; gap: 18px; backdrop-filter: blur(16px); }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .dev-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 40px; height: 1px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
