/* ============================================
   ANIMAÇÃO MODELO J - HERO SECTION
   A Jornada da Coleta à Lucratividade
   VERSÃO OTIMIZADA - Tamanhos maiores e legíveis
   ============================================ */

/* Container da animação - TAMANHO AUMENTADO */
.hero-animation-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 520px;
}

/* Fábrica animada */
.factory-animation {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, rgba(0, 28, 113, 0.2) 0%, rgba(0, 28, 113, 0.4) 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 196, 179, 0.2);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s ease;
}

.factory-animation.visible {
    opacity: 1;
    transform: scale(1);
}

/* Header da fábrica */
.factory-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 18px;
    background: linear-gradient(90deg, rgba(0, 28, 113, 0.9), rgba(0, 48, 135, 0.9));
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 196, 179, 0.3);
}

.factory-header img {
    height: 26px;
}

.factory-header .status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #28A745;
}

.factory-header .status .dot {
    width: 8px;
    height: 8px;
    background: #28A745;
    border-radius: 50%;
    animation: factoryPulse 1.5s ease-in-out infinite;
}

@keyframes factoryPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Monitores superiores - TAMANHOS AUMENTADOS */
.monitors-area {
    position: absolute;
    top: 55px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.monitor {
    flex: 1;
    height: 100px;
    background: #000;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.5s ease;
}

.monitor.receiving-data {
    border-color: #00C4B3;
    box-shadow: 0 0 15px rgba(0, 196, 179, 0.5);
}

.monitor.alert {
    border-color: #FFC107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.monitor .header {
    background: linear-gradient(90deg, #001C71, #003087);
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.monitor .header .logo img {
    height: 12px;
}

.monitor .header .title {
    font-size: 0.6rem;
    color: #00C4B3;
}

.monitor .header .live {
    font-size: 0.5rem;
    color: #28A745;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.monitor .header .live.active {
    opacity: 1;
}

.monitor .header .live .dot {
    width: 5px;
    height: 5px;
    background: #28A745;
    border-radius: 50%;
}

.monitor .content {
    padding: 8px;
    background: linear-gradient(180deg, #0a1628, #0d1a30);
    height: calc(100% - 26px);
}

.monitor .metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    background: rgba(0, 196, 179, 0.1);
    border-radius: 4px;
    margin-bottom: 4px;
    border-left: 2px solid #00C4B3;
    transition: all 0.3s ease;
}

.monitor .metric-row.updating {
    background: rgba(0, 196, 179, 0.3);
}

.monitor .metric-row.alert {
    border-left-color: #FFC107;
    background: rgba(255, 193, 7, 0.2);
}

.monitor .metric-row .label {
    font-size: 0.55rem;
    color: #B0B0B0;
}

.monitor .metric-row .value {
    font-size: 0.6rem;
    font-weight: 700;
    color: #00C4B3;
    transition: all 0.3s ease;
}

.monitor .metric-row.updating .value {
    color: #fff;
}

.monitor .metric-row.alert .value {
    color: #FFC107;
}

/* Container dos dispositivos móveis - TAMANHOS AUMENTADOS */
.mobile-devices {
    position: absolute;
    top: 165px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 12px;
    z-index: 5;
}

/* Dispositivo base */
.device {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(10px);
    animation: deviceAppear 0.5s ease forwards;
}

.device:nth-child(1) { animation-delay: 0.1s; }
.device:nth-child(2) { animation-delay: 0.2s; }
.device:nth-child(3) { animation-delay: 0.3s; }

@keyframes deviceAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.device-label {
    font-size: 0.55rem;
    color: #B0B0B0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tablet - TAMANHO AUMENTADO */
.device.tablet .device-frame {
    width: 120px;
    height: 85px;
    background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
    border: 2px solid #333;
    border-radius: 8px;
}

.device.tablet .device-screen {
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    margin: 5px;
    background: linear-gradient(180deg, #0a1628, #0d1a30);
    border-radius: 4px;
    overflow: hidden;
}

/* Smartphone - TAMANHO AUMENTADO */
.device.smartphone .device-frame {
    width: 55px;
    height: 100px;
    background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
    border: 2px solid #333;
    border-radius: 12px;
}

.device.smartphone .device-notch {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 5px;
    background: #000;
    border-radius: 3px;
    z-index: 2;
}

.device.smartphone .device-screen {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    margin: 3px;
    background: linear-gradient(180deg, #0a1628, #0d1a30);
    border-radius: 10px;
    overflow: hidden;
}

/* Header do dispositivo */
.device-header {
    padding: 5px 8px;
    background: linear-gradient(90deg, #001C71, #003087);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 196, 179, 0.3);
}

.device-logo {
    height: 10px;
}

.device-status {
    font-size: 0.45rem;
    color: #28A745;
    display: flex;
    align-items: center;
    gap: 3px;
}

.device-status .dot {
    width: 4px;
    height: 4px;
    background: #28A745;
    border-radius: 50%;
}

/* Conteúdo do dispositivo */
.device-content {
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: calc(100% - 28px);
}

/* Métrica do dispositivo */
.device-metric {
    background: rgba(0, 196, 179, 0.1);
    border-radius: 4px;
    padding: 4px 6px;
    border-left: 2px solid #00C4B3;
}

.device-metric .metric-label {
    font-size: 0.4rem;
    color: #B0B0B0;
    margin-bottom: 2px;
}

.device-metric .metric-value {
    font-size: 0.7rem;
    font-weight: 700;
    color: #00C4B3;
    transition: all 0.3s ease;
}

.device-metric .metric-value.updating {
    color: #fff;
}

/* Gráfico no tablet */
.device-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 25px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.device-chart .chart-bar {
    width: 6px;
    background: rgba(0, 196, 179, 0.3);
    border-radius: 2px;
    transition: all 0.5s ease;
}

.device-chart .chart-bar:nth-child(1) { height: 40%; }
.device-chart .chart-bar:nth-child(2) { height: 60%; }
.device-chart .chart-bar:nth-child(3) { height: 80%; }
.device-chart .chart-bar:nth-child(4) { height: 50%; }
.device-chart .chart-bar:nth-child(5) { height: 70%; }

.device-chart .chart-bar.active {
    background: #00C4B3;
}

/* Alerta no smartphone */
.device-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    background: rgba(40, 167, 69, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.device-alert i {
    font-size: 0.8rem;
    color: #28A745;
}

.device-alert span {
    font-size: 0.45rem;
    color: #28A745;
}

.device-alert.warning {
    background: rgba(255, 193, 7, 0.2);
}

.device-alert.warning i,
.device-alert.warning span {
    color: #FFC107;
}

/* Linha de produção - TAMANHOS AUMENTADOS */
.production-line {
    position: absolute;
    bottom: 80px;
    left: 18px;
    right: 18px;
    height: 145px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

/* Estação de trabalho */
.workstation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.workstation .machine {
    width: 85px;
    height: 95px;
    background: linear-gradient(180deg, #1a2a4a, #0d1a30);
    border: 2px solid rgba(0, 196, 179, 0.4);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.workstation .machine .status-light {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28A745;
    transition: all 0.3s ease;
    animation: factoryPulse 1.5s ease-in-out infinite;
}

.workstation .machine .status-light.warning {
    background: #FFC107;
    box-shadow: 0 0 10px #FFC107;
}

.workstation .machine .status-light.ok {
    background: #28A745;
    box-shadow: 0 0 10px #28A745;
}

.workstation .machine .gear {
    font-size: 1.6rem;
    color: rgba(0, 196, 179, 0.6);
    animation: gearRotate 4s linear infinite;
}

@keyframes gearRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.workstation .machine .name {
    font-size: 0.55rem;
    color: #B0B0B0;
    margin-top: 5px;
}

/* Coletor - TAMANHO AUMENTADO */
.workstation .collector {
    width: 58px;
    height: 38px;
    background: linear-gradient(180deg, #0d1a30, #001C71);
    border: 2px solid #00C4B3;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px;
    transition: all 0.3s ease;
}

.workstation .collector.collecting {
    box-shadow: 0 0 15px rgba(0, 196, 179, 0.6);
    border-color: #00C4B3;
}

.workstation .collector .logo {
    width: 45px;
    height: 11px;
    background: url('efact-logo-white-full.png') center/contain no-repeat;
}

.workstation .collector .data {
    font-size: 0.42rem;
    color: #00C4B3;
    margin-top: 2px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.workstation .collector.collecting .data {
    opacity: 1;
    animation: dataFlicker 0.3s ease-in-out infinite alternate;
}

@keyframes dataFlicker {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

/* Setas de fluxo entre estações */
.flow-arrows {
    position: absolute;
    bottom: 130px;
    left: 110px;
    right: 110px;
    display: flex;
    justify-content: space-between;
}

.flow-arrow {
    font-size: 1.2rem;
    color: #00C4B3;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.flow-arrow.active {
    opacity: 1;
    animation: arrowPulse 0.8s ease-in-out infinite;
}

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

/* Barra de resultado - TAMANHOS AUMENTADOS */
.result-bar {
    position: absolute;
    bottom: 15px;
    left: 18px;
    right: 18px;
    padding: 10px 18px;
    background: linear-gradient(90deg, rgba(0, 196, 179, 0.1), rgba(0, 196, 179, 0.05));
    border: 1px solid rgba(0, 196, 179, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-item {
    text-align: center;
    flex: 1;
    position: relative;
    transition: all 0.5s ease;
}

.result-item .icon {
    font-size: 1.1rem;
    color: rgba(0, 196, 179, 0.5);
    margin-bottom: 3px;
    transition: all 0.5s ease;
}

.result-item.active .icon {
    color: #00C4B3;
    text-shadow: 0 0 10px #00C4B3;
    transform: scale(1.2);
}

.result-item.profit-active .icon {
    color: #FFD700;
    text-shadow: 0 0 20px #FFD700;
    transform: scale(1.3);
}

.result-item .label {
    font-size: 0.55rem;
    color: #B0B0B0;
    transition: all 0.3s ease;
}

.result-item.active .label {
    color: #00C4B3;
}

.result-item.profit-active .label {
    color: #FFD700;
}

.result-item .value {
    font-size: 0.65rem;
    font-weight: 700;
    color: #00C4B3;
    transition: all 0.3s ease;
}

.result-item.profit-active .value {
    color: #FFD700;
}

/* Setas entre itens de resultado */
.result-arrow {
    font-size: 1rem;
    color: rgba(0, 196, 179, 0.3);
    transition: all 0.3s ease;
}

.result-arrow.active {
    color: #00C4B3;
    animation: arrowPulse 0.5s ease-in-out infinite;
}

.result-arrow.profit-active {
    color: #FFD700;
}

/* Efeito de onda dourada */
.golden-wave {
    position: absolute;
    bottom: 15px;
    left: 18px;
    right: 18px;
    height: 55px;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
    pointer-events: none;
}

.golden-wave.active {
    opacity: 1;
    transform: scale(1);
    animation: waveExpand 1s ease-out;
}

@keyframes waveExpand {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; }
    100% { opacity: 0.5; transform: scale(1.1); }
}

/* Ícones de lucro flutuantes */
.profit-icons {
    position: absolute;
    bottom: 35px;
    left: 0;
    right: 0;
    pointer-events: none;
}

.profit-icon {
    position: absolute;
    font-size: 1rem;
    color: #FFD700;
    opacity: 0;
    transition: all 0.5s ease;
}

.profit-icon.visible {
    opacity: 1;
    animation: floatUp 1.5s ease-out forwards;
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-30px); opacity: 0; }
}

/* Alerta visual */
.alert-icon {
    position: absolute;
    font-size: 1.4rem;
    color: #FFC107;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.alert-icon.visible {
    opacity: 1;
    transform: scale(1);
    animation: alertPulse 0.5s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Highlight de lucro no título */
.hero-highlight.glow {
    text-shadow: 0 0 20px #FFD700, 0 0 40px #FFD700;
    color: #FFD700 !important;
}

/* Controle de áudio */
.audio-control {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 28, 113, 0.95);
    padding: 12px 18px;
    border-radius: 50px;
    border: 1px solid rgba(0, 196, 179, 0.3);
    backdrop-filter: blur(10px);
}

.audio-control button {
    background: transparent;
    border: none;
    color: #00C4B3;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.audio-control button:hover {
    color: #fff;
    transform: scale(1.1);
}

.audio-control button:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.audio-control .progress {
    width: 110px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    min-height: 20px;
    display: flex;
    align-items: center;
}

.audio-control .progress-bar {
    height: 5px;
    background: #00C4B3;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 3px;
}

/* Linhas de conexão dos dispositivos */
.mobile-devices::before {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 196, 179, 0.5), transparent);
}

/* Animação de dados fluindo para dispositivos */
.device.receiving-data .device-frame {
    border-color: #00C4B3;
    box-shadow: 0 4px 20px rgba(0, 196, 179, 0.4);
}

/* ============================================
   RESPONSIVIDADE - BREAKPOINTS OTIMIZADOS
   ============================================ */

/* Desktop grande (1200px+) - Tamanho completo */
@media (min-width: 1200px) {
    .hero-animation-container {
        max-width: 700px;
        height: 520px;
    }
}

/* Desktop médio (992px - 1200px) */
@media (max-width: 1200px) {
    .hero-animation-container {
        max-width: 600px;
        height: 480px;
    }
    
    .monitor {
        height: 90px;
    }
    
    .device.tablet .device-frame {
        width: 110px;
        height: 78px;
    }
    
    .device.smartphone .device-frame {
        width: 50px;
        height: 92px;
    }
    
    .workstation .machine {
        width: 78px;
        height: 88px;
    }
    
    .workstation .collector {
        width: 52px;
        height: 34px;
    }
}

/* Tablet Landscape (768px - 992px) */
@media (max-width: 992px) {
    .hero-animation-container {
        max-width: 100%;
        height: 450px;
        margin: 2rem auto 0;
    }
    
    .factory-animation {
        border-radius: 16px;
    }
    
    .factory-header {
        padding: 10px 15px;
    }
    
    .factory-header img {
        height: 22px;
    }
    
    .monitors-area {
        top: 50px;
        left: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .monitor {
        height: 85px;
    }
    
    .monitor .header {
        padding: 4px 8px;
    }
    
    .monitor .header .logo img {
        height: 10px;
    }
    
    .monitor .header .title {
        font-size: 0.55rem;
    }
    
    .monitor .metric-row {
        padding: 3px 5px;
        margin-bottom: 3px;
    }
    
    .monitor .metric-row .label {
        font-size: 0.5rem;
    }
    
    .monitor .metric-row .value {
        font-size: 0.55rem;
    }
    
    .mobile-devices {
        top: 140px;
        left: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .device.tablet .device-frame {
        width: 100px;
        height: 70px;
    }
    
    .device.smartphone .device-frame {
        width: 45px;
        height: 82px;
    }
    
    .production-line {
        bottom: 70px;
        left: 15px;
        right: 15px;
        height: 130px;
        gap: 8px;
    }
    
    .workstation .machine {
        width: 70px;
        height: 78px;
    }
    
    .workstation .machine .gear {
        font-size: 1.4rem;
    }
    
    .workstation .machine .name {
        font-size: 0.5rem;
    }
    
    .workstation .collector {
        width: 48px;
        height: 32px;
    }
    
    .workstation .collector .logo {
        width: 38px;
        height: 9px;
    }
    
    .workstation .collector .data {
        font-size: 0.38rem;
    }
    
    .result-bar {
        bottom: 12px;
        left: 15px;
        right: 15px;
        padding: 8px 15px;
    }
    
    .result-item .icon {
        font-size: 1rem;
    }
    
    .result-item .label {
        font-size: 0.5rem;
    }
    
    .result-item .value {
        font-size: 0.6rem;
    }
    
    .result-arrow {
        font-size: 0.9rem;
    }
    
    .audio-control {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }
    
    .audio-control button {
        font-size: 1.2rem;
    }
    
    .audio-control .progress {
        width: 90px;
    }
}

/* Tablet Portrait (576px - 768px) */
@media (max-width: 768px) {
    .hero-animation-container {
        height: 420px;
        margin: 1.5rem auto 0;
    }
    
    .factory-animation {
        border-radius: 14px;
    }
    
    .factory-header {
        padding: 8px 12px;
    }
    
    .factory-header img {
        height: 20px;
    }
    
    .factory-header .status {
        font-size: 0.65rem;
    }
    
    .factory-header .status .dot {
        width: 6px;
        height: 6px;
    }
    
    .monitors-area {
        top: 45px;
        left: 12px;
        right: 12px;
        gap: 8px;
    }
    
    .monitor {
        height: 78px;
        border-radius: 6px;
    }
    
    .monitor .header {
        padding: 3px 6px;
    }
    
    .monitor .header .logo img {
        height: 9px;
    }
    
    .monitor .header .title {
        font-size: 0.5rem;
    }
    
    .monitor .header .live {
        font-size: 0.4rem;
    }
    
    .monitor .header .live .dot {
        width: 4px;
        height: 4px;
    }
    
    .monitor .content {
        padding: 6px;
    }
    
    .monitor .metric-row {
        padding: 3px 4px;
        margin-bottom: 2px;
    }
    
    .monitor .metric-row .label {
        font-size: 0.45rem;
    }
    
    .monitor .metric-row .value {
        font-size: 0.5rem;
    }
    
    .mobile-devices {
        top: 128px;
        left: 12px;
        right: 12px;
        gap: 8px;
    }
    
    .device-label {
        font-size: 0.5rem;
    }
    
    .device.tablet .device-frame {
        width: 88px;
        height: 62px;
        border-radius: 6px;
    }
    
    .device.tablet .device-screen {
        margin: 4px;
        border-radius: 3px;
    }
    
    .device.smartphone .device-frame {
        width: 40px;
        height: 72px;
        border-radius: 10px;
    }
    
    .device.smartphone .device-notch {
        width: 20px;
        height: 4px;
        top: 4px;
    }
    
    .device.smartphone .device-screen {
        margin: 2px;
        border-radius: 8px;
    }
    
    .device-header {
        padding: 4px 6px;
    }
    
    .device-logo {
        height: 8px;
    }
    
    .device-status {
        font-size: 0.4rem;
    }
    
    .device-status .dot {
        width: 3px;
        height: 3px;
    }
    
    .device-content {
        padding: 5px;
        gap: 3px;
    }
    
    .device-metric {
        padding: 3px 5px;
    }
    
    .device-metric .metric-label {
        font-size: 0.35rem;
    }
    
    .device-metric .metric-value {
        font-size: 0.6rem;
    }
    
    .device-chart {
        height: 20px;
        padding: 3px;
    }
    
    .device-chart .chart-bar {
        width: 5px;
    }
    
    .device-alert {
        padding: 3px;
        gap: 3px;
    }
    
    .device-alert i {
        font-size: 0.7rem;
    }
    
    .device-alert span {
        font-size: 0.4rem;
    }
    
    .production-line {
        bottom: 62px;
        left: 12px;
        right: 12px;
        height: 115px;
        gap: 6px;
    }
    
    .workstation .machine {
        width: 62px;
        height: 70px;
    }
    
    .workstation .machine .status-light {
        width: 8px;
        height: 8px;
        top: 4px;
        right: 4px;
    }
    
    .workstation .machine .gear {
        font-size: 1.2rem;
    }
    
    .workstation .machine .name {
        font-size: 0.45rem;
        margin-top: 3px;
    }
    
    .workstation .collector {
        width: 42px;
        height: 28px;
    }
    
    .workstation .collector .logo {
        width: 32px;
        height: 8px;
    }
    
    .workstation .collector .data {
        font-size: 0.32rem;
    }
    
    .flow-arrows {
        bottom: 110px;
        left: 90px;
        right: 90px;
    }
    
    .flow-arrow {
        font-size: 1rem;
    }
    
    .result-bar {
        bottom: 10px;
        left: 12px;
        right: 12px;
        padding: 7px 12px;
        border-radius: 10px;
    }
    
    .result-item .icon {
        font-size: 0.9rem;
    }
    
    .result-item .label {
        font-size: 0.45rem;
    }
    
    .result-item .value {
        font-size: 0.55rem;
    }
    
    .result-arrow {
        font-size: 0.8rem;
    }
    
    .golden-wave {
        bottom: 10px;
        left: 12px;
        right: 12px;
        height: 48px;
    }
    
    .profit-icons {
        bottom: 28px;
    }
    
    .profit-icon {
        font-size: 0.85rem;
    }
    
    .alert-icon {
        font-size: 1.2rem;
    }
    
    .audio-control {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        gap: 10px;
    }
    
    .audio-control button {
        font-size: 1.1rem;
    }
    
    .audio-control .progress {
        width: 75px;
    }
}

/* Mobile Grande (480px - 576px) */
@media (max-width: 576px) {
    .hero-animation-container {
        height: 380px;
        margin: 1rem auto 0;
    }
    
    .factory-animation {
        border-radius: 12px;
    }
    
    .factory-header {
        padding: 7px 10px;
    }
    
    .factory-header img {
        height: 18px;
    }
    
    .factory-header .status {
        font-size: 0.6rem;
    }
    
    .factory-header .status .dot {
        width: 5px;
        height: 5px;
    }
    
    .monitors-area {
        top: 40px;
        left: 10px;
        right: 10px;
        gap: 6px;
    }
    
    .monitor {
        height: 70px;
        border-radius: 5px;
    }
    
    .monitor .header {
        padding: 3px 5px;
    }
    
    .monitor .header .logo img {
        height: 8px;
    }
    
    .monitor .header .title {
        font-size: 0.45rem;
    }
    
    .monitor .header .live {
        font-size: 0.35rem;
    }
    
    .monitor .header .live .dot {
        width: 3px;
        height: 3px;
    }
    
    .monitor .content {
        padding: 5px;
        height: calc(100% - 20px);
    }
    
    .monitor .metric-row {
        padding: 2px 4px;
        margin-bottom: 2px;
    }
    
    .monitor .metric-row .label {
        font-size: 0.4rem;
    }
    
    .monitor .metric-row .value {
        font-size: 0.45rem;
    }
    
    .mobile-devices {
        top: 115px;
        left: 10px;
        right: 10px;
        gap: 6px;
    }
    
    .device-label {
        font-size: 0.45rem;
    }
    
    .device.tablet .device-frame {
        width: 75px;
        height: 54px;
        border-radius: 5px;
    }
    
    .device.tablet .device-screen {
        margin: 3px;
        border-radius: 2px;
    }
    
    .device.smartphone .device-frame {
        width: 34px;
        height: 62px;
        border-radius: 8px;
    }
    
    .device.smartphone .device-notch {
        width: 16px;
        height: 3px;
        top: 3px;
    }
    
    .device.smartphone .device-screen {
        margin: 2px;
        border-radius: 6px;
    }
    
    .device-header {
        padding: 3px 4px;
    }
    
    .device-logo {
        height: 7px;
    }
    
    .device-status {
        font-size: 0.35rem;
    }
    
    .device-status .dot {
        width: 3px;
        height: 3px;
    }
    
    .device-content {
        padding: 4px;
        gap: 2px;
    }
    
    .device-metric {
        padding: 2px 4px;
    }
    
    .device-metric .metric-label {
        font-size: 0.3rem;
    }
    
    .device-metric .metric-value {
        font-size: 0.5rem;
    }
    
    .device-chart {
        height: 16px;
        padding: 2px;
        gap: 2px;
    }
    
    .device-chart .chart-bar {
        width: 4px;
    }
    
    .device-alert {
        padding: 2px;
        gap: 2px;
    }
    
    .device-alert i {
        font-size: 0.6rem;
    }
    
    .device-alert span {
        font-size: 0.35rem;
    }
    
    .production-line {
        bottom: 55px;
        left: 10px;
        right: 10px;
        height: 100px;
        gap: 5px;
    }
    
    .workstation .machine {
        width: 54px;
        height: 60px;
    }
    
    .workstation .machine .status-light {
        width: 6px;
        height: 6px;
        top: 3px;
        right: 3px;
    }
    
    .workstation .machine .gear {
        font-size: 1rem;
    }
    
    .workstation .machine .name {
        font-size: 0.4rem;
        margin-top: 2px;
    }
    
    .workstation .collector {
        width: 36px;
        height: 24px;
    }
    
    .workstation .collector .logo {
        width: 28px;
        height: 7px;
    }
    
    .workstation .collector .data {
        font-size: 0.28rem;
    }
    
    .flow-arrows {
        bottom: 95px;
        left: 75px;
        right: 75px;
    }
    
    .flow-arrow {
        font-size: 0.85rem;
    }
    
    .result-bar {
        bottom: 8px;
        left: 10px;
        right: 10px;
        padding: 6px 10px;
        border-radius: 8px;
    }
    
    .result-item .icon {
        font-size: 0.8rem;
    }
    
    .result-item .label {
        font-size: 0.4rem;
    }
    
    .result-item .value {
        font-size: 0.5rem;
    }
    
    .result-arrow {
        font-size: 0.7rem;
    }
    
    .golden-wave {
        bottom: 8px;
        left: 10px;
        right: 10px;
        height: 42px;
    }
    
    .profit-icons {
        bottom: 24px;
    }
    
    .profit-icon {
        font-size: 0.75rem;
    }
    
    .alert-icon {
        font-size: 1rem;
    }
    
    .audio-control {
        bottom: 12px;
        right: 12px;
        padding: 8px 10px;
        gap: 8px;
    }
    
    .audio-control button {
        font-size: 1rem;
    }
    
    .audio-control .progress {
        width: 60px;
    }
}

/* Mobile Médio (375px - 480px) */
@media (max-width: 480px) {
    .hero-animation-container {
        height: 350px;
    }
    
    .factory-header {
        padding: 6px 8px;
    }
    
    .factory-header img {
        height: 16px;
    }
    
    .monitors-area {
        top: 36px;
        left: 8px;
        right: 8px;
        gap: 5px;
    }
    
    .monitor {
        height: 62px;
        border-radius: 4px;
    }
    
    .monitor .header {
        padding: 2px 4px;
    }
    
    .monitor .header .logo img {
        height: 7px;
    }
    
    .monitor .header .title {
        font-size: 0.4rem;
    }
    
    .monitor .content {
        padding: 4px;
        height: calc(100% - 18px);
    }
    
    .monitor .metric-row {
        padding: 2px 3px;
        margin-bottom: 1px;
    }
    
    .monitor .metric-row .label {
        font-size: 0.35rem;
    }
    
    .monitor .metric-row .value {
        font-size: 0.4rem;
    }
    
    .mobile-devices {
        top: 102px;
        left: 8px;
        right: 8px;
        gap: 5px;
    }
    
    .device-label {
        font-size: 0.4rem;
    }
    
    .device.tablet .device-frame {
        width: 65px;
        height: 46px;
        border-radius: 4px;
    }
    
    .device.smartphone .device-frame {
        width: 30px;
        height: 54px;
        border-radius: 7px;
    }
    
    .device.smartphone .device-notch {
        width: 14px;
        height: 2px;
    }
    
    .device-header {
        padding: 2px 3px;
    }
    
    .device-logo {
        height: 6px;
    }
    
    .device-metric .metric-value {
        font-size: 0.45rem;
    }
    
    .device-chart {
        height: 14px;
    }
    
    .device-chart .chart-bar {
        width: 3px;
    }
    
    .device-alert i {
        font-size: 0.5rem;
    }
    
    .device-alert span {
        font-size: 0.3rem;
    }
    
    .production-line {
        bottom: 48px;
        left: 8px;
        right: 8px;
        height: 88px;
        gap: 4px;
    }
    
    .workstation .machine {
        width: 48px;
        height: 52px;
    }
    
    .workstation .machine .gear {
        font-size: 0.9rem;
    }
    
    .workstation .machine .name {
        font-size: 0.35rem;
    }
    
    .workstation .collector {
        width: 32px;
        height: 20px;
    }
    
    .workstation .collector .logo {
        width: 24px;
        height: 6px;
    }
    
    .workstation .collector .data {
        font-size: 0.25rem;
    }
    
    .flow-arrows {
        bottom: 82px;
        left: 65px;
        right: 65px;
    }
    
    .flow-arrow {
        font-size: 0.75rem;
    }
    
    .result-bar {
        bottom: 6px;
        left: 8px;
        right: 8px;
        padding: 5px 8px;
        border-radius: 6px;
    }
    
    .result-item .icon {
        font-size: 0.7rem;
    }
    
    .result-item .label {
        font-size: 0.35rem;
    }
    
    .result-item .value {
        font-size: 0.45rem;
    }
    
    .result-arrow {
        font-size: 0.6rem;
    }
    
    .audio-control {
        bottom: 10px;
        right: 10px;
        padding: 6px 8px;
        gap: 6px;
    }
    
    .audio-control button {
        font-size: 0.9rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .audio-control .progress {
        width: 50px;
    }
}

/* Mobile Pequeno (320px - 375px) */
@media (max-width: 375px) {
    .hero-animation-container {
        height: 320px;
    }
    
    .factory-header {
        padding: 5px 6px;
    }
    
    .factory-header img {
        height: 14px;
    }
    
    .factory-header .status {
        font-size: 0.5rem;
    }
    
    .monitors-area {
        top: 32px;
        left: 6px;
        right: 6px;
        gap: 4px;
    }
    
    .monitor {
        height: 55px;
        border-radius: 3px;
    }
    
    .monitor .header {
        padding: 2px 3px;
    }
    
    .monitor .header .logo img {
        height: 6px;
    }
    
    .monitor .header .title {
        font-size: 0.35rem;
    }
    
    .monitor .content {
        padding: 3px;
        height: calc(100% - 16px);
    }
    
    .monitor .metric-row {
        padding: 1px 2px;
        margin-bottom: 1px;
    }
    
    .monitor .metric-row .label {
        font-size: 0.3rem;
    }
    
    .monitor .metric-row .value {
        font-size: 0.35rem;
    }
    
    .mobile-devices {
        top: 90px;
        left: 6px;
        right: 6px;
        gap: 4px;
    }
    
    .device-label {
        font-size: 0.35rem;
    }
    
    .device.tablet .device-frame {
        width: 55px;
        height: 40px;
        border-radius: 3px;
    }
    
    .device.smartphone .device-frame {
        width: 26px;
        height: 46px;
        border-radius: 6px;
    }
    
    .device-header {
        padding: 2px;
    }
    
    .device-logo {
        height: 5px;
    }
    
    .device-metric .metric-value {
        font-size: 0.4rem;
    }
    
    .device-chart {
        height: 12px;
    }
    
    .device-chart .chart-bar {
        width: 2px;
    }
    
    .production-line {
        bottom: 42px;
        left: 6px;
        right: 6px;
        height: 78px;
        gap: 3px;
    }
    
    .workstation .machine {
        width: 42px;
        height: 46px;
    }
    
    .workstation .machine .status-light {
        width: 5px;
        height: 5px;
    }
    
    .workstation .machine .gear {
        font-size: 0.8rem;
    }
    
    .workstation .machine .name {
        font-size: 0.3rem;
    }
    
    .workstation .collector {
        width: 28px;
        height: 18px;
    }
    
    .workstation .collector .logo {
        width: 20px;
        height: 5px;
    }
    
    .workstation .collector .data {
        font-size: 0.22rem;
    }
    
    .flow-arrows {
        bottom: 72px;
        left: 55px;
        right: 55px;
    }
    
    .flow-arrow {
        font-size: 0.65rem;
    }
    
    .result-bar {
        bottom: 5px;
        left: 6px;
        right: 6px;
        padding: 4px 6px;
        border-radius: 5px;
    }
    
    .result-item .icon {
        font-size: 0.6rem;
    }
    
    .result-item .label {
        font-size: 0.3rem;
    }
    
    .result-item .value {
        font-size: 0.4rem;
    }
    
    .result-arrow {
        font-size: 0.5rem;
    }
    
    .audio-control {
        bottom: 8px;
        right: 8px;
        padding: 5px 6px;
        gap: 5px;
    }
    
    .audio-control button {
        font-size: 0.85rem;
        min-width: 36px;
        min-height: 36px;
    }
    
    .audio-control .progress {
        width: 40px;
    }
}

/* Landscape mode para mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-animation-container {
        height: 280px;
        max-width: 450px;
    }
    
    .monitors-area {
        top: 30px;
        gap: 4px;
    }
    
    .monitor {
        height: 50px;
    }
    
    .mobile-devices {
        top: 82px;
    }
    
    .device.tablet .device-frame {
        width: 50px;
        height: 36px;
    }
    
    .device.smartphone .device-frame {
        width: 24px;
        height: 42px;
    }
    
    .production-line {
        bottom: 38px;
        height: 70px;
    }
    
    .workstation .machine {
        width: 38px;
        height: 42px;
    }
    
    .workstation .collector {
        width: 26px;
        height: 16px;
    }
    
    .result-bar {
        bottom: 4px;
        padding: 3px 5px;
    }
}

/* ============================================
   OTIMIZAÇÕES MOBILE PARA PERFORMANCE
   ============================================ */

/* Classe aplicada via JS em dispositivos mobile */
.factory-animation.mobile-optimized {
    box-shadow: none;
}

.factory-animation.mobile-optimized .monitor,
.factory-animation.mobile-optimized .device-frame,
.factory-animation.mobile-optimized .workstation .machine {
    box-shadow: none;
}

.factory-animation.mobile-optimized .monitor.receiving-data,
.factory-animation.mobile-optimized .device.receiving-data .device-frame {
    box-shadow: 0 0 8px rgba(0, 196, 179, 0.4);
}

/* Reduz animações pesadas em mobile */
@media (max-width: 576px) {
    .factory-animation.mobile-optimized .gear {
        animation-duration: 6s;
    }
    
    .factory-animation.mobile-optimized .profit-icon {
        animation-duration: 2s;
    }
    
    .factory-animation.mobile-optimized .golden-wave {
        animation-duration: 1.5s;
    }
}

/* Preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .factory-animation * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gear {
        animation: none !important;
    }
    
    .audio-control,
    .welcome-popup,
    .cookie-banner {
        transition: none !important;
    }
}

/* Melhora performance em mobile com will-change */
@media (max-width: 768px) {
    .factory-animation {
        will-change: transform, opacity;
    }
    
    .monitor,
    .device-frame,
    .workstation .machine,
    .workstation .collector {
        will-change: transform, box-shadow;
    }
    
    .result-item,
    .result-arrow {
        will-change: transform, color;
    }
}

/* Ajustes para iOS Safari */
@supports (-webkit-touch-callout: none) {
    .audio-control {
        position: fixed;
        transform: translateZ(0);
    }
    
    .audio-control button {
        touch-action: manipulation;
    }
}
