/* ==========================================================================
   SMARTIFLIX - PROFESSIONAL CINEMATIC STYLESHEET
   Perfect alignments, robust responsive grid, high-end typography
   ========================================================================== */

:root {
  /* Colors */
  --bg-dark: #000000;
  --bg-section: #141414;
  --bg-card: #232323;
  --bg-card-hover: #2f2f2f;
  
  --primary: #e50914;
  --primary-hover: #f40612;
  
  --text-white: #ffffff;
  --text-gray: #b3b3b3;
  --text-muted: #808080;
  
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  
  /* Layout */
  --container: 1200px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 40px;
  --section-py: 80px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { font-family: var(--font-sans); background: var(--bg-dark); color: var(--text-white); scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

/* Container & Grids */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.grid { display: grid; gap: var(--gap-lg); }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -1px; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
p { color: var(--text-gray); font-size: 1.125rem; margin-bottom: 24px; line-height: 1.6; }
p:last-child { margin-bottom: 0; }
.highlight { color: var(--primary); }
.text-center { text-align: center; }

/* Section Header */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-weight: 600; font-size: 1.125rem;
  border-radius: 4px; cursor: pointer; transition: 0.2s ease;
  border: none; gap: 10px; width: fit-content; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--text-white); }
.btn-primary:hover { background: var(--primary-hover); transform: scale(1.02); }
.btn-outline { background: rgba(109, 109, 110, 0.7); color: var(--text-white); }
.btn-outline:hover { background: rgba(109, 109, 110, 0.9); }
.btn-block { width: 100%; }

/* Sections */
section { padding: var(--section-py) 0; border-bottom: 8px solid #222; }
.bg-section { background: var(--bg-section); }

/* Badges */
.badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.badge-primary { background: var(--primary); color: var(--text-white); }

/* 1. HEADER */
header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
  background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  z-index: 1000; transition: 0.3s;
}
header.scrolled { background: var(--bg-dark); box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 2rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.logo span { color: var(--text-white); }

/* Navigation */
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text-gray); }
.mobile-btn { display: none; background: none; border: none; color: white; font-size: 28px; cursor: pointer; }

/* 2. HERO */
.hero {
  padding: 140px 0 60px 0; display: flex; align-items: center; justify-content: center;
  position: relative; background-color: #000;
  border-bottom: 8px solid #222;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.8) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 750px; padding-top: var(--nav-height); }
.hero h1 { text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.25rem; font-weight: 500; color: var(--text-white); margin-bottom: 40px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

/* Features Bar */
.features-bar { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.feature-pill { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-gray); }
.feature-pill svg { color: var(--primary); width: 20px; height: 20px; }

/* 3. MOVIES CAROUSEL */
.movies-section { overflow: hidden; padding: 40px 0; }
.movies-swiper { padding: 20px 0; }
.movie-card { border-radius: 8px; overflow: hidden; transition: 0.3s; cursor: pointer; border: 2px solid #e50914; }
.movie-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.movie-card:hover { transform: scale(1.05); z-index: 2; position: relative; box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4); border-color: #ff0f1a; }

/* 4. HOW IT WORKS */
.step-card { background: var(--bg-card); padding: 40px 32px; border-radius: 8px; text-align: center; height: 100%; transition: 0.2s; }
.step-card:hover { background: var(--bg-card-hover); }
.step-num { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 16px; line-height: 1; }

/* 5. PRICING */
.pricing-card {
  background: var(--bg-card); border-radius: 8px; padding: 40px 32px;
  display: flex; flex-direction: column; height: 100%; border: 1px solid transparent; transition: 0.2s;
}
.pricing-card:hover { background: var(--bg-card-hover); border-color: var(--border); }
.pricing-card.featured { border-color: var(--primary); background: rgba(229, 9, 20, 0.05); }
.pricing-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.price-wrap { margin-bottom: 24px; }
.price-currency { font-size: 1.5rem; vertical-align: super; color: var(--text-gray); }
.price-amount { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.price-old { text-decoration: line-through; color: var(--text-muted); display: block; margin-top: 8px; font-size: 1.1rem; }
.pricing-features { flex-grow: 1; margin-bottom: 32px; border-top: 1px solid var(--border); padding-top: 24px; }
.pricing-features li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 1rem; color: var(--text-gray); }
.pricing-features svg { color: var(--primary); flex-shrink: 0; width: 20px; height: 20px; }

/* 6. FEATURES GRID */
.feature-box { display: flex; gap: 24px; background: var(--bg-card); padding: 32px; border-radius: 8px; }
.feature-box svg { color: var(--primary); width: 40px; height: 40px; flex-shrink: 0; }
.feature-box h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature-box p { font-size: 1rem; margin-bottom: 0; }

/* 7. DEVICES */
.device-card { background: var(--bg-card); padding: 24px 16px; border-radius: 8px; text-align: center; }
.device-card svg { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--text-white); }
.device-card h3 { font-size: 1.1rem; margin-bottom: 0; }

/* 8. FAQ */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); margin-bottom: 16px; border-radius: 4px; overflow: hidden; }
.faq-btn {
  width: 100%; text-align: left; padding: 24px 32px; background: none; border: none;
  color: var(--text-white); font-size: 1.25rem; font-weight: 500; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-btn svg { width: 24px; height: 24px; transition: 0.3s; }
.faq-btn.active svg { transform: rotate(45deg); }
.faq-content { padding: 0 32px; max-height: 0; transition: max-height 0.3s ease; }
.faq-content p { padding-bottom: 24px; margin-bottom: 0; }

/* 9. FOOTER */
footer { padding: 80px 0 40px; background: #000; }
.footer-logo { display: inline-block; margin-bottom: 24px; }
.footer-col h4 { font-size: 1.1rem; color: var(--text-white); margin-bottom: 24px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--text-white); text-decoration: underline; }
.footer-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* FLOATING WHATSAPP */
.floating-wa {
  position: fixed; bottom: 30px; right: 30px; background: #25d366; width: 64px; height: 64px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5); z-index: 99; transition: 0.2s;
}
.floating-wa:hover { transform: scale(1.1); background: #20bd5a; }
.floating-wa svg { width: 36px; height: 36px; }

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0;
    width: 100%; background: var(--bg-dark); padding: 24px; border-top: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .nav-links a { font-size: 1.1rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .mobile-btn { display: block; }
  .header-actions { display: none; }
  
  .hero { align-items: flex-start; padding-top: 40px; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 100%); }
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .features-bar { justify-content: center; }
}

@media (max-width: 768px) {
  .compare-row { grid-template-columns: 3fr 1fr 1fr; }
  .compare-cell { padding: 12px 10px; font-size: 0.85rem !important; }
  .check-icon, .cross-icon { width: 20px; height: 20px; }
  .compare-header { font-size: 0.75rem; }
  .highlight-header { font-size: 0.9rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; margin-top: 40px !important; }
}

@media (max-width: 576px) {
  :root { --section-py: 60px; --gap-lg: 32px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .pricing-card { padding: 24px 20px; }
  .faq-btn { padding: 20px 24px; font-size: 1.1rem; }
  .faq-content { padding: 0 24px; }
}

/* Comparison Table */
.comparison-table-wrap {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.compare-row {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-header { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); }
.compare-cell { padding: 14px 16px; display: flex; align-items: center; font-size: 0.95rem; }
.compare-cell.center { justify-content: center; text-align: center; }
.highlight-col { background: rgba(229, 9, 20, 0.05); border-left: 1px solid rgba(229, 9, 20, 0.3); border-right: 1px solid rgba(229, 9, 20, 0.3); }
.highlight-header { background: rgba(229, 9, 20, 0.1); color: var(--primary); font-size: 1.1rem; font-weight: 800; border-top: 3px solid var(--primary); }

.check-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: rgba(34, 197, 94, 0.2); color: #22c55e; border-radius: 50%; font-weight: bold; }
.cross-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: rgba(239, 68, 68, 0.2); color: #ef4444; border-radius: 50%; font-size: 12px; font-weight: bold; }

/* Value Props */
.value-props-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 40px; }
.value-prop-card { background: var(--bg-card); padding: 24px 20px; border-radius: 12px; text-align: center; border: 1px solid var(--border); transition: 0.3s; }
.value-prop-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.vp-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; color: var(--primary); margin-bottom: 16px; }
