/* ====================================
   HOME PAGE STYLES
   ==================================== */

/* Hero Section */
.home-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, rgba(63, 125, 99, 0.03), rgba(208, 138, 75, 0.03));
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.015;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, var(--primary) 35px, var(--primary) 36px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, var(--accent) 35px, var(--accent) 36px);
  animation: slide 20s linear infinite;
  pointer-events: none;
}

@keyframes slide {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-finder-label {
  display: inline-block;
  background: rgba(63, 125, 99, 0.1);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted-text);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::before {
  width: 300px;
  height: 300px;
}

.btn-hero .material-symbols-outlined {
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

.btn-hero span:not(.material-symbols-outlined) {
  position: relative;
  z-index: 1;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary.btn-hero:hover {
  background: var(--success);
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted-text);
  margin: 0;
}

.hero-note .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--primary);
}

.hero-quick-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.quick-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted-text);
  font-weight: 600;
}

.quick-stat .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--primary);
}

/* Features Section */
.features-section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(63, 125, 99, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.feature-icon .material-symbols-outlined {
  font-size: 2rem;
  color: var(--primary-contrast);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--muted-text);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* How It Works Section */
.how-it-works-section {
  padding: 4rem 0;
  background: var(--surface-2);
}

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

.step-card {
  display: flex;
  gap: 1.5rem;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Space Mono', monospace;
  flex-shrink: 0;
  color: var(--primary-contrast);
}

.step-content {
  flex: 1;
}

.step-icon {
  display: none; /* Hidden in favor of step numbers */
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step-content p {
  color: var(--muted-text);
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  margin: 4rem 0 2rem;
}

.cta-content {
  background: linear-gradient(135deg, rgba(63, 125, 99, 0.08), rgba(208, 138, 75, 0.08));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.cta-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.cta-text p {
  color: var(--muted-text);
  margin: 0;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .home-hero {
    padding: 3rem 0 2.5rem;
  }

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

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

  .hero-quick-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .cta-content {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    text-align: center;
  }

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

  .cta-buttons .btn-hero {
    width: 100%;
  }

  .step-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .step-number {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .match-finder-label {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

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

  .feature-card,
  .step-card {
    padding: 1.5rem;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
  }

  .feature-icon .material-symbols-outlined {
    font-size: 1.5rem;
  }
}

/* Scroll animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.step-card {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }

/* Dark theme support - automatically handled by CSS variables */
[data-theme="dark"] .home-hero {
  background: linear-gradient(135deg, rgba(99, 169, 137, 0.05), rgba(224, 160, 102, 0.05));
}

[data-theme="dark"] .match-finder-label {
  background: rgba(99, 169, 137, 0.15);
}

[data-theme="dark"] .hero-quick-stats {
  border-top-color: var(--border);
}