.ts-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: var(--bg);
}

.ts-bg-wave {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ts-bg-wave::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background:
    radial-gradient(ellipse 120% 50% at 50% 100%, rgba(250,204,21,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 20% 100%, rgba(250,204,21,0.025) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 80% 100%, rgba(250,204,21,0.025) 0%, transparent 60%);
}

.ts-bg-wave::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(250,204,21,0.02) 0%, transparent 100%);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='white' d='M0,50 C240,0 480,100 720,50 C960,0 1200,100 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='white' d='M0,50 C240,0 480,100 720,50 C960,0 1200,100 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
}

.ts-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ts-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(250,204,21,0.3);
  will-change: transform;
  animation: tsFloat 8s ease-in-out infinite;
}

.ts-particle:nth-child(1) { top: 15%; left: 10%; width: 3px; height: 3px; animation-delay: 0s; animation-duration: 7s; }
.ts-particle:nth-child(2) { top: 25%; left: 25%; width: 5px; height: 5px; animation-delay: 0.5s; animation-duration: 9s; background: rgba(250,204,21,0.2); }
.ts-particle:nth-child(3) { top: 45%; left: 5%; width: 3px; height: 3px; animation-delay: 1s; animation-duration: 6s; }
.ts-particle:nth-child(4) { top: 60%; right: 15%; width: 4px; height: 4px; animation-delay: 0.3s; animation-duration: 8.5s; background: rgba(250,204,21,0.15); }
.ts-particle:nth-child(5) { top: 75%; right: 25%; width: 3px; height: 3px; animation-delay: 1.5s; animation-duration: 7.5s; }
.ts-particle:nth-child(6) { top: 30%; right: 8%; width: 5px; height: 5px; animation-delay: 0.8s; animation-duration: 10s; background: rgba(250,204,21,0.2); }
.ts-particle:nth-child(7) { top: 80%; left: 30%; width: 3px; height: 3px; animation-delay: 2s; animation-duration: 6.5s; }
.ts-particle:nth-child(8) { top: 10%; right: 35%; width: 4px; height: 4px; animation-delay: 1.2s; animation-duration: 9.5s; background: rgba(250,204,21,0.25); }
.ts-particle:nth-child(9) { top: 50%; right: 40%; width: 3px; height: 3px; animation-delay: 0.6s; animation-duration: 8s; }
.ts-particle:nth-child(10) { top: 90%; right: 10%; width: 4px; height: 4px; animation-delay: 1.8s; animation-duration: 7s; background: rgba(250,204,21,0.15); }
.ts-particle:nth-child(11) { top: 20%; left: 50%; width: 3px; height: 3px; animation-delay: 0.2s; animation-duration: 8.5s; }
.ts-particle:nth-child(12) { top: 70%; left: 60%; width: 5px; height: 5px; animation-delay: 1.4s; animation-duration: 9s; background: rgba(250,204,21,0.2); }

@keyframes tsFloat {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.4; }
  25% { transform: translateY(-20px) translateX(10px) scale(1.2); opacity: 0.8; }
  50% { transform: translateY(-35px) translateX(-5px) scale(0.9); opacity: 0.3; }
  75% { transform: translateY(-15px) translateX(15px) scale(1.1); opacity: 0.6; }
}

.ts-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.ts-stat-card {
  position: relative;
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(250,204,21,0.08);
  border-radius: 20px;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.ts-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250,204,21,0.2);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 20px rgba(250,204,21,0.06);
}

.ts-stat-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, #FACC15 0%, #F59E0B 50%, #FACC15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
}

.ts-stat-label {
  font-size: 0.82rem;
  color: var(--gray);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ts-test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ts-test-card {
  position: relative;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1),
              border-color 0.4s ease,
              box-shadow 0.5s ease;
  will-change: transform;
}

.ts-test-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  background: linear-gradient(135deg, rgba(250,204,21,0.08) 0%, transparent 30%, transparent 70%, rgba(250,204,21,0.08) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.ts-test-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 0%, rgba(250,204,21,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.ts-test-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(250,204,21,0.25);
  box-shadow:
    0 24px 48px rgba(0,0,0,0.35),
    0 0 30px rgba(250,204,21,0.06),
    0 0 60px rgba(250,204,21,0.03);
}

.ts-test-card:hover::before { opacity: 1; }
.ts-test-card:hover::after { opacity: 1; }
.ts-test-card > * { position: relative; z-index: 1; }

.ts-test-stars {
  display: flex;
  gap: 3px;
  color: #FACC15;
}

.ts-test-stars svg {
  width: 15px;
  height: 15px;
  filter: drop-shadow(0 0 4px rgba(250,204,21,0.3));
}

.ts-test-quote-icon {
  color: rgba(250,204,21,0.15);
  line-height: 1;
  margin-bottom: -8px;
}

.ts-test-quote-icon svg {
  width: 28px;
  height: 28px;
}

.ts-test-text {
  font-size: 0.88rem;
  color: #d4d4d8;
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}

.ts-test-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.ts-test-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
  background: linear-gradient(135deg, #FACC15, #F59E0B);
  box-shadow: 0 0 12px rgba(250,204,21,0.2);
}

.ts-test-info {
  display: flex;
  flex-direction: column;
}

.ts-test-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.ts-test-role {
  font-size: 0.72rem;
  color: #71717a;
  margin-top: 1px;
}

.ts-test-company {
  font-size: 0.7rem;
  color: rgba(250,204,21,0.6);
  font-weight: 500;
  margin-top: 2px;
}

.ts-mobile-indicator {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.ts-mobile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250,204,21,0.2);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.ts-mobile-dot.active {
  background: #FACC15;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(250,204,21,0.4);
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .ts-test-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ts-section {
    padding: 80px 0;
  }

  .ts-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 48px;
  }

  .ts-stat-card {
    padding: 20px 16px;
  }

  .ts-test-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 440px;
    margin: 0 auto;
  }

  .ts-test-card {
    padding: 24px 20px;
  }

  .ts-mobile-indicator {
    display: flex;
  }
}

@media (min-width: 769px) {
  .ts-test-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ts-test-card:nth-child(4),
  .ts-test-card:nth-child(5),
  .ts-test-card:nth-child(6) {
    display: flex;
  }
}
