/* ============================================
   MaxPlay IPTV — Design System
   Dark Mode Premium + Glassmorphism + Neon
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: #0A0E1A; color: #C8D1E0; line-height: 1.75; overflow-x: hidden; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: #2ECC71; text-decoration: none; transition: color .3s; }
a:hover { color: #27AE60; }
h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; color: #F0F4FC; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
p { margin-bottom: 1rem; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Urgency Bar --- */
.urgency-bar { background: linear-gradient(90deg, #2ECC71, #27AE60); color: #0A0E1A; text-align: center; padding: 10px 20px; font-size: .9rem; font-weight: 600; position: relative; z-index: 1001; }

/* --- Header --- */
.header { position: sticky; top: 0; z-index: 1000; background: rgba(10, 14, 26, .85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,.06); transition: background .3s, box-shadow .3s; }
.header.scrolled { background: rgba(10, 14, 26, .95); box-shadow: 0 4px 30px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav-link { color: #8892B0; font-size: .95rem; font-weight: 500; transition: color .3s; position: relative; }
.nav-link:hover, .nav-link.active { color: #2ECC71; }
.nav-link.active::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: #2ECC71; border-radius: 2px; }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; background: #2ECC71; color: #0A0E1A; font-weight: 700; padding: 12px 24px; border-radius: 10px; text-decoration: none; font-size: 1rem; transition: all .3s ease; border: none; cursor: pointer; white-space: nowrap; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(46,204,113,.35); color: #0A0E1A; }
.btn-cta:active { transform: translateY(0); }
.btn-header { padding: 10px 20px; font-size: .9rem; }
.btn-outline { background: transparent; border: 2px solid #2ECC71; color: #2ECC71; }
.btn-outline:hover { background: #2ECC71; color: #0A0E1A; }
.btn-large { padding: 18px 36px; font-size: 1.15rem; border-radius: 14px; }
.btn-pulse { animation: pulse-glow 2s infinite; }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(46,204,113,.4); } 50% { box-shadow: 0 0 0 12px rgba(46,204,113,0); } }

/* Menu Toggle (mobile) */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #F0F4FC; border-radius: 2px; transition: all .3s; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Trust Strip --- */
.trust-strip { background: rgba(46,204,113,.06); border-bottom: 1px solid rgba(46,204,113,.12); padding: 12px 0; }
.trust-strip-inner { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; font-size: .88rem; color: #A0AABB; }
.trust-strip-inner span { display: flex; align-items: center; gap: 4px; }

/* --- Hero Section --- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; padding: 80px 0; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .15; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,26,.7) 0%, rgba(10,14,26,.95) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.25); padding: 6px 16px; border-radius: 50px; font-size: .85rem; color: #2ECC71; font-weight: 600; margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .highlight { color: #2ECC71; }
.hero-sub { font-size: 1.2rem; color: #A0AABB; max-width: 550px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-number { font-size: 2rem; font-weight: 800; color: #2ECC71; font-family: 'Sora', sans-serif; }
.hero-stat-label { font-size: .8rem; color: #8892B0; text-transform: uppercase; letter-spacing: 1px; }

/* --- Sections --- */
.section { padding: 80px 0; }
.section-alt { background: rgba(255,255,255,.02); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-header p { color: #8892B0; font-size: 1.1rem; }

/* --- Glass Cards --- */
.glass-card { background: rgba(255,255,255,.04); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 32px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.glass-card:hover { transform: translateY(-4px); border-color: rgba(46,204,113,.25); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.glass-card .card-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(46,204,113,.1); margin-bottom: 16px; font-size: 1.5rem; }
.glass-card h3 { margin-bottom: 10px; }
.glass-card p { color: #8892B0; font-size: .95rem; }

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* --- Steps (Como funciona) --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 40px 24px; }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: #2ECC71; color: #0A0E1A; font-weight: 800; font-size: 1.5rem; font-family: 'Sora', sans-serif; margin: 0 auto 20px; }
.step h3 { margin-bottom: 10px; }
.step p { color: #8892B0; font-size: .95rem; }

/* --- Counter Bar (números animados) --- */
.counter-bar { padding: 50px 0; background: linear-gradient(135deg, rgba(46,204,113,.08), rgba(46,204,113,.02)); border-top: 1px solid rgba(46,204,113,.1); border-bottom: 1px solid rgba(46,204,113,.1); }
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.counter-item .counter-number { font-size: 2.5rem; font-weight: 800; color: #2ECC71; font-family: 'Sora', sans-serif; }
.counter-item .counter-label { font-size: .85rem; color: #8892B0; margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* --- Plans (sem preço) --- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 36px 28px; text-align: center; transition: all .3s; position: relative; overflow: hidden; }
.plan-card.featured { border-color: #2ECC71; background: rgba(46,204,113,.06); }
.plan-card.featured::before { content: 'MAIS POPULAR'; position: absolute; top: 16px; right: -30px; background: #2ECC71; color: #0A0E1A; font-size: .7rem; font-weight: 800; padding: 4px 40px; transform: rotate(45deg); letter-spacing: 1px; }
.plan-card:hover { transform: translateY(-6px); box-shadow: 0 16px 50px rgba(0,0,0,.3); }
.plan-name { font-size: 1.3rem; font-weight: 700; color: #F0F4FC; margin-bottom: 20px; }
.plan-features { list-style: none; text-align: left; margin-bottom: 24px; }
.plan-features li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .93rem; color: #A0AABB; display: flex; align-items: center; gap: 8px; }
.plan-features li .check { color: #2ECC71; font-weight: 700; }
.plan-features li .cross { color: #E74C3C; }
.plan-badge { display: inline-block; background: rgba(46,204,113,.1); color: #2ECC71; font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-top: 8px; }

/* --- Devices Grid --- */
.devices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.device-item { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 20px; text-align: center; transition: border-color .3s; }
.device-item:hover { border-color: rgba(46,204,113,.3); }
.device-icon { font-size: 2rem; margin-bottom: 8px; }
.device-name { font-size: .85rem; color: #A0AABB; }

/* --- Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.testimonial-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 24px; }
.testimonial-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #2ECC71, #27AE60); display: flex; align-items: center; justify-content: center; color: #0A0E1A; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.testimonial-info .testimonial-name { font-weight: 600; color: #F0F4FC; font-size: .95rem; }
.testimonial-info .testimonial-city { font-size: .8rem; color: #8892B0; }
.testimonial-stars { color: #F1C40F; font-size: .9rem; letter-spacing: 2px; margin-bottom: 8px; }
.testimonial-text { font-size: .9rem; color: #A0AABB; line-height: 1.6; font-style: italic; }
.testimonial-date { font-size: .75rem; color: #5A6378; margin-top: 10px; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.06); }
.faq-question { width: 100%; background: none; border: none; color: #F0F4FC; font-size: 1.05rem; font-weight: 600; padding: 20px 0; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Inter', sans-serif; transition: color .3s; }
.faq-question:hover { color: #2ECC71; }
.faq-question .faq-icon { font-size: 1.5rem; transition: transform .3s; color: #2ECC71; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; }
.faq-answer-inner { padding: 0 0 20px; color: #8892B0; font-size: .95rem; line-height: 1.7; }

/* --- CTA Banner --- */
.cta-banner { background: linear-gradient(135deg, rgba(46,204,113,.12), rgba(46,204,113,.04)); border: 1px solid rgba(46,204,113,.15); border-radius: 20px; padding: 50px 40px; text-align: center; }
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { color: #8892B0; max-width: 600px; margin: 0 auto 24px; font-size: 1.1rem; }

/* --- Content Text (artigo longo) --- */
.content-text { max-width: 800px; margin: 0 auto; }
.content-text h2 { margin-top: 48px; margin-bottom: 16px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.05); }
.content-text h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.content-text h3 { margin-top: 32px; margin-bottom: 12px; color: #2ECC71; }
.content-text p { color: #A0AABB; }
.content-text strong { color: #F0F4FC; }
.content-text ul, .content-text ol { margin: 16px 0; padding-left: 24px; color: #A0AABB; }
.content-text li { margin-bottom: 8px; }
.content-image { margin: 32px 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.content-image img { width: 100%; }

/* --- Inline CTA --- */
.inline-cta { background: rgba(46,204,113,.06); border: 1px solid rgba(46,204,113,.15); border-radius: 16px; padding: 32px; text-align: center; margin: 40px 0; }
.inline-cta h3 { margin-bottom: 12px; }
.inline-cta p { color: #8892B0; margin-bottom: 16px; }

/* --- Footer --- */
.footer { background: #060911; border-top: 1px solid rgba(255,255,255,.05); padding: 60px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo img { height: 32px; margin-bottom: 16px; }
.footer-desc { color: #5A6378; font-size: .88rem; line-height: 1.6; }
.footer-title { color: #F0F4FC; font-size: .95rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; font-size: .88rem; color: #5A6378; }
.footer-links a { color: #8892B0; transition: color .3s; }
.footer-links a:hover { color: #2ECC71; }
.btn-footer { font-size: .85rem; padding: 10px 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: .8rem; color: #3A4255; margin-bottom: 4px; }
.footer-disclaimer { font-style: italic; }

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

/* --- Exit Popup --- */
.exit-popup { display: none; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; }
.exit-popup.show { display: flex; }
.exit-popup-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.exit-popup-content { position: relative; background: #111827; border: 1px solid rgba(46,204,113,.2); border-radius: 20px; padding: 48px 40px; text-align: center; max-width: 460px; width: 90%; animation: popup-in .3s ease; }
@keyframes popup-in { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.exit-popup-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: #8892B0; font-size: 2rem; cursor: pointer; line-height: 1; }
.exit-popup-content h3 { font-size: 1.8rem; margin-bottom: 12px; color: #F0F4FC; }
.exit-popup-content p { color: #A0AABB; font-size: 1.1rem; }
.exit-popup-sub { font-size: .9rem !important; color: #5A6378 !important; margin-bottom: 24px; }
.btn-popup { width: 100%; justify-content: center; padding: 16px; font-size: 1.05rem; }

/* --- Error Page (404) --- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.error-code { font-size: 8rem; font-weight: 900; color: #2ECC71; opacity: .3; line-height: 1; }
.error-title { font-size: 1.8rem; margin-bottom: 16px; }
.error-text { color: #8892B0; max-width: 500px; margin: 0 auto 32px; }
.error-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Scroll Reveal --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Apps Grid --- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.app-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 12px; transition: border-color .3s; }
.app-card:hover { border-color: rgba(46,204,113,.3); }
.app-icon { width: 40px; height: 40px; background: rgba(46,204,113,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.app-name { font-weight: 600; color: #F0F4FC; font-size: .9rem; }
.app-platform { font-size: .75rem; color: #5A6378; }

/* ============================================
   RESPONSIVE — Mobile First
   ============================================ */
@media (max-width: 1024px) {
    .grid-3, .plans-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .grid-4, .counter-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav { display: none; position: fixed; top: 70px; left: 0; right: 0; bottom: 0; background: rgba(10,14,26,.98); backdrop-filter: blur(20px); flex-direction: column; align-items: center; justify-content: center; gap: 24px; z-index: 999; }
    .nav.open { display: flex; }
    .nav-link { font-size: 1.2rem; }
    .btn-header { display: none; }
    .menu-toggle { display: flex; }
    .hero { min-height: 80vh; padding: 60px 0; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .hero-stats { gap: 20px; }
    .hero-stat-number { font-size: 1.5rem; }
    .grid-2, .grid-3, .grid-4, .plans-grid, .steps, .counter-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .trust-strip-inner { gap: 12px; font-size: .78rem; }
    .section { padding: 50px 0; }
    .cta-banner { padding: 32px 20px; }
    .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .btn-large { width: 100%; justify-content: center; }
    .whatsapp-float { bottom: 16px; right: 16px; width: 52px; height: 52px; }
}
