/* ==========================================================================
   MonitorCert - Arché Solutions | Folha de Estilos Customizados
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    --bg-dark: #030712;
    --bg-card: rgba(15, 23, 42, 0.75);
    --border-card: rgba(51, 65, 85, 0.7);
    --primary-indigo: #6366f1;
    --primary-sky: #0284c7;
    --accent-cyan: #38bdf8;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: #f8fafc;
    overflow-x: hidden;
}

::selection {
    background: #38bdf8;
    color: #0f172a;
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0f19;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
    border: 2px solid #0b0f19;
}

::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
}

/* ==========================================================================
   Efeitos de Fundo & Grade Futurista
   ========================================================================== */
.cyber-grid-bg {
    background-size: 48px 48px;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
}

.radial-glow-cyan {
    background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.14), transparent 70%);
}

.radial-glow-indigo {
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.16), transparent 70%);
}

.radial-glow-rose {
    background: radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.12), transparent 70%);
}

/* ==========================================================================
   Glassmorphism & Bordas Glow
   ========================================================================== */
.glass-panel {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.14);
}

.glass-panel-hover {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 35px -10px rgba(56, 189, 248, 0.12), 0 0 20px rgba(99, 102, 241, 0.15);
}

.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(99, 102, 241, 0.4), transparent 70%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.glow-border:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Animações de Radar e Pulso
   ========================================================================== */
@keyframes radarSweep {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.radar-scanner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg 270deg, rgba(56, 189, 248, 0.3) 360deg);
    animation: radarSweep 4s linear infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: floatBadge 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatBadge 4.5s ease-in-out 1.5s infinite;
}

/* ==========================================================================
   Gradientes de Texto & Botões
   ========================================================================== */
.text-gradient-cyan {
    background: linear-gradient(135deg, #ffffff 10%, #7dd3fc 60%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-indigo {
    background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-rose {
    background: linear-gradient(135deg, #fda4af 0%, #fb7185 50%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition: all 0.25s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #0369a1 100%);
    box-shadow: 0 14px 30px -5px rgba(56, 189, 248, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.btn-gradient-secondary {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.btn-gradient-secondary:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
    transform: translateY(-2px);
}

/* ==========================================================================
   Badge de Status em Tempo Real
   ========================================================================== */
.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   Canvas de Partículas
   ========================================================================== */
#cyberCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   Accordion do FAQ
   ========================================================================== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    transition: max-height 0.45s cubic-bezier(1, 0, 1, 0), padding 0.35s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #38bdf8;
}

/* ==========================================================================
   Simulador de 1-Clique & Toggle Switch
   ========================================================================== */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #f8fafc;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: #0284c7;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.6);
}

input:checked + .switch-slider:before {
    transform: translateX(24px);
    background-color: #ffffff;
}

/* ==========================================================================
   Live Audit Terminal Console
   ========================================================================== */
.audit-terminal {
    background: #090d16;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.log-entry-new {
    animation: fadeInLog 0.4s ease-out forwards;
}

@keyframes fadeInLog {
    from {
        opacity: 0;
        transform: translateX(-10px);
        background-color: rgba(56, 189, 248, 0.15);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        background-color: transparent;
    }
}

/* ==========================================================================
   Toast Alert Flutuante
   ========================================================================== */
.toast-feedback {
    animation: slideInToast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
