/* ==========================================================================
   3D HERO CAROUSEL STYLES
   ========================================================================== */

/* Outer Stage */
.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 420px;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px; /* Crucial for realistic 3D depth */
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}

/* 3D Track */
.hero-carousel-3d {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Base Card Styles within 3D Stage */
.hero-carousel-3d .placeholder-card.card-landscape {
  position: absolute;
  width: 260px;
  height: 325px;
  margin: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity, z-index;
  cursor: grab;
  /* Disable transition on transform when dragging or continuously rendering */
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel-3d .placeholder-card.card-landscape:active {
  cursor: grabbing;
}

/* Inner Float Animation Wrappers */
.card-inner-float {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: inherit;
  border: inherit;
  box-shadow: inherit;
  background-color: inherit;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Keyframes for slow, organic floating movement */
@keyframes susp-float-0 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes susp-float-1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes susp-float-2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes susp-float-3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes susp-float-4 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes susp-float-5 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@keyframes susp-float-6 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes susp-float-7 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Map keyframes to floats */
.hero-carousel-3d .placeholder-card.card-landscape[data-float="0"] .card-inner-float { animation: susp-float-0 7s ease-in-out infinite; }
.hero-carousel-3d .placeholder-card.card-landscape[data-float="1"] .card-inner-float { animation: susp-float-1 8s ease-in-out infinite; }
.hero-carousel-3d .placeholder-card.card-landscape[data-float="2"] .card-inner-float { animation: susp-float-2 7.5s ease-in-out infinite; }
.hero-carousel-3d .placeholder-card.card-landscape[data-float="3"] .card-inner-float { animation: susp-float-3 8.5s ease-in-out infinite; }
.hero-carousel-3d .placeholder-card.card-landscape[data-float="4"] .card-inner-float { animation: susp-float-4 7.8s ease-in-out infinite; }
.hero-carousel-3d .placeholder-card.card-landscape[data-float="5"] .card-inner-float { animation: susp-float-5 9s ease-in-out infinite; }
.hero-carousel-3d .placeholder-card.card-landscape[data-float="6"] .card-inner-float { animation: susp-float-6 7.2s ease-in-out infinite; }
.hero-carousel-3d .placeholder-card.card-landscape[data-float="7"] .card-inner-float { animation: susp-float-7 8.2s ease-in-out infinite; }

/* Desktop Hover Interaction (Lifts, Scales, and Glows) */
@media (hover: hover) and (pointer: fine) {
  .hero-carousel-3d .placeholder-card.card-landscape:hover .card-inner-float {
    transform: translateY(-14px) scale(1.06) translateZ(40px);
    box-shadow: 0 25px 50px rgba(229, 255, 0, 0.16), 0 0 30px rgba(255, 255, 255, 0.05);
    border-color: rgba(229, 255, 0, 0.35);
  }
}

/* Responsive constraints */
@media (max-width: 767px) {
  .hero-carousel-wrapper {
    height: 300px;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
  }
  .hero-carousel-3d .placeholder-card.card-landscape {
    width: 180px;
    height: 225px;
  }
}

/* ==========================================================================
   HERO TYPOGRAPHY UPDATES (NEW COPY)
   ========================================================================== */
.hero-subtitle-subtext {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #ffffff;
  font-weight: 600;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  text-align: center;
}

.hero-sub-title {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.3;
}

.hero-support-line {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   RECEIPTS SECTION REVISIONS (NEW STATS & COMPANY LOGOS)
   ========================================================================== */
.receipts-stats-row {
  margin: 2.25rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.receipts-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

@keyframes statGlowPulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 228, 0, 0.15);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 35px rgba(255, 228, 0, 0.4);
    transform: scale(1.03);
  }
}

.receipts-stat-item .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
  display: inline-block;
  animation: statGlowPulse 3s ease-in-out infinite;
}

.receipts-stat-item .stat-label {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.5;
}

.line-judge {
  font-style: italic;
  color: var(--text-primary) !important;
  margin-bottom: 1.5rem;
}

.receipts-cta {
  margin-top: 1.5rem;
  display: flex;
}

.btn-explore {
  background-color: transparent !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
}

.btn-explore:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--text-primary) !important;
  transform: scale(1.02);
}

/* Featured Brand Logos Strip */
.featured-companies-strip {
  max-width: var(--container-width);
  width: calc(100% - 3rem);
  margin: 3.5rem auto 1rem auto;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2.25rem;
}

.featured-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.featured-logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  opacity: 1 !important;
}

.featured-logo-item {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo {
  height: 100%;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

/* ==========================================================================
   PRICING GUIDE LINE STYLE
   ========================================================================== */
.pricing-guidance {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 2.5rem auto 1.25rem auto;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   FINAL CTA SECTION STYLES
   ========================================================================== */
.final-cta-section {
  padding: 8rem 0;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.final-cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  z-index: 5;
  position: relative;
  width: 100%;
}

.final-cta-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.45;
  letter-spacing: -0.02em;
  max-width: 840px;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.final-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 600px;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .final-cta-group {
    flex-direction: row;
  }
}

.final-cta-micro {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  letter-spacing: -0.01em;
}

/* Final CTA Visual Stack Showcase overrides */
.final-cta-showcase {
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.final-cta-showcase .visual-stack-container {
  max-width: 380px;
  height: 475px;
  margin-bottom: 0;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

@media (max-width: 767px) {
  .final-cta-showcase .visual-stack-container {
    max-width: 260px;
    height: 325px;
  }
}
