/* ============================================
   ModForge Hub — Home Page Styles
   Hero · Featured · How It Works · CTA
   ============================================ */

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--topbar-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 11, 20, 0.3) 0%,
    rgba(7, 11, 20, 0.6) 40%,
    rgba(7, 11, 20, 0.95) 85%,
    var(--bg-primary) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--purple-light);
  padding: 6px 16px;
  background: var(--purple-bg);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero h1 {
  font-size: var(--text-6xl);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-soft);
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* Hero floating panels */
.hero-panels {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  pointer-events: none;
}

.hero-floating-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-lg);
  animation: float-slow 6s ease-in-out infinite;
  min-width: 240px;
}

.hero-floating-card:nth-child(2) {
  animation-delay: -2s;
  margin-left: 40px;
}

.hero-floating-card:nth-child(3) {
  animation-delay: -4s;
  margin-left: 20px;
}

/* ── Featured Mods Section ── */
.featured-section {
  padding: var(--space-24) 0;
  position: relative;
}

/* ── How It Works ── */
.how-it-works {
  padding: var(--space-24) 0;
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.step-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--glass-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--glass-radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all var(--transition-base);
  position: relative;
}

.step-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-4px);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-white);
  margin: 0 auto var(--space-5);
  box-shadow: var(--glow-purple);
}

.step-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.step-card p {
  font-size: var(--text-sm);
}

/* ── Custom Mods CTA Section ── */
.custom-cta-section {
  padding: var(--space-24) 0;
}

.custom-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.custom-cta-content h2 {
  margin-bottom: var(--space-5);
}

.custom-cta-content p {
  font-size: var(--text-md);
  margin-bottom: var(--space-6);
}

.custom-cta-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.custom-cta-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.custom-cta-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 14px;
  flex-shrink: 0;
}

/* Status Tracking Preview */
.status-preview {
  background: var(--glass-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--glass-radius);
  padding: var(--space-8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* ── Teaser Grid (responsive 2→1 col) ── */
.teaser-grid {
  padding: var(--space-12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 968px) {
  .teaser-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-8) var(--space-6);
  }
}

@media (max-width: 640px) {
  .teaser-grid {
    padding: var(--space-6) var(--space-4);
    gap: var(--space-4);
  }
}

/* ── CTA Final ── */
.final-cta {
  padding: var(--space-24) 0;
  text-align: center;
}

.final-cta-box {
  background: var(--glass-bg);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glow-purple);
  position: relative;
  overflow: hidden;
}

.final-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(139, 92, 246, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.final-cta-box h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
  position: relative;
}

.final-cta-box p {
  font-size: var(--text-md);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  position: relative;
}

.final-cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  position: relative;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — App-Like Mobile Experience
   ══════════════════════════════════════════════ */

@media (max-width: 968px) {
  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: var(--space-12);
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero-panels {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-cta {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-stats {
    gap: var(--space-6);
    flex-wrap: wrap;
  }

  .featured-section,
  .how-it-works,
  .custom-cta-section,
  .final-cta {
    padding: var(--space-12) 0;
  }

  .hero-floating-card {
    min-width: unset;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 100px;
    padding-bottom: var(--space-8);
  }

  .hero h1 {
    font-size: var(--text-3xl);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: var(--text-sm);
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
  }

  .hero-stat-item {
    text-align: center;
    min-width: 25%;
  }

  .hero-overline {
    font-size: 0.65rem;
    padding: 4px 12px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .step-card {
    padding: var(--space-6) var(--space-4);
  }

  .featured-section,
  .how-it-works,
  .custom-cta-section,
  .final-cta {
    padding: var(--space-8) 0;
  }

  .final-cta-box {
    padding: var(--space-8) var(--space-4);
    border-radius: var(--radius-xl);
  }

  .final-cta-box h2 {
    font-size: var(--text-xl);
  }

  .final-cta-box p {
    font-size: var(--text-sm);
  }

  .final-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .final-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .section-header {
    margin-bottom: var(--space-6);
  }

  .section-header h2 {
    font-size: var(--text-xl);
  }

  .section-header p {
    font-size: var(--text-sm);
  }

  .status-preview {
    padding: var(--space-4);
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: var(--text-xl);
  }

  .hero-stat-value {
    font-size: var(--text-xl);
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }
}
