/**
 * Avaliações de clientes — marquee premium
 */

.cr-section {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background: transparent;
  font-family: "Inter", "Poppins", system-ui, sans-serif;
  overflow: hidden;
}

.cr-section__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cr-section__grid-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(hsl(var(--primary) / 0.09) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--primary) / 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, #000 12%, transparent 82%);
  opacity: 0.5;
}

.cr-section__particles {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    radial-gradient(circle, #a855f7 1px, transparent 1px),
    radial-gradient(circle, hsl(var(--primary) / 0.4) 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px;
  background-position: 0 0, 60px 40px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, #000 18%, transparent 78%);
}

.cr-section__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.48;
}

.cr-section__glow--left {
  width: 28rem;
  height: 28rem;
  top: 8%;
  left: -10%;
  background: radial-gradient(circle, #a855f7 0%, hsl(var(--primary) / 0.3) 45%, transparent 70%);
}

.cr-section__glow--right {
  width: 32rem;
  height: 32rem;
  bottom: 0;
  right: -8%;
  background: radial-gradient(circle, hsl(var(--primary) / 0.28), transparent 70%);
}

.cr-section__inner {
  position: relative;
  z-index: 1;
}

.cr-section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto 3.25rem;
}

.cr-section__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 1.35rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c084fc;
  background: rgb(124 58 237 / 0.12);
  border: 1px solid #a855f7;
  box-shadow:
    0 0 0 1px rgb(168 85 247 / 0.12) inset,
    0 0 28px rgb(168 85 247 / 0.24);
}

.cr-section__title {
  margin: 0 0 1.25rem;
  width: 100%;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.15rem, 5.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

@media (min-width: 1024px) {
  .cr-section__title {
    font-size: clamp(2.75rem, 3.8vw, 3.75rem);
  }
}

.cr-section__title-accent {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 52%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgb(168 85 247 / 0.4));
}

.cr-section__title-plain {
  color: #ffffff;
}

.cr-section__lead {
  margin: 0;
  max-width: 43.75rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #a1a1aa;
}

.cr-marquees {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
}

.cr-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.cr-marquee__track {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}

.cr-marquee--ltr .cr-marquee__track {
  animation: cr-marquee-ltr 38s linear infinite;
}

.cr-marquee--rtl .cr-marquee__track {
  animation: cr-marquee-rtl 42s linear infinite;
}

.cr-marquee:hover .cr-marquee__track,
.cr-marquee:focus-within .cr-marquee__track {
  animation-play-state: paused;
}

@keyframes cr-marquee-ltr {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes cr-marquee-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.cr-card {
  flex: 0 0 auto;
  width: min(22.5rem, 88vw);
  min-height: 15.5rem;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem 1.35rem;
  border-radius: 22px;
  background: rgb(13 9 21 / 0.58);
  border: 1px solid hsl(var(--primary) / 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.03) inset,
    0 12px 32px rgb(0 0 0 / 0.28);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.cr-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: hsl(var(--primary) / 0.42);
  background: rgb(13 9 21 / 0.78);
  box-shadow:
    0 0 0 1px hsl(var(--primary) / 0.14) inset,
    0 0 36px rgb(168 85 247 / 0.22),
    0 20px 44px rgb(0 0 0 / 0.38);
}

.cr-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.cr-card__stars {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #c084fc;
  text-shadow: 0 0 14px rgb(168 85 247 / 0.55);
}

.cr-card__date {
  margin: 0;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #a1a1aa;
  text-align: right;
  white-space: nowrap;
}

.cr-card__text {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #ffffff;
}

.cr-card__divider {
  margin: 1.15rem 0 0.85rem;
  border: 0;
  border-top: 1px solid hsl(var(--primary) / 0.16);
}

.cr-card__footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cr-card__product {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.cr-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #c084fc;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.24);
  box-shadow: 0 0 12px hsl(var(--primary) / 0.12);
}

@media (max-width: 768px) {
  .cr-section {
    padding: 3.75rem 0 3.25rem;
  }

  .cr-section__head {
    margin-bottom: 2.25rem;
    padding-inline: 1rem;
  }

  .cr-marquees {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cr-marquee__track {
    animation: none !important;
  }
}
