/* Modern Hero Section */
.hero {
  /* Near-white, very low-contrast hero to keep attention on content */
  background: linear-gradient(135deg, #ffffff 0%, #fbfdff 100%);
  color: #0f172a;
  padding: 64px 0;
  position: relative;
  overflow: visible;
  min-height: 320px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* extremely subtle color hints to reduce gradient intensity */
  background: radial-gradient(circle at 10% 10%, rgba(16,185,129,0.02), transparent 16%),
              radial-gradient(circle at 90% 80%, rgba(109,40,217,0.02), transparent 20%);
  pointer-events: none;
  opacity: 0.5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  position: relative; /* used by montage absolute positioning */
}
.hero-left h1 {
  /* Slightly lighter headline weight and reduced size for better balance */
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0 0 14px 0;
  line-height: 1.12;
  text-shadow: none;
  color: #0b5ed7;
}

.hero-left p {
  font-size: 1.05rem;
  margin: 0;
  opacity: 0.95;
  line-height: 1.6;
}

/* Hero feature chips (make them visible on top of gradient) */
.hero-left .feature-row {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-left .feature-box {
  /* Make chips appear as light cards for better contrast on the gradient */
  background: rgba(255,255,255,0.96);
  color: #0f172a;
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 170px;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 8px 20px rgba(2,6,23,0.04);
}
.hero-left .feature-box svg {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
  background: linear-gradient(135deg,#eef2ff,#f8f7ff);
  color: #0b5ed7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(11,94,215,0.06);
}
.hero-left .feature-box strong {
  display: block;
  color: #0f172a;
  font-weight: 700;
}
.hero-left .feature-box small {
  display: block;
  color: #475569;
  font-size: 0.85rem;
}

/* Montage placement: keep it visually present but smaller and anchored under headline
   On wide screens the montage floats to the right of the left column for a layered look */
.hero-montage-wrap {
  margin-top: 18px;
  position: absolute;
  right: -36px;
  bottom: -6px;
  width: 360px;
  max-width: 38%;
  pointer-events: none;
  transform: translateZ(0);
}
.hero-montage {
  display: block;
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(2,6,23,0.06);
  border: 1px solid rgba(15,23,42,0.04);
}

/* On smaller screens revert montage to inline flow and center it */
@media (max-width: 900px) {
  .hero-montage-wrap {
    position: relative;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 240px;
    margin: 12px auto 0;
    pointer-events: auto;
  }
}

.hero-right {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-right h2 {
  color: #2c3e50;
  font-size: 1.8em;
  margin: 0 0 30px 0;
  text-align: center;
  font-weight: 600;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.signup-form label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.signup-form select,
.signup-form input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: white;
}

.signup-form select:focus,
.signup-form input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.signup-form button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.signup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

/* Stats Section */
.stats-section {
  background: #f8f9fa;
  padding: 60px 0;
  text-align: center;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.stat-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-icon {
  font-size: 3em;
  color: #667eea;
  margin-bottom: 20px;
}

.stat-number {
  font-size: 2.5em;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.stat-label {
  font-size: 1.1em;
  color: #6c757d;
  margin: 10px 0 0 0;
  font-weight: 500;
}

/* Features Section */
.features {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.features h2 {
  font-size: 2.5em;
  margin: 0 0 40px 0;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
  font-size: 3em;
  margin-bottom: 20px;
  opacity: 0.9;
}

.feature-card h3 {
  font-size: 1.5em;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.6;
}

/* Testimonials */
.testimonials {
  background: #fff;
  padding: 80px 0;
}

.testimonials h2 {
  text-align: center;
  font-size: 2.5em;
  color: #2c3e50;
  margin: 0 0 60px 0;
  font-weight: 700;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.testimonial-card {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #e9ecef;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.testimonial-quote {
  font-size: 1.1em;
  color: #495057;
  line-height: 1.6;
  margin: 0 0 20px 0;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.testimonial-info h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.1em;
}

.testimonial-info p {
  margin: 5px 0 0 0;
  color: #6c757d;
  font-size: 0.9em;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-content h2 {
  font-size: 2.5em;
  margin: 0 0 20px 0;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.2em;
  margin: 0 0 40px 0;
  opacity: 0.9;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-btn-primary {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.cta-btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-btn-secondary:hover {
  background: white;
  color: #667eea;
}

/* Footer */
.site-footer {
  background: #2c3e50;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hero-left h1 {
    font-size: 1.9rem;
  }

  .hero-right {
    padding: 20px 16px;
    margin: 0 auto;
    max-width: 520px;
  }

  /* Reduce right padding on mobile so hero text and montage stack nicely */
  .hero-left {
    padding-right: 0;
  }

  /* Make montage smaller and center on mobile */
  .hero-montage {
    max-width: 240px;
    margin: 12px auto 0;
    display: block;
  }

  .stats-container,
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}