html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

.bg-gradient-brand {
    background: linear-gradient(135deg, #0a2540 0%, #16406e 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #0a2540, #2e86de);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-metal {
    background: linear-gradient(110deg, #0a2540 0%, #1a4f8a 20%, #5aa7e8 40%, #a8d4f5 50%, #5aa7e8 60%, #1a4f8a 80%, #0a2540 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shine-metal 6s linear infinite;
}

@keyframes shine-metal {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.float { animation: float 4s ease-in-out infinite; }
.float-delayed { animation: float 5s ease-in-out infinite; animation-delay: 2s; }

@keyframes float-boneco {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(1.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
.animate-float-boneco {
    animation: float-boneco 4.5s ease-in-out infinite;
}

.hero-video-container {
    height: 48vh;
    min-height: 300px;
    max-height: 500px;
}
@media (min-width: 768px) {
    .hero-video-container {
        height: 100vh;
        height: 100dvh;
        min-height: auto;
        max-height: none;
    }
}

.animate-marquee {
    display: inline-flex;
    will-change: transform;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(46, 134, 222, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(46, 134, 222, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 134, 222, 0); }
}
.animate-pulse-border {
    animation: pulse-border 2s infinite;
}

.img-reveal {
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.15);
}
.group:hover .img-reveal {
    transform: scale(1);
}

.card-3d {
    transform-style: preserve-3d;
    will-change: transform;
}
.card-3d .card-content {
    transform-style: preserve-3d;
}

.card-diferencial {
    border: 1px solid rgba(209, 213, 219, 0.5) !important;
}

#boneco-hero-wrap {
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}

#boneco-hero-wrap.pop {
    opacity: 1;
    transform: scale(1);
}

.clip-x {
    overflow-x: clip;
}

.coperinho-canto {
    position: absolute;
    top: -140px;
    right: 0;
    transform: translateX(130%);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 20;
    width: 120px;
    height: auto;
    pointer-events: none;
    user-select: none;
    will-change: transform;
}

.coperinho-canto.saindo {
    transform: translateX(12px);
}

@media (min-width: 768px) {
    .coperinho-canto {
        width: 320px;
        top: -220px;
    }
}

#sae-logo .sae-letter,
#sae-logo .sae-pill-blue,
#sae-logo .sae-pill-yellow,
#sae-logo .sae-swoosh {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: left center;
}

#sae-logo .sae-letter {
    transform-origin: 50% 50%;
}

#sae-logo.sae-fwd .sae-pill-blue,
#sae-logo.sae-fwd .sae-pill-yellow {
    animation: sae-pill-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--d);
}

#sae-logo.sae-fwd .sae-yellow-slide {
    animation: sae-slide 0.7s ease-in-out both;
    animation-delay: var(--d);
}

#sae-logo.sae-fwd .sae-swoosh {
    animation: sae-swoosh-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--d);
}

#sae-logo.sae-fwd .sae-letter {
    animation: sae-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--d);
}

#sae-logo.sae-rev .sae-pill-blue,
#sae-logo.sae-rev .sae-pill-yellow {
    animation: sae-pill-in 0.45s linear reverse both;
    animation-delay: calc(3.48s - var(--d));
}

#sae-logo.sae-rev .sae-yellow-slide {
    animation: sae-slide 0.7s linear reverse both;
    animation-delay: calc(3.48s - var(--d));
}

#sae-logo.sae-rev .sae-swoosh {
    animation: sae-swoosh-in 0.5s linear reverse both;
    animation-delay: calc(3.48s - var(--d));
}

#sae-logo.sae-rev .sae-letter {
    animation: sae-bounce 0.5s linear reverse both;
    animation-delay: calc(3.48s - var(--d));
}

@keyframes sae-pill-in {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
}

@keyframes sae-slide {
    from { transform: translateX(-285px); }
    to { transform: translateX(0); }
}

@keyframes sae-swoosh-in {
    0% { opacity: 0; transform: scaleX(0); }
    70% { opacity: 1; transform: scaleX(1.08); }
    100% { opacity: 1; transform: scaleX(1); }
}

@keyframes sae-bounce {
    0% { opacity: 0; transform: scale(0.2); }
    60% { opacity: 1; transform: scale(1.15); }
    80% { transform: scale(0.94); }
    100% { opacity: 1; transform: scale(1); }
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #2e86de; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1e70bf; 
}

/* Modal Em Breve */
#modal-em-breve.ativo {
    display: flex !important;
}
#modal-em-breve.ativo .modal-content {
    transform: scale(1);
    opacity: 1;
}
#modal-em-breve .modal-content {
    transform: scale(0.9);
    opacity: 0;
}
#modal-em-breve .modal-overlay {
    opacity: 0;
}
#modal-em-breve.ativo .modal-overlay {
    opacity: 1;
}
