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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #000;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  position: relative;
}

#three-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 3;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0;
  animation: orbPulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.bg-orb-1 {
  width: clamp(320px, 70vw, 700px);
  height: clamp(320px, 70vw, 700px);
  background: radial-gradient(circle, rgba(90, 180, 245, 0.28) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
}

.bg-orb-2 {
  width: clamp(240px, 55vw, 500px);
  height: clamp(240px, 55vw, 500px);
  background: radial-gradient(circle, rgba(123, 94, 167, 0.25) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 2.5s;
}

.bg-orb-3 {
  width: clamp(180px, 45vw, 400px);
  height: clamp(180px, 45vw, 400px);
  background: radial-gradient(circle, rgba(61, 217, 235, 0.18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  animation-delay: 5s;
}

@keyframes orbPulse {
  0%   { opacity: 0; transform: translate(-50%, -55%) scale(0.85); }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -55%) scale(1.15); }
}

.ui {
  position: fixed;
  bottom: clamp(48px, 10vh, 120px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  width: 90vw;
  max-width: 700px;
  animation: fadeInUp 1.6s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.headline-wrap {
  position: relative;
  height: clamp(44px, 10vw, 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.headline {
  position: absolute;
  font-family: 'Sora', sans-serif;
  font-size: clamp(32px, 9vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  will-change: transform, opacity;
  transition: none;
}

.headline-brand {
  background: linear-gradient(110deg, #7ecfff 0%, #a78bfa 55%, #7b5ea7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(126, 207, 255, 0.25));
}

.headline-launch {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.78) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.headline.state-idle {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

.headline.state-enter {
  animation: hlEnter 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.headline.state-exit-up {
  animation: hlExitUp 0.5s cubic-bezier(0.4, 0, 0.8, 0) forwards;
  pointer-events: none;
}

.headline.state-exit-down {
  animation: hlExitDown 0.5s cubic-bezier(0.4, 0, 0.8, 0) forwards;
  pointer-events: none;
}

@keyframes hlEnter {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.95);
    filter: blur(6px);
  }
  60% { filter: blur(0); }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes hlExitUp {
  from { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  to   { opacity: 0; transform: translateY(-28px) scale(0.96); filter: blur(4px); }
}

@keyframes hlExitDown {
  from { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  to   { opacity: 0; transform: translateY(28px) scale(0.96); filter: blur(4px); }
}

.subline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(10px, 3vw, 15px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  animation: sublineFade 3s ease-in-out infinite alternate;
}

@keyframes sublineFade {
  from { opacity: 0.38; }
  to   { opacity: 0.6; }
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: dotPulse 1.6s ease-in-out infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(1); opacity: 0.35; }
  40% { transform: scale(1.7); opacity: 1; background: rgba(90, 180, 245, 0.95); }
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  gap: 20px;
  transition: opacity 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-ring {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: rgba(90, 180, 245, 0.8);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-family: 'Sora', sans-serif;
}
