/* =========================================
   HOMEPAGE STYLES
   Modern SaaS Homepage Design
========================================= */

/* Hero section styles are in hero-advanced.css */

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--heading), var(--primary));
  -webkit-background-clip: text;

  background-clip: text;
  color: var(--heading);
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* ===== TRUST SECTION ===== */
.trust {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(14,165,233,0.03) 50%, transparent);
  position: relative;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.trust-item {
  position: relative;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}

[data-theme="dark"] .trust-item {
  background: linear-gradient(135deg, rgba(15,23,42,0.8), rgba(15,23,42,0.6));
}

.trust-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(14,165,233,0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.trust-item:hover::before {
  opacity: 1;
}

.trust-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(14,165,233,0.15), 0 0 0 1px rgba(14,165,233,0.2);
  border-color: rgba(14,165,233,0.4);
}

/* Trust Icons */
.trust-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-icon svg {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.trust-item:hover .trust-icon svg {
  transform: scale(1.1) rotate(-5deg);
}

/* Icon specific gradients */
.trust-icon-lightning {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(251,191,36,0.25);
}

.trust-icon-security {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(16,185,129,0.25);
}

.trust-icon-api {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(139,92,246,0.25);
}

.trust-icon-analytics {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(6,182,212,0.25);
}

.trust-icon-backup {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(59,130,246,0.25);
}

.trust-icon-ssl {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(20,184,166,0.25);
}

.trust-item:hover .trust-icon {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(14,165,233,0.3);
}

/* Trust Content */
.trust-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.trust-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-content p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary, rgba(15,23,42,0.65));
  margin: 0;
  line-height: 1.5;
}

[data-theme="dark"] .trust-content p {
  color: rgba(229,231,235,0.65);
}

/* ===== PLATFORMS SECTION ===== */
.platforms {
  padding: 100px 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.platform-card {
  padding: 40px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
      position: relative;

    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    text-align: right;
    background: linear-gradient(180deg, var(--bg-alt), var(--surface));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.35s ease;
}

.platform-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.platform-card a {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.platform-card:hover a {
  gap: 12px;
}

.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

/* ===== WHY SECTION ===== */
.why {
  padding: 100px 0;
  background: var(--surface);

}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 60px;

}

.why-item {
  padding: 32px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.why-item:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: var(--shadow-lg);
  background: var(--surface-hover);
  border-color: var(--primary);
}
.section-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.why-card {

  border-radius: 1rem;
  padding: 1.8rem;



  position: relative;



    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    text-align: right;
    background: linear-gradient(180deg, rgba(14,165,233,0.05), transparent 40%, rgba(99,102,241,0.05));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.35s ease;
}


.why-card::before{
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(14,165,233,0.10), transparent 45%),
                radial-gradient(circle at 80% 10%, rgba(99,102,241,0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  .why-card:hover::before {
    opacity: 1;
  }
.why-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.why-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: inline-block;
}

.why-card-title {
  font-size: 1.3rem;
color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.why-card-description {
      color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
      color: var(--text-secondary);

}

.why-card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.why-card-keywords span {
  background: #f1f5f9;
  color: #475569;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.why-summary {
  background: linear-gradient(180deg, rgba(14,165,233,0.05), transparent 40%, rgba(99,102,241,0.05));
  border-radius: 1.2rem;
  padding: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  max-width: 900px;
  margin: 0 auto;
}

.why-summary-title {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.why-summary-text {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.why-summary-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #3b82f6;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-text {
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .why-summary {
    padding: 2rem;
  }
  
  .why-summary-stats {
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .why-summary-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}
  /* ===== FEATURES SECTION ===== */
  .features {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(14,165,233,0.05), transparent 40%, rgba(99,102,241,0.05));
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 48px;
  }
  
  .feature-card {
    position: relative;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    text-align: right;
    background: linear-gradient(180deg, var(--bg-alt), var(--surface));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.35s ease;
  }
  
  .feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(14,165,233,0.10), transparent 45%),
                radial-gradient(circle at 80% 10%, rgba(99,102,241,0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  
  .feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
  }
  
  .feature-card:hover::before {
    opacity: 1;
  }
  
  .feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(99,102,241,0.18));
    border-radius: 16px;
    color: var(--primary);
    border: 1px solid rgba(14,165,233,0.25);
    box-shadow: 0 10px 30px rgba(14,165,233,0.15);
  }
  
  .feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
  }
  
  .feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
  }
  
  .features::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 20%, rgba(255,255,255,0.1), transparent 45%);
  }


/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  padding: 100px 0;
  background: var(--surface);
}

  .testimonial-slider {
    --slider-accent: var(--primary);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 40px 90px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: var(--slider-bg, linear-gradient(135deg, rgba(14,165,233,0.12), rgba(99,102,241,0.08)));
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    isolation: isolate;
  }
  
  .slider-ornament {
    position: absolute;
    inset: -20% -30%;
    background: radial-gradient(circle at 20% 40%, rgba(14,165,233,0.18), transparent 35%),
                radial-gradient(circle at 80% 60%, rgba(99,102,241,0.14), transparent 30%);
    filter: blur(30px);
    opacity: 0.9;
    z-index: 0;
  }
  
  .testimonial-stage {
    position: relative;
    min-height: 260px;
    z-index: 1;
  }
  
  .testimonial {
    position: absolute;
    inset: 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 24px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: all 0.6s ease;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
  }
  
  [data-theme="dark"] .testimonial {
    background: rgba(15, 23, 42, 0.72);
  }
  
  .testimonial.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  
  .testimonial-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
    position: relative;
    z-index: 2;
  }
  
  .testimonial-nav button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .testimonial-nav button:hover {
    transform: scale(1.1);
    border-color: var(--slider-accent, var(--primary));
  }
  
  .testimonial-nav button.active {
    background: var(--slider-accent, var(--primary));
    border-color: var(--slider-accent, var(--primary));
    box-shadow: 0 0 0 6px rgba(14,165,233,0.12);
  }

/* ===== CTA SECTION ===== */
.final-cta {
  padding: 100px 0;
}

.final-cta .container {
  max-width: 700px;
  text-align: center;
  padding: 60px 40px;
}

.final-cta h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ===== STATS SECTION ===== */
.stats {
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding-top: 60px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .platform-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trust-item {
    padding: 28px 20px;
  }

  .trust-icon {
    width: 64px;
    height: 64px;
  }

  .trust-content h3 {
    font-size: 1.1rem;
  }

  .trust-content p {
    font-size: 0.9rem;
  }

  .testimonial {
    padding: 24px;
    font-size: 1.1rem;
  }
}