* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.intro-page {
  position: fixed;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  z-index: 99999;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  background:
    radial-gradient(ellipse at 50% 40%,
      rgba(86, 33, 207, 0.22),
      transparent 55%),
    linear-gradient(145deg, #10131c, #171127 55%, #080a10);

  font-family: Arial, sans-serif;
}

/* Logo */
.intro-page > .img-box {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  margin-top: max(35px, 8vh);

  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #a78bfa, #5621cf, #00d4ff);

  box-shadow:
    0 0 25px rgba(86, 33, 207, 0.35),
    0 0 55px rgba(86, 33, 207, 0.15);

  animation: logoEntrance 1s ease-out both,
             logoFloat 3s ease-in-out 1s infinite;
}

.intro-page > .img-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #10131c;
}

/* Brand name */
.intro-page > .name-box {
  width: 100%;
  min-height: 110px;
  margin-top: 20px;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.intro-page > .name-box h1 {
  position: relative;
  margin: 0;
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 5px;

  color: transparent;
  -webkit-text-stroke: 1.5px #8b5cf6;

  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);

  animation: titleEntrance 1s ease-out both;
}

.intro-page > .name-box h1::before {
  content: "CHOOSE";
  position: absolute;
  inset: 0;
  width: 0;
  white-space: nowrap;
  overflow: hidden;

  color: #ffffff;
  -webkit-text-stroke: 0;
  text-shadow:
    0 0 8px rgba(167, 139, 250, 0.9),
    0 0 25px rgba(86, 33, 207, 0.7);

  animation: brandLoading 2.5s ease-in-out 0.5s forwards;
}

/* Footer */
.intro-page > .footer-box {
  width: 100%;
  padding: 20px 0 max(25px, 5vh);
  text-align: center;
  color: #a5a5b5;
  animation: footerEntrance 1s ease-out 0.5s both;
}

.intro-page > .footer-box span {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.intro-page > .footer-box h3 {
  margin: 7px 0 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 5px;

  background: linear-gradient(90deg, #a78bfa, #ffffff, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Animations */
@keyframes brandLoading {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-15deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

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

/* Small screens */
@media (max-width: 480px) {
  .intro-page > .img-box {
    width: 125px;
    height: 125px;
  }

  .intro-page > .name-box h1 {
    letter-spacing: 3px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .intro-page *,
  .intro-page *::before,
  .intro-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
