/* CONFIGURAÇÕES GERAIS */
:root {
    --bg-main: #0a0a0f;
    --bg-sec: #12121a;
    --bg-card: #1a1a26;
    
    --primary: #6366f1;
    --primary-light: #818cf8;
    --accent: #22d3ee;
    --accent-pink: #ec4899;
    --success: #10b981;
    
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #22d3ee 100%);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    --gradient-text: linear-gradient(90deg, #22d3ee, #6366f1, #ec4899);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
ul { list-style: none; }

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

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 50px;
}

section {
    padding: 80px 0;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon img { height: 32px; }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-gray);
    transition: 0.3s;
    font-weight: 500;
}

.nav-links a:hover { color: var(--text-white); }

.btn-login {
    background: #5865F2;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-login:hover { background: #4752c4; }

/* HERO */
.hero {
    position: relative;
    padding-top: 140px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    padding-left: 5%;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-tagline {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat i { color: var(--accent); }

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

.btn-cta {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-cta.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-cta.primary:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4); }

.btn-cta.outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.1);
    color: white;
}

.btn-cta.outline:hover { border-color: var(--text-white); }

.hero-visual {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    mask-image: linear-gradient(to right, transparent, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
}

.hero-img { width: 100%; height: 100%; object-fit: cover; }

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
    width: 8px; height: 8px; background: var(--success); border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* HARDWARE GRID */
.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.hw-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.hw-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.icon-box {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.hw-card h3 { margin-bottom: 10px; }
.hw-card p { color: var(--text-gray); font-size: 0.9rem; line-height: 1.6; }

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.price-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    position: relative;
    transition: 0.3s;
}

.price-card.featured {
    background: var(--gradient-card);
    border: 1px solid var(--primary);
    transform: scale(1.05);
}

.tag-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-header { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }

.price { font-size: 3rem; font-weight: 800; margin-bottom: 30px; }
.price small { font-size: 1rem; color: var(--text-gray); font-weight: 400; }

.btn-price {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-weight: 700;
    transition: 0.3s;
}

.btn-price:hover { background: white; color: black; }
.featured .btn-price { background: var(--primary); }
.featured .btn-price:hover { background: var(--primary-light); color: white; }

/* SLIDER */
.custom-slider-box {
    background: var(--bg-sec);
    padding: 40px;
    border-radius: 24px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.custom-slider-box h3 { margin-bottom: 30px; }

.slider-wrapper { margin-bottom: 30px; padding: 0 20px; }

input[type=range] {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.slider-result {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* FAQ */
details {
    background: var(--bg-card);
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); }
details[open] summary::after { content: '-'; }

details p { padding: 0 20px 20px; color: var(--text-gray); line-height: 1.6; }

/* FOOTER */
footer {
    background: var(--bg-sec);
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

/* TESTIMONIALS */
.testimonial-container { display: flex; justify-content: center; }
.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    border: 1px solid rgba(255,255,255,0.05);
}

.testimonial-image { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 15px; border: 2px solid var(--primary); }
.stars { color: #fbbf24; margin-bottom: 15px; }
.testimonial-text { font-style: italic; margin-bottom: 20px; }
.testimonial-author { font-weight: 700; color: var(--primary-light); }

/* ========================================= */
/* MODAL / POPUP PIX (ESTILO NOVO) */
/* ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none; /* JS vai mudar para flex */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #15151e;
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 2px solid #00d4ff;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.2);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.2s;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.2); }

.modal-header i { font-size: 2.5rem; margin-bottom: 10px; color: var(--accent); }
.modal-header h3 { font-size: 1.5rem; margin-bottom: 5px; }
.modal-header p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 20px; }

/* CORREÇÃO DO TAMANHO DO QR CODE */
.qr-container-box {
    background: white;
    padding: 15px;
    border-radius: 16px;
    width: 220px; /* Tamanho fixo do container */
    height: 220px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-container-box img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    object-fit: contain;
}

/* Área de Copia e Cola */
.modal-copy-area { text-align: left; margin-bottom: 20px; }
.modal-copy-area label { display: block; font-size: 0.8rem; color: var(--text-gray); margin-bottom: 8px; }

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--accent);
    font-family: monospace;
    outline: none;
}

.input-group button {
    background: var(--accent);
    color: #000;
    width: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.2s;
}

.input-group button:hover { background: white; }

.modal-footer-msg {
    font-size: 0.85rem;
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    padding: 10px;
    border-radius: 8px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .hero { flex-direction: column; padding-top: 100px; text-align: center; }
    .hero-content { padding: 0 20px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .hero-buttons { justify-content: center; }
    .hero-visual { position: relative; width: 100%; height: 300px; margin-top: 50px; mask-image: none; }
    .navbar { padding: 15px 20px; }
    .nav-links { display: none; } /* Adicionar menu mobile se necessário */
}