/* ==========================================================================
   BIDARN IPTV - Premium Design System (style.css)
   ========================================================================== */

/* Import Google Fonts - Outfit for Headings, Inter for Body */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* CSS Variables */
:root {
  /* Color Palette - Royal Gold & Midnight Blue */
  --bg-primary: #080a10;
  --bg-secondary: #0f131f;
  --bg-tertiary: #171d2f;
  
  --color-text-primary: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  
  --primary: #d4af37;        /* Royal Gold */
  --primary-glow: rgba(212, 175, 55, 0.4);
  --secondary: #f39c12;      /* Amber / Warm Gold */
  --accent: #c0c0c0;         /* Silver Accent */
  --accent-glow: rgba(192, 192, 192, 0.2);
  
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-gold: linear-gradient(135deg, #f39c12 0%, #d4af37 50%, #f9d976 100%);
  --gradient-dark: linear-gradient(180deg, rgba(15, 19, 31, 0.85) 0%, rgba(8, 10, 16, 0.95) 100%);
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Font Families */
  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout and Sizing */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Typography Rules */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-primary);
}

h1 {
  font-size: 3rem; /* 48px */
  font-weight: 900;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.25rem; /* 36px */
  letter-spacing: -0.02em;
  text-align: center;
  position: relative;
  margin-bottom: 3.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 0.75rem;
}

p {
  color: var(--color-text-secondary);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

/* Helpers & Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

.section-padding {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-headings);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #000;
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.01);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background var(--transition-normal), padding var(--transition-normal);
  padding: 1.5rem 0;
}

.header.scrolled {
  background: rgba(8, 10, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo span {
  color: var(--primary);
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 75% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 60%),
              radial-gradient(circle at 15% 80%, rgba(243, 156, 18, 0.08) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat-item h4 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero-media {
  position: relative;
  z-index: 1;
}

.hero-media-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.hero-media-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--primary), transparent 30%, var(--secondary), transparent 70%);
  animation: rotate-border 10s linear infinite;
  z-index: -1;
}

.hero-media-inner {
  background: var(--bg-secondary);
  border-radius: calc(var(--border-radius-lg) - 1px);
  overflow: hidden;
}

@keyframes rotate-border {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Trust / Badges Section
   ========================================================================== */
.trust-logos {
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 2.5rem 0;
}

.trust-logos-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-logo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-muted);
  filter: grayscale(1);
  transition: all var(--transition-normal);
  opacity: 0.5;
}

.trust-logo-item:hover {
  filter: grayscale(0);
  opacity: 1;
  color: var(--primary);
}

/* ==========================================================================
   SEO Passage Box (Core Optimization for GEO/AEO)
   ========================================================================== */
.seo-passage-box {
  background: var(--gradient-dark);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  border: 1px dashed rgba(212, 175, 55, 0.2);
  margin-bottom: 4rem;
}

.seo-passage-box h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.seo-passage-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 0;
  text-align: justify;
}

/* ==========================================================================
   Features Component
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.05);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  background: rgba(212, 175, 55, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1.75rem;
  position: relative;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  flex-grow: 1;
}

/* ==========================================================================
   Pricing / Packages Component
   ========================================================================== */
.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.pricing-toggle-btn {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.pricing-toggle-btn.active {
  background: rgba(212, 175, 55, 0.08);
  color: var(--primary);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.pricing-card {
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-8px);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.08);
}

.pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--gradient-primary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-plan-name {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.pricing-price-box {
  display: flex;
  align-items: baseline;
  margin-top: 1rem;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-headings);
  line-height: 1;
}

.pricing-period {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-left: 0.5rem;
}

.pricing-features {
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

.pricing-feature-item i {
  color: var(--success);
  font-size: 1.1rem;
}

.pricing-feature-item.disabled {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.pricing-feature-item.disabled i {
  color: var(--danger);
}

.pricing-card .btn {
  width: 100%;
}

/* ==========================================================================
   Devices Section
   ========================================================================== */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.device-card {
  border-radius: var(--border-radius-md);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.device-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.01);
}

.device-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.device-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.device-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

/* Native detail fallback for SEO */
details.faq-details {
  border-radius: var(--border-radius-md);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
}

details.faq-details summary {
  padding: 1.5rem 2rem;
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-details summary::-webkit-details-marker {
  display: none;
}

details.faq-details summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition-normal);
}

details.faq-details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

details.faq-details .faq-content {
  padding: 0 2rem 1.5rem 2rem;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.footer {
  background: #040508;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-info p {
  font-size: 0.95rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--color-text-secondary);
}

.social-icon:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-3px);
}

.footer-column h5 {
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.footer-contact-item i {
  color: var(--primary);
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-media {
    max-width: 600px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 0;
  }
  .nav-links {
    display: none; /* Mobile menu active state overrides handled in JS */
  }
  .menu-toggle {
    display: block;
    color: var(--color-text-primary);
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-stats {
    justify-content: space-between;
  }
  .section-padding {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}
