:root {
  --bg-0: #030711;
  --bg-1: #07101f;
  --bg-2: #11203d;
  --edge: rgba(126, 175, 246, 0.24);
  --text: #f4f7ff;
  --text-soft: rgba(220, 230, 255, 0.72);
  --shadow: rgba(0, 0, 0, 0.48);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 18%, rgba(119, 215, 255, 0.13), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(255, 198, 111, 0.1), transparent 22%),
    radial-gradient(circle at 48% 78%, rgba(36, 74, 138, 0.32), transparent 34%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 44%, var(--bg-0) 100%);
}

body::before,
body::after {
  position: fixed;
  inset: auto;
  content: "";
  pointer-events: none;
}

body::before {
  top: -10rem;
  right: -4rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 215, 255, 0.2), rgba(119, 215, 255, 0));
  filter: blur(18px);
  opacity: 0.9;
}

body::after {
  left: -6rem;
  bottom: -9rem;
  width: 34rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 111, 0.12), rgba(255, 198, 111, 0));
  filter: blur(18px);
  opacity: 0.88;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.hero::before {
  position: absolute;
  inset: 3vh 3vw;
  z-index: -1;
  content: "";
  border: 1px solid var(--edge);
  border-radius: 2rem;
  background:
    radial-gradient(circle at top right, rgba(119, 215, 255, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(16, 29, 54, 0.62), rgba(4, 8, 18, 0.86)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2.5rem 6rem -2.4rem var(--shadow);
  backdrop-filter: blur(22px);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(125, 162, 223, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(125, 162, 223, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.34) 0 1.2px, transparent 1.3px),
    radial-gradient(circle at 72% 37%, rgba(255, 255, 255, 0.2) 0 1.2px, transparent 1.3px),
    radial-gradient(circle at 60% 64%, rgba(255, 255, 255, 0.16) 0 1.2px, transparent 1.3px);
  background-size: 6.5rem 6.5rem, 6.5rem 6.5rem, 18rem 18rem, 22rem 22rem, 16rem 16rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 96%);
  opacity: 0.44;
}

.hero__visual {
  position: relative;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  width: min(100%, 46rem);
  min-height: clamp(24rem, 72svh, 50rem);
}

.hero__visual::before,
.hero__visual::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  pointer-events: none;
}

.hero__visual::before {
  width: min(72vw, 34rem);
  aspect-ratio: 1;
  border: 1px solid rgba(119, 215, 255, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 1.2rem rgba(119, 215, 255, 0.03),
    inset 0 0 3rem rgba(119, 215, 255, 0.02);
  animation: aura-pulse 8s ease-in-out infinite;
}

.hero__visual::after {
  width: min(62vw, 28rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 215, 255, 0.18), rgba(119, 215, 255, 0));
  filter: blur(30px);
  opacity: 0.78;
  animation: aura-pulse 8s ease-in-out 1s infinite;
}

.hero__image {
  position: relative;
  width: min(100%, 42rem);
  max-height: min(80svh, 48rem);
  display: block;
  filter:
    drop-shadow(0 0 1.8rem rgba(119, 215, 255, 0.14))
    drop-shadow(0 2rem 4rem rgba(0, 0, 0, 0.42));
  transform-origin: center 58%;
  animation:
    hero-rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) both,
    hero-float 10s ease-in-out 1.2s infinite;
}

.hero::before {
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 2rem, 0) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -0.9rem, 0);
  }
}

@keyframes aura-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.75;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  body {
    overflow-y: auto;
  }

  .hero {
    padding-block: clamp(2rem, 6vw, 3.5rem);
  }

  .hero::before {
    inset: 1rem;
    border-radius: 1.6rem;
  }

  .hero__visual {
    justify-self: center;
    min-height: 20rem;
  }

  .hero__image {
    width: min(100%, 34rem);
    max-height: min(56svh, 30rem);
  }
}

@media (max-width: 540px) {
  .hero {
    align-content: center;
    padding-inline: 0.9rem;
  }

  .hero__image {
    max-height: min(50svh, 23rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
  }
}
