/* Shared site animations */

/* Scroll entrance */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.in {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.in {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.in {
  opacity: 1;
  transform: scale(1);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Hover lifts */
.hover-lift {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 17, 64, 0.12);
}
.hover-zoom {
  overflow: hidden;
}
.hover-zoom img {
  transition: transform 0.55s ease;
}
.hover-zoom:hover img {
  transform: scale(1.06);
}
.btn-glow {
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.btn-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(214, 51, 132, 0.35);
}
.btn-outline-lift {
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.btn-outline-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 17, 64, 0.1);
}
.icon-bounce {
  transition: transform 0.35s ease;
}
.hover-lift:hover .icon-bounce,
.group:hover .icon-bounce {
  transform: scale(1.12) rotate(-6deg);
}

/* Continuous soft motion */
.float-soft {
  animation: float-soft 4.5s ease-in-out infinite;
}
.float-soft-delay {
  animation: float-soft 5.2s ease-in-out infinite;
  animation-delay: 0.8s;
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.pulse-soft {
  animation: pulse-soft 2.8s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}
.badge-float {
  animation: badge-bob 3.2s ease-in-out infinite;
}
@keyframes badge-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.04); }
}

/* Nav / CTA accents */
.nav-link-anim {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link-anim::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #D63384, #7B2CBF);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link-anim:hover::after,
.nav-link-anim.active::after {
  width: 100%;
}
.cta-shine {
  position: relative;
  overflow: hidden;
}
.cta-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  animation: cta-shine 4.5s ease-in-out infinite;
}
@keyframes cta-shine {
  0%, 55% { left: -120%; }
  75% { left: 140%; }
  100% { left: 140%; }
}

/* Stat / number pop */
.stat-pop {
  transition: transform 0.35s ease;
}
.stat-pop:hover {
  transform: scale(1.06);
}

/* Categories dropdown */
.cat-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.group:hover .cat-dropdown,
.cat-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float-soft, .float-soft-delay, .pulse-soft, .badge-float, .cta-shine::before {
    animation: none;
  }
}

/* Responsive media ratios — shorter frames (not overly tall) */
.media-frame {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 340px;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .media-frame {
    aspect-ratio: 5 / 4;
    max-height: 380px;
  }
}
@media (min-width: 1024px) {
  .media-frame {
    aspect-ratio: 4 / 3;
    max-height: 400px;
  }
}

/* Phone / reels frame — compact height */
.phone-frame {
  width: 100%;
  max-width: 17rem;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  max-height: 400px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .phone-frame {
    max-width: 18rem;
    max-height: 420px;
  }
}
@media (min-width: 1024px) {
  .phone-frame {
    max-width: 19rem;
    max-height: 440px;
  }
}

/* Mobile navigation */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #1A1140;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover {
  background: #F5F3FF;
  border-color: #7B2CBF;
  color: #7B2CBF;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid #f3f4f6;
  box-shadow: 0 18px 40px rgba(26, 17, 64, 0.12);
  padding: 12px 20px 20px;
  max-height: min(78vh, 560px);
  overflow-y: auto;
  z-index: 60;
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #4b5563;
  text-decoration: none;
}
.mobile-nav a:hover,
.mobile-nav a.is-active {
  background: #F5F3FF;
  color: #7B2CBF;
}
.mobile-nav .mobile-cat-label {
  margin-top: 8px;
  padding: 8px 10px 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}
.mobile-nav .mobile-cat-link {
  padding-left: 18px;
  font-weight: 500;
  font-size: 0.9rem;
}
.mobile-nav .mobile-join {
  margin-top: 12px;
  text-align: center;
  color: #fff !important;
  background: linear-gradient(90deg, #8A2BE2 0%, #5B1FA6 100%);
}
.mobile-nav .mobile-join:hover {
  color: #fff !important;
  opacity: 0.92;
}
body.nav-open {
  overflow: hidden;
}
@media (min-width: 768px) {
  .mobile-nav,
  .nav-toggle {
    display: none !important;
  }
  body.nav-open {
    overflow: auto;
  }
}

/* Highlight: 0% ZERO commission! */
.zero-commission {
  color: #D63384;
  font-weight: 800;
  font-size: 1.05em;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: inline;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  background: linear-gradient(120deg, rgba(214, 51, 132, 0.16), rgba(123, 44, 191, 0.14));
  padding: 0.08em 0.35em;
  border-radius: 0.35em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.zero-commission-block {
  display: inline-block;
  max-width: 100%;
  font-size: 0.95rem;
  line-height: 1.3;
  white-space: normal;
}
