/* =========================================
   NOXIASOUNDS — Splash Screen Styles
   ========================================= */

/* ── Splash Overlay ── */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124,58,237,0.40) 0%, transparent 65%),
    linear-gradient(175deg, #0e0720 0%, #080312 50%, #120830 100%);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#splash-screen.splash-hide {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* ── Splash Logo Mark ── */
.splash-logo-wrap {
  position: relative;
  margin-bottom: 36px;
  animation: splashLogoIn 1.2s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
}

@keyframes splashLogoIn {
  from { opacity: 0; transform: scale(0.6) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.splash-logo-ring {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(192,132,252,0.14) 0%,
    rgba(124,58,237,0.08) 100%
  );
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(192,132,252,0.28);
  border-top-color: rgba(233,213,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 64px rgba(124,58,237,0.45),
    0 0 120px rgba(124,58,237,0.18),
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(0,0,0,0.20);
  position: relative;
}

/* Outer pulsing ring */
.splash-logo-ring::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 36px;
  border: 1px solid rgba(157,92,255,0.22);
  animation: ringPulse 2.5s ease-in-out infinite 1s;
}

.splash-logo-ring::after {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 46px;
  border: 1px solid rgba(157,92,255,0.10);
  animation: ringPulse 2.5s ease-in-out infinite 1.5s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

/* Sound wave SVG icon inside ring */
.splash-icon {
  width: 52px;
  height: 52px;
  color: var(--purple-glow);
  filter: drop-shadow(0 0 10px rgba(157,92,255,0.7));
}

/* ── Animated waveform bars ── */
.splash-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  margin-bottom: 40px;
  animation: splashFadeIn 0.8s ease 1.0s both;
}

.splash-wave span {
  display: block;
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(to top, var(--purple-mid), var(--rose-warm));
  opacity: 0.7;
  animation: waveBar 1.4s ease-in-out infinite;
}

.splash-wave span:nth-child(1) { height: 14px; animation-delay: 0s;    }
.splash-wave span:nth-child(2) { height: 26px; animation-delay: 0.15s; }
.splash-wave span:nth-child(3) { height: 36px; animation-delay: 0.30s; }
.splash-wave span:nth-child(4) { height: 28px; animation-delay: 0.10s; }
.splash-wave span:nth-child(5) { height: 20px; animation-delay: 0.25s; }
.splash-wave span:nth-child(6) { height: 32px; animation-delay: 0.05s; }
.splash-wave span:nth-child(7) { height: 22px; animation-delay: 0.20s; }

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%       { transform: scaleY(1.0); opacity: 0.9; }
}

/* ── Splash brand name ── */
.splash-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(157,92,255,0.6);
  animation: splashFadeIn 0.8s ease 0.8s both;
  margin-bottom: 8px;
}

.splash-brand span {
  color: var(--rose-warm);
}

/* ── Splash tagline ── */
.splash-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: splashFadeIn 0.8s ease 1.1s both;
  margin-bottom: 50px;
}

/* ── Loader bar ── */
.splash-loader {
  width: 140px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  animation: splashFadeIn 0.6s ease 1.2s both;
}

.splash-loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple-warm), var(--rose-warm));
  border-radius: 2px;
  animation: loaderFill 2.2s ease 1.3s forwards;
  box-shadow: 0 0 12px rgba(192,132,252,0.6);
}

@keyframes loaderFill {
  0%   { width: 0%; }
  60%  { width: 80%; }
  100% { width: 100%; }
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   WELCOME / HOME PAGE STYLES
   ========================================= */

#home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s;
}

#home-page.page-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Top section ── */
.home-top {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 28px 0;
}

/* ── Logo badge ── */
.home-logo-wrap {
  position: relative;
  margin-bottom: 44px;
}

.home-logo-badge {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(157,92,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 40px rgba(124,58,237,0.30),
    0 12px 32px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,255,255,0.10);
  position: relative;
}

.home-logo-icon {
  width: 44px;
  height: 44px;
  color: var(--rose-warm);
  filter: drop-shadow(0 0 8px rgba(192,132,252,0.7));
}

/* glow dot */
.logo-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-warm);
  box-shadow: 0 0 12px rgba(245,200,66,0.8);
  border: 2px solid var(--night-deep);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(245,200,66,0.6); }
  50%       { box-shadow: 0 0 20px rgba(245,200,66,1); }
}

/* ── Hero text ── */
.home-hero-text {
  text-align: center;
  margin-bottom: 40px;
}

.home-welcome-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-warm);
  margin-bottom: 14px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.home-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.2rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-shadow: 0 0 40px rgba(157,92,255,0.3);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.home-title em {
  font-style: italic;
  color: var(--rose-warm);
}

.home-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.7s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Ambient sound visual ── */
.ambient-visual {
  width: 100%;
  max-width: 360px;
  height: 180px;
  position: relative;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

/* Concentric ripple rings */
.ripple-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(157,92,255,0.15);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: rippleExpand 4s ease-out infinite;
}

.ripple-ring:nth-child(1) { width: 80px;  height: 80px;  border-color: rgba(157,92,255,0.40); animation-delay: 0s; }
.ripple-ring:nth-child(2) { width: 130px; height: 130px; border-color: rgba(157,92,255,0.25); animation-delay: 0.8s; }
.ripple-ring:nth-child(3) { width: 185px; height: 185px; border-color: rgba(157,92,255,0.15); animation-delay: 1.6s; }
.ripple-ring:nth-child(4) { width: 240px; height: 240px; border-color: rgba(157,92,255,0.08); animation-delay: 2.4s; }
.ripple-ring:nth-child(5) { width: 300px; height: 300px; border-color: rgba(157,92,255,0.05); animation-delay: 3.2s; }

@keyframes rippleExpand {
  0%   { opacity: 0.9; transform: translate(-50%, -50%) scale(0.85); }
  80%  { opacity: 0.3; }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.15); }
}

/* Center glow */
.ripple-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157,92,255,0.5) 0%, transparent 70%);
  box-shadow: 0 0 30px rgba(157,92,255,0.5);
  animation: corePulse 3s ease-in-out infinite;
}

.ripple-core::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(192,132,252,0.6);
  box-shadow: 0 0 16px rgba(192,132,252,0.8);
}

@keyframes corePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.8; }
  50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* ── Sound category pills ── */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0 24px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s ease 1.1s forwards;
}

.pill {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 7px 16px;
  transition: all 0.25s ease;
  cursor: default;
}

.pill:hover {
  border-color: rgba(157,92,255,0.4);
  color: var(--text-primary);
  background: rgba(124,58,237,0.12);
  box-shadow: 0 0 14px rgba(124,58,237,0.20);
}

/* ── Bottom CTA section ── */
.home-bottom {
  width: 100%;
  max-width: 480px;
  padding: 24px 28px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* CTA glass card wrapping the button */
.cta-card {
  width: 100%;
  padding: 28px 28px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157,92,255,0.5), transparent);
}

.cta-heading {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cta-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-weight: 300;
}

.btn-continue {
  width: 100%;
  max-width: 280px;
  padding: 17px 36px;
  font-size: 1rem;
  border-radius: var(--radius-xl);
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeUp 0.7s ease 1.3s forwards;
}

/* Login link */
.login-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.5s forwards;
}

.login-link a {
  color: var(--rose-warm);
  text-decoration: none;
  transition: color 0.2s;
}

.login-link a:hover {
  color: var(--text-primary);
}

/* ── Stars background decoration ── */
.star-field-static {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ── Horizontal shimmer line ── */
.shimmer-line {
  position: absolute;
  height: 1px;
  left: 5%;
  right: 5%;
  background: linear-gradient(90deg, transparent, rgba(157,92,255,0.25), rgba(192,132,252,0.15), transparent);
  animation: shimmerSlide 8s ease-in-out infinite;
}

@keyframes shimmerSlide {
  0%   { opacity: 0; transform: translateX(-30px); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(30px); }
}

/* ── Moon illustration ── */
.moon-decor {
  position: fixed;
  top: 6%;
  right: 8%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef3c7, #fbbf24 40%, #d97706 100%);
  box-shadow:
    0 0 20px rgba(251,191,36,0.25),
    0 0 60px rgba(251,191,36,0.10);
  z-index: 3;
  opacity: 0.70;
  animation: moonGlow 6s ease-in-out infinite;
}

.moon-decor::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(217,119,6,0.35);
}

@keyframes moonGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(251,191,36,0.25), 0 0 60px rgba(251,191,36,0.10); }
  50%       { box-shadow: 0 0 30px rgba(251,191,36,0.40), 0 0 90px rgba(251,191,36,0.18); }
}

/* ── Responsive ── */
@media (min-width: 480px) {
  .home-top { padding-top: 72px; }
  .home-title { font-size: 3.4rem; }
}

@media (min-width: 768px) {
  .home-top { padding-top: 100px; }
  .home-title { font-size: 3.8rem; }
  .ambient-visual { height: 220px; }
  .cta-card { padding: 32px; }
}

/* ── Logo SVG sizing ── */
.noxia-logo-svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 14px rgba(192,132,252,0.65));
}

.home-logo-badge .noxia-logo-svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(192,132,252,0.50));
}