/* ================================================
   Index Page - Dark Mode Hero (Sito Madre Style)
   ================================================ */

/* Hero Section - Dark Mode */
.hero {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(11, 108, 255, 0.1);
  border: 1px solid rgba(11, 108, 255, 0.3);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-badge i {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.text-gradient-blue {
  background: var(--gradient-text-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

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

.btn-gradient-primary {
  background: var(--gradient-cta);
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(11, 108, 255, 0.3);
  cursor: pointer;
}

.btn-gradient-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 108, 255, 0.4);
}

.btn-gradient-primary i {
  width: 20px;
  height: 20px;
}

.btn-outline-light {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.integration-logos {
  text-align: center;
}

.logos-label {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.logos-grid img {
  height: 32px;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.logos-grid img:hover {
  opacity: 1;
}

/* Features Section - Light Background */
.features {
  background: var(--bg-secondary);
  padding: 6rem 0;
}

[data-theme="light"] .features {
  background: #ffffff;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(11, 108, 255, 0.1);
  color: var(--primary-blue);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-badge i {
  width: 16px;
  height: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-blue);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  width: 28px;
  height: 28px;
}

.feature-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.feature-link a:hover {
  gap: 0.75rem;
}

.feature-link i {
  width: 16px;
  height: 16px;
}

/* CTA Section - Dark Background */
.cta {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(11, 108, 255, 0.1) 0%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(11, 108, 255, 0.1);
  border: 1px solid rgba(11, 108, 255, 0.3);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.cta-badge i {
  width: 16px;
  height: 16px;
}

.cta h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
}

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

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.cta-feature i {
  width: 16px;
  height: 16px;
  color: var(--color-success);
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.theme-toggle i {
  width: 20px;
  height: 20px;
}

.icon-light {
  display: none;
}

[data-theme="light"] .icon-light {
  display: block;
}

[data-theme="light"] .icon-dark {
  display: none;
}

[data-theme="dark"] .icon-dark {
  display: block;
}

[data-theme="dark"] .icon-light {
  display: none;
}

/* Responsive Design */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-gradient-primary,
  .btn-outline-light {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .logos-grid {
    gap: 1.5rem;
  }
  
  .logos-grid img {
    height: 24px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
  
  .cta-subtitle {
    font-size: 1rem;
  }
  
  .cta-features {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta h2 {
    font-size: 2.5rem;
  }
}
