/* --- CONFIGURAÇÕES BASE & VARIÁVEIS --- */
:root {
    --primary-blue: #3A8DDE;
    --dark-blue: #1B3B6F;
    --deep-bg: #030712;
    --surface: #0f172a;
    --glass: rgba(255, 255, 255, 0.01);
    --border-white: rgba(255, 255, 255, 0.08);
}

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    color: #f8fafc;
    background-color: var(--deep-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- LAYOUT & SEÇÕES --- */
.hero {
    padding: 160px 0 150px;
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(58, 141, 222, 0.15), transparent),
                radial-gradient(circle at 90% 80%, rgba(27, 74, 145, 0.1), transparent);
    text-align: center;
}

.hero-content { position: relative; z-index: 2; }

section#servicos, section#legado, section#cases, section#cta { background-color: var(--deep-bg); }
section#ia { background-color: rgba(58, 141, 222, 0.03); position: relative; }
section#metodo { background-color: rgba(255, 255, 255, 0.02); }

/* --- COMPONENTES REUTILIZÁVEIS --- */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-white);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    border-color: var(--primary-blue);
    background: rgba(58, 141, 222, 0.03);
    transform: translateY(-5px);
}

.text-gradient {
    background: linear-gradient(90deg, #fff, var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-tech {
    background: rgba(58, 141, 222, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(58, 141, 222, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: inline-block;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #3A8DDE;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 0 rgba(58, 141, 222, 0.4);
    animation: pulse-dot 2s infinite;
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    color: var(--primary-blue);
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(3,7,18,1) 0%, rgba(3,7,18,0) 100%);
}

/* --- BOTÕES --- */
.btn-maues {
    background: linear-gradient(135deg, #3A8DDE 0%, #1b3b6f 100%);
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 700;    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);    
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    outline: none !important;    
    background-clip: padding-box;
    appearance: none;
    -webkit-appearance: none;
}

.btn-maues:hover {
    background: linear-gradient(135deg, #4da3f5 0%, #2e7ac5 100%);
    box-shadow: 0 0 30px rgba(58, 141, 222, 0.4);
    transform: translateY(-3px) scale(1.02);
    color: white;
}

.btn-maues:focus, 
.btn-maues:active {
    outline: none !important;
    box-shadow: 0 0 20px rgba(58, 141, 222, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-primary-maues {
    background: linear-gradient(135deg, #1b3b6f 0%, #0f172a 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(58, 141, 222, 0.3) !important;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    background-clip: padding-box;
}

.btn-primary-maues:hover {
    background: #3A8DDE;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(58, 141, 222, 0.2);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

.btn:focus, .btn:active, button:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine-effect 10s infinite;
}

.btn-shine:hover::after {
    animation-play-state: paused;
    opacity: 0;
}

/* --- ELEMENTOS ESPECÍFICOS --- */
.tech-track {
    display: flex;
    width: calc(250px * 16);
    animation: scroll 35s linear infinite;
}

.tech-item {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
}

.step-number {
    font-size: 3rem; 
    font-weight: 800; 
    color: rgba(58, 141, 222, 0.2);
    line-height: 1; 
    margin-bottom: 15px;
}

#code-animation {
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    display: inline-block;
}

.code-card-highlight {
    border: 1px solid var(--primary-blue) !important;
    box-shadow: 0 0 20px rgba(58, 141, 222, 0.15);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    white-space: nowrap;
    position: relative;
}

#cookie-banner {
    position: fixed;
    bottom: 20px; left: 20px; right: 20px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: none;
}

/* --- ANIMAÇÕES --- */
@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
.float-img { 
    animation: floating 4s ease-in-out infinite; 
    box-shadow: 0 0 50px rgba(58, 141, 222, 0.15);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(58, 141, 222, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(58, 141, 222, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(58, 141, 222, 0);
    }
}

@keyframes shine-effect {
    0% {
        left: -60%;
    }    
    20% {
        left: 120%;
    }
    100% {
        left: 120%;
    }
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-whatsapp-float { animation: whatsapp-pulse 2s infinite; }

.btn-whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e !important;
}

/* --- UTILITÁRIOS & OVERRIDES --- */
.text-primary-maues { color: var(--primary-blue) !important; }
.text-secondary { color: #cbd5e1 !important; }
footer a { text-decoration: none; color: #94a3b8; transition: 0.3s; }
footer a:hover { color: var(--primary-blue); }
.typed-cursor { color: var(--primary-blue); font-size: 2.5rem; }