/* ------------------------------
   Motsae — waiting page
------------------------------ */

:root {
  --bg: #050507;
  --text: #f5f3f8;
  --muted: rgba(242, 239, 248, .76);
  --line: rgba(255, 255, 255, .11);
  --violet: #8f63ff;
  --blue: #59a8ff;
  --pink: #e78de8;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--bg);
}

body {
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 42%, rgba(73, 49, 132, .11), transparent 34%),
    radial-gradient(circle at 50% 48%, rgba(34, 62, 112, .07), transparent 46%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#stars {
  z-index: 0;
}

#mesh {
  z-index: 1;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100svh;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 8vh 24px 20vh;
  position: relative;
}

.hero__content {
  width: min(1080px, 92vw);
  text-align: center;
  position: relative;
  z-index: 3;
  transform: translateY(-3vh);
  animation: content-in 1.25s cubic-bezier(.2,.75,.2,1) both;
}

.orb {
  position: absolute;
  left: 50%;
  top: 43%;
  width: min(760px, 64vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.orb__halo {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 60%, rgba(114, 72, 209, .13), rgba(74, 67, 170, .045) 45%, transparent 72%);
  filter: blur(26px);
  animation: breathe 8s ease-in-out infinite;
}

.orb__arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1.2px;
  background:
    conic-gradient(
      from 216deg,
      transparent 0deg 46deg,
      rgba(73, 140, 255, .14) 56deg,
      rgba(83, 162, 255, .95) 93deg,
      rgba(147, 105, 255, .95) 150deg,
      rgba(233, 137, 225, .92) 204deg,
      rgba(255,255,255,.6) 229deg,
      rgba(116, 95, 255, .25) 247deg,
      transparent 268deg 360deg
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter:
    drop-shadow(0 0 8px rgba(111, 107, 255, .4))
    drop-shadow(0 0 18px rgba(149, 86, 255, .14));
  opacity: .9;
}

.brand {
  position: relative;
  display: inline-block;
  margin: 0;
  padding-left: .16em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(72px, 7.7vw, 142px);
  line-height: .92;
  font-weight: 400;
  letter-spacing: .16em;
  color: transparent;
  background:
    linear-gradient(110deg,
      #f7f4f7 0%,
      #dcd8e4 24%,
      #fbfafc 43%,
      #b8c8ff 57%,
      #eee9f6 73%,
      #d7bde8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 8px 30px rgba(100, 84, 177, .11);
}

.brand::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  padding-left: .16em;
  color: transparent;
  background:
    linear-gradient(105deg,
      transparent 37%,
      rgba(255,255,255,.04) 42%,
      rgba(255,255,255,.55) 48%,
      rgba(182,190,255,.32) 52%,
      transparent 58%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 9s ease-in-out infinite;
}

.eyebrow {
  margin: 54px auto 0;
  font-size: clamp(12px, 1.03vw, 17px);
  letter-spacing: .22em;
  font-weight: 400;
  color: rgba(247, 244, 250, .88);
}

.separator {
  width: min(390px, 60vw);
  margin: 34px auto 31px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.separator span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.separator span:last-child {
  background: linear-gradient(90deg, var(--line), transparent);
}

.separator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a16cff;
  box-shadow:
    0 0 8px rgba(161,108,255,.95),
    0 0 18px rgba(115,89,255,.38);
  animation: dot-pulse 4.8s ease-in-out infinite;
}

.intro {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.62;
  font-weight: 300;
  letter-spacing: .015em;
}

.footer {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: rgba(240, 237, 245, .48);
  font-size: 12px;
  letter-spacing: .035em;
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(calc(-3vh + 18px));
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(-3vh);
    filter: blur(0);
  }
}

@keyframes breathe {
  0%, 100% {
    opacity: .74;
    transform: scale(.985);
  }
  50% {
    opacity: 1;
    transform: scale(1.025);
  }
}

@keyframes shimmer {
  0%, 70%, 100% { background-position: 120% 0; }
  84% { background-position: -80% 0; }
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(.9); opacity: .75; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Mobile */
@media (max-width: 720px) {
  .hero {
    padding: 6vh 20px 17vh;
  }

  .hero__content {
    width: 94vw;
    transform: translateY(-1.5vh);
  }

  .orb {
    top: 42%;
    width: min(115vw, 570px);
  }

  .brand {
    font-size: clamp(47px, 14vw, 74px);
    letter-spacing: .12em;
    padding-left: .12em;
  }

  .brand::after {
    padding-left: .12em;
  }

  .eyebrow {
    width: min(92vw, 430px);
    margin-top: 34px;
    font-size: 10.5px;
    line-height: 1.7;
    letter-spacing: .18em;
  }

  .separator {
    width: min(250px, 66vw);
    margin: 24px auto 24px;
  }

  .intro {
    font-size: 14px;
    line-height: 1.65;
  }

  .footer {
    bottom: 18px;
    font-size: 11px;
  }
}

@media (max-height: 680px) and (min-width: 721px) {
  .orb {
    width: min(620px, 55vw);
  }

  .eyebrow {
    margin-top: 38px;
  }

  .separator {
    margin-top: 25px;
    margin-bottom: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
