/* ============================================
   Espelhar TV Gratis - Estilos
   ============================================ */

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

/* Variaveis */
:root {
    --primary: #1A237E;
    --primary-light: #283593;
    --primary-dark: #0D1442;
    --accent: #64B5F6;
    --accent-hover: #42A5F5;
    --text: #ffffff;
    --text-muted: #B0BEC5;
    --bg-dark: #0D1442;
    --bg-card: #1a1a3e;
    --bg-card-hover: #222255;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: rgba(13, 20, 66, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 181, 246, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

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

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition);
}

nav a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a237e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(100, 181, 246, 0.08) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, 5%); }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.highlight {
    color: var(--accent);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

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

.btn-block {
    display: block;
    width: 100%;
}

.hero-note {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 20px;
    opacity: 0.7;
}

/* TV Frame (Hero visual) */
.hero-visual {
    flex: 0 0 320px;
}

.tv-frame {
    perspective: 800px;
}

.tv-screen {
    background: #0a0a1a;
    border-radius: 16px;
    padding: 10px;
    border: 3px solid #333;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 0 30px rgba(100, 181, 246, 0.05);
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.tv-screen:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.tv-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 100%;
    font-size: 40px;
}

.tv-arrow {
    font-size: 50px;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(10px); opacity: 0.6; }
}

.tv-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(100, 181, 246, 0.02) 2px,
        rgba(100, 181, 246, 0.02) 4px
    );
    pointer-events: none;
}

.tv-stand {
    width: 100px;
    height: 20px;
    background: #333;
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    position: relative;
}

.tv-stand::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 8px;
    background: #444;
    border-radius: 4px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text);
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 50px;
}

/* Steps */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    transition: all var(--transition);
    border: 1px solid rgba(100, 181, 246, 0.1);
}

.step:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin: 0 auto 15px;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-muted);
    font-size: 14px;
}

.step-connector {
    font-size: 30px;
    color: var(--accent);
    padding: 50px 15px 0;
    opacity: 0.5;
}

/* Download Cards */
.download-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.download-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 35px;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    border: 1px solid rgba(100, 181, 246, 0.1);
    transition: all var(--transition);
    position: relative;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.download-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a2a5e 100%);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.platform-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.download-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.version {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-bottom: 25px;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
}

.feature-list li::before {
    content: '✓ ';
    color: var(--accent);
    font-weight: bold;
}

.download-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 12px;
}

.requirements-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(100, 181, 246, 0.1);
}

.requirements-box h4 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.req-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.req-item {
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    font-size: 14px;
}

.req-item strong {
    color: var(--accent);
}

/* FAQ */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid rgba(100, 181, 246, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item:hover {
    border-color: rgba(100, 181, 246, 0.3);
}

.faq-question {
    width: 100%;
    padding: 18px 25px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
    transition: background var(--transition);
}

.faq-question::after {
    content: '+';
    font-size: 22px;
    color: var(--accent);
    transition: transform var(--transition);
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    background: rgba(0,0,0,0.2);
}

.faq-answer.open {
    max-height: 300px;
    padding: 18px 25px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid rgba(100, 181, 246, 0.1);
}

.privacy-content h2 {
    color: var(--accent);
    font-size: 22px;
    margin: 30px 0 15px;
}

.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.8;
}

.privacy-content ul {
    margin: 10px 0 20px 25px;
    color: var(--text-muted);
}

.privacy-content ul li {
    margin-bottom: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--primary-dark);
    border-top: 1px solid rgba(100, 181, 246, 0.1);
    padding: 40px 0;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand strong {
    font-size: 18px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact {
    text-align: right;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-contact p {
    margin-bottom: 3px;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-sub {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        flex: 0 0 auto;
        max-width: 250px;
    }

    .tv-screen {
        transform: none;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
        width: 100%;
    }

    .step-connector {
        padding: 10px 0;
        transform: rotate(90deg);
    }

    .download-cards {
        flex-direction: column;
        align-items: center;
    }

    .download-card {
        max-width: 100%;
        width: 100%;
    }

    .footer-flex {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 600px) {
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        padding: 20px;
        border-bottom: 1px solid rgba(100, 181, 246, 0.2);
    }

    nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .privacy-content {
        padding: 25px;
    }
}