/* ======================================================
   UniTV Player - Core CSS Design System
   Brand Palette & Modern 2026 UI Design
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  /* Brand Gradient Variables based on UniTV Player logo */
  --brand-gradient: linear-gradient(135deg, #FF5E00 0%, #E10065 30%, #8E2DE2 68%, #2B35AF 100%);
  --brand-gradient-glow: linear-gradient(135deg, rgba(255, 94, 0, 0.4) 0%, rgba(225, 0, 101, 0.3) 30%, rgba(142, 45, 226, 0.3) 68%, rgba(43, 53, 175, 0.4) 100%);
  --brand-orange: #FF5E00;
  --brand-pink: #E10065;
  --brand-purple: #8E2DE2;
  --brand-blue: #2B35AF;
  --brand-light-blue: #38BDF8;

  /* Surfaces & Backgrounds */
  --bg-dark: #070A12;
  --bg-surface-1: #0F1424;
  --bg-surface-2: #161D33;
  --bg-surface-glass: rgba(15, 20, 36, 0.75);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(255, 94, 0, 0.3);

  /* Typography */
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Shadows & Effects */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(255, 94, 0, 0.35);
  --shadow-purple-glow: 0 0 35px rgba(142, 45, 226, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Fixed Fullscreen Background Video & Overlay (Subtle Ambient Motion) */
.video-bg-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -999 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.video-bg-wrapper video {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  width: 100% !important;
  height: 100% !important;
  transform: translate(-50%, -50%) !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: brightness(0.6) contrast(1.05) opacity(0.45) !important;
}

.video-bg-wrapper::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: radial-gradient(circle at center, rgba(7, 10, 18, 0.3) 0%, rgba(7, 10, 18, 0.7) 100%) !important;
  pointer-events: none !important;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Glows */
body::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1200px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 94, 0, 0.15) 0%, rgba(142, 45, 226, 0.12) 40%, rgba(7, 10, 18, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  top: 45%;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43, 53, 175, 0.2) 0%, rgba(225, 0, 101, 0.1) 50%, rgba(7, 10, 18, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(255, 94, 0, 0.3));
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-main);
}

.btn-header-cta {
  background: var(--brand-gradient);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(255, 94, 0, 0.3);
  transition: var(--transition);
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 94, 0, 0.5);
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 10rem 0 5rem 0;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 94, 0, 0.12);
  border: 1px solid rgba(255, 94, 0, 0.35);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #FF8F4D;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-border 2s infinite alternate;
}

@keyframes pulse-border {
  0% { border-color: rgba(255, 94, 0, 0.3); box-shadow: 0 0 10px rgba(255, 94, 0, 0.1); }
  100% { border-color: rgba(225, 0, 101, 0.8); box-shadow: 0 0 20px rgba(225, 0, 101, 0.3); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.25rem;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 3rem auto;
  font-weight: 400;
}

/* Downloader Code Box Widget */
.downloader-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 680px;
  margin: 0 auto 3rem auto;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.downloader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
}

.downloader-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #E2E8F0;
  margin-bottom: 1.25rem;
}

.downloader-header svg {
  color: var(--brand-orange);
}

.code-display-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(255, 94, 0, 0.4);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.code-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #FF5E00;
  text-shadow: 0 0 20px rgba(255, 94, 0, 0.5);
}

.btn-copy-code {
  background: var(--brand-gradient);
  border: none;
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 94, 0, 0.3);
}

.btn-copy-code:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 25px rgba(255, 94, 0, 0.5);
}

.downloader-footer-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Secondary CTA Buttons */
.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary-lg {
  background: var(--brand-gradient);
  color: #fff;
  padding: 1.1rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 30px rgba(255, 94, 0, 0.4);
  transition: var(--transition);
}

.btn-primary-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 94, 0, 0.6);
}

.btn-secondary-lg {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 1.1rem 2.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.btn-secondary-lg:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Section Header Styles */
.section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  color: var(--brand-orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Compatibility Grid Section */
.devices-section {
  padding: 6rem 0;
  position: relative;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.device-card {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.device-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 94, 0, 0.4);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 25px rgba(255, 94, 0, 0.2);
}

.device-icon-box {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: rgba(255, 94, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  color: var(--brand-orange);
  font-size: 2rem;
  transition: var(--transition);
}

.device-card:hover .device-icon-box {
  background: var(--brand-gradient);
  color: #fff;
  transform: scale(1.1);
}

.device-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.device-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Step-by-Step Installation Tutorial */
.tutorial-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface-1) 50%, var(--bg-dark) 100%);
}

.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.step-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(142, 45, 226, 0.4);
  box-shadow: var(--shadow-purple-glow);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(225, 0, 101, 0.4);
}

.step-title {
  font-size: 1.25rem;
  margin: 0.75rem 0 0.75rem 0;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.step-highlight {
  background: rgba(255, 94, 0, 0.1);
  border-left: 3px solid var(--brand-orange);
  padding: 0.6rem 0.8rem;
  font-size: 0.88rem;
  color: #FF8F4D;
  border-radius: 0 6px 6px 0;
}

/* Features Highlights Section */
.features-section {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-glass);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateX(5px);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--brand-light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.feature-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* FAQ Accordion Section */
.faq-section {
  padding: 6rem 0;
}

.faq-container {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.4rem 1.75rem;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--brand-orange);
  transition: var(--transition);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.75rem 1.4rem 1.75rem;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: float-pulse 2.5s infinite;
}

.whatsapp-widget:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.whatsapp-icon {
  font-size: 1.5rem;
  display: flex;
}

@keyframes float-pulse {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-surface-2);
  border: 1px solid var(--brand-orange);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255, 94, 0, 0.3);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Site Footer */
.site-footer {
  background: #04060C;
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 400px;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--brand-orange);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* Responsive Mobile Layouts */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface-1);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .hero-section {
    padding: 7rem 0 4rem 0;
  }

  .code-display-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .code-number {
    font-size: 2.4rem;
  }

  .whatsapp-widget span {
    display: none;
  }
  
  .whatsapp-widget {
    padding: 0.9rem;
    border-radius: var(--radius-full);
  }
}
