html, body {
  margin: 0;
  padding: 0;
  height: 300vh;
  background: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ---------- 3D Scene ---------- */
.scroll-landing {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.nebula-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #0a0018 0%, #000010 80%);
  filter: brightness(1.15);
  z-index: -3;
  transform: translateZ(-400px) scale(1.4);
}

#orbital-grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  z-index: -2;
  transform: translateZ(-200px);
}

.center-content {
  position: relative;
  z-index: 2;
  transform: translateZ(60px);
  text-align: center;
}

#ua9-logo {
  display: block;
  margin: 0 auto 0.75rem auto;
  filter:
    drop-shadow(0 0 8px rgba(190,180,255,0.5))
    drop-shadow(0 0 20px rgba(130,210,255,0.3));
  transform-origin: center;
}

/* ---------- Text ---------- */
.title {
  font-size: 3.4rem;
  letter-spacing: 0.12em;
  background: linear-gradient(to right, #e2e2ff, #8ad8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.15rem;
  color: #bfc7e6;
  opacity: 0.9;
}

.scroll-cue {
  width: 2px;
  height: 40px;
  margin: 1.5rem auto 0;
  background: linear-gradient(to bottom, #bfc7e6, transparent);
  opacity: 0.6;
  animation: cue 2s ease-in-out infinite;
}

@keyframes cue {
  0%,100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 0.2; }
}

/* ---------- Logo Animation ---------- */
.stroke-draw {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: drawPath 2.8s ease forwards;
}

@keyframes drawPath {
  from { stroke-dashoffset: 700; opacity: 0; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}

#ua9-logo .nodes circle {
  fill: #b7aaff;
  opacity: 0;
  animation: nodeGlow 3s ease forwards;
  animation-delay: 2.4s;
}

@keyframes nodeGlow {
  0%   { opacity: 0; transform: scale(0.6); filter: blur(3px); }
  60%  { opacity: 1; transform: scale(1.2); filter: blur(0); }
  100% { opacity: 0.9; transform: scale(1); }
}

/* ---------- Particles ---------- */
.logo-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, #dcd2ff 0%, #7ee4ff 60%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.8;
  filter: blur(2px);
  animation: particleFade 3s linear forwards;
  z-index: 5;
}

@keyframes particleFade {
  0% { opacity: 1; transform: scale(0.7); }
  80% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.2); }
}

/* ---------- Ambient Pixie Field ---------- */
#pixie-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  transform-style: preserve-3d;
}

.pixie {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #dcd2ff 0%, #7ee4ff 60%, transparent 100%);
  opacity: 0.8;
  mix-blend-mode: screen;
  filter: blur(2px);
}

/* ---------- Cosmic Portal Section ---------- */
#cosmic-portal-section {
  min-height: 100vh;
  background: radial-gradient(circle at center, #0a0018 0%, #000010 60%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cosmic-portal {
  position: relative;
  width: 100%;
  max-width: 800px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portal-graphic {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(184, 159, 255, 0.4));
}

/* Portal ring rotations */
.portal-ring {
  transform-origin: center;
  animation: portalSpin 40s linear infinite;
}

.ring-1 { animation-duration: 30s; }
.ring-2 { animation-duration: 40s; animation-direction: reverse; }
.ring-3 { animation-duration: 35s; }

@keyframes portalSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Spiral arms animation */
.spiral-arm {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: drawSpiral 8s ease-in-out infinite;
}

.arm-1 { animation-delay: 0s; }
.arm-2 { animation-delay: 0.5s; }
.arm-3 { animation-delay: 1s; }

@keyframes drawSpiral {
  0%, 100% { stroke-dashoffset: 1500; opacity: 0.2; }
  50% { stroke-dashoffset: 0; opacity: 0.6; }
}

/* Energy particles */
.particle {
  animation: particleFloat 4s ease-in-out infinite;
}

.p-1 { animation-delay: 0s; }
.p-2 { animation-delay: 0.5s; }
.p-3 { animation-delay: 1s; }
.p-4 { animation-delay: 1.5s; }
.p-5 { animation-delay: 2s; }
.p-6 { animation-delay: 2.5s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-20px) scale(1.3); opacity: 1; }
}

/* Core pulse */
.core-pulse, .core-pulse-2 {
  animation: corePulse 3s ease-in-out infinite;
}

.core-pulse-2 {
  animation-delay: 1.5s;
}

@keyframes corePulse {
  0%, 100% { r: 120; opacity: 0.3; }
  50% { r: 140; opacity: 0.6; }
}

/* Portal overlay text */
.portal-overlay-text {
  position: absolute;
  bottom: 15%;
  text-align: center;
  z-index: 10;
  opacity: 0;
}

.portal-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #ffffff 0%, #b7aaff 50%, #7ec8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.portal-subtitle {
  font-size: 1.1rem;
  color: #bfc7e6;
  opacity: 0.9;
}

/* ---------- Enclave Section ---------- */
#enclave {
  min-height: 100vh;
  background: radial-gradient(circle at center, #050510, #000);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.enclave-content {
  padding: 2rem;
}

#awareness-message {
  font-size: 1.8rem;
  color: #bfc7e6;
  margin-bottom: 3rem;
  opacity: 0;
}

/* ---------- Get Started Button ---------- */
.get-started-btn {
  position: relative;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(74, 32, 128, 0.6) 0%, rgba(45, 21, 80, 0.4) 100%);
  border: 2px solid rgba(183, 170, 255, 0.5);
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  box-shadow: 
    0 0 20px rgba(126, 200, 255, 0.3),
    0 0 40px rgba(183, 170, 255, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, 
    rgba(183, 170, 255, 0.4) 0%, 
    transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.get-started-btn:hover {
  transform: scale(1.05);
  border-color: rgba(183, 170, 255, 0.8);
  box-shadow: 
    0 0 30px rgba(126, 200, 255, 0.5),
    0 0 60px rgba(183, 170, 255, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.get-started-btn:hover .btn-glow {
  opacity: 1;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.get-started-btn:active {
  transform: scale(0.98);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }

  .portal-title {
    font-size: 2rem;
  }

  #awareness-message {
    font-size: 1.5rem;
  }
}
