﻿html {
  scroll-behavior: smooth;
}

.btn-gradient {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-size: 220% 100% !important;
  animation: ctaGradientFlow 4.8s ease-in-out infinite;
}

.bg-paper-warm .btn-gradient + p,
.bg-aurora-light .btn-gradient + p {
  color: rgba(17, 17, 17, 0.68) !important;
}

.btn-gradient::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 34%,
    rgba(255, 255, 255, 0.48) 46%,
    rgba(255, 255, 255, 0.18) 54%,
    transparent 68%,
    transparent 100%
  );
  mix-blend-mode: soft-light;
  transform: translateX(-130%);
  animation: ctaShimmer 3.2s cubic-bezier(.16, 1, .3, 1) infinite;
}

@keyframes ctaGradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes ctaShimmer {
  0% {
    transform: translateX(-130%);
    opacity: 0;
  }
  18% {
    opacity: 0.85;
  }
  48% {
    opacity: 0.55;
  }
  68%,
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

.particles-layer {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.42;
}

#hero .particles-layer {
  display: block !important;
  opacity: 0.32;
}

.particles-layer .p {
  position: absolute;
  bottom: -24px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(212, 168, 67, 0.78);
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.55);
  animation-name: softParticleRise;
  animation-duration: 24s;
  animation-delay: -8s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

.particles-layer .p.s {
  width: 2px;
  height: 2px;
  opacity: 0.7;
}

.particles-layer .p.silver {
  background: rgba(210, 220, 224, 0.78);
  box-shadow: 0 0 12px rgba(210, 220, 224, 0.4);
}

.particles-layer.light .p {
  opacity: 0.34;
}

@keyframes softParticleRise {
  0% {
    transform: translate3d(0, 18px, 0) scale(0.85);
    opacity: 0;
  }
  12% {
    opacity: 0.75;
  }
  82% {
    opacity: 0.55;
  }
  100% {
    transform: translate3d(18px, -110vh, 0) scale(1.15);
    opacity: 0;
  }
}

.motion-item {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 780ms cubic-bezier(.16, 1, .3, 1),
    transform 780ms cubic-bezier(.16, 1, .3, 1),
    filter 780ms cubic-bezier(.16, 1, .3, 1);
  filter: blur(5px);
  will-change: opacity, transform, filter;
}

.motion-item.motion-from-left {
  transform: translate3d(-22px, 0, 0);
}

.motion-item.motion-from-right {
  transform: translate3d(22px, 0, 0);
}

.motion-item.motion-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.motion-parallax {
  transform: translate3d(0, var(--motion-parallax-y, 0px), 0);
  transition: transform 120ms linear;
  will-change: transform;
}

.study-card,
.platform-xray-card,
.bg-bg-surface,
.for-you-item,
.progress-proof-card {
  transition:
    transform 320ms cubic-bezier(.16, 1, .3, 1),
    border-color 320ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 320ms cubic-bezier(.16, 1, .3, 1);
}

.study-card:hover,
.platform-xray-card:hover,
.group-events-section .bg-bg-surface:hover,
.not-for-you-section .bg-bg-surface:hover,
.for-you-item:hover,
.progress-proof-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(212, 168, 67, 0.34);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-gradient,
  .btn-gradient::before,
  .particles-layer .p,
  .motion-item,
  .motion-parallax,
  .study-card,
  .platform-xray-card,
  .bg-bg-surface,
  .for-you-item,
  .progress-proof-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }

  .motion-item {
    opacity: 1 !important;
  }
}

@media (max-width: 640px) {
  .btn-gradient {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    font-size: clamp(12px, 3.35vw, 15px) !important;
    line-height: 1 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
