/* Legacy stack support */
.testimonial-stack-wrap {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.testimonial-stack-wrap img {
  -webkit-user-drag: none;
  pointer-events: none;
}
.testimonial-stack-card {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, top 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.testimonial-stack-card.card-front {
  cursor: pointer;
}
.testimonial-stack-card.card-back-right,
.testimonial-stack-card.card-back-left {
  cursor: pointer;
}
.testimonial-stack-card.transitioning-to-front {
  z-index: 5 !important;
}
.testimonial-stack-card.transitioning-to-back {
  z-index: 2 !important;
}
.testimonial-stack-card.no-transition {
  transition: none !important;
}

/* =========================================================================
   Social Proof Testimonials Stack (Lagoon AI Design System)
   Skeleton and interactive animations inspired by lagooncustom.html
   ========================================================================= */

.social-proof-section {
  position: relative;
  background-color: #030304;
  padding: 110px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.social-proof-content {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.social-proof-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  z-index: 20;
}

.social-proof-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 20px 0;
}

.social-proof-desc {
  font-family: var(--font-body, 'Inter', sans-serif);
  color: #888894;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  margin: 0 0 32px 0;
  max-width: 480px;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #33D2FF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-btn:hover {
  border-color: rgba(51, 210, 255, 0.5);
  background: rgba(51, 210, 255, 0.12);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(51, 210, 255, 0.28);
}

.slider-btn:active {
  transform: scale(0.94);
}

.slider-btn svg {
  transition: transform 0.2s ease;
}

.slider-btn.prev-btn:hover svg {
  transform: translateX(-2px);
}

.slider-btn.next-btn:hover svg {
  transform: translateX(2px);
}

.social-proof-stack-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.social-proof-stack {
  position: relative;
  width: 100%;
  max-width: 470px;
  height: 300px;
  transform-style: preserve-3d;
}

/* Card Estilo Tweet */
.tweet-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 15, 20, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              background-color 0.3s ease;
  transform-origin: center bottom;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
  cursor: pointer;
}

.tweet-card:hover {
  border-color: rgba(51, 210, 255, 0.25);
}

.tweet-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  position: relative;
}

.tweet-avatar-container {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.tweet-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111116;
}

.verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background-color: #33D2FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #030304;
  border: 2px solid #0e0f14;
}

.verified-badge svg {
  width: 10px;
  height: 10px;
}

.tweet-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tweet-name {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.tweet-niche {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12.5px;
  color: #888894;
  letter-spacing: 0.02em;
}

.tweet-body {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14.5px;
  color: #d1d5db;
  line-height: 1.6;
  font-weight: 300;
  flex-grow: 1;
  display: block;
  margin: auto 0;
}

.tweet-body strong {
  font-weight: 600;
  color: #ffffff;
}

/* Classes da Pilha de Cards (Animações e Posições) */
.tweet-card.card-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  z-index: 5;
  pointer-events: auto;
  border-color: rgba(51, 210, 255, 0.4);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.85),
              0 0 35px rgba(51, 210, 255, 0.15);
}

.tweet-card.card-behind-1 {
  opacity: 0.85;
  transform: translate3d(18px, -18px, 0) scale(0.96) rotate(2deg);
  z-index: 4;
  pointer-events: none;
}

.tweet-card.card-behind-2 {
  opacity: 0.6;
  transform: translate3d(36px, -36px, 0) scale(0.92) rotate(-2deg);
  z-index: 3;
  pointer-events: none;
}

.tweet-card.card-behind-3 {
  opacity: 0.35;
  transform: translate3d(54px, -54px, 0) scale(0.88) rotate(1.5deg);
  z-index: 2;
  pointer-events: none;
}

.tweet-card.card-incoming {
  opacity: 0;
  transform: translate3d(150%, 20px, 0) scale(0.9) rotate(8deg);
  z-index: 6;
  pointer-events: none;
  transition: none !important;
}

.tweet-card.card-outgoing {
  opacity: 0 !important;
  transform: translate3d(-50px, -10px, 0) scale(0.96) rotate(-2deg) !important;
  transition: opacity 0.1s ease-out, transform 0.25s ease-out !important;
  z-index: 1;
  pointer-events: none;
}

.tweet-card.card-hidden {
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.85);
  z-index: 0;
  pointer-events: none;
  transition: none !important;
}

/* Responsividade Mobile e Tablets */
@media (max-width: 1024px) {
  .social-proof-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .social-proof-info {
    align-items: center;
    text-align: center;
  }
  .social-proof-desc {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }
  .social-proof-stack-wrapper {
    height: 360px;
  }
  .social-proof-stack {
    max-width: 480px;
    height: 290px;
  }
}

@media (max-width: 640px) {
  .social-proof-section {
    padding: 64px 0;
  }
  .social-proof-content {
    gap: 36px;
  }
  .social-proof-title {
    font-size: 28px;
  }
  .social-proof-stack-wrapper {
    height: 350px;
  }
  .social-proof-stack {
    max-width: 100%;
    height: 280px;
  }
  .tweet-card {
    padding: 20px 22px;
    border-radius: 20px;
  }
  .tweet-body {
    font-size: 13.5px;
    line-height: 1.55;
  }
  .tweet-card.card-behind-1 {
    transform: translate3d(8px, -8px, 0) scale(0.96) rotate(1deg);
  }
  .tweet-card.card-behind-2 {
    transform: translate3d(16px, -16px, 0) scale(0.92) rotate(-1deg);
  }
  .tweet-card.card-behind-3 {
    transform: translate3d(24px, -24px, 0) scale(0.88) rotate(1deg);
  }
}
