/* =========================================================================
   INFINITIZONE | Premium IPTV — Mobile-First Responsive
   ========================================================================= */

/* --- Variables --- */
:root {
  --black: #000;
  --dark-bg: #141414;
  --darker-bg: #0f0f0f;
  --red: #E50914;
  --red-hover: #b20710;
  --white: #fff;
  --grey-light: #e5e5e5;
  --grey-text: #8c8c8c;
  --grey-card: #202020;
  --border: #333;
  --accent-gradient: linear-gradient(135deg, #E50914, #8E050C);
  --whatsapp: #25d366;
  --font: "Inter", sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --ease: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-20px); }
}
@keyframes logoGlow {
  0%,100% { filter: drop-shadow(0 0 5px rgba(229,9,20,.4)); }
  50%     { filter: drop-shadow(0 0 15px rgba(229,9,20,.7)); }
}
.reveal { animation: fadeInUp .8s forwards; opacity: 0; }
.stagger-1 { animation-delay: .1s; }
.stagger-2 { animation-delay: .2s; }
.stagger-3 { animation-delay: .3s; }
.stagger-4 { animation-delay: .4s; }

/* --- Reset --- */
*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--dark-bg); color: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: var(--ease); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Layout --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 16px; }
.section-subtitle { text-align: center; color: var(--grey-text); font-size: 1rem; margin-bottom: 40px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600;
  cursor: pointer; border: none; font-size: 1rem; gap: 8px; transition: var(--ease);
}
.btn-large { padding: 14px 28px; font-size: 1.1rem; }
.btn-full { width: 100%; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 0 20px rgba(229,9,20,.4); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ================================================
   HEADER (Mobile-First)
   ================================================ */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: var(--ease);
}
.header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.5); }

.header-content {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; /* Fixed header height for calculation */
}

.logo {
  height: 48px; width: auto; object-fit: contain;
  animation: logoGlow 3s infinite ease-in-out;
  transition: var(--ease);
}
.logo:hover { transform: scale(1.05); }

/* Hamburger */
.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer;
  padding: 4px; z-index: 1001;
}
.menu-toggle span {
  display: block; width: 100%; height: 2px; background: var(--white);
  border-radius: 2px; transition: var(--ease);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav (default) */
.nav {
  position: fixed; top: 64px; left: 0; width: 100%; background: rgba(10,10,10,.98);
  display: flex; flex-direction: column; align-items: center; gap: 0;
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav.open { max-height: 300px; }
.nav-link, .btn-nav {
  display: block; width: 100%; text-align: center;
  padding: 16px 20px; font-size: 1rem; font-weight: 500;
  color: var(--grey-light); border-top: 1px solid rgba(255,255,255,.04);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.03); }
.btn-nav { background: var(--red); color: var(--white); border-top: none; margin: 10px 20px; width: calc(100% - 40px); border-radius: var(--radius); text-align: center; }

/* ================================================
   HERO (Mobile-First)
   ================================================ */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100dvh; /* use dynamic viewport on modern browsers */
  padding: 0; overflow: hidden;
  background-image: url("hero-bg.png"); background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.7) 100%);
}
.hero::after {
  content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 120px;
  background: linear-gradient(to top, var(--dark-bg), transparent);
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  padding-top: 100px; /* enough to clear fixed 64px header + breathing room */
  padding-bottom: 60px;
}
.hero-title {
  font-size: 2.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px;
  background: linear-gradient(to bottom, #fff 60%, var(--grey-text));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1rem; color: var(--grey-light); margin-bottom: 28px; max-width: 600px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-features-bar { display: flex; flex-wrap: wrap; gap: 16px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
.feature-item { display: flex; align-items: center; gap: 6px; font-size: .95rem; font-weight: 500; }
.feature-icon { font-size: 1.3rem; }

/* ================================================
   FEATURES GRID (Mobile-First = 1 column)
   ================================================ */
.section-features { background: var(--dark-bg); position: relative; overflow: hidden; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.feature-card {
  background: var(--grey-card); padding: 28px 24px; border-radius: var(--radius-lg);
  border: 1px solid transparent; transition: var(--ease); position: relative; overflow: hidden; z-index: 1;
}
.feature-card::before {
  content:''; position: absolute; inset: 0;
  background: var(--accent-gradient); opacity: 0; z-index: -1; transition: var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 16px 32px rgba(0,0,0,.5); border-color: rgba(229,9,20,.4); }
.feature-card:hover::before { opacity: .05; }

.card-icon {
  font-size: 2.4rem; margin-bottom: 16px;
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg); position: relative;
}
.card-icon::after {
  content:''; position: absolute; inset: 0;
  background: rgba(229,9,20,.1); border-radius: var(--radius-lg); z-index: -1;
}
.card-title { font-size: 1.15rem; margin-bottom: 8px; }
.card-desc { color: var(--grey-text); font-size: .95rem; }

/* ================================================
   PROMO SECTION
   ================================================ */
.section-promo { background: var(--black); }
.promo-content { text-align: center; max-width: 700px; margin: 0 auto; }
.promo-sub { color: var(--grey-text); font-size: 1rem; font-weight: 400; margin: 16px 0 20px; }
.promo-text { font-size: 1rem; margin-bottom: 32px; }

/* ================================================
   HOW IT WORKS
   ================================================ */
.section-howitworks { background: var(--darker-bg); }

/* ================================================
   PRICING
   ================================================ */
.section-pricing { background: var(--darker-bg); }
.pricing-cards { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.plan-card {
  background: rgba(32,32,32,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.05); border-radius: var(--radius-lg);
  padding: 32px 24px; width: 100%; max-width: 420px;
  display: flex; flex-direction: column; transition: var(--ease); position: relative; overflow: hidden;
}
.plan-card:hover { transform: scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,.7); border-color: rgba(229,9,20,.4); }
.plan-featured { border: 2px solid var(--red); background: linear-gradient(180deg, rgba(229,9,20,.06) 0%, rgba(32,32,32,.8) 100%); box-shadow: 0 0 24px rgba(229,9,20,.15); }
.plan-featured:hover { transform: scale(1.04); }
.featured-badge {
  position: absolute; top: 20px; right: -30px; background: var(--red); color: var(--white);
  padding: 6px 36px; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  transform: rotate(45deg); box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.plan-header { text-align: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.plan-duration { font-size: 1.1rem; font-weight: 600; color: var(--grey-light); display: block; margin-bottom: 6px; }
.plan-price { font-size: 2.8rem; font-weight: 800; }
.plan-billing { color: var(--grey-text); font-size: .85rem; margin-top: 4px; }
.plan-features { flex-grow: 1; margin-bottom: 24px; }
.plan-features li { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--grey-light); font-size: .95rem; }
.check-icon { width: 18px; height: 18px; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.check-accent { stroke: var(--red); }

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: #0a0a0a; padding: 60px 0 20px;
  border-top: 1px solid rgba(255,255,255,.05); position: relative; overflow: hidden;
}
.footer::before {
  content:''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 50%; height: 1px;
  background: radial-gradient(circle, rgba(229,9,20,.8), transparent);
  box-shadow: 0 0 16px 2px rgba(229,9,20,.3);
}
.footer-content { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; text-align: center; }
.footer-logo { height: 48px; margin: 0 auto 16px; filter: drop-shadow(0 0 4px rgba(229,9,20,.3)); }
.footer-desc { color: var(--grey-text); max-width: 300px; margin: 0 auto; }
.footer-links h4, .footer-contact h4 { font-size: 1.1rem; margin-bottom: 16px; }
.footer-links a { display: block; color: var(--grey-text); margin-bottom: 10px; }
.footer-links a:hover { color: var(--white); }
.footer-contact p { color: var(--grey-text); margin-bottom: 12px; }
.contact-link { color: var(--whatsapp); font-weight: 600; }
.contact-link:hover { color: #1ebe5d; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border); color: var(--grey-text); font-size: .85rem; }

/* ================================================
   FLOATING WHATSAPP
   ================================================ */
.floating-whatsapp {
  position: fixed; bottom: 20px; right: 20px; background: var(--whatsapp); color: white;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.4); z-index: 1000; transition: var(--ease);
}
.floating-whatsapp:hover { background: #1ebe5d; transform: scale(1.1) translateY(-4px); box-shadow: 0 12px 24px rgba(37,211,102,.4); }

/* ================================================
   DECORATIVE GLOW
   ================================================ */
.bg-glow {
  position: absolute; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(229,9,20,.12), transparent 70%);
  border-radius: 50%; z-index: 0; pointer-events: none; animation: float 10s infinite ease-in-out;
}
.bg-glow-1 { top: 20%; right: -10%; }
.bg-glow-2 { top: 50%; left: -15%; animation-delay: -5s; }

/* ================================================
   TABLET (min-width: 600px)
   ================================================ */
@media (min-width: 600px) {
  .section-title { font-size: 2.4rem; }
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.15rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pricing-cards { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .plan-card { flex: 1 1 320px; }
  .footer-content { grid-template-columns: 2fr 1fr 1fr; text-align: left; }
  .footer-logo { margin: 0 0 16px; }
  .footer-desc { margin: 0; }
}

/* ================================================
   DESKTOP (min-width: 992px)
   ================================================ */
@media (min-width: 992px) {
  /* Show desktop nav, hide hamburger */
  .menu-toggle { display: none; }
  .nav {
    position: static; max-height: none; overflow: visible;
    flex-direction: row; align-items: center; gap: 28px;
    background: none; border: none; width: auto;
  }
  .nav-link, .btn-nav {
    width: auto; padding: 0; border: none; font-size: .95rem;
  }
  .btn-nav {
    padding: 10px 20px; margin: 0; width: auto;
    border-radius: var(--radius);
  }

  .header-content { height: 80px; }
  .logo { height: 70px; }

  .hero { align-items: center; }
  .hero-content { padding-top: 0; padding-bottom: 0; max-width: 800px; }
  .hero-title { font-size: 4.5rem; }
  .hero-subtitle { font-size: 1.4rem; }

  .section { padding: 100px 0; }
  .section-title { font-size: 2.8rem; }
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .features-grid.three-col { grid-template-columns: repeat(3, 1fr); }

  .feature-card { padding: 40px 32px; }
  .card-icon { font-size: 3rem; width: 80px; height: 80px; }

  .plan-card { padding: 48px 36px; }
  .plan-featured { transform: scale(1.05); }
  .plan-featured:hover { transform: scale(1.08); }
}
