/**
 * homepage.css — Styles for the Homepage component
 * Extracted from src/components/Homepage.astro <style> block
 */

/* ==========================================================================
   Page Container
   ========================================================================== */

.homepage {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ==========================================================================
   Hero Section (for HomepageHero React component)
   Overrides the base .hero in layout.css with homepage-specific padding
   ========================================================================== */

.homepage .hero {
  text-align: center;
  padding: 3rem 0 4rem 0;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .welcome-back {
  font-size: 2.5rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.value-props {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.value-prop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.value-icon {
  font-size: 1.5rem;
}

.hero-buttons,
.hero .quick-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-trust-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  opacity: 0.7;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-trust-badge svg {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.8;
}

/* ==========================================================================
   Social Proof Stats
   ========================================================================== */

.social-proof-stats {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 1.5rem 1rem;
  margin: 0 0 2rem 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
}

.stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-secondary);
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--bg-tertiary) 100%);
  margin: 0 0 2rem 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
}

.features-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.homepage .features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.homepage .feature-card {
  flex: 0 1 calc(33.333% - 1.5rem);
  min-width: 280px;
  max-width: 350px;
  background: var(--bg-primary);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-primary);
}

.homepage .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.homepage .feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.homepage .feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.homepage .feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.homepage .how-it-works {
  padding: 4rem 0;
  text-align: center;
}

.homepage .how-it-works h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.homepage .step {
  position: relative;
}

.homepage .step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-gradient);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem auto;
}

.homepage .step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.homepage .step p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ==========================================================================
   Portfolio Showcase Section
   ========================================================================== */

.portfolio-showcase {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--color-info-bg) 0%, var(--color-primary-light) 100%);
  margin: 0 0 2rem 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
  text-align: center;
}

.portfolio-showcase h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.showcase-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.account-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 3rem auto;
}

.account-type {
  background: var(--bg-primary);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-primary);
}

.account-type:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.account-type-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.account-type h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.account-type p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.showcase-cta {
  margin-top: 2rem;
}

/* ==========================================================================
   Calculators Section
   ========================================================================== */

.calculators-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.homepage .section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  background: var(--color-info-bg);
  color: var(--color-info-text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.calculator-category {
  margin-bottom: 3rem;
}

.category-title {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--color-primary);
}

.homepage .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.calculator-card {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background 0.3s;
  border: 1px solid var(--border-primary);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.calculator-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-primary-lg);
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--color-primary-light) 100%);
}

.calculator-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.calculator-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-primary-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.calculator-card:hover .calculator-card-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-primary);
}

.calculator-card h4 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

.calculator-card p {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
  flex-grow: 1;
  margin: 0;
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */

.final-cta {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--bg-tertiary) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
  margin: 2rem 0;
}

.final-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.final-cta p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
  .homepage .feature-card {
    flex: 0 1 calc(50% - 1rem);
  }

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

@media (max-width: 900px) {
  .account-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .welcome-back {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .value-props {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .social-proof-stats {
    padding: 1.25rem 0.5rem;
  }

  .stats-container {
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-divider {
    height: 30px;
  }

  .features-section h2,
  .homepage .how-it-works h2,
  .portfolio-showcase h2,
  .section-header h2,
  .final-cta h2 {
    font-size: 2rem;
  }

  .homepage .feature-card {
    flex: 0 1 100%;
    max-width: 100%;
  }

  .steps-grid,
  .account-types-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .homepage .grid {
    grid-template-columns: 1fr;
  }

  .calculator-card {
    padding: 1.25rem;
  }
}
