/* Estética Institucional & Animações do Terminal Vivo */
.bg-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}
.scan-layer {
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3) 51%);
    background-size: 100% 4px;
    z-index: 2;
    opacity: 0.2;
    pointer-events: none;
}

/* Ocultar ruído SVG no mobile para salvar performance (GPU) */
@media (min-width: 768px) {
    .noise-layer {
        mix-blend-mode: overlay;
        opacity: 0.12;
        z-index: 1;
        filter: url(#noiseFilter);
    }
}
@media (max-width: 767px) {
    .noise-layer {
        display: none !important;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    will-change: opacity, transform;
}

/* Animações de Vida do Terminal */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.animate-blink { animation: blink 2s infinite; will-change: opacity; }

@keyframes dataUpdate { 0%, 100% { color: #94a3b8; } 50% { color: #fff; } }
.animate-data-update { animation: dataUpdate 4s infinite; }

@keyframes scrollTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-scroll { display: flex; animation: scrollTicker 30s linear infinite; will-change: transform; }

/* Lock Pulse para Free vs Prata */
@keyframes lockPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.lock-pulse { animation: lockPulse 2s ease-in-out infinite; will-change: opacity; }

/* Performance: Content Visibility para rolagem pesada */
.lazy-section {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

/* Acessibilidade: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .ticker-scroll {
        animation: none !important;
    }
}
