/* ==========================================================================
   WaavOS — Obsidian Luxury Design System & Custom Micro-Interactions
   ========================================================================== */

:root {
  --bg-obsidian: #08090D;
  --bg-surface: #0D111A;
  --bg-panel: #121622;
  --accent-violet: #8B5CF6;
  --accent-amber: #F59E0B;
  --accent-coral: #FF5722;
  --accent-emerald: #10B981;
  --text-ice: #F8FAFC;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(18, 22, 34, 0.72);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-ice);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-obsidian);
  overflow-x: hidden;
  selection-background-color: rgba(139, 92, 246, 0.35);
}

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #F8FAFC;
}

.font-display {
  font-family: 'Syne', sans-serif;
}

.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #08090D;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(18, 22, 34, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-elevated {
  background: linear-gradient(145deg, rgba(22, 27, 42, 0.85), rgba(13, 17, 26, 0.88));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.65), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(8, 9, 13, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Subtle Noise Texture Overlay */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Luminous Aurora Radial Glows */
.aurora-glow-violet {
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0.05) 45%, transparent 72%);
  filter: blur(48px);
  pointer-events: none;
}

.aurora-glow-amber {
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.16) 0%, rgba(255, 87, 34, 0.05) 45%, transparent 72%);
  filter: blur(54px);
  pointer-events: none;
}

.aurora-glow-emerald {
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.04) 45%, transparent 72%);
  filter: blur(50px);
  pointer-events: none;
}

/* Audio Wave Equalizer Animation for Brand Logo */
@keyframes wavePulse {
  0%, 100% {
    transform: scaleY(0.35);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.wave-bar {
  transform-origin: bottom;
  animation: wavePulse 1.2s ease-in-out infinite;
}
.wave-bar:nth-child(1) { animation-delay: 0.0s; }
.wave-bar:nth-child(2) { animation-delay: 0.2s; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; }
.wave-bar:nth-child(4) { animation-delay: 0.15s; }

/* Status Pulse */
@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.status-dot {
  animation: statusPulse 2.2s infinite;
}

/* Smooth FAQ Accordion */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.28s ease;
  opacity: 0;
}

.faq-item[data-open="true"] .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-chevron {
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item[data-open="true"] .faq-chevron {
  transform: rotate(180deg);
}

/* Celebratory Waitlist Pop Animation */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-pop-in {
  animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Confetti / Sparkle Burst */
@keyframes sparkleFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.2);
  }
}

.sparkle-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  pointer-events: none;
  animation: sparkleFloat 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Range / Select Focus */
.waav-input {
  background: rgba(8, 9, 13, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.waav-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.75);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
  background: rgba(13, 17, 26, 0.9);
}

.waav-input option {
  background-color: #0D111A;
  color: #F8FAFC;
}

/* Tab Active Indicator */
.pillar-tab {
  transition: all 0.22s ease;
}
.pillar-tab[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(16, 185, 129, 0.08));
  border-color: rgba(139, 92, 246, 0.55);
  color: #F8FAFC;
  box-shadow: 0 8px 24px -6px rgba(139, 92, 246, 0.25);
}

/* Subtle Gradient Text */
.text-gradient-luxury {
  background: linear-gradient(135deg, #F8FAFC 0%, #CBD5E1 48%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-aurora {
  background: linear-gradient(90deg, #A78BFA 0%, #F59E0B 50%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Button Shimmer */
.btn-primary-glow {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  box-shadow: 0 10px 30px -6px rgba(139, 92, 246, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.2s ease;
}

.btn-primary-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -6px rgba(139, 92, 246, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  filter: brightness(1.06);
}

.btn-primary-glow:active {
  transform: translateY(0);
}
