/* ===========================================
   SUPERPÁGINA IPTV - CSS PREMIUM
   Design: Dark Mode Neon | Ultra Modern
   =========================================== */

/* --- Design Tokens --- */
:root {
    --bg-primary: #0a0b0f;
    --bg-secondary: #12141c;
    --bg-card: rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.06);
    --text-primary: #e8e9ed;
    --text-secondary: #8b8d97;
    --text-muted: #55576a;
    --primary: #00e5ff;
    --primary-dark: #00b8d4;
    --primary-glow: rgba(0, 229, 255, 0.15);
    --accent: #ff2d75;
    --accent-glow: rgba(255, 45, 117, 0.15);
    --gradient-primary: linear-gradient(135deg, #00e5ff 0%, #7c4dff 100%);
    --gradient-accent: linear-gradient(135deg, #ff2d75 0%, #ff6d00 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --border-color: rgba(255,255,255,0.06);
    --border-glow: rgba(0, 229, 255, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.2);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-med: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: var(--bg-primary);
}

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

/* --- Skip Link (Acessibilidade) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: var(--bg-primary);
    padding: 10px 20px;
    z-index: 10000;
    font-weight: 700;
}
.skip-link:focus { top: 0; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; margin-bottom: 0.8rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); font-size: 1.05rem; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: #fff; }

strong { color: var(--primary); font-weight: 600; }

ul { list-style: none; }

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-med);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}
.btn:hover::before { width: 300px; height: 300px; }

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary) !important;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background: var(--primary-glow);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-accent {
    background: var(--gradient-accent);
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(255, 45, 117, 0.35);
}
.btn-accent:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 45, 117, 0.5);
}

.btn-whatsapp {
    background: #25d366;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    background: #1ebe5b;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.btn-cta-header {
    background: var(--gradient-accent);
    color: #fff !important;
    padding: 10px 22px;
    font-size: 0.85rem;
    box-shadow: 0 2px 12px rgba(255, 45, 117, 0.3);
}
.btn-cta-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 45, 117, 0.5);
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-med);
}

.main-header.scrolled {
    padding: 10px 0;
    background: rgba(10, 11, 15, 0.95);
    box-shadow: var(--shadow-md);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

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

.main-nav ul {
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a:not(.btn):hover { color: #fff; }

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-med);
}
.main-nav a:not(.btn):hover::after { width: 100%; }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.mobile-toggle span {
    width: 28px; height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Breadcrumb --- */
.breadcrumb-nav {
    background: var(--bg-secondary);
    padding: 12px 0;
    margin-top: 72px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
}
.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--text-muted);
}
.breadcrumb-list a { color: var(--text-muted); }
.breadcrumb-list li:last-child a { color: var(--primary); pointer-events: none; }

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 180px 0 120px;
    background-size: cover;
    background-position: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 11, 15, 0.65) 0%,
        rgba(10, 11, 15, 0.85) 60%,
        rgba(10, 11, 15, 1) 100%
    );
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero h1 {
    text-shadow: 0 0 40px rgba(0, 229, 255, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); }
}

/* --- Sections --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-gradient {
    background: var(--gradient-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.section-label {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

/* --- Grids --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --- Feature Cards --- */
.feature-card {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-med);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-med);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--primary-glow);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-card h3 { color: #fff; }
.feature-card p { color: var(--text-secondary); font-size: 1rem; }

/* --- Stats / Counter Bar --- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Images --- */
.img-fluid {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-med);
}

.img-fluid:hover {
    transform: scale(1.02);
}

.img-glow {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 229, 255, 0.1);
}

/* --- FAQ Items --- */
.faq-item {
    background: var(--bg-card);
    padding: 30px 35px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    transition: all var(--transition-med);
}

.faq-item:hover {
    border-left-color: var(--accent);
    background: var(--bg-card-hover);
}

.faq-item h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.faq-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* --- Comparison Table --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table thead {
    background: var(--bg-secondary);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 20px;
    text-align: left;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.comparison-table th {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.comparison-table th:nth-child(2) {
    color: var(--primary);
}

.comparison-table tbody tr {
    transition: background var(--transition-fast);
}

.comparison-table tbody tr:hover {
    background: var(--bg-card);
}

.check { color: #25d366; font-weight: 700; }
.cross { color: #ff4444; font-weight: 700; }

/* --- Testimonial Cards --- */
.testimonial-card {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px; left: 25px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 20px;
    position: relative;
}

.cta-section p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    position: relative;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    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, 0.4);
    z-index: 999;
    transition: all var(--transition-med);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children > .is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Footer --- */
.main-footer {
    background: #05060a;
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
    color: #fff;
}

.footer-logo img {
    border-radius: var(--radius-sm);
}

.footer-col h3 {
    color: var(--primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-muted); font-size: 0.95rem; }
.footer-col ul a:hover { color: var(--primary); }
.footer-col p { color: var(--text-muted); font-size: 0.95rem; }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0; }
.footer-bottom a { color: var(--text-secondary); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }

    .mobile-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        padding: 100px 30px 30px;
        transition: right var(--transition-med);
        z-index: 999;
        border-left: 1px solid var(--border-color);
    }
    .main-nav.open { right: 0; }
    .main-nav ul { flex-direction: column; gap: 20px; align-items: flex-start; }
    .main-nav a { font-size: 1.1rem; }

    .hero { padding: 140px 0 80px; }

    .section { padding: 60px 0; }

    .counter-number { font-size: 2.2rem; }

    .breadcrumb-nav { margin-top: 62px; }

    .whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-lg { width: 100%; }
}
