/* =========================================
   PARSER / Reset
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

html {
  overflow: hidden;
}

/* =========================================
   Global
========================================= */

body {
  position: relative;
  overflow: hidden;
  background: #050506;
  color: #e8e8ea;
  font-family: "Inter", "Segoe UI", sans-serif;
  min-height: 100vh;
  min-height: 100svh;
  letter-spacing: 0.02em;
}

/* =========================================
   Background layers
========================================= */

.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  width: 140vw;
  height: 140vw;
  border-radius: 50%;
  filter: blur(90px);
  transform-origin: center;
}

.page-bg::before {
  top: -30vw;
  left: -25vw;
  background:
    radial-gradient(circle at 35% 35%, rgba(120, 90, 255, 0.18), transparent 38%),
    radial-gradient(circle at 70% 30%, rgba(180, 155, 255, 0.10), transparent 42%),
    radial-gradient(circle at 55% 70%, rgba(79, 209, 197, 0.05), transparent 35%);
  opacity: 0.28;
  animation: drift-a 24s ease-in-out infinite alternate;
}

.page-bg::after {
  top: 10vw;
  right: -35vw;
  background:
    radial-gradient(circle at 45% 45%, rgba(192, 132, 252, 0.08), transparent 36%),
    radial-gradient(circle at 30% 65%, rgba(159, 179, 200, 0.05), transparent 34%),
    radial-gradient(circle at 65% 25%, rgba(110, 123, 139, 0.05), transparent 32%);
  opacity: 0.18;
  animation: drift-b 32s ease-in-out infinite alternate;
}

.background-beam-a {
  position: absolute;
  left: 0;
  width: 100%;
  height: 120px;
  opacity: 0.12;
  filter: blur(18px);
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(220, 225, 255, 0) 20%,
      rgba(220, 225, 255, 0.08) 45%,
      rgba(180, 155, 255, 0.12) 50%,
      rgba(220, 225, 255, 0.08) 55%,
      rgba(220, 225, 255, 0) 80%,
      transparent 100%
    );
  animation: beam-sweep-a 18s ease-in-out infinite;
}

.background-beam-b {
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  opacity: 0.16;
  filter: blur(18px);
  background:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(220, 225, 255, 0) 20%,
      rgba(220, 225, 255, 0.08) 45%,
      rgba(180, 155, 255, 0.12) 50%,
      rgba(220, 225, 255, 0.08) 55%,
      rgba(220, 225, 255, 0) 80%,
      transparent 100%
    );
  animation: beam-sweep-b 18s ease-in-out infinite;
}

.background-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.025;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.08) 0.5px, transparent 0.6px);
  background-size: 4px 4px;
}

/* =========================================
   Layout
========================================= */

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.hero {
  width: min(100%, 700px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  animation: fade-in 1.2s ease forwards;
  opacity: 0;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(240, 215, 255, 0.14),
    0 0 50px rgba(120, 90, 255, 0.06);
}

.hero__divider {
  width: min(144px, 60vw);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(180, 155, 255, 0.35),
    transparent
  );
}

.hero__tagline {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(232, 232, 234, 0.72);
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
}

.hero__links a {
  position: relative;
  padding-bottom: 0.25rem;
  color: rgba(232, 232, 234, 0.76);
  text-decoration: none;
  transition: color 0.25s ease;
}

.hero__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: rgba(180, 155, 255, 0.55);
  transition: width 0.25s ease;
}

.hero__links a:hover {
  color: #ffffff;
}

.hero__links a:hover::after {
  width: 100%;
}

.pulse-text {
  position: relative;
  width: min(100%, 680px);
  height: 190px;
  margin: 8px 0 8px 0;
  pointer-events: none;
}

.pulse-text span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: pre-line;
  font-size: 1rem;
  line-height: 1.95;
  letter-spacing: 0.02em;
  opacity: 0;
  filter: blur(40px);
  transform: translateY(14px) scale(0.985);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.06);
  animation: pulseGroup 60s infinite linear;
}

/* color drift */
.pulse-text span:nth-child(1) {
  animation-delay: 0s;
  color: rgba(232, 232, 234, 0.78);
}

.pulse-text span:nth-child(2) {
  animation-delay: 10s;
  color: rgba(236, 224, 186, 0.82);
}

.pulse-text span:nth-child(3) {
  animation-delay: 20s;
  color: rgba(196, 214, 235, 0.84);
}

.pulse-text span:nth-child(4) {
  animation-delay: 30s;
  color: rgba(227, 214, 180, 0.82);
}

.pulse-text span:nth-child(5) {
  animation-delay: 40s;
  color: rgba(206, 220, 232, 0.80);
}

.pulse-text span:nth-child(6) {
  animation-delay: 50s;
  color: rgba(232, 232, 234, 0.84);
}



/* =========================================
   Mobile
========================================= */

@media (max-width: 600px) {
  .site {
    padding: 20px;
  }

  .hero {
    gap: 24px;
    width: 100%;
  }

  .hero__title {
    font-size: clamp(2rem, 12vw, 2.8rem);
    letter-spacing: 0.18em;
  }

  .hero__divider {
    width: min(120px, 55vw);
  }

  .hero__tagline {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .hero__links {
    flex-direction: column;
    gap: 16px;
  }

  .page-bg::before,
  .page-bg::after {
    width: 180vw;
    height: 180vw;
    filter: blur(70px);
  }

  .background-beam-a {
    height: 90px;
    opacity: 0.08;
  }
  
    .background-beam-b {
    height: 120px;
    opacity: 0.08;
  }
}

/* =========================================
   Animations
========================================= */

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes drift-a {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1.00);
  }
  50% {
    transform: translate3d(4%, 4%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-2%, 6%, 0) scale(1.02);
  }
}

@keyframes drift-b {
  0% {
    transform: translate3d(2%, -2%, 0) scale(1.03);
  }
  50% {
    transform: translate3d(-3%, 1%, 0) scale(1.00);
  }
  100% {
    transform: translate3d(1%, -1%, 0) scale(1.05);
  }
}

@keyframes beam-sweep-a {
  0% {
    transform: translateY(-20vh);
    opacity: 0;
  }
  15% {
    opacity: 0.05;
  }
  45% {
    opacity: 0.12;
  }
  70% {
    opacity: 0.08;
  }
  100% {
    transform: translateY(120vh);
    opacity: 0;
  }
}

@keyframes beam-sweep-b {
  0% {
    transform: translateY(10vh);
    opacity: 0;
  }
  15% {
    opacity: 0.03;
  }
  45% {
    opacity: 0.15;
  }
  70% {
    opacity: 0.04;
  }
  100% {
    transform: translateY(90vh);
    opacity: 0;
  }
}

@keyframes pulseGroup {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(14px) scale(0.985);
  }

  8% {
    opacity: 0.88;
    filter: blur(0px);
    transform: translateY(0) scale(1);
  }

  14% {
    opacity: 0.88;
    filter: blur(0px);
    transform: translateY(0) scale(1);
  }

  20% {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(-14px) scale(1.01);
  }

  100% {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(-14px) scale(1.01);
  }
}