:root {
    --primary-red: #E50914;
    --primary-red-hover: #C10712;
    --primary-blue: #0076F5;
    --primary-blue-hover: #0063CE;
    --white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--white);
    background-color: #07090E;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Video Container */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: #000;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Elegant Overlay for clear and modern city backgrounds */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(10, 15, 26, 0.42) 0%, rgba(5, 8, 16, 0.76) 100%),
                linear-gradient(180deg, rgba(8, 12, 22, 0.68) 0%, rgba(10, 16, 28, 0.45) 45%, rgba(6, 10, 18, 0.82) 100%);
    pointer-events: none;
}

/* Header */
.site-header {
    width: 100%;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 50;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
    transition: transform 0.25s ease;
}

.site-logo:hover {
    transform: scale(1.03);
}

/* Header Actions & Intranet Button in Navbar */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 8px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-link {
    color: #FFFFFF;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.btn-intranet-nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #F1F5F9;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-intranet-nav:hover {
    background: rgba(30, 41, 59, 0.98);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 104px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 24px 80px 24px;
    position: relative;
    z-index: 5;
}

.hero-content {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================
   Card de Auto Atendimento (Busca de CPF/CNPJ/RG + Parceiros)
   Design moderno, clean com glassmorphism e iluminação sutil
   ========================================================== */
.autoatendimento-card {
    width: 100%;
    max-width: 660px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px 32px 24px 32px;
    margin: 0 auto 38px auto;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 35px rgba(2, 132, 199, 0.22);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.autoatendimento-card:hover {
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42), 0 0 45px rgba(2, 132, 199, 0.32);
}

.autoatendimento-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.autoatendimento-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0284C7;
    filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.3));
}

.autoatendimento-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0284C7;
    margin: 0;
    letter-spacing: -0.3px;
}

.autoatendimento-subtitle {
    font-size: 0.92rem;
    color: #1E293B;
    margin: 0 0 22px 0;
    font-weight: 600;
    line-height: 1.45;
}

/* Formulário e Input */
.autoatendimento-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: #F8FAFC;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

.autoatendimento-input-wrapper {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.autoatendimento-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.autoatendimento-input {
    width: 100%;
    padding: 12px 14px;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #0F172A;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.autoatendimento-input:focus {
    border-color: #0284C7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    background: #FFFFFF;
}

.autoatendimento-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.autoatendimento-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    background: #009BE5;
    background: linear-gradient(135deg, #0284C7, #0369A1);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    white-space: nowrap;
    height: 47px;
    box-sizing: border-box;
}

.autoatendimento-btn:hover {
    background: linear-gradient(135deg, #0369A1, #075985);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.48);
}

.autoatendimento-btn:active {
    transform: translateY(1px);
}

.autoatendimento-btn:disabled,
.autoatendimento-btn.loading {
    opacity: 0.65;
    cursor: not-allowed !important;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* Seção Carteiras Parceiras */
.carteiras-parceiras-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.carteiras-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: #64748B;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.carteiras-logos-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.carteira-logo-item {
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 0;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.carteira-logo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.carteira-logo-item img {
    height: 52px;
    width: auto;
    max-height: 52px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Especificidades visuais para logos parceiras */
.carteira-logo-item:has(img[src*="SOUTH"]),
.carteira-logo-item.carteira-south {
    background: #141B26;
    padding: 0 16px;
}

@media (max-width: 640px) {
    .autoatendimento-card {
        padding: 24px 18px 18px 18px;
        margin-bottom: 28px;
    }
    .autoatendimento-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .autoatendimento-btn {
        width: 100%;
    }
    .carteiras-logos-grid {
        gap: 8px;
    }
    .carteira-logo-item {
        height: 40px;
    }
    .carteira-logo-item img {
        height: 40px;
        max-height: 40px;
    }
}

/* Botão Azul com Efeito Glow: Faça Aqui seu Acordo */
.btn-acordo-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066FF, #0052CC);
    color: #FFFFFF;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.65), 0 0 40px rgba(0, 102, 255, 0.35);
    animation: pulseBlueGlow 3s infinite alternate;
}

.btn-acordo-glow:hover {
    background: linear-gradient(135deg, #1A75FF, #0066FF);
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(0, 102, 255, 0.85), 0 0 55px rgba(0, 102, 255, 0.5);
    border-color: #FFFFFF;
}

@keyframes pulseBlueGlow {
    0% {
        box-shadow: 0 0 16px rgba(0, 102, 255, 0.6), 0 0 30px rgba(0, 102, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 26px rgba(0, 140, 255, 0.85), 0 0 50px rgba(0, 102, 255, 0.55);
    }
}

/* Headlines */
.hero-title {
    font-size: clamp(1.8rem, 3.8vw, 2.75rem);
    font-weight: 700;
    line-height: 1.34;
    color: #FFFFFF;
    margin-bottom: 42px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85);
    letter-spacing: -0.3px;
}

/* Dynamic Rotating Word */
.dynamic-word-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    min-height: 1.25em;
    text-shadow: none !important;
    filter: none !important;
}

.dynamic-word {
    display: inline-block;
    font-weight: 800;
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -0.2px;
    text-shadow: none !important;
    filter: none !important;
}

.dynamic-word.fade-out {
    opacity: 0;
    transform: translateY(-4px);
}

.dynamic-word.fade-in {
    opacity: 0;
    transform: translateY(4px);
}

/* Azul Degradê Moderno e Polido */
.dynamic-word.color-blue {
    background: linear-gradient(90deg, #60A5FA 0%, #38BDF8 50%, #93C5FD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

/* Dourado Ouro Reluzente Nobre */
.dynamic-word.color-gold {
    background: linear-gradient(90deg, #FDE68A 0%, #F59E0B 40%, #FBBF24 75%, #FEF3C7 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
    animation: goldShimmer 3s ease-in-out infinite alternate;
}

@keyframes goldShimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 100% center;
    }
}

/* Action Buttons Bottom */
.hero-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.whatsapp-icon {
    flex-shrink: 0;
    transition: transform 0.25s ease, filter 0.25s ease;
    color: #25D366;
    fill: #25D366;
    filter: drop-shadow(0 0 6px rgba(37, 211, 102, 0.45));
}

.btn-fale-conosco {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-blue);
    color: #FFFFFF;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 118, 245, 0.45);
}

.btn-fale-conosco:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 118, 245, 0.65);
}

.btn-fale-conosco:hover .whatsapp-icon,
.btn-atendimento:hover .whatsapp-icon {
    transform: scale(1.15);
}

.btn-atendimento {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(10, 17, 28, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    transition: all 0.25s ease;
}

.btn-atendimento:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Responsiveness */
@media (max-width: 900px) {
    .site-header {
        padding: 20px 24px;
    }
    .btn-intranet {
        position: static;
        transform: none;
        margin-top: 14px;
        display: inline-block;
    }
    .btn-intranet:hover {
        transform: none;
    }
    .hero-buttons-row {
        flex-direction: column;
        width: 100%;
    }
    .btn-fale-conosco, .btn-atendimento {
        width: 100%;
        max-width: 380px;
        text-align: center;
    }
}
