/*
 * Silk IPTV Design System
 * Theme: Premium Dark Glassmorphism
 */

:root {
  /* Color Palette */
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --primary: #f97316; /* Amber/Orange */
  --primary-hover: #ea580c;
  --primary-glow: rgba(249, 115, 22, 0.4);
  --text-white: #ffffff;
  --text-light: #a3a3a3;
  --border-color: rgba(255, 255, 255, 0.1);
  --success: #22c55e;
  --glass-bg: rgba(10, 10, 10, 0.7);
  
  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  
  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6, .seo-h3, .seo-h4 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3, .seo-h3 { font-size: 1.5rem; }
h4, .seo-h4 { font-size: 1.25rem; }

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--text-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: transform var(--transition-normal), background var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Header & Nav */
header {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1200px;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 8px 10px;
  transition: all var(--transition-normal);
}

#scarcity-bar ~ header {
  top: 55px;
}

header.scrolled {
  padding: 5px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 769px) {
  nav ul {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
  position: relative;
  padding: 5px 0;
  transition: color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
  border-radius: 2px;
}

nav a:hover, nav a.active {
  color: #fff;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Sections */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
}

.app-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.app-icons img {
  height: 35px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.app-icons img:hover {
  opacity: 1;
}

/* Intro Carousel */
.intro-section {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
}

.intro-text {
  text-align: center;
  max-width: 800px;
  margin: 40px auto;
  font-size: 1.1rem;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.badge-item svg {
  color: var(--success);
  width: 24px;
  height: 24px;
}

/* Movies Carousel */
.movies-slider-section {
  overflow: hidden;
}

.movie-poster {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 2/3;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.movie-poster:hover img {
  transform: scale(1.05);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.step-card {
  text-align: center;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}

.step-icon svg {
  width: 40px;
  height: 35px;
}

.step-number {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.1);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 30px;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.price-old {
  font-size: 1.5rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-monthly {
  color: var(--success);
  font-weight: 600;
  margin-top: 5px;
}

.features-list {
  margin-bottom: 30px;
  flex-grow: 1;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.features-list li svg {
  color: var(--success);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.pricing-footer {
  text-align: center;
}

.pricing-footer .btn {
  width: 100%;
  margin-bottom: 15px;
}

.payment-methods {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.urgency {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 15px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* Features Grid */
.features-section {
  background: var(--bg-darker);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  align-items: stretch;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.2);
}

.feature-item svg {
  color: var(--primary);
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  background: rgba(249, 115, 22, 0.1);
  padding: 10px;
  border-radius: 12px;
}

.feature-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Downloads */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.download-card {
  text-align: center;
}

.download-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.download-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

/* Devices */
.devices-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.device-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: var(--border-radius-sm);
}

.device-item svg {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.review-card {
  padding: 24px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.stars {
  color: #eab308;
  display: flex;
  gap: 2px;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* USPs */
.usps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.usp-card {
  text-align: center;
}

.usp-card svg {
  color: var(--primary);
  width: 40px;
  height: 35px;
  margin-bottom: 20px;
}

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

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: var(--bg-card);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-question:hover {
  background: var(--bg-card-hover);
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  background: var(--bg-dark);
}

.faq-answer p {
  padding: 0 20px 20px;
  margin: 0;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, transparent 100%);
  border-radius: var(--border-radius-lg);
  padding: 80px 20px;
  margin: 0 20px;
}

/* Blog Preview */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-title {
  margin-bottom: 15px;
}

.blog-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.blog-content .btn-outline {
  margin-top: auto;
  align-self: flex-start;
}

/* Social */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform var(--transition-fast);
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-wa { background: #25d366; }
.social-email { background: #ea4335; }
.social-fb { background: #1877f2; }
.social-x { background: #000000; border: 1px solid var(--border-color); }
.social-yt { background: #ff0000; }

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Footer */
footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-light);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

/* Floating WhatsApp */
.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--transition-fast);
}

.floating-wa:hover {
  transform: scale(1.1);
}

.floating-wa svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 56px; /* Header height */
    left: -100%;
    width: 100%;
    height: calc(100vh - 56px);
    background: var(--bg-dark);
    transition: left var(--transition-normal);
    padding: 40px 20px;
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
  }
  
  nav a {
    font-size: 1.2rem;
    display: block;
    padding: 10px;
  }
  
  .header-cta {
    display: none;
  }
  
  nav .header-cta {
    display: flex;
    margin-top: 20px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .hero {
    padding-top: 140px;
  }
}

/* 8. Exit Intent Popup */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.exit-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.exit-popup-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    padding: 40px 30px;
    transform: translateY(20px);
    transition: transform 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.exit-popup-overlay.show .exit-popup-content {
    transform: translateY(0);
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.exit-popup-close:hover {
    color: #fff;
}

