:root {
  color-scheme: dark;
  --bg: #03020a;
  --bg-deep: #0b0717;
  --accent: #7b4cff;
  --accent-alt: #ab8cff;
  --accent-gold: #f2bd5b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, rgba(59, 36, 112, 0.28), transparent 45%), var(--bg);
  color: #f6f5ff;
  overflow: hidden;
  position: relative;
}

.particle-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  background: radial-gradient(circle at center, rgba(24, 14, 46, 0.12), rgba(3, 2, 10, 0.9));
}

.ambient {
  position: fixed;
  inset: auto;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-a {
  top: -3rem;
  left: -4rem;
  background: rgba(84, 40, 184, 0.28);
}

.ambient-b {
  bottom: -5rem;
  right: -4rem;
  background: rgba(12, 119, 126, 0.22);
}

.ambient-c {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(242, 189, 91, 0.14);
}

body.is-ready .ambient {
  animation: drift 5.8s ease-in-out infinite alternate;
}

body.is-ready .ambient-a {
  animation-duration: 7.2s;
}

body.is-ready .ambient-b {
  animation-duration: 6.6s;
}

body.is-ready .ambient-c {
  animation-duration: 5.2s;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 2rem 5rem;
  isolation: isolate;
}

.logo-stage {
  position: relative;
  width: min(62vw, 560px);
  display: grid;
  place-items: center;
}

.halo {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.halo-outer {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(123, 76, 255, 0.12) 25%, rgba(0, 0, 0, 0) 70%);
  filter: blur(16px);
}

.halo-inner {
  inset: 1%;
  border: 1px solid rgba(242, 189, 91, 0.24);
  box-shadow: 0 0 80px rgba(171, 140, 255, 0.15);
}

.logo-link {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  transition: filter 220ms ease;
}

.logo-link:hover,
.logo-link:focus-visible {
  transform: translateY(0) scale(1);
  animation: none !important;
}

.logo-image {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(-15px);
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.08));
  transition: transform 220ms ease, filter 220ms ease;
}

.logo-link:hover .logo-image,
.logo-link:focus-visible .logo-image {
  transform: translateY(-15px) scale(1.016);
  filter: drop-shadow(0 0 42px rgba(242, 189, 91, 0.22));
}

.site-footer {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem 1.2rem;
  pointer-events: none;
}

.site-footer p {
  margin: 0;
  color: rgba(246, 245, 255, 0.76);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.is-ready .halo-outer {
  animation: haloBloom 3.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-ready .halo-inner {
  animation: haloPulse 2.6s ease-out 0.2s both;
}

body.is-ready .logo-link {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes haloBloom {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  30% {
    opacity: 0.7;
    transform: scale(0.95);
  }
  60% {
    opacity: 0.95;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes haloPulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  35% {
    opacity: 0.9;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.35;
    transform: scale(1.08);
  }
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(0.95);
  }
  to {
    transform: translate3d(2rem, -1.5rem, 0) scale(1.04);
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 1.25rem 1.25rem 5.2rem;
  }

  .logo-stage {
    width: min(92vw, 520px);
  }

  .site-footer p {
    font-size: 0.8rem;
  }
}
