/* ── Palette ── */
:root {
  --navy-deep: #0D1326;
  --navy: #1B2240;
  --white: #FFFFFF;
  --white-muted: #8A8FA8;
}

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

/* ── Base ── */
html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--white);
  background: radial-gradient(ellipse at 50% 40%, var(--navy) 0%, var(--navy-deep) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Particles container ── */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0;
  animation: drift linear infinite;
}

@keyframes drift {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: var(--p-opacity, 0.15);
  }
  90% {
    opacity: var(--p-opacity, 0.15);
  }
  100% {
    transform: translateY(calc(var(--p-dy, -100vh))) translateX(calc(var(--p-dx, 30px)));
    opacity: 0;
  }
}

/* ── Three.js Canvas ── */
#hero-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Main content ── */
main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  pointer-events: auto;
}

/* ── Hero 3D spacer ── */
.hero-3d {
  width: 100%;
  height: 220px;
}

/* ── Logo ── */
.logo {
  width: 200px;
  height: auto;
  margin-top: 8px;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 40px rgba(27, 34, 64, 0.6));
}

/* ── Tagline ── */
.tagline {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 48px;
}

/* ── Footer ── */
footer {
  font-size: 0.7rem;
  color: var(--white-muted);
  letter-spacing: 0.05em;
}

/* ── Entrance Animations ── */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: slide-up 0.8s ease-out forwards;
}

.logo            { animation-delay: 0.8s; }
.tagline         { animation-delay: 1.2s; }
footer.animate-in { animation-delay: 1.6s; }

@keyframes slide-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-3d {
    height: 180px;
  }

  .logo {
    width: 160px;
    margin-bottom: 20px;
  }

  .tagline {
    font-size: 0.75rem;
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .hero-3d {
    height: 140px;
  }

  .logo {
    width: 130px;
    margin-bottom: 16px;
  }

  .tagline {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    margin-bottom: 20px;
    padding: 0 20px;
  }

  footer {
    font-size: 0.6rem;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .animate-in {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .particle {
    animation: none;
    display: none;
  }
}
