/* V55 — user feedback restored across home and product pages */

.testimonial-section {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 9vw, 132px) 0;
  border-block: 1px solid rgba(255, 255, 255, .075);
  background:
    radial-gradient(circle at 18% 12%, rgba(91, 132, 255, .085), transparent 30%),
    radial-gradient(circle at 84% 78%, rgba(188, 155, 91, .06), transparent 31%),
    linear-gradient(180deg, #090c11 0%, #0b0e13 50%, #090c10 100%);
}

.testimonial-section::before {
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  pointer-events: none;
  content: "";
}

.testimonial-heading,
.testimonial-note {
  position: relative;
  z-index: 2;
}

.testimonial-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .7fr);
  align-items: end;
  gap: clamp(36px, 7vw, 96px);
  margin-bottom: 46px;
}

.testimonial-heading .section-title {
  max-width: 720px;
  margin-top: 12px;
}

.testimonial-heading-copy > p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.testimonial-count {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 20px;
  color: rgba(206, 211, 221, .48);
  font: 650 10px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .08em;
}

.testimonial-count b {
  color: #d5ba80;
  font-size: 18px;
}

.testimonial-marquee {
  position: relative;
  z-index: 1;
}

.testimonial-row {
  overflow: hidden;
}

.testimonial-row + .testimonial-row {
  margin-top: 16px;
}

.testimonial-track {
  display: flex;
  width: max-content;
  animation: testimonial-scroll 58s linear infinite;
  will-change: transform;
}

.testimonial-row-reverse .testimonial-track {
  animation-name: testimonial-scroll-reverse;
  animation-duration: 64s;
}

.testimonial-marquee:hover .testimonial-track,
.testimonial-marquee:focus-within .testimonial-track {
  animation-play-state: paused;
}

.testimonial-group {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex: 0 0 390px;
  flex-direction: column;
  justify-content: space-between;
  width: 390px;
  min-height: 232px;
  padding: 25px 26px 23px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 43%), rgba(13, 17, 23, .94);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .22);
  transition: border-color 220ms ease, transform 220ms ease;
}

.testimonial-card:hover {
  border-color: rgba(188, 155, 91, .31);
  transform: translateY(-2px);
}

.testimonial-card-top,
.testimonial-card footer {
  display: flex;
  align-items: center;
}

.testimonial-card-top {
  justify-content: space-between;
  gap: 16px;
}

.testimonial-stars {
  color: #d6b36d;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .11em;
}

.testimonial-topic {
  color: rgba(145, 174, 255, .62);
  font: 650 9px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .08em;
}

.testimonial-card blockquote {
  margin: 22px 0 24px;
  color: rgba(239, 240, 243, .86);
  font-size: 14px;
  line-height: 1.8;
}

.testimonial-card footer {
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, .065);
}

.testimonial-avatar {
  display: inline-grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  color: rgba(255, 255, 255, .86);
  font: 720 13px/1 ui-sans-serif, system-ui, sans-serif;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, .05), 0 7px 20px rgba(0, 0, 0, .2);
}

.avatar-1, .avatar-6, .avatar-11 { background: linear-gradient(145deg, #384e65, #182635); }
.avatar-2, .avatar-7, .avatar-12 { background: linear-gradient(145deg, #72634b, #2f2a24); }
.avatar-3, .avatar-8 { background: linear-gradient(145deg, #486056, #1f2b28); }
.avatar-4, .avatar-9 { background: linear-gradient(145deg, #534d69, #252332); }
.avatar-5, .avatar-10 { background: linear-gradient(145deg, #6b4e54, #2f2025); }

.testimonial-person {
  display: grid;
  gap: 5px;
  margin-left: 12px;
}

.testimonial-person strong {
  color: rgba(242, 242, 240, .88);
  font-size: 12px;
  font-weight: 680;
}

.testimonial-person small {
  color: rgba(186, 194, 208, .42);
  font: 600 9px/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.testimonial-fade {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: clamp(28px, 7vw, 112px);
  pointer-events: none;
}

.testimonial-fade-left { left: 0; background: linear-gradient(90deg, #090c11, transparent); }
.testimonial-fade-right { right: 0; background: linear-gradient(-90deg, #090c11, transparent); }

.testimonial-note {
  margin-top: 30px;
  color: rgba(185, 192, 204, .46);
  font-size: 10px;
  line-height: 1.7;
}

@keyframes testimonial-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes testimonial-scroll-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (max-width: 900px) {
  .testimonial-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }
}

@media (max-width: 620px) {
  .testimonial-section { padding: 76px 0; }
  .testimonial-heading { margin-bottom: 32px; }
  .testimonial-heading-copy > p { font-size: 13px; line-height: 1.78; }
  .testimonial-row { overflow-x: auto; padding-inline: 18px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .testimonial-row::-webkit-scrollbar { display: none; }
  .testimonial-track, .testimonial-row-reverse .testimonial-track { animation: none; }
  .testimonial-group { gap: 12px; padding-right: 12px; }
  .testimonial-card { flex-basis: min(82vw, 342px); width: min(82vw, 342px); min-height: 238px; padding: 22px 21px 20px; scroll-snap-align: center; }
  .testimonial-card blockquote { font-size: 13px; }
  .testimonial-fade { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track, .testimonial-row-reverse .testimonial-track { animation: none; }
  .testimonial-row { overflow-x: auto; }
  .testimonial-card { transition: none; }
}
