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

:root {
  --purple: #7c3aed;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --light-purple: #a78bfa;
  --bg: #06060b;
  --bg-alt: #0a0a12;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
  --text: #e4e4e7;
  --text-muted: #71717a;
}

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

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--light-purple), var(--indigo), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(6, 6, 11, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 1.3rem; font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: flex; align-items: center; gap: 0.5rem;
}
.logo-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  -webkit-text-fill-color: initial;
}
.nav-cta {
  color: var(--light-purple); text-decoration: none; font-weight: 500; font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.5);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 2rem;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.2) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 750px;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--light-purple);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
  margin-top: 3rem;
  z-index: 2;
}
.hero-image img {
  width: 100%;
  max-width: 700px;
  border-radius: 16px;
  opacity: 0.85;
}
.hero-image-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ─── Buttons ─── */
.cta-btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.45);
}
.cta-btn-large {
  padding: 1rem 3rem;
  font-size: 1.05rem;
}
.cta-btn-outline {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  background: transparent;
  color: var(--light-purple);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  transition: all 0.25s;
}
.cta-btn-outline:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.5);
}

/* ─── Stats Bar ─── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── Features ─── */
.features {
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.features-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--light-purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.features-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* Feature showcase rows */
.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}
.feature-showcase.reverse {
  direction: rtl;
}
.feature-showcase.reverse > * {
  direction: ltr;
}
.feature-showcase-image {
  position: relative;
}
.feature-showcase-image img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.image-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.feature-showcase-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.feature-showcase-text > p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.feature-list li {
  font-size: 0.9rem;
  color: #a1a1aa;
  padding-left: 1.5rem;
  position: relative;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

/* Feature cards grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.feature-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.04);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  margin-bottom: 1rem;
  color: var(--light-purple);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── CTA Section ─── */
.cta-section {
  position: relative;
  padding: 8rem 2rem;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
}
.cta-inner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.cta-inner > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ─── Footer ─── */
.footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-powered {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-powered strong {
  color: #a1a1aa;
  font-weight: 500;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .feature-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-showcase.reverse {
    direction: ltr;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-divider { display: none; }
  .stats-inner { gap: 2rem; }
}

@media (max-width: 640px) {
  .nav-inner { padding: 0.75rem 1.25rem; }
  .hero { padding: 5rem 1.25rem 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .features { padding: 4rem 1.25rem 2rem; }
  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
