:root {
  color-scheme: dark;
  --bg: #03040a;
  --fg: rgba(246, 248, 255, 0.92);
  --muted: rgba(246, 248, 255, 0.58);
  --faint: rgba(246, 248, 255, 0.28);
  --cyan: 144, 220, 255;
  --violet: 150, 116, 255;
  --green: 153, 255, 219;
  --pink: 255, 160, 230;
  --mx: 50vw;
  --my: 50vh;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 70%, rgba(72, 80, 150, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(70, 95, 160, 0.10), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fg);
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(var(--violet), 0.20), transparent 12rem),
    radial-gradient(circle at calc(var(--mx) + 8rem) calc(var(--my) + 5rem), rgba(var(--cyan), 0.11), transparent 18rem);
  filter: blur(28px);
  opacity: 0.88;
  transition: opacity 500ms ease;
}

#aurora {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.095;
  mix-blend-mode: screen;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 32%, rgba(0, 0, 0, 0.30) 66%, rgba(0, 0, 0, 0.86) 100%);
}

.cursor-glow {
  position: fixed;
  z-index: 2;
  width: 18rem;
  height: 18rem;
  left: var(--mx);
  top: var(--my);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,255,255,.24), rgba(var(--violet), .22) 16%, rgba(var(--cyan), .08) 38%, transparent 68%);
  filter: blur(18px);
  opacity: 0;
  transition: opacity 700ms ease;
}

body.is-active .cursor-glow { opacity: 0.78; }

.stage {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100svh;
  padding: 2rem;
}

.hero {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  text-align: center;
  user-select: none;
  animation: heroIn 1500ms cubic-bezier(.2,.8,.2,1) both 280ms;
}

.eyebrow,
.lead,
.idle-message {
  margin: 0;
  font-size: clamp(0.72rem, 1.2vw, 0.92rem);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.48em;
  color: var(--muted);
  text-transform: lowercase;
}

.title {
  margin: 0;
  display: flex;
  gap: clamp(1.1rem, 3.15vw, 3.8rem);
  align-items: center;
  justify-content: center;
  font-size: clamp(3.6rem, 10vw, 9.8rem);
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-shadow:
    0 0 28px rgba(255, 255, 255, 0.10),
    0 0 72px rgba(var(--cyan), 0.12);
}

.title span {
  display: inline-block;
  transform: translateY(0);
  transition:
    transform 900ms cubic-bezier(.16,1,.3,1),
    opacity 900ms ease,
    filter 900ms ease;
}

.hero:hover .title span {
  transform: translateY(-0.08em);
  filter: drop-shadow(0 0 20px rgba(var(--cyan), 0.25));
}

.hero:hover .title span:nth-child(2n) { transform: translateY(0.08em); }

.divider {
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  opacity: 0.8;
}

.pulse {
  width: 3.35rem;
  height: 3.35rem;
  margin-top: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.86) 0 .12rem, rgba(var(--violet), .12) .18rem, transparent 62%);
  box-shadow:
    inset 0 0 32px rgba(255,255,255,.06),
    0 0 32px rgba(var(--violet), .13);
  cursor: pointer;
  animation: breathe 4300ms ease-in-out infinite;
}

.pulse:hover {
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 0 42px rgba(var(--cyan), .18), inset 0 0 38px rgba(255,255,255,.08);
}

.idle-message {
  position: fixed;
  left: 50%;
  bottom: clamp(1.7rem, 5vh, 4.2rem);
  z-index: 5;
  transform: translateX(-50%);
  white-space: nowrap;
  color: rgba(246,248,255,.34);
  opacity: 0.72;
  transition: opacity 800ms ease;
}

body.is-active .idle-message { opacity: 0.25; }

.ripple {
  position: fixed;
  z-index: 6;
  width: 1rem;
  height: 1rem;
  left: 0;
  top: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.42);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
  animation: ripple 1500ms cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(1.4rem) scale(.985); filter: blur(12px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .74; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes ripple {
  0% { opacity: .75; transform: translate(-50%, -50%) scale(.2); filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(18); filter: blur(2px); }
}

@media (max-width: 640px) {
  .title { gap: clamp(.62rem, 3.8vw, 1.2rem); }
  .eyebrow,
  .lead,
  .idle-message { letter-spacing: .28em; }
  .pulse { margin-top: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
  #aurora { display: none; }
}
