/* =========================================================================
   Fun Play IPTV - Premium Stylesheet
   Design System: Dark Mode, Glassmorphism, Neon Accents
========================================================================= */

:root {
    /* Color Palette */
    --bg-dark: #020210;
    --bg-darker: #010108;
    --primary: #005ce6;
    --primary-hover: #0088ff;
    --secondary: #00e5ff;
    --accent: #00b3ff;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    
    /* Text */
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-normal: 0.3s ease;
}

/* =========================================================================
   Resets and Global Setting
========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Base Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    font-size: 1.1rem;
    color: var(--primary-hover);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.text-center {
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: var(--trans-normal);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.btn-primary, .cta-button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 179, 255, 0.3);
}

.btn-primary:hover, .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 179, 255, 0.5);
    background: linear-gradient(135deg, var(--primary-hover), #00e5ff);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Glassmorphism Utilities */
.glass-box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* =========================================================================
   Header & Nav
========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: var(--trans-normal);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--trans-fast);
}

.nav-links a:hover {
    color: #fff;
}

/* =========================================================================
   Hero Section
========================================================================= */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 92, 230, 0.15);
    border: 1px solid rgba(0, 92, 230, 0.3);
    color: var(--secondary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: 0; /* Keep valid for SEO but hide physically visually since we use logo / H2 */
    opacity: 0;
    position: absolute;
}

.hero-text h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-description strong {
    color: var(--text-main);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.guarantee {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.video-wrapper {
    padding: 1rem;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* Blobs de Fundo para o Glow (Performance Friendly via opacity/blur) */
.blur-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.3;
    z-index: 1;
    border-radius: 50%;
}

.blur-blob.top-left {
    top: -100px;
    left: -100px;
    background: var(--primary);
}

.blur-blob.bottom-right {
    bottom: -100px;
    right: -100px;
    background: var(--accent);
}

/* =========================================================================
   Carrossel de Dispositivos (CSS Only - SEO Safe)
========================================================================= */
.devices-slider {
    background: var(--bg-darker);
    padding: 2rem 0;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
    position: relative;
    display: flex;
}

.devices-slider::before,
.devices-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
}

.devices-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-darker) 0%, transparent 100%);
}

.devices-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-darker) 0%, transparent 100%);
}

.slider-track {
    display: inline-flex;
    animation: scroll 30s linear infinite;
    gap: 3rem;
    align-items: center;
}

.slider-track:hover {
    animation-play-state: paused;
}

.slide {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slide p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); }
}

/* =========================================================================
   Benefícios
========================================================================= */
.benefits {
    padding: 100px 0;
    position: relative;
}

.grid-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--trans-normal);
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 92, 230, 0.3);
}

.benefit-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.benefit-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.benefit-card p {
    color: var(--text-muted);
}

/* =========================================================================
   Planos e Preços
========================================================================= */
.pricing {
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(0, 92, 230, 0.05) 0%, var(--bg-dark) 70%);
}

.grid-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--trans-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 92, 230, 0.15);
}

.pricing-card h4 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.pricing-card .price {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    color: #fff;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.price .value {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.price .period {
    font-size: 1.1rem;
    color: var(--text-muted);
    align-self: flex-end;
    margin-bottom: 0.5rem;
}

.economize {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
    background: rgba(0, 92, 230, 0.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 50px rgba(0, 92, 230, 0.25);
}

.ribbon {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), #00e5ff);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 179, 255, 0.3);
}

.features-list {
    text-align: left;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.features-list li:last-child {
    border-bottom: none;
}

/* =========================================================================
   Reviews
========================================================================= */
.reviews {
    padding: 100px 0;
}

.grid-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-box {
    padding: 2.5rem;
    position: relative;
}

.stars {
    color: #ffd166;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-box p {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.reviewer-name {
    display: block;
    font-weight: 700;
    color: var(--secondary);
    font-family: var(--font-heading);
}

/* =========================================================================
   FAQ Section
========================================================================= */
.faq-section {
    padding: 100px 0;
    background: var(--bg-darker);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--trans-fast);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--trans-fast);
}

.faq-question:hover {
    background: rgba(255,255,255,0.02);
}

.faq-question span {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform var(--trans-fast);
}

.faq-question.active span {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
}

/* =========================================================================
   Footer
========================================================================= */
.footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
    filter: brightness(2);
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 400px;
}

.footer h4 {
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul a {
    color: var(--text-muted);
    transition: var(--trans-fast);
}

.footer-links ul a:hover {
    color: var(--primary-hover);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

/* =========================================================================
   Responsividade (Mobile & Tablets)
========================================================================= */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .cta-button {
        display: none; /* Em um setup real podemos acoplar um Hamburger menu no script.js */
    }

    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .slider-track {
        animation: scroll 15s linear infinite; /* Rola mais rápido no mobile se quiser */
    }
    
    .grid-benefits, .grid-pricing, .grid-reviews {
        grid-template-columns: 1fr;
    }
}
