/* Hero OnePage Widget Styles */

.nex-hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

/* Full Width Layout - Background aplicado na secção inteira */
.nex-hero--full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.nex-hero--full-width .nex-hero__container {
    max-width: 100%;
    padding: 0 40px;
}

.nex-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.nex-hero__inner {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.nex-hero--center .nex-hero__inner {
    justify-content: center;
}

.nex-hero--right .nex-hero__inner {
    flex-direction: row-reverse;
}

/* Content */
.nex-hero__content {
    flex: 1;
}

.nex-hero--center .nex-hero__content {
    max-width: 800px;
    text-align: center;
}

.nex-hero__subheadline {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.nex-hero__headline {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.nex-hero__description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.nex-hero__description p {
    margin: 0 0 15px 0;
}

.nex-hero__description p:last-child {
    margin-bottom: 0;
}

/* Headline - animações base */
.nex-hero[data-headline-animation="apple"] .nex-hero__headline,
.nex-hero[data-headline-animation="motion"] .nex-hero__headline {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition:
        transform 0.9s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.nex-hero.nex-hero--in-view[data-headline-animation="apple"] .nex-hero__headline,
.nex-hero.nex-hero--in-view[data-headline-animation="motion"] .nex-hero__headline {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nex-hero[data-headline-animation="motion"] .nex-hero__headline {
    transform-origin: left center;
}

/* Texto reativo ao scroll */
.nex-hero[data-headline-animation="scroll_reactive"] .nex-hero__headline {
    transform: translateY(calc((1 - var(--nex-hero-scroll-progress, 0)) * 32px));
    opacity: calc(0.4 + var(--nex-hero-scroll-progress, 0) * 0.6);
    transition: transform 0.12s linear, opacity 0.12s linear;
}

/* Headline com duas cores ao scroll */
.nex-hero[data-headline-animation="split_scroll"] .nex-hero__headline {
    position: relative;
    color: #0f172a;
    overflow: hidden;
}

.nex-hero[data-headline-animation="split_scroll"] .nex-hero__headline::after {
    content: attr(data-headline-text);
    position: absolute;
    top: 0;
    left: 0;
    width: calc(var(--nex-hero-scroll-progress, 0) * 100%);
    white-space: nowrap;
    color: #6366f1;
    pointer-events: none;
}

/* ===== PRESET: MICROSOFT FLUENT DESIGN ===== */

/* Hero Microsoft - Réplica fiel do Microsoft.com
   - Fluent Design System
   - Tipografia Segoe UI
   - Cores oficiais Microsoft
   - Animações suaves
   - 100% editável no Elementor
*/

.nex-hero--preset-microsoft {
    background: #f5f5f5;
    padding: 100px 0;
    position: relative;
}

/* Garante que o background funciona em full-width */
.nex-hero--preset-microsoft.nex-hero--full-width {
    background: #f5f5f5;
}

/* Estilos padrão Microsoft para o editor (visíveis) */
.nex-hero--preset-microsoft .nex-hero__subheadline {
    color: #0067b8;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.nex-hero--preset-microsoft .nex-hero__headline {
    color: #1f1f1f;
    font-size: 56px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 24px 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.nex-hero--preset-microsoft .nex-hero__description {
    color: #505050;
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 32px;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
}

/* Botões estilo Microsoft - Base */
.nex-hero--preset-microsoft .nex-btn {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 2px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.15s ease;
    cursor: pointer;
}

/* Botão Primário Microsoft (azul) - Apenas animações, cores via Elementor */
.nex-hero--preset-microsoft .nex-btn--primary:hover {
    transform: translateY(-1px);
}

.nex-hero--preset-microsoft .nex-btn--primary:active {
    transform: scale(0.98);
}

/* Botão Secundário Microsoft (outline) - Apenas animações, cores via Elementor */
.nex-hero--preset-microsoft .nex-btn--secondary:hover,
.nex-hero--preset-microsoft .nex-btn--outline:hover {
    transform: translateY(-1px);
}

.nex-hero--preset-microsoft .nex-btn--secondary:active,
.nex-hero--preset-microsoft .nex-btn--outline:active {
    transform: scale(0.98);
}

/* Imagem estilo Microsoft */
.nex-hero--preset-microsoft .nex-hero__media img {
    border-radius: 0;
    max-width: 100%;
    height: auto;
    box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.132), 0 0.3px 0.9px rgba(0, 0, 0, 0.108);
}

/* Responsivo Microsoft */
@media (max-width: 768px) {
    .nex-hero--preset-microsoft {
        padding: 60px 0;
    }
    
    .nex-hero--preset-microsoft .nex-hero__headline {
        font-size: 40px;
    }
    
    .nex-hero--preset-microsoft .nex-hero__subheadline {
        font-size: 18px;
    }
    
    .nex-hero--preset-microsoft .nex-hero__description {
        font-size: 18px;
    }
}

/* Animação de entrada suave (Fluent Motion) - só no frontend */
.nex-hero--preset-microsoft .nex-hero__content > *,
.nex-hero--preset-microsoft .nex-hero__media {
    opacity: 0;
    transform: translateY(20px);
}

/* No editor do Elementor, mostra tudo visível */
.elementor-editor-active .nex-hero--preset-microsoft .nex-hero__content > *,
.elementor-editor-active .nex-hero--preset-microsoft .nex-hero__media {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.nex-hero--preset-microsoft.nex-hero--in-view .nex-hero__subheadline {
    animation: nex-ms-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.nex-hero--preset-microsoft.nex-hero--in-view .nex-hero__headline {
    animation: nex-ms-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.nex-hero--preset-microsoft.nex-hero--in-view .nex-hero__description {
    animation: nex-ms-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.nex-hero--preset-microsoft.nex-hero--in-view .nex-hero__ctas {
    animation: nex-ms-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.nex-hero--preset-microsoft.nex-hero--in-view .nex-hero__media {
    animation: nex-ms-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

@keyframes nex-ms-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== Efeitos globais de fundo (background_effect) ===== */

/* Dynamic Gradient - Gradiente fluido e suave */
.nex-hero--bg-dynamic_gradient {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #4facfe 75%, 
        #00f2fe 100%
    );
    background-size: 400% 400%;
    animation: nex-hero-dynamic-gradient 20s ease infinite;
}

.nex-hero--bg-dynamic_gradient .nex-hero__headline,
.nex-hero--bg-dynamic_gradient .nex-hero__description {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Glassmorphism - Efeito vidro moderno */
.nex-hero--bg-glass {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.nex-hero--bg-glass::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 5%;
    right: 5%;
    bottom: 10%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    pointer-events: none;
    z-index: 0;
}

.nex-hero--bg-glass .nex-hero__inner {
    position: relative;
    z-index: 1;
}

.nex-hero--bg-glass .nex-hero__headline,
.nex-hero--bg-glass .nex-hero__description {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Bubbles - Bolhas flutuantes animadas */
.nex-hero--bg-bubbles {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    position: relative;
    overflow: hidden;
}

.nex-hero--bg-bubbles::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    left: -100px;
    animation: nex-hero-bubble-1 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.nex-hero--bg-bubbles::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    right: -100px;
    animation: nex-hero-bubble-2 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.nex-hero--bg-bubbles .nex-hero__inner {
    position: relative;
    z-index: 1;
}

.nex-hero--bg-bubbles .nex-hero__headline,
.nex-hero--bg-bubbles .nex-hero__description {
    color: #ffffff;
}

/* Particles - Partículas flutuantes */
.nex-hero--bg-particles {
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.nex-hero--bg-particles::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: nex-hero-particles 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.nex-hero--bg-particles .nex-hero__inner {
    position: relative;
    z-index: 1;
}

.nex-hero--bg-particles .nex-hero__headline,
.nex-hero--bg-particles .nex-hero__description {
    color: #ffffff;
}

/* Lines - Grid animado */
.nex-hero--bg-lines {
    background: #020617;
    position: relative;
    overflow: hidden;
}

.nex-hero--bg-lines::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: nex-hero-lines 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

.nex-hero--bg-lines .nex-hero__inner {
    position: relative;
    z-index: 1;
}

.nex-hero--bg-lines .nex-hero__headline,
.nex-hero--bg-lines .nex-hero__description {
    color: #ffffff;
}

/* Animações dos efeitos de fundo */
@keyframes nex-hero-dynamic-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes nex-hero-bubble-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.9); }
}

@keyframes nex-hero-bubble-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.15); }
    66% { transform: translate(50px, -40px) scale(0.85); }
}

@keyframes nex-hero-particles {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes nex-hero-lines {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* CTAs / Botões */
.nex-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.nex-hero--center .nex-hero__ctas {
    justify-content: center;
}

.nex-hero--right .nex-hero__ctas {
    justify-content: flex-start;
}

/* Estilos base dos botões */
.nex-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-color: transparent;
}

/* Estilos base dos botões - podem ser sobrescritos pelo Elementor */
.nex-btn--primary {
    /* Valores padrão definidos no Elementor */
}

.nex-btn--secondary,
.nex-btn--outline {
    /* Valores padrão definidos no Elementor */
}

/* Animações de hover */
.nex-btn[data-hover-animation="lift"]:hover {
    transform: translateY(-3px);
}

.nex-btn[data-hover-animation="scale"]:hover {
    transform: scale(1.05);
}

.nex-btn[data-hover-animation="lift-scale"]:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Media */
.nex-hero__media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nex-hero__media img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.nex-hero__video-wrapper,
.nex-hero__video-embed {
    position: relative;
    width: 100%;
    max-width: 640px;
}

.nex-hero__video {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
}

.nex-hero__video-embed iframe {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
}

/* Slides */
.nex-hero__slides {
    position: relative;
    width: 100%;
    max-width: 640px;
}

.nex-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.96);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.nex-hero__slide img {
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.55);
}

.nex-hero__slide.is-active {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

.nex-hero__icon {
    font-size: 200px;
    line-height: 1;
    color: #667eea;
}

.nex-hero__icon svg {
    width: 200px;
    height: 200px;
}

/* Parallax na mídia - Efeito suave e realista */
.nex-hero[data-media-motion="parallax_y"] .nex-hero__media {
    will-change: transform;
}

.nex-hero[data-media-motion="parallax_y"] .nex-hero__media img,
.nex-hero[data-media-motion="parallax_y"] .nex-hero__video,
.nex-hero[data-media-motion="parallax_y"] .nex-hero__video-embed iframe {
    transform: translateY(calc((0.5 - var(--nex-hero-scroll-progress, 0)) * 80px));
    will-change: transform;
}

.nex-hero[data-media-motion="parallax_x"] .nex-hero__media {
    will-change: transform;
}

.nex-hero[data-media-motion="parallax_x"] .nex-hero__media img,
.nex-hero[data-media-motion="parallax_x"] .nex-hero__video,
.nex-hero[data-media-motion="parallax_x"] .nex-hero__video-embed iframe {
    transform: translateX(calc((0.5 - var(--nex-hero-scroll-progress, 0)) * 100px));
    will-change: transform;
}

/* Ken Burns - Zoom suave e cinematográfico */
.nex-hero[data-media-motion="kenburns"] .nex-hero__media img {
    transform-origin: center center;
    animation: nex-hero-kenburns 25s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes nex-hero-kenburns {
    0%   { transform: scale(1) translate3d(0, 0, 0); }
    33%  { transform: scale(1.08) translate3d(-3%, -2%, 0); }
    66%  { transform: scale(1.15) translate3d(2%, 3%, 0); }
    100% { transform: scale(1.12) translate3d(0, 0, 0); }
}

/* Tilt 3D - Preparação para hover */
.nex-hero[data-tilt="yes"] .nex-hero__media {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.nex-hero[data-tilt="yes"] .nex-hero__media > * {
    transition: transform 0.3s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Responsive */
@media (max-width: 992px) {
    .nex-hero__inner {
        flex-direction: column;
        gap: 40px;
    }

    .nex-hero--right .nex-hero__inner {
        flex-direction: column;
    }

    .nex-hero__content,
    .nex-hero__media {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .nex-hero__headline {
        font-size: 36px;
    }

    .nex-hero__icon {
        font-size: 120px;
    }

    .nex-hero__icon svg {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .nex-hero__headline {
        font-size: 28px;
    }

    .nex-hero__description {
        font-size: 16px;
    }

    .nex-hero__ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .nex-hero__ctas .nex-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== STORYTELLING FEATURES ===== */

/* Timeline Horizontal */
.nex-hero[data-timeline="yes"]::after {
    content: "";
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 900px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.3) 20%, rgba(99, 102, 241, 0.3) 80%, transparent 100%);
}

.nex-hero__timeline {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    width: 80%;
    max-width: 900px;
    z-index: 10;
}

.nex-hero__timeline-item {
    position: relative;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: nex-timeline-reveal 0.6s ease forwards;
}

.nex-hero__timeline-item:nth-child(1) { animation-delay: 0.2s; }
.nex-hero__timeline-item:nth-child(2) { animation-delay: 0.4s; }
.nex-hero__timeline-item:nth-child(3) { animation-delay: 0.6s; }
.nex-hero__timeline-item:nth-child(4) { animation-delay: 0.8s; }
.nex-hero__timeline-item:nth-child(5) { animation-delay: 1s; }

.nex-hero__timeline-dot {
    width: 12px;
    height: 12px;
    background: #6366f1;
    border-radius: 50%;
    margin: 0 auto 8px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.nex-hero__timeline-year {
    font-size: 14px;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 4px;
}

.nex-hero__timeline-label {
    font-size: 12px;
    color: #64748b;
}

@keyframes nex-timeline-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.nex-hero[data-scroll-indicator="yes"]::before {
    content: "";
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 20px;
    z-index: 10;
}

.nex-hero[data-scroll-indicator="yes"] .nex-hero__scroll-dot {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
    animation: nex-scroll-bounce 2s ease-in-out infinite;
    z-index: 11;
}

@keyframes nex-scroll-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 15px); }
}

/* Scroll Reveal Elements */
.nex-hero[data-scroll-reveal="yes"] .nex-hero__subheadline,
.nex-hero[data-scroll-reveal="yes"] .nex-hero__headline,
.nex-hero[data-scroll-reveal="yes"] .nex-hero__description,
.nex-hero[data-scroll-reveal="yes"] .nex-hero__ctas,
.nex-hero[data-scroll-reveal="yes"] .nex-hero__media {
    opacity: 0;
    transform: translateY(30px);
}

.nex-hero[data-scroll-reveal="yes"].nex-hero--in-view .nex-hero__subheadline {
    animation: nex-scroll-reveal 0.8s ease 0.1s forwards;
}

.nex-hero[data-scroll-reveal="yes"].nex-hero--in-view .nex-hero__headline {
    animation: nex-scroll-reveal 0.8s ease 0.2s forwards;
}

.nex-hero[data-scroll-reveal="yes"].nex-hero--in-view .nex-hero__description {
    animation: nex-scroll-reveal 0.8s ease 0.3s forwards;
}

.nex-hero[data-scroll-reveal="yes"].nex-hero--in-view .nex-hero__ctas {
    animation: nex-scroll-reveal 0.8s ease 0.4s forwards;
}

.nex-hero[data-scroll-reveal="yes"].nex-hero--in-view .nex-hero__media {
    animation: nex-scroll-reveal 0.8s ease 0.5s forwards;
}

@keyframes nex-scroll-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FRAMER MOTION STYLE ANIMATIONS ===== */

/* Spring Animation */
.nex-hero[data-framer-motion="spring"] .nex-hero__headline {
    animation: nex-framer-spring 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.nex-hero[data-framer-motion="spring"] .nex-hero__media {
    animation: nex-framer-spring-media 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

@keyframes nex-framer-spring {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes nex-framer-spring-media {
    from {
        opacity: 0;
        transform: scale(0.9) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Tween Animation */
.nex-hero[data-framer-motion="tween"] .nex-hero__content > * {
    opacity: 0;
    transform: translateX(-40px);
}

.nex-hero[data-framer-motion="tween"].nex-hero--in-view .nex-hero__subheadline {
    animation: nex-framer-tween 0.6s ease 0.1s forwards;
}

.nex-hero[data-framer-motion="tween"].nex-hero--in-view .nex-hero__headline {
    animation: nex-framer-tween 0.6s ease 0.2s forwards;
}

.nex-hero[data-framer-motion="tween"].nex-hero--in-view .nex-hero__description {
    animation: nex-framer-tween 0.6s ease 0.3s forwards;
}

.nex-hero[data-framer-motion="tween"].nex-hero--in-view .nex-hero__ctas {
    animation: nex-framer-tween 0.6s ease 0.4s forwards;
}

@keyframes nex-framer-tween {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Inertia Animation */
.nex-hero[data-framer-motion="inertia"] .nex-hero__headline {
    animation: nex-framer-inertia 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.nex-hero[data-framer-motion="inertia"] .nex-hero__media {
    animation: nex-framer-inertia-media 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes nex-framer-inertia {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    60% {
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nex-framer-inertia-media {
    from {
        opacity: 0;
        transform: translateY(80px) scale(0.95);
    }
    70% {
        transform: translateY(-15px) scale(1.02);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== LOTTIE CONTAINER ===== */

.nex-hero__lottie {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.nex-hero__lottie svg {
    width: 100%;
    height: auto;
}