:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07070b;
  color: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #07070b;
}

button {
  font: inherit;
}

.greeting,
.intro {
  position: fixed;
  inset: 0;
}

.greeting {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(111, 70, 255, 0.18), transparent 38%),
    linear-gradient(145deg, #0b0912 0%, #07070b 56%, #0d0710 100%);
  opacity: 0;
  transition: opacity 700ms ease;
}

.greeting.is-visible {
  opacity: 1;
}

.greeting__content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100vw - 48px));
  text-align: center;
}

.eyebrow,
.launch__eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.greeting h1 {
  margin: 0;
  font-size: clamp(52px, 8.5vw, 122px);
  font-weight: 750;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.greeting__lead {
  max-width: 620px;
  margin: 30px auto 34px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.greeting__glow {
  position: absolute;
  width: min(50vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
}

.greeting__glow--one {
  top: -28%;
  right: -12%;
  background: #fe3f81;
}

.greeting__glow--two {
  bottom: -36%;
  left: -10%;
  background: #6f46ff;
}

.intro {
  z-index: 10;
  overflow: hidden;
  background: #07070b;
  opacity: 1;
  transition: opacity 620ms ease;
}

.intro.is-finished {
  pointer-events: none;
  opacity: 0;
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
}

#sourceVideo {
  position: absolute;
  width: 1px;
  height: 1px;
  pointer-events: none;
  opacity: 0;
}

.intro__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, transparent 42%, rgba(0, 0, 0, 0.24) 75%, rgba(0, 0, 0, 0.72) 120%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18), transparent 25%, transparent 75%, rgba(0, 0, 0, 0.3));
}

.intro__flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #fff8f2;
  opacity: 0;
}

.launch {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(27, 19, 45, 0.42), rgba(7, 7, 11, 0.22) 45%, rgba(7, 7, 11, 0.74));
  transition:
    opacity 500ms ease,
    visibility 500ms ease;
}

.launch.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.launch h2 {
  max-width: 820px;
  margin: 0 0 38px;
  font-size: clamp(38px, 6vw, 88px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.launch__note {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 22px 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #130c10;
  background: #fff;
  box-shadow: 0 12px 55px rgba(247, 102, 152, 0.18);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 70px rgba(247, 102, 152, 0.3);
}

.button:focus-visible,
.skip:focus-visible {
  outline: 2px solid #ff78aa;
  outline-offset: 4px;
}

.button__arrow {
  font-size: 20px;
  font-weight: 400;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.intro__caption {
  position: absolute;
  z-index: 2;
  right: 32px;
  bottom: 28px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0;
  text-transform: uppercase;
  transition: opacity 600ms ease;
}

.intro__caption.is-visible {
  opacity: 1;
}

.intro__caption-line {
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.skip {
  position: absolute;
  z-index: 4;
  top: max(22px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
  padding: 8px 0;
  border: 0;
  color: rgba(255, 255, 255, 0.48);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .launch {
    justify-content: flex-end;
    padding-bottom: max(78px, calc(env(safe-area-inset-bottom) + 46px));
  }

  .launch h2 {
    margin-bottom: 30px;
  }

  .launch__eyebrow {
    margin-bottom: 13px;
  }

  .intro__caption {
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 18px;
    justify-content: center;
    font-size: 7px;
  }

  .intro__caption-line {
    width: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .button,
  .launch,
  .intro,
  .greeting {
    transition-duration: 1ms !important;
  }
}
