/* ==========================================================
   IPTV PRO - Premium Streaming Platform
   Author: Dev Israel
   ========================================================== */

:root {
  --bg-deep: #050a16;
  --bg-dark: #081120;
  --bg-card: #0d1830;
  --bg-elevated: #111e3a;
  --royal: #2563eb;
  --royal-light: #3b82f6;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --text: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(59, 130, 246, 0.4);
  --grad-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-text: linear-gradient(135deg, #3b82f6 0%, #22d3ee 60%, #67e8f9 100%);
  --grad-bg: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.25), transparent 60%);
  --shadow-glow: 0 10px 40px -10px rgba(37, 99, 235, 0.5);
  --shadow-cyan: 0 10px 40px -10px rgba(6, 182, 212, 0.5);
  --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 14px;
  transition: all .25s ease; white-space: nowrap; border: 1px solid transparent;
  position: relative; overflow: hidden;
}
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(37, 99, 235, 0.9); }
.btn-outline {
  background: rgba(255,255,255,0.04); color: #fff;
  border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(10px);
}
.btn-outline:hover { background: rgba(37, 99, 235, 0.15); border-color: var(--royal-light); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: #fff; }
.btn-whats {
  background: #25D366; color: #fff;
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.6);
}
.btn-whats:hover { background: #1ebe5b; transform: translateY(-2px); }
.btn-telegram {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #fff; padding: 12px 20px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(6, 182, 212, 0.6);
  margin-top: 8px;
}
.btn-telegram:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(6, 182, 212, 0.9); }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8, 17, 32, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: all .3s ease;
}
.header.scrolled { background: rgba(5, 10, 22, 0.92); border-bottom-color: rgba(37, 99, 235, 0.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.5px; }
.logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--grad-primary);
  display: grid; place-items: center; font-size: 16px;
  box-shadow: var(--shadow-glow);
}
.logo-text { font-family: 'Space Grotesk', sans-serif; }
.logo-text span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color .2s; position: relative; }
.nav a:hover { color: #fff; }
.nav a::after {
  content: ""; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px;
  background: var(--grad-primary); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; font-size: 22px; color: #fff; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 140px 0 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(37, 99, 235, 0.35), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(6, 182, 212, 0.25), transparent 50%),
    var(--bg-deep);
  z-index: -2;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  z-index: -1;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: .5; z-index: -1;
  animation: float 12s ease-in-out infinite;
}
.glow-1 { width: 500px; height: 500px; background: var(--royal); top: -100px; left: -100px; }
.glow-2 { width: 500px; height: 500px; background: var(--cyan); bottom: -150px; right: -100px; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.1); }
}
.hero-content { position: relative; text-align: center; max-width: 980px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(37, 99, 235, 0.12); border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 13px; font-weight: 500; color: #93c5fd;
  margin-bottom: 28px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-light); box-shadow: 0 0 12px var(--cyan-light); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .5; } }

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 6vw, 72px); font-weight: 700; line-height: 1.05;
  letter-spacing: -1.5px; margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px); color: var(--text-muted);
  max-width: 720px; margin: 0 auto 32px;
}
.hero-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px;
}
.hero-tags span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  font-size: 13px; color: #cbd5e1; backdrop-filter: blur(10px);
}
.hero-tags i { color: var(--cyan-light); }
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 50px;
}
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
  color: var(--text-dim); font-size: 13px;
}
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-item i { color: var(--cyan-light); }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(13, 24, 48, 0.6), transparent); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4.5vw, 52px); font-weight: 700; line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 16px;
}
.section-header p { color: var(--text-muted); font-size: 17px; }

/* ============ CATALOG / MARQUEE ============ */
.catalog { padding: 90px 0 110px; position: relative; overflow: hidden; }
.marquee {
  width: 100%; overflow: hidden; margin: 24px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 18px; width: max-content;
  animation: scrollX 60s linear infinite;
}
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 80s; }
@keyframes scrollX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.poster {
  width: 200px; height: 290px; border-radius: 12px; flex-shrink: 0;
  background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
  transition: transform .3s ease;
}
.poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 10, 22, 0.9));
}
.poster:hover { transform: scale(1.05); border-color: var(--royal-light); }

/* ============ BENEFITS ============ */
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.benefit-card {
  padding: 32px 26px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 30, 58, 0.7), rgba(13, 24, 48, 0.5));
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transition: all .3s ease; position: relative; overflow: hidden;
}
.benefit-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
  opacity: 0; transition: opacity .3s;
}
.benefit-card:hover {
  transform: translateY(-6px); border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.benefit-card:hover::before { opacity: 1; }
.benefit-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: grid; place-items: center; font-size: 22px;
  color: var(--cyan-light); margin-bottom: 20px;
}
.benefit-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; font-family: 'Space Grotesk', sans-serif; }
.benefit-card p { color: var(--text-muted); font-size: 14.5px; }

/* ============ DEVICES ============ */
.devices-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px;
}
.device-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 32px 18px; border-radius: var(--radius-lg);
  background: rgba(13, 24, 48, 0.6); border: 1px solid var(--border);
  backdrop-filter: blur(20px); transition: all .3s ease;
}
.device-card i { font-size: 38px; color: var(--cyan-light); transition: transform .3s; }
.device-card span { font-weight: 500; font-size: 14px; color: #cbd5e1; }
.device-card:hover {
  border-color: var(--border-strong); transform: translateY(-4px);
  background: rgba(37, 99, 235, 0.08);
}
.device-card:hover i { transform: scale(1.15); color: #fff; }

/* ============ STATS ============ */
.stats-section {
  padding: 70px 0; position: relative;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.05));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px;
  text-align: center;
}
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -1px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--text-muted); font-size: 14px; margin-top: 4px; font-weight: 500; }

/* ============ PLANS ============ */
.plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
  align-items: stretch;
}
.plan-card {
  display: flex; flex-direction: column;
  padding: 36px 28px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 30, 58, 0.8), rgba(13, 24, 48, 0.6));
  border: 1px solid var(--border); backdrop-filter: blur(20px);
  position: relative; transition: all .3s ease;
}
.plan-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.plan-popular {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(6, 182, 212, 0.06));
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 20px 60px -20px rgba(37, 99, 235, 0.5);
  transform: scale(1.03);
}
.plan-popular:hover { transform: translateY(-6px) scale(1.03); }
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-primary); color: #fff; padding: 6px 16px;
  border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  box-shadow: var(--shadow-glow);
}
.plan-name {
  font-family: 'Space Grotesk', sans-serif; font-size: 14px;
  text-transform: uppercase; letter-spacing: 2px; color: var(--cyan-light);
  margin-bottom: 16px; font-weight: 600;
}
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 28px; }
.plan-price .currency { font-size: 18px; color: var(--text-muted); font-weight: 500; }
.plan-price .value { font-family: 'Space Grotesk', sans-serif; font-size: 56px; font-weight: 700; letter-spacing: -2px; }
.plan-price .period { color: var(--text-muted); font-size: 14px; margin-left: 4px; }
.plan-features { list-style: none; margin-bottom: 28px; flex: 1; }
.plan-features li {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  color: #cbd5e1; font-size: 14.5px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.plan-features i { color: var(--cyan-light); font-size: 13px; }
.plan-actions { display: flex; flex-direction: column; gap: 10px; }

/* ============ REVIEWS ============ */
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px;
}
.review-card {
  padding: 30px 26px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(17, 30, 58, 0.7), rgba(13, 24, 48, 0.5));
  border: 1px solid var(--border); backdrop-filter: blur(20px);
  transition: all .3s ease;
}
.review-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.stars { color: #fbbf24; margin-bottom: 14px; font-size: 14px; display: flex; gap: 2px; }
.review-card p { color: #cbd5e1; margin-bottom: 22px; font-size: 15px; line-height: 1.65; }
.review-user { display: flex; align-items: center; gap: 12px; }
.review-user img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(59,130,246,0.4); }
.review-user strong { display: block; font-size: 14px; font-weight: 600; }
.review-user span { font-size: 12px; color: var(--text-dim); }

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: 14px; overflow: hidden;
  background: rgba(13, 24, 48, 0.6); border: 1px solid var(--border);
  backdrop-filter: blur(20px); transition: all .3s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 22px 26px; text-align: left;
  font-weight: 600; font-size: 16px; color: #fff;
}
.faq-q i { color: var(--cyan-light); transition: transform .3s; font-size: 14px; }
.faq-item.active .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.active .faq-a { max-height: 300px; }
.faq-a p { padding: 0 26px 22px; color: var(--text-muted); font-size: 15px; }

/* ============ CTA FINAL ============ */
.cta-final { padding: 110px 0; position: relative; overflow: hidden; }
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 800px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.3), transparent 60%);
  filter: blur(80px); z-index: -1;
}
.cta-box {
  text-align: center; padding: 70px 40px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(17, 30, 58, 0.9), rgba(13, 24, 48, 0.7));
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -30px rgba(37, 99, 235, 0.5);
}
.cta-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4.5vw, 48px); font-weight: 700;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 18px;
}
.cta-box p { color: var(--text-muted); font-size: 18px; max-width: 620px; margin: 0 auto 36px; }
.cta-box .hero-actions { margin-bottom: 0; }

/* ============ FOOTER ============ */
.footer {
  background: linear-gradient(180deg, var(--bg-deep), #020610);
  border-top: 1px solid var(--border);
  padding-top: 70px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 50px;
}
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif; font-size: 14px;
  text-transform: uppercase; letter-spacing: 2px; color: var(--cyan-light);
  margin-bottom: 20px; font-weight: 600;
}
.footer-col p { color: var(--text-muted); font-size: 14.5px; margin-top: 16px; max-width: 320px; }
.footer-col a { display: block; padding: 6px 0; color: var(--text-muted); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--cyan-light); }
.footer-col .btn-telegram { display: inline-flex; padding: 12px 20px; color: #fff; }
.dev-name {
  font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-top: 0 !important;
}
.footer-bottom {
  border-top: 1px solid var(--border); padding: 24px 0;
  font-size: 13px; color: var(--text-dim);
}
.footer-bottom .container {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--cyan-light); }

/* ============ WHATSAPP FLOAT ============ */
.whats-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  animation: pulseW 2.5s infinite;
}
@keyframes pulseW {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5), 0 0 0 18px rgba(37, 211, 102, 0); }
}

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: all .7s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .header.menu-open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(5, 10, 22, 0.97); backdrop-filter: blur(20px);
    padding: 20px 24px; border-bottom: 1px solid var(--border);
  }
  .header.menu-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .poster { width: 150px; height: 220px; }
  .plan-popular { transform: none; }
  .plan-popular:hover { transform: translateY(-6px); }
  .hero-actions .btn { width: 100%; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}
