/* ============================================================
   hero.css — Hero / Header Section Styles
   Personal Expense Tracker
   ============================================================ */

/* ── Hero Section ──────────────────────────────────────────── */
#hero-section {
  background: var(--gradient-hero);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
#hero-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(91, 141, 239, 0.12) 0%, transparent 65%);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

#hero-section::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(155, 114, 245, 0.1) 0%, transparent 65%);
  bottom: -100px;
  left: 5%;
  pointer-events: none;
}

/* ── Hero Content ──────────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(91, 141, 239, 0.12);
  color: var(--primary);
  border: 1px solid rgba(91, 141, 239, 0.2);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Hero Primary CTA ──────────────────────────────────────── */
.btn-hero-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(91, 141, 239, 0.4);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(91, 141, 239, 0.5);
  color: white;
}

/* ── Hero Secondary CTA ────────────────────────────────────── */
.btn-hero-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border-muted);
  padding: 0.73rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-secondary);
}

.btn-hero-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Hero Illustration ─────────────────────────────────────── */
.hero-illustration-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration-wrap img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: float 4s ease-in-out infinite;
}

/* ── Hero Stats Row ────────────────────────────────────────── */
.hero-stats-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  #hero-section {
    padding: 2.5rem 0 2rem;
    text-align: center;
  }

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

  .hero-cta-row {
    justify-content: center;
  }

  .hero-illustration-wrap {
    margin-top: 2rem;
  }

  .hero-illustration-wrap img {
    max-width: 300px;
  }

  .hero-stats-row {
    justify-content: center;
    gap: 1.5rem;
  }
}
