/* ═══════════════════════════════════════════════════════════
   Testimonials — What Our Clients Say
   ═══════════════════════════════════════════════════════════ */

.index-page .testimonials-premium {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 50%, #f5f3ff 100%);
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.index-page .testimonials-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(99, 102, 241, 0.06), transparent),
    radial-gradient(ellipse 40% 35% at 90% 80%, rgba(34, 211, 238, 0.05), transparent);
  pointer-events: none;
}

.index-page .testimonials-premium .section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.index-page .testimonials-premium .section-badge {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 1rem;
}

.index-page .testimonials-premium h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.index-page .testimonials-premium h2 .accent {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.index-page .testimonials-premium .section-head p {
  color: #64748b;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0;
}

/* Trust stats strip */
.index-page .testimonials-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.index-page .testimonials-stat {
  text-align: center;
  padding: 1rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.index-page .testimonials-stat .val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4338ca;
  display: block;
  line-height: 1.2;
}

.index-page .testimonials-stat .lbl {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

/* Swiper */
.index-page .testimonials-swiper-wrap {
  position: relative;
  padding: 0 48px;
}

.index-page .testimonials-swiper .swiper-slide {
  height: auto;
  opacity: 1 !important;
  transform: none !important;
}

.index-page .testimonials-swiper .swiper-slide-active .testimonial-card-v2 {
  transform: translateY(-6px);
}

/* Logo trust strip */
.index-page .testimonials-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  position: relative;
}

.index-page .testimonials-logos span {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  flex-shrink: 0;
}

.index-page .testimonials-logos img {
  height: 28px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.65);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.index-page .testimonials-logos img:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.05);
}

.index-page .testimonial-card-v2 {
  background: #fff;
  border-radius: 24px;
  padding: 2rem 1.75rem;
  height: 100%;
  border: 1px solid rgba(99, 102, 241, 0.1);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.index-page .testimonial-card-v2::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(99, 102, 241, 0.08);
  pointer-events: none;
}

.index-page .swiper-slide-active .testimonial-card-v2,
.index-page .testimonial-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.22);
}

.index-page .testimonial-card-v2__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.index-page .testimonial-card-v2__metric {
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(124, 58, 237, 0.08));
  color: #4338ca;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.index-page .testimonial-card-v2__stars {
  color: #fbbf24;
  font-size: 0.875rem;
  letter-spacing: 2px;
}

.index-page .testimonial-card-v2__quote {
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
  flex: 1;
  margin: 0 0 1.5rem;
  position: relative;
  z-index: 1;
}

.index-page .testimonial-card-v2__footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.index-page .testimonial-card-v2__avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.index-page .testimonial-card-v2__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

.index-page .testimonial-card-v2__avatar--logo {
  background: #fff;
  border: 1px solid #e2e8f0;
}

.index-page .testimonial-card-v2__avatar--indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.index-page .testimonial-card-v2__avatar--teal { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.index-page .testimonial-card-v2__avatar--rose { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.index-page .testimonial-card-v2__avatar--amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.index-page .testimonial-card-v2__avatar--violet { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }

.index-page .testimonial-card-v2__author h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.index-page .testimonial-card-v2__verified {
  color: #6366f1;
  font-size: 0.875rem;
  line-height: 1;
}

.index-page .testimonial-card-v2__author p {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.index-page .testimonial-card-v2__company {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6366f1;
}

/* Swiper nav */
.index-page .testimonials-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: #fff;
  color: #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.index-page .testimonials-nav:hover {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.index-page .testimonials-nav--prev { left: 0; }
.index-page .testimonials-nav--next { right: 0; }

.index-page .testimonials-swiper .swiper-pagination {
  position: relative;
  margin-top: 1.75rem;
}

.index-page .testimonials-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #cbd5e1;
  opacity: 1;
}

.index-page .testimonials-swiper .swiper-pagination-bullet-active {
  background: #6366f1;
  width: 24px;
  border-radius: 100px;
}

/* Featured quote banner */
.index-page .testimonials-featured {
  margin-top: 2.5rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.index-page .testimonials-featured::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
  pointer-events: none;
}

.index-page .testimonials-featured blockquote {
  flex: 1;
  min-width: 260px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.125rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.index-page .testimonials-featured blockquote strong {
  color: #a5b4fc;
}

.index-page .testimonials-featured .featured-meta {
  flex-shrink: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.index-page .testimonials-featured .featured-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.index-page .testimonials-featured .featured-score span {
  font-size: 1.25rem;
  color: #818cf8;
}

.index-page .testimonials-featured .featured-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

@media (max-width: 767px) {
  .index-page .testimonials-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .index-page .testimonials-logos {
    border-radius: 20px;
    gap: 1rem 1.5rem;
    padding: 1rem;
  }

  .index-page .testimonials-logos span {
    width: 100%;
    text-align: center;
  }

  .index-page .testimonials-swiper-wrap {
    padding: 0 8px;
  }

  .index-page .testimonials-nav {
    display: none;
  }

  .index-page .testimonials-featured {
    padding: 1.5rem;
    text-align: center;
    justify-content: center;
  }
}
