/* =========================================
   SETUP & VARIÁVEIS (ACL HIGH-END)
   ========================================= */
:root {
    --blue-primary: #0066FF;
    --blue-dark: #0047B3;
    --blue-glow: rgba(0, 102, 255, 0.5);
    --cyan-accent: #00E5FF;
    --bg-main: #0A0B0E;
    --bg-dark-2: #12141A;
    --bg-card: #1A1D26;
    --text-white: #FFFFFF;
    --text-muted: #AAB2BD;
    --font-tech: 'Chakra Petch', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VACINA GERAL */
html, body {
    width: 100%;
    overflow-x: hidden; /* Impede rolagem lateral indesejada */
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-body);
    scroll-behavior: smooth;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

ul { list-style: none; }

/* TIPOGRAFIA */
h1, h2, h3, h4, .logo, .btn {
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-white);
}

p { color: var(--text-muted); }

.blue-span {
    color: var(--blue-primary);
    text-shadow: 0 0 15px var(--blue-glow);
}

/* LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px; /* Padding padrão Desktop */
}

.section-padding { padding: 100px 0; }

/* GRIDS INTELIGENTES */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* BOTÕES */
.btn {
    padding: 16px 34px;
    font-weight: 600;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Garante texto no meio */
    gap: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    font-size: 0.9rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    color: var(--text-white);
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--blue-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--blue-primary);
    color: var(--blue-primary);
}

.btn-glow { box-shadow: 0 0 15px var(--blue-glow); }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* NAVBAR & LOGO */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 0; /* Reduzi levemente para mobile não ficar gigante */
    background: rgba(10, 11, 14, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Importante: impede que logo e menu grudem */
    gap: 20px; 
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap; /* Impede quebra de linha na logo */
}

.logo i, .logo span { color: var(--blue-primary); }

/* HERO SECTION */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg-main) 10%, rgba(0, 102, 255, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%; /* Garante que o container use o espaço */
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--blue-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid var(--blue-primary);
}

/* COMPONENTES GERAIS */
.bg-dark-2 { background-color: var(--bg-dark-2); }

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tech-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--blue-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--blue-primary);
}
.tech-card:hover::before { transform: scaleX(1); }

.icon-box {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-size: 1.8rem; color: #fff;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px var(--blue-glow);
}

/* CONFIGURADOR */
.configurator-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    box-shadow: 0 0 50px rgba(0, 102, 255, 0.1);
}

.progress-bar { display: flex; justify-content: space-between; margin-bottom: 40px; position: relative; }
.progress-bar::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: rgba(255, 255, 255, 0.1); z-index: 0; transform: translateY(-50%); }

.step {
    z-index: 1; background: var(--bg-card); padding: 5px 15px; border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px; color: var(--text-muted); font-weight: 600; font-family: var(--font-tech);
}
.step.active { border-color: var(--blue-primary); color: var(--blue-primary); box-shadow: 0 0 15px var(--blue-glow); background: var(--bg-main); }

.select-card {
    background: var(--bg-main); padding: 30px; text-align: center; border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px; cursor: pointer; transition: all 0.3s;
}
.select-card i { font-size: 3rem; color: var(--text-muted); margin-bottom: 20px; transition: 0.3s; }
.select-card:hover { border-color: rgba(0, 102, 255, 0.5); }
.select-card.selected { border-color: var(--blue-primary); box-shadow: 0 0 20px var(--blue-glow); background: rgba(0, 102, 255, 0.05); }
.select-card.selected i { color: var(--blue-primary); }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 10px; font-family: var(--font-tech); color: var(--blue-primary); font-size: 0.9rem; }
.input-group input { width: 100%; padding: 15px; background: var(--bg-main); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-white); border-radius: 4px; font-family: var(--font-body); font-size: 1.1rem; transition: 0.3s; }
.input-group input:focus { outline: none; border-color: var(--blue-primary); box-shadow: 0 0 10px var(--blue-glow); }

.result-content { text-align: center; padding: 30px 0; }
.success-icon { font-size: 5rem; color: var(--blue-primary); margin-bottom: 20px; text-shadow: 0 0 30px var(--blue-glow); }
.price-display { font-family: var(--font-tech); font-size: 4rem; color: var(--text-white); font-weight: 700; margin: 20px 0; }
.currency { font-size: 2rem; color: var(--blue-primary); }
.disclaimer { font-size: 0.85rem; max-width: 600px; margin: 0 auto 30px auto; opacity: 0.7; }
.btn-whatsapp { background: #25D366; border: none; color: white; }
.btn-link-tech { background: none; border: none; color: var(--text-muted); text-decoration: underline; cursor: pointer; margin-top: 20px; }

/* UTILS CONFIGURADOR */
.hidden-step { display: none; }
.active-step { display: block; animation: fadeUp 0.5s ease; }
.step-actions { margin-top: 30px; display: flex; gap: 20px; }
.align-right { justify-content: flex-end; }
.space-between { justify-content: space-between; }
.align-center { justify-content: center; }

/* FOOTER */
footer { background: var(--bg-dark-2); padding-top: 80px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-grid { padding-bottom: 60px; }
.footer-brand p { margin-top: 20px; }
.footer-links h4, .footer-contact h4 { color: var(--text-white); margin-bottom: 25px; font-size: 1.2rem; }
.footer-links li, .footer-contact li { margin-bottom: 15px; color: var(--text-muted); }
.footer-links a:hover { color: var(--blue-primary); padding-left: 5px; }
.footer-contact i { color: var(--blue-primary); margin-right: 10px; width: 20px; }
.copy-bar { background: var(--bg-main); padding: 20px 0; text-align: center; font-size: 0.9rem; color: #666; }

/* ANIMAÇÕES */
.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.fade-up { transform: translateY(50px); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   MEDIA QUERIES (AQUI ESTÁ A MÁGICA)
   ========================================= */

/* Desktop Only */
@media (min-width: 1025px) {
    .mob-toggle { display: none; }
    .btn-group { display: flex; gap: 20px; }
    .nav-links { display: flex; gap: 30px; align-items: center; }
}

/* Tablet & Mobile (Geral) */
@media (max-width: 1024px) {
    /* Ajustes Gerais */
    h1 { font-size: 2.5rem; text-align: center; }
    .desk-only { display: none !important; }
    
    /* Centralização forçada no mobile */
    .hero-content, .section-header, .footer-brand, .footer-contact, .tech-card, .footer-links {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Botões Full Width */
    .btn, .btn-group { width: 100%; display: flex; }
    .btn-group { flex-direction: column; gap: 15px; margin-top: 20px; }

    /* MENU HAMBURGUER */
    .mob-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 2000;
        color: var(--text-white);
        margin-left: auto; /* Empurra o ícone para a direita */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        background: rgba(10, 11, 14, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1500;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 1.5rem; font-family: var(--font-tech); text-transform: uppercase; letter-spacing: 2px; }
}

/* XIAOMI 13C / TELAS PEQUENAS (Ajuste Fino) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px; /* Menos padding lateral para caber mais conteúdo */
    }

    /* Logo menor para não bater no menu */
    .logo {
        font-size: 1.2rem; 
    }
    
    h1 {
        font-size: 2rem; /* Título menor */
    }

    /* Garante que o grid não quebre */
    .grid-3, .grid-2 {
        grid-template-columns: 1fr; /* Uma coluna só */
    }
    
    /* Configurador full width */
    .configurator-box {
        padding: 20px;
    }
    
    .price-display {
        font-size: 2.5rem; /* Preço cabe na tela */
    }
}