/* ==========================================================================
   Anti-Ronco — High-End Luxury Sleep-Tech Engineering
   Style Sheet — Ultra-Deep OLED Aesthetics & Precision Dynamics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Space+Grotesk:wght@300;400;500;600&display=swap');

:root {
  --bg-oled: #000000;
  --bg-surface: #060606;
  --bg-elevated: #0c0c0c;
  --amber-ir: #ff9e00;
  --amber-glow: rgba(255, 158, 0, 0.35);
  --amber-subtle: rgba(255, 158, 0, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(255, 255, 255, 0.15);
  --text-muted: #8e8e93;
  --text-dim: #5c5c62;
}

/* Base Reset & Smoothness */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-oled);
  color: #ededed;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  selection-background-color: rgba(255, 158, 0, 0.25);
  selection-color: #ffffff;
}

::selection {
  background: rgba(255, 158, 0, 0.3);
  color: #ffffff;
}

/* Custom Ultra-Thin Dark Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #1f1f23;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 158, 0, 0.5);
}

/* Cinematic Background Grain Texture Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  content: "";
  opacity: 0.028;
  pointer-events: none;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(8, 8, 10, 0.65);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card {
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.03) 0%, rgba(12, 12, 14, 0.6) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(255, 158, 0, 0.25);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(255, 158, 0, 0.08);
}

/* Interactive Spotlight Border Glow */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(255, 158, 0, 0.35),
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Ambient Radial Glows */
.amber-glow-spot {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 158, 0, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* Pulsing IR Light Indicator */
.ir-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ir-pulse::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--amber-ir);
  opacity: 0.75;
  animation: ir-ping 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ir-ping {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  75%, 100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Typography Enhancements */
.font-tech {
  font-family: 'Space Grotesk', monospace;
}

.text-gradient-silver {
  background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFB74D 45%, #FF9E00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Button Luxury Hover States */
.btn-primary-luxury {
  position: relative;
  background: #ffffff;
  color: #000000;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 25px -5px rgba(255, 255, 255, 0.15);
}

.btn-primary-luxury:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 158, 0, 0.4), 0 15px 35px -5px rgba(255, 158, 0, 0.25);
}

.btn-secondary-luxury {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ededed;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.btn-secondary-luxury:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Input Minimalist Styling */
.input-luxury {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-luxury:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 158, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 158, 0, 0.1), 0 0 20px rgba(255, 158, 0, 0.1);
}

/* Custom Checkbox */
.checkbox-luxury {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
  display: inline-grid;
  place-content: center;
  transition: all 0.25s ease;
}

.checkbox-luxury:hover {
  border-color: rgba(255, 158, 0, 0.4);
}

.checkbox-luxury:checked {
  background: #ff9e00;
  border-color: #ff9e00;
  box-shadow: 0 0 12px rgba(255, 158, 0, 0.4);
}

.checkbox-luxury:checked::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #000000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}

/* Dropdown Custom Styles */
.dropdown-luxury-menu {
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
  transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item.active {
  background: rgba(255, 158, 0, 0.08);
  color: #ff9e00;
}

/* Hardware Video Overlay Vignette */
.video-vignette {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.5) 75%, #000000 100%);
}

.video-bottom-gradient {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 65%, #000000 100%);
}

/* Sub-audible Wave Animation */
@keyframes wave-pulse {
  0% { transform: scaleY(0.4); opacity: 0.3; }
  50% { transform: scaleY(1.1); opacity: 0.9; }
  100% { transform: scaleY(0.4); opacity: 0.3; }
}

.wave-bar {
  display: inline-block;
  width: 2px;
  background-color: var(--amber-ir);
  border-radius: 9999px;
  animation: wave-pulse 1.8s ease-in-out infinite;
}

/* Modal Fade Transitions */
.modal-backdrop {
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background-color: rgba(0, 0, 0, 0.78);
}
