/* ============================================================
   NexSub Home — hero, steps, stats, final CTA
   ============================================================ */

/* ── Hero section ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-primary) 100%);
}

.hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 800px;
}

.hero__headline {
  font-size: var(--text-6xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-top: var(--space-4);
  letter-spacing: -0.025em;
}

.hero__sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  line-height: var(--leading-relaxed);
  margin-top: var(--space-2);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__alt-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }

  .hero__headline {
    font-size: var(--text-4xl);
  }

  .hero__sub {
    font-size: var(--text-base);
    padding: 0 var(--space-4);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* ── Section header (shared) ───────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-top: var(--space-3);
}

.section-header__sub {
  color: var(--text-muted);
  margin-top: var(--space-3);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
}

.section-footer {
  text-align: center;
  margin-top: var(--space-10);
}

/* ── Feature cards ─────────────────────────────────── */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.feature-card__title {
  font-size: var(--text-lg);
  margin-top: var(--space-2);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ── Steps component (vertical timeline) ──────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.steps__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  text-align: left;
  position: relative;
  padding-bottom: var(--space-8);
}

.steps__row:last-child {
  padding-bottom: 0;
}

.steps__marker {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(104, 83, 193, 0.15);
  border: 2px solid rgba(104, 83, 193, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--accent-primary-hover);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.steps__connector {
  position: absolute;
  top: 52px;
  left: 23px;
  width: 2px;
  bottom: 0;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  opacity: 0.35;
  z-index: 0;
  border-radius: 1px;
}

.steps__row:last-child .steps__connector {
  display: none;
}

.steps__content {
  flex: 1;
  min-width: 0;
}

.steps__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.steps__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 600px) {
  .steps__row {
    gap: var(--space-4);
    padding-bottom: var(--space-6);
  }

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

  .steps__connector {
    top: 44px;
    left: 19px;
  }

  .steps__title {
    font-size: var(--text-base);
  }
}

/* ── Stats grid ────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.stat-card {
  text-align: center;
  padding: var(--space-10) var(--space-6);
}

.stat-card__value {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.03em;
}

.stat-card__label {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

.stat-card__note {
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin-top: var(--space-4);
  font-style: italic;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .stat-card__value {
    font-size: var(--text-4xl);
  }
}

/* ── FAQ list wrapper ──────────────────────────────── */
.faq-list {
  border-top: 1px solid var(--border-subtle);
}

/* ── Final CTA band ────────────────────────────────── */
.final-cta {
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(104, 83, 193, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta__sub {
  color: var(--text-muted);
  font-size: var(--text-lg);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--space-4);
  line-height: var(--leading-relaxed);
}
