/* ====================================================================
   PREMIUM IPTV LANDING PAGE - CUSTOM 3D STYLES & GLASSMORPHISM
   Electric Blue: #075BFF | Bright Yellow: #FFD500 | Navy: #07142E | Dark: #050B18
   ==================================================================== */

:root {
  --color-electric-blue: #075BFF;
  --color-electric-blue-glow: rgba(7, 91, 255, 0.4);
  --color-electric-blue-light: #5692FF;
  --color-bright-yellow: #FFD500;
  --color-bright-yellow-glow: rgba(255, 213, 0, 0.45);
  --color-deep-navy: #07142E;
  --color-dark-bg: #050B18;
  --color-white: #FFFFFF;
  --color-light-blue: #EAF2FF;
  --color-soft-gray: #A9B4C8;
  --color-glass-bg: rgba(7, 20, 46, 0.7);
  --color-glass-border: rgba(7, 91, 255, 0.25);
  --color-glass-hover-border: rgba(255, 213, 0, 0.5);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-dark-bg);
  color: var(--color-light-blue);
  overflow-x: hidden;
}

body {
  background-color: var(--color-dark-bg);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(7, 91, 255, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(7, 91, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(255, 213, 0, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-dark-bg);
}
::-webkit-scrollbar-thumb {
  background: #0d2858;
  border-radius: 5px;
  border: 2px solid var(--color-dark-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-electric-blue);
}

/* Accessible focus outlines */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-bright-yellow);
  outline-offset: 3px;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
  position: relative;
}

.glass-card:hover {
  border-color: rgba(7, 91, 255, 0.6);
  box-shadow: 0 20px 40px rgba(7, 91, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.glass-card-interactive {
  cursor: pointer;
}

.glass-card-interactive:hover {
  border-color: var(--color-bright-yellow);
  box-shadow: 0 20px 45px rgba(255, 213, 0, 0.15), 0 0 20px rgba(7, 91, 255, 0.2);
}

/* Yellow Button Styles (Spec Section 4 & 5) */
.btn-yellow {
  background-color: var(--color-bright-yellow);
  color: var(--color-deep-navy);
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(255, 213, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.25s ease, 
              background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-yellow:hover {
  transform: translateY(-2px);
  background-color: #ffe033;
  box-shadow: 0 8px 24px rgba(255, 213, 0, 0.55), 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

/* Blue Button / Outline Button */
.btn-blue {
  background: linear-gradient(135deg, #075BFF 0%, #003ECC 100%);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(7, 91, 255, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(7, 91, 255, 0.65);
}

.btn-outline {
  background: rgba(7, 91, 255, 0.1);
  color: var(--color-light-blue);
  border: 1px solid rgba(7, 91, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: rgba(7, 91, 255, 0.25);
  border-color: var(--color-electric-blue);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(7, 91, 255, 0.3);
}

/* Floating 3D Yellow Price Badge (Spec Section 5 & 8) */
.floating-price-badge {
  background: linear-gradient(135deg, #FFD500 0%, #FFAA00 100%);
  color: var(--color-deep-navy);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 16px 36px rgba(255, 213, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.35);
  transform: rotate(-4deg);
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: badgeFloat 4s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

@keyframes badgeFloat {
  0%, 100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-10px);
  }
}

/* Glowing Blue Circular Base beneath 3D TV */
.glowing-circular-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotateX(75deg);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 91, 255, 0.7) 0%, rgba(7, 91, 255, 0.2) 50%, transparent 75%);
  box-shadow: 0 0 60px rgba(7, 91, 255, 0.8), inset 0 0 40px rgba(86, 146, 255, 0.9);
  pointer-events: none;
  animation: basePulse 3.5s ease-in-out infinite;
}

@keyframes basePulse {
  0%, 100% {
    opacity: 0.75;
    transform: translateX(-50%) rotateX(75deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) rotateX(75deg) scale(1.05);
  }
}

/* Subtle particle animation */
.particle-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--color-electric-blue);
  box-shadow: 0 0 10px var(--color-electric-blue);
  pointer-events: none;
  animation: floatUp 8s linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(100%) scale(0.5);
    opacity: 0;
  }
  30% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-200px) scale(1.2);
    opacity: 0;
  }
}

/* Glowing connector lines in How It Works */
.step-connector-line {
  position: absolute;
  top: 2rem;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(7, 91, 255, 0.1) 0%, 
    rgba(7, 91, 255, 0.8) 50%, 
    rgba(7, 91, 255, 0.1) 100%);
  box-shadow: 0 0 10px var(--color-electric-blue);
  z-index: 1;
}

@media (max-width: 768px) {
  .step-connector-line {
    display: none;
  }
}

/* Interactive Accordion Transitions */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 280px;
  opacity: 1;
}

.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-bright-yellow);
}

.faq-item.active {
  border-color: rgba(7, 91, 255, 0.65);
  background: rgba(7, 20, 46, 0.85);
}

/* Modal styles */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

/* Reduced Motion Compliance (Spec Section 17) */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .floating-price-badge {
    animation: none !important;
    transform: rotate(-3deg);
  }
  .glowing-circular-base {
    animation: none !important;
  }
}
