/* ================= HERO LAB ================= */
.lab-hero {
    position: relative;
    padding: 160px 0 100px 0;
    background: #020c1b;
    overflow: hidden;
}

/* Grid de Fundo "Scanner" */
.scan-grid {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(242, 101, 34, 0.35) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(242, 100, 34, 0.236) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.hero-content-lab {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}

.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(242, 100, 34, 0.172); color: var(--color-accent);
    padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-family: monospace;
    border: 1px solid rgba(242, 100, 34, 0.661); margin-bottom: 20px;
}
.indicator-dot {
    width: 8px; height: 8px; background: var(--color-accent); border-radius: 50%;
    box-shadow: 0 0 5px var(--color-accent);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

.lab-stats {
    display: flex; gap: 40px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
}
.stat .num { display: block; font-size: 2rem; font-weight: 700; color: #fff; }
.stat .lbl { font-size: 0.8rem; color: #8892b0; text-transform: uppercase; }

/* --- OSCILOSCÓPIO (PURE CSS) --- */
.oscilloscope-visual {
    display: flex; justify-content: center; align-items: center;
}
.screen-frame {
    width: 100%; max-width: 450px; height: 300px;
    background: #111; border: 4px solid #333; border-radius: 10px;
    position: relative; box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.screen-glass {
    width: 100%; height: 100%;
    background: #000; overflow: hidden; position: relative;
    border-radius: 6px;
}
.grid-lines {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(242, 100, 34, 0.145) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(242, 100, 34, 0.107) 1px, transparent 1px);
    background-size: 40px 40px;
}
/* Linha de Sinal Animada */
.signal-line {
    position: absolute; top: 50%; left: 0; width: 100%; height: 2px;
    background: #0f0;
    box-shadow: 0 0 10px #0f0;
    /* Usando clip-path para fazer a onda */
    clip-path: polygon(0% 50%, 10% 50%, 15% 10%, 20% 90%, 25% 50%, 30% 50%, 35% 20%, 40% 80%, 45% 50%, 100% 50%);
    animation: signal-scan 2s linear infinite;
    transform: translateY(-50%);
}
@keyframes signal-scan {
    0% { width: 0; opacity: 1; }
    50% { width: 100%; opacity: 1; }
    90% { width: 100%; opacity: 0; }
    100% { width: 0; opacity: 0; }
}

.readout {
    position: absolute; top: 10px; right: 10px; text-align: right;
    font-family: monospace; color: #0f0; font-size: 0.8rem;
    text-shadow: 0 0 5px #0f0;
}
.readout span { display: block; }

/* Botões do aparelho */
.knob {
    position: absolute; width: 30px; height: 30px;
    background: #222; border-radius: 50%; border: 2px solid #444;
    box-shadow: 0 4px 5px rgba(0,0,0,0.5);
}
.k1 { bottom: -15px; left: 40px; }
.k2 { bottom: -15px; left: 80px; }

/* ================= WORKFLOW ================= */
.workflow-section { padding: 80px 0; background: var(--color-bg-secondary); }

.workflow-grid {
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: flex-start; gap: 20px; margin-top: 50px;
}

.flow-step { text-align: center; max-width: 200px; position: relative; }

.step-icon {
    width: 70px; height: 70px; background: rgba(242, 100, 34, 0.124);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    margin: 0 auto 20px auto; color: var(--color-accent);
    position: relative; transition: 0.3s;
    border: 1px solid rgba(242, 100, 34, 0.611);
}
.flow-step:hover .step-icon {
    background: var(--color-accent); color: #000; transform: scale(1.1);
}
.step-icon svg { width: 30px; height: 30px; }

.step-num {
    position: absolute; top: -5px; right: -5px;
    background: #020c1b; color: #fff; font-size: 0.7rem; font-weight: bold;
    width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--color-accent);
    display: flex; justify-content: center; align-items: center;
}

.flow-step h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.flow-step p { color: #8892b0; font-size: 0.9rem; line-height: 1.5; }

/* Linha conectora */
.flow-connector {
    height: 2px; background: rgba(255,255,255,0.1); width: 50px;
    margin-top: 35px; /* Alinha com o meio do ícone */
}

/* ================= TECH SPECS ================= */
.tech-specs-section { background: var(--color-bg-main); padding: 60px 0; }
.specs-box {
    background: #0b1016; border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; padding: 40px;
    display: flex; justify-content: space-between;
}
.spec-col h4 { color: #fff; margin-bottom: 10px; }
.spec-col p { color: #888; font-size: 0.9rem; }
.divider-v { width: 1px; background: rgba(255,255,255,0.1); height: auto; }

/* ================= FORMULARIO RMA ================= */
.rma-section { padding: 80px 0; background: var(--color-bg-secondary); }
.rma-wrapper { max-width: 600px; margin: 0 auto; }
.rma-header { text-align: center; margin-bottom: 40px; }
.rma-header h3 { font-size: 2rem; color: #fff; }

.tech-form {
    background: #112240a1; padding: 40px; border-radius: 12px;
    border: 1px solid rgba(242, 101, 34, 0.35);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group label { color: rgba(255, 255, 255, 0.771); font-size: 0.9rem; margin-bottom: 8px; }

.tech-form input, .tech-form textarea {
    background: #020c1b; border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 12px; border-radius: 6px; font-family: inherit;
}
.tech-form input:focus, .tech-form textarea:focus {
    outline: none; border-color: var(--color-accent);
}

.full-width { width: 100%; color: #fff;}


/* ============================================================
   RESPONSIVIDADE AVANÇADA: ASSISTÊNCIA TÉCNICA
   ============================================================ */

/* MENU HAMBURGUER (Obrigatório) */
.mobile-menu-trigger { display: none; }

@media (max-width: 1024px) {

    /* --- 1. CABEÇALHO --- */
    .header-cta { display: none !important; }
    
    .mobile-menu-trigger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px; height: 22px;
        cursor: pointer; z-index: 99999;
        margin-left: auto;
    }

    .mobile-menu-trigger .bar {
        width: 100%; height: 2px; 
        background: var(--color-accent) !important;
        transition: 0.3s;
    }
    
    .mobile-menu-trigger.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .mobile-menu-trigger.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-trigger.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* GAVETA DO MENU */
    .main-nav {
        position: fixed; top: 0; right: -100%;
        width: 85%; height: 100vh;
        background: #020610;
        border-left: 2px solid var(--color-accent);
        padding: 100px 20px;
        transition: 0.3s ease;
        display: flex !important; flex-direction: column;
        z-index: 9999;
    }
    .main-nav.menu-open { right: 0; }
    .nav-list { flex-direction: column; width: 100%; gap: 0; }
    .nav-link { display: block; padding: 15px 0; border-bottom: 1px solid #333; width: 100%; font-size: 1.1rem; }
    .dropdown-menu { display: none; background: #000; padding-left: 20px; }
    .dropdown-item.active-mobile .dropdown-menu { display: block; }


    /* --- 2. HERO SECTION (Laboratório) --- */
    .lab-hero {
        padding: 130px 0 60px 0 !important;
        height: auto !important;
    }

    .hero-content-lab {
        grid-template-columns: 1fr !important; /* Empilha */
        gap: 40px !important;
        text-align: center !important;
    }

    /* Redução de Título para telas pequenas */
    .hero-text-lab h1 {
        font-size: 2.2rem !important; /* Reduzido de tamanho gigante */
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    .hero-text-lab p {
        font-size: 0.95rem !important;
        padding: 0 10px !important;
    }

    .lab-stats {
        justify-content: center !important;
        gap: 30px !important;
    }

    /* Osciloscópio Responsivo */
    .oscilloscope-visual {
        transform: scale(0.9); /* Reduz um pouco */
        margin-bottom: -20px;
    }
    .screen-frame { width: 100% !important; height: 220px !important; }


    /* --- 3. WORKFLOW (RMA) - A MUDANÇA CRÍTICA --- */
    /* Transforma o grid horizontal em pilha vertical */
    .workflow-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
        margin-top: 30px !important;
    }

    /* Esconde as linhas conectoras horizontais */
    .flow-connector { display: none !important; }

    .flow-step {
        max-width: 100% !important;
        padding: 0 20px !important;
    }

    /* Adiciona uma seta para baixo entre os passos para indicar fluxo */
    .flow-step::after {
        content: '↓';
        display: block;
        font-size: 1.5rem;
        color: rgba(255,255,255,0.1);
        margin-top: 20px;
    }
    .flow-step:last-child::after { display: none; } /* Remove do último */


    /* --- 4. TECH SPECS (Caixas Técnicas) --- */
    .specs-box {
        flex-direction: column !important;
        gap: 30px !important;
        padding: 30px 20px !important;
        text-align: center !important;
    }

    /* Transforma o divisor vertical em horizontal */
    .divider-v {
        width: 100% !important;
        height: 1px !important;
        background: rgba(255,255,255,0.1) !important;
    }


    /* --- 5. FORMULÁRIO RMA --- */
    .rma-section { padding: 50px 0 !important; }
    
    .rma-header h3 { font-size: 1.8rem !important; } /* Título menor */

    .tech-form {
        padding: 25px !important; /* Menos padding */
    }

    .form-row {
        grid-template-columns: 1fr !important; /* Inputs um embaixo do outro */
        gap: 15px !important;
        margin-bottom: 15px !important;
    }

    .form-group { margin-bottom: 15px !important; }
    
    /* Botão de Enviar Full */
    .tech-form .btn {
        width: 100% !important;
        padding: 15px !important;
        font-size: 1rem !important;
    }
}

/* --- AJUSTE FINO PARA 320px --- */
@media (max-width: 360px) {
    .hero-text-lab h1 { font-size: 1.8rem !important; }
    .stat .num { font-size: 1.5rem !important; }
    .rma-header h3 { font-size: 1.5rem !important; }
}