/* =============================================
   ANIMATIONS & EFFECTS
   ============================================= */

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.2s;
  text-decoration: none;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
}

/* --- Keyframes --- */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Section Animations --- */
.social-proof {
  animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.2s;
}

.hero h1 {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.5s;
}

.hero .subtitle {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.7s;
}

.vsl-container {
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.9s;
}

/* --- Video Facade Play Button --- */
.vimeo-facade::after,
.loom-facade::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='6,3 20,12 6,21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 55% center;
  background-size: 22px 22px;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.vimeo-facade:hover::after,
.loom-facade:hover::after {
  transform: translate(-50%, -50%) scale(1.15);
  background-color: rgba(77, 78, 167, 0.8);
}

/* Hide play button when iframe is loaded */
.vimeo-facade:has(iframe)::after,
.loom-facade:has(iframe)::after {
  display: none;
}

/* --- Hover Effects --- */
.vimeo-facade,
.loom-facade {
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.vimeo-facade:hover,
.loom-facade:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
