:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --purple-glow: #8b5cf6;
  --purple-mid: #a78bfa;
  --purple-light: #c4b5fd;
  --purple-dim: #4c1d95;
  --text-primary: #e8e6f0;
  --text-secondary: #9896a8;
  --text-muted: #5a586a;
  --border: #222233;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--purple-mid);
  border: 1px solid var(--purple-dim);
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.neon-text {
  color: var(--purple-glow);
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.3), 0 0 80px rgba(139, 92, 246, 0.1);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: var(--purple-dim);
  color: var(--purple-light);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

/* ── HERO CTA ── */
.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--purple-light);
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid var(--purple-dim);
  padding: 12px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.hero-btn-primary:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--purple-glow);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.hero-btn-ghost {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border);
  padding: 12px 28px;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.hero-btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* ── CATEGORIES ── */
.categories {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--purple-mid);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 500px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.cat-card {
  background: var(--bg-secondary);
  padding: 36px 28px;
  transition: all 0.3s ease;
}

.cat-card:hover {
  background: var(--bg-card);
}

.cat-card:hover .cat-icon {
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
  color: var(--purple-glow);
}

.cat-icon {
  font-size: 24px;
  color: var(--purple-mid);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.cat-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.cat-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── FEATURES ── */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.features-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 8px;
  position: sticky;
  top: 100px;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.feature-item:first-child {
  border-top: 1px solid var(--border);
}

.feature-number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--purple-dim);
  padding-top: 2px;
  flex-shrink: 0;
}

.feature-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feature-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── COMMUNITY ── */
.community {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.community-headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  flex: 1;
  padding: 32px 24px;
  background: var(--bg-secondary);
}

.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--purple-glow);
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.community-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── CLOSING ── */
.closing {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing-glow {
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.closing-tagline {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  max-width: 600px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

.closing-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--purple-mid);
  position: relative;
  z-index: 1;
}

/* ── FOOTER ── */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--text-muted);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .features-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features-headline {
    position: static;
  }

  .stats-row {
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding: 100px 24px 60px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-badge {
    margin-bottom: 28px;
  }

  .categories,
  .features,
  .community {
    padding: 60px 0;
  }

  .closing {
    padding: 80px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .cat-card {
    padding: 28px 20px;
  }

  .stat {
    padding: 24px 16px;
  }
}