/* ============================================
   XC-Play IPTV — Design System
   Dark Mode + Glassmorphism + Tema Roxo/Azul
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Outfit', sans-serif; font-size: 16px; }
body { background-color: #030014; color: #E2E8F0; overflow-x: hidden; line-height: 1.6; }

/* --- Variáveis de Cor --- */
:root {
    --bg-dark: #030014;
    --bg-card: rgba(20, 15, 45, 0.6);
    --primary: #7C3AED;      /* Roxo vibrante */
    --primary-hover: #6D28D9;
    --secondary: #4F46E5;    /* Azul elétrico */
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    --glass-border: rgba(124, 58, 237, 0.2);
    --glass-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

/* --- Tipografia --- */
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-light); line-height: 1.2; font-weight: 700; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* --- Estrutura Comum --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Botões CTAs (Gradient) --- */
.btn-cta {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff; font-weight: 700; padding: 16px 36px; border-radius: 50px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4); text-transform: uppercase; letter-spacing: 1px;
    position: relative; overflow: hidden; z-index: 1; border: 2px solid transparent; cursor: pointer;
}
.btn-cta::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    z-index: -1; transition: opacity 0.4s ease; opacity: 0; border-radius: 50px;
}
.btn-cta:hover::before { opacity: 1; }
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6); }

/* --- Header & Navegação --- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(3, 0, 20, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border); padding: 15px 0; transition: all 0.3s ease;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; width: auto; object-fit: contain; }
.nav-menu ul { display: flex; list-style: none; gap: 30px; }
.nav-menu a { font-size: 1rem; font-weight: 600; color: var(--text-light); }
.nav-menu a:hover { color: var(--primary); }
.btn-header { padding: 10px 24px; font-size: 0.9rem; }

/* Hamburger Menu Mobile */
.menu-toggle { display: none; flex-direction: column; gap: 6px; background: transparent; border: none; cursor: pointer; }
.menu-toggle span { width: 30px; height: 3px; background-color: var(--text-light); border-radius: 2px; transition: 0.3s; }

/* --- Hero Section --- */
.hero {
    min-height: 100vh; padding-top: 100px; display: flex; align-items: center; position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.15) 0%, transparent 40%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-content h1 span { background: linear-gradient(to right, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; }
.hero-image img { width: 100%; border-radius: 24px; border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transform: perspective(1000px) rotateY(-10deg); transition: 0.5s; }
.hero-image img:hover { transform: perspective(1000px) rotateY(0deg) scale(1.02); }

/* --- Seções Generais --- */
.section { padding: 100px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }
.section-title span { color: var(--primary); }

/* --- Cards Glassmorphism --- */
.glass-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px); border-radius: 20px; padding: 40px 30px;
    text-align: center; transition: 0.3s; box-shadow: var(--glass-shadow);
}
.glass-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.card-icon { width: 60px; height: 60px; background: rgba(124,58,237,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--primary); font-size: 1.5rem; }
.glass-card h3 { font-size: 1.4rem; margin-bottom: 15px; }

/* Grid de Benefícios */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* --- FAQ Accordion --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--glass-border); overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 20px 25px; font-size: 1.1rem; font-weight: 600; color: var(--text-light); background: transparent; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.5rem; transition: transform 0.3s; color: var(--primary); }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; padding: 0 25px; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 25px 20px; }

/* --- Tabela de Planos Simples --- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.plan-card { padding: 50px 30px; position: relative; }
.plan-card.popular { border-color: var(--primary); background: linear-gradient(180deg, rgba(124,58,237,0.1) 0%, rgba(20,15,45,0.6) 100%); }
.plan-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 5px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; }
.plan-price { font-size: 3rem; font-weight: 800; margin: 20px 0; color: #fff; }
.plan-price span { font-size: 1rem; color: var(--text-muted); }
.plan-features { list-style: none; margin: 30px 0; text-align: left; }
.plan-features li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.plan-features li::before { content: '✓'; color: var(--primary); font-weight: bold; }

/* --- Footer --- */
.footer { background: #010008; border-top: 1px solid var(--glass-border); padding: 80px 0 30px; margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-logo img { margin-bottom: 20px; }
.footer-desc { color: var(--text-muted); font-size: 0.95rem; }
.footer-title { margin-bottom: 25px; font-size: 1.1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.9rem; }
.footer-disclaimer { margin: 15px 0; font-size: 0.8rem; opacity: 0.7; max-width: 800px; margin-left: auto; margin-right: auto; }

/* --- Float WhatsApp --- */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25D366; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(37,211,102,0.4); z-index: 999; transition: 0.3s; animation: pulse-green 2s infinite; }
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); } 70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* --- Popup Exit Intent --- */
.exit-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; display: none; align-items: center; justify-content: center; }
.exit-popup.active { display: flex; }
.exit-popup-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); }
.exit-popup-content { position: relative; background: var(--bg-card); border: 1px solid var(--glass-border); padding: 50px; border-radius: 24px; max-width: 500px; text-align: center; box-shadow: var(--glass-shadow); transform: translateY(-50px); opacity: 0; animation: popupSlide 0.4s forwards; z-index: 10001; }
@keyframes popupSlide { to { transform: translateY(0); opacity: 1; } }
.exit-popup-close { position: absolute; top: 15px; right: 20px; font-size: 2rem; background: none; border: none; color: var(--text-muted); cursor: pointer; }
.exit-popup h3 { font-size: 2.2rem; margin-bottom: 15px; color: #fff; }
.exit-popup p { font-size: 1.2rem; color: #ddd; margin-bottom: 25px; }

/* --- Mobile Responsivo --- */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-image img { transform: none; }
    .hero-image img:hover { transform: scale(1.02); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background: rgba(3,0,20,0.95); flex-direction: column; align-items: center; padding-top: 50px; transition: 0.3s; backdrop-filter: blur(15px); }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; text-align: center; gap: 40px; }
    .nav-menu a { font-size: 1.5rem; }
    .menu-toggle { display: flex; }
    .btn-header { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero { padding-top: 120px; }
    .hero-content h1 { font-size: 2.2rem; }
}
