/* ── PAGE HIDDEN (before splash dismiss) ── */
body.page-hidden .top-rule,
body.page-hidden .headline h1,
body.page-hidden .headline sub,
body.page-hidden .tagline,
body.page-hidden .notify,
body.page-hidden .bottom-bar,
body.page-hidden .audio-toggle {
  opacity: 0 !important;
  animation: none !important;
}

/* ── SPLASH SCREEN ── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #080610;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1), visibility 1.2s;
}
.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  animation: fadeUp 1.2s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.splash-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(120deg, #f8f4ff 0%, #c084fc 40%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.splash-enter {
  background: transparent;
  border: 1px solid rgba(180,140,255,0.25);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.55rem;
  font-weight: 200;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  padding: 0.9rem 2.8rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s, border-color 0.4s;
}
.splash-enter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(168,85,247,0.1));
  opacity: 0;
  transition: opacity 0.4s;
}
.splash-enter:hover { color: var(--purple-glow); border-color: rgba(168,85,247,0.5); }
.splash-enter:hover::before { opacity: 1; }
.splash-enter::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 0.6s ease;
}
.splash-enter:hover::after { left: 160%; }



:root {
  --bg: #080610;
  --surface: rgba(255,255,255,0.03);
  --border: rgba(180,140,255,0.12);
  --purple-deep: #1a0830;
  --purple-mid: #5b21b6;
  --purple-bright: #a855f7;
  --purple-glow: #c084fc;
  --lilac: #e9d5ff;
  --white: #f8f4ff;
  --text-muted: rgba(200,180,255,0.45);
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 100;
  letter-spacing: 0.25em;
}

/* ── CANVAS ── */
#canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── NOISE GRAIN ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.032;
  pointer-events: none;
  z-index: 1;
}

/* ── LAYOUT ── */
main {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2rem;
}

/* ── TOP RULE ── */
.top-rule {
  position: fixed;
  top: 2.5rem;
  left: 0;
  right: 0;
  justify-content: center;
  transform: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 1.2s 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}
.top-rule span {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.top-rule::before, .top-rule::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-bright));
}
.top-rule::after {
  background: linear-gradient(90deg, var(--purple-bright), transparent);
}

/* ── HEADLINE ── */
.headline {
  text-align: center;
  position: relative;
}
.headline h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 1;
  letter-spacing: 0.18em;
  color: transparent;
  background: linear-gradient(120deg, #f8f4ff 0%, #c084fc 30%, #7c3aed 50%, #c084fc 70%, #f8f4ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  animation: fadeUp 1.4s 0.7s cubic-bezier(0.16,1,0.3,1) both, gradientShift 6s 2s ease-in-out infinite;
}
.headline sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1.2rem;
  font-style: normal;
  opacity: 0;
  animation: fadeUp 1.2s 1s cubic-bezier(0.16,1,0.3,1) forwards;
}

/* ── TAGLINE ── */
.tagline {
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  max-width: 340px;
  line-height: 2.2;
  opacity: 0;
  animation: fadeUp 1s 1.3s cubic-bezier(0.16,1,0.3,1) forwards;
}

/* ── NOTIFY FORM ── */
.notify {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  animation: fadeUp 1s 1.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
.notify input {
  background: rgba(120,60,200,0.08);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.58rem;
  font-weight: 200;
  letter-spacing: 0.3em;
  padding: 0.9rem 1.6rem;
  outline: none;
  width: 220px;
  transition: background 0.4s, border-color 0.4s;
  backdrop-filter: blur(12px);
}
.notify input::placeholder { color: var(--text-muted); }
.notify input:focus {
  background: rgba(120,60,200,0.16);
  border-color: rgba(180,140,255,0.4);
}
.notify button {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: 1px solid rgba(200,150,255,0.3);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.58rem;
  font-weight: 200;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  transition: opacity 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.notify button::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.notify button:hover::before { left: 160%; }
.notify button:hover { box-shadow: 0 0 30px rgba(168,85,247,0.4); }

/* ── BOTTOM BAR ── */
.bottom-bar {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  animation: fadeUp 1s 2s cubic-bezier(0.16,1,0.3,1) forwards;
  white-space: nowrap;
  z-index: 5;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s;
}
.social-link:hover { color: var(--purple-glow); }
.social-label {
  font-size: 0.5rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.social-handle {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: rgba(200,180,255,0.25);
  border-left: 1px solid rgba(180,140,255,0.15);
  padding-left: 0.6rem;
  transition: color 0.3s;
}
.social-link:hover .social-handle { color: rgba(192,132,252,0.6); }
.social-divider {
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, rgba(180,140,255,0.2), transparent);
}
.copyright {
  font-size: 0.5rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(200,180,255,0.2);
}

/* ── GLOSSY ORB (CSS) ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbPulse 8s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.35), transparent 70%);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.2), transparent 70%);
  bottom: -80px; left: -80px;
  animation-delay: -3s;
}
.orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(216,180,254,0.15), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: -5s;
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes orbPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.12); }
}
@keyframes gradientShift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ── AUDIO TOGGLE ── */
.audio-toggle {
  position: fixed;
  top: 2.1rem;
  right: 2.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(120,60,200,0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.5rem;
  font-weight: 200;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: color 0.4s, border-color 0.4s, background 0.4s;
  opacity: 0;
  animation: fadeUp 1s 2.2s cubic-bezier(0.16,1,0.3,1) forwards;
}
.audio-toggle:hover {
  color: var(--purple-glow);
  border-color: rgba(180,140,255,0.35);
  background: rgba(120,60,200,0.15);
}
.audio-toggle.playing {
  color: var(--purple-glow);
  border-color: rgba(168,85,247,0.3);
}

/* Wave bars */
.wave-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.bar {
  display: block;
  width: 2px;
  height: var(--h, 6px);
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: height 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s;
}
.audio-toggle.playing .bar {
  animation: waveDance 1s var(--delay, 0s) ease-in-out infinite alternate;
}
.audio-toggle.muted .bar {
  height: 2px !important;
  opacity: 0.4;
  animation: none;
}

@keyframes waveDance {
  0%   { transform: scaleY(0.3); }
  100% { transform: scaleY(1.4); }
}

.audio-label {
  position: relative;
  display: inline-block;
  transition: opacity 0.3s;
}


/* ── SUCCESS STATE ── */
.success-msg {
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  color: var(--purple-glow);
  display: none;
  margin-top: 0.8rem;
  text-align: center;
}
.success-msg.show { display: block; animation: fadeUp 0.6s forwards; }
