html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.glass {
  backdrop-filter: blur(12px);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-float {
  animation: heroFloat 6s ease-in-out infinite;
}

.pulse-soft {
  animation: pulseSoft 3.2s ease-in-out infinite;
}

.marquee-track {
  animation: marquee 22s linear infinite;
}

.slide-fade {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18px) scale(0.985);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}

.slide-fade.active {
  position: relative;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.rotate-in {
  animation: rotateIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-grid {
  background-image:
    radial-gradient(circle at top left, rgba(0, 209, 255, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(10, 37, 64, 0.14), transparent 28%);
}

.premium-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 251, 0.98));
}

.premium-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 2rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 209, 255, 0.65), rgba(10, 37, 64, 0.18), rgba(255, 255, 255, 0.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.premium-screen {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.premium-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.28) 35%, transparent 60%);
  transform: translateX(-120%);
  animation: shineSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.premium-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}

.premium-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.04) 0%, rgba(10, 37, 64, 0.16) 100%);
  pointer-events: none;
}

.premium-image {
  filter: saturate(1.03) contrast(1.02);
  transition: transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 1200ms ease;
}

.premium-frame:hover .premium-image {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.05);
}

.premium-chip {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseSoft {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  50% {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-4deg) scale(0.96);
  }

  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes shineSweep {
  0%, 15% {
    transform: translateX(-120%);
  }

  35%, 100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-float,
  .pulse-soft,
  .marquee-track,
  .slide-fade,
  .rotate-in,
  .premium-screen::after,
  .premium-image {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
