.ai-genie-hero {
    --threejs-height: 300vh;
}

/* ============================================
   CSS STICKY WITH NEGATIVE MARGIN
   ============================================ */
.ai-genie-hero .canvas-container {
    position: sticky;
    top: 0;
    margin-bottom: -100vh; 
    margin-bottom: -100lvh; 
    height: 100vh; 
    height: 100lvh; 
}

/* ============================================
   FADE OVERLAY
   ============================================ */
.fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0B0418;
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

/* ============================================
   AI GENIE CTA BUTTON
   ============================================ */
.ai-genie-cta-container {
    position: absolute;
    bottom: 12.75vw;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 20;
}

.ai-genie-cta-button {
    width: 32.75vw;
    max-width: 32.75vw;
    min-width: 21.80vw;
    min-height: 6.90vw;
    background: rgba(215, 56, 46, 1);
    border: none;
    border-radius: 2px;
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-primary);
    font-size: 2.20vw;
    font-weight: 600;
    font-style: normal;
    line-height: 104%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75vw;
    padding: 2.90vw 4.35vw;
    box-sizing: border-box;
    transition: background 0.2s ease;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.ai-genie-cta-button:hover {
    background: rgba(215, 56, 46, 0.9);
}

.ai-genie-cta-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 10%,
        rgba(255, 255, 255, 0.4) 30%,
        transparent 90%
    );
    transition: all 650ms;
}

.ai-genie-cta-button:hover:before {
    left: 100%;
}

.ai-genie-cta-button-text {
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-primary);
    font-size: 2.20vw;
    letter-spacing: 0.04em;
    font-weight: 600;
    line-height: 104%;
    text-align: left;
    position: relative;
    z-index: 10;
}

.ai-genie-banner-cta-button::after {
    margin-left: 0.55vw;
    width: 1.80vw;
    height: 1.80vw;
    display: block;
    flex-shrink: 1;
    position: relative;
    z-index: 10;
}

/* ============================================
   AI GENIE HERO TEXT
   ============================================ */
.ai-genie-hero-text {
    position: absolute;
    top: 200px;
    left: 0;
    /* transform: translateY(-50%); */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.ai-genie-hero-text__logo {
    width: auto;
    height: 70px;
}

.ai-genie-hero-text__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ai-genie-hero-text__logo .dotlottie-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.ai-genie-hero-text__title .hero-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   AI GENIE BOTTOM BANNER
   ============================================ */
.ai-genie-bottom-banner {
    box-sizing: border-box;
    position: absolute;
    bottom: calc(100lvh - 100svh + 20px);

    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 4vw 3.10vw;
    gap: 10.20vw;
    
    background: color-mix(in srgb, var(--wp--preset--color--black) 70%, transparent);
    background-clip: padding-box;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 2px;
    border: 1px solid transparent;
    border-color: color-mix(in srgb, var(--wp--preset--color--white) 11%, transparent);
    
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    overflow: visible;
}

.ai-genie-banner-left-container {
    display: grid;
    width: 100%;
    height: auto;
    z-index: 2;
    background-color: transparent;
}

.ai-genie-banner-left-content {
    grid-area: 1 / 1;
    width: 100%;
    padding-right: 2vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4vw;
    height: auto;
}

.ai-genie-banner-logo {
    display: flex;
    padding-left: 2vw;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: auto;
    height: auto;
}

.ai-genie-banner-logo img {
    width: 25vw;
    height: auto;
    display: block;
    object-fit: contain;
}

.ai-genie-banner-logo .dotlottie-canvas {
    width: 25vw;
    height: auto;
    display: block;
}

.ai-genie-banner-divider {
    display: none;
    width: 0.180vw;
    height: 11.275vw;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    pointer-events: none;
}

.ai-genie-banner-text-description {
    color: rgba(255, 255, 255, 1);
    flex: 1;
    min-width: 0;
    font-family: var(--font-primary);
    font-size: 3.8vw;
    font-weight: 300;
    font-style: normal;
    line-height: 150%;
    text-align: left;
}

.ai-genie-banner-right-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: auto;
    user-select: none;
}

.ai-genie-banner-cta-button {
    width: 100%;
    height: 100%;
    background: var(--wp--preset--color--red);
    background-image: linear-gradient(to right,
        #221F31,
        #221F31 40%,
        var(--wp--preset--color--red),
        #FA5D0F,
        #FF893F 63%,
        var(--wp--preset--color--red) 65%, 
        var(--wp--preset--color--red) 100%
    );
    background-repeat: no-repeat;
    background-size: 300% 100%;
    background-position: 100% 0;
    border: none;
    border-radius: 3px;
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-primary);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    font-style: normal;
    line-height: 104%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding: 1em 1.8em;
    box-sizing: border-box;
    transition: background-position 0.7s;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.ai-genie-banner-cta-button:hover {
    background-position: 0 0;
    text-decoration: none !important;
}


.ai-genie-banner-cta-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 10%,
        rgba(255, 255, 255, 0.4) 30%,
        transparent 90%
    );
    transition: all 650ms;
    z-index: 5;
}

.ai-genie-banner-cta-button:hover:before {
    left: 100%;
}

.ai-genie-banner-cta-button-text {
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-primary);
    font-size: var(--wp--preset--font-size--sm);
    letter-spacing: 0.04em;
    font-weight: 600;
    line-height: 104%;
    text-align: left;
    position: relative;
    z-index: 10;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.ai-genie-banner-cta-button::after {
    content: "";
    width: 0.9em;
    height: 0.9em;
    display: block;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease 0.2s;
    transform: translateX(0);
    align-self: center;
    background-image: var(--arrow-icon);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ai-genie-banner-cta-button:hover::after {
    transform: translateX(0.4em);
}

.ai-genie-banner-cta-button .btn-inner {
    position: relative;
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
    font-size: var(--wp--preset--font-size--sm);
    letter-spacing: 0.04em;
    font-weight: 600;
}

.ai-genie-banner-cta-button .btn-text {
    display: block;
}

.ai-genie-banner-cta-button .btn-text .word {
    display: inline-block;
    white-space: nowrap;
}

.ai-genie-banner-cta-button .btn-text .char {
    display: inline-block;
    line-height: 1.7;
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s;
}

/* Main Text */
.ai-genie-banner-cta-button .btn-text--main .char {
    transform: translateY(0);
    transition-delay: 0.1s;
}

.ai-genie-banner-cta-button .btn-text--main .char.active {
    opacity: 0;
    transform: translateY(-80%);
    transition-delay: 0;
}

/* Shadow Text */
.ai-genie-banner-cta-button .btn-text--shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.ai-genie-banner-cta-button .btn-text--shadow .char {
    opacity: 0;
    transform: translateY(80%);
    transition-delay: 0;
}

.ai-genie-banner-cta-button .btn-text--shadow .char.active {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */
@media (min-width: 550px) {
    .ai-genie-hero {
        --threejs-height: 400svh;
    }
    .ai-genie-cta-container {
        bottom: 70px;
    }

    .ai-genie-cta-button {
        width: 180px;
        max-width: 180px;
        min-width: 120px;
        min-height: 38px;
        border-radius: 3px;
        font-size: 12px;
        gap: 4px;
        padding: 16px 24px;
    }

    .ai-genie-banner-cta-button .btn-inner {
        font-size: 12px;
    }

    .ai-genie-banner-cta-button::after {
        margin-left: 3px;
        width: 10px;
        height: 10px;
    }

    .ai-genie-bottom-banner {
        width: 100%;
        max-width: 550px;
        bottom: 70px;
        left: 0px;
        transform: none;
        padding: 22px 17px;
        gap: 56px;
        border-radius: 3px;
        border-width: 1px;
        align-items: stretch;
    }

    .ai-genie-banner-left-content {
        flex-direction: row;
        padding-right: 0;
        align-items: center;
        gap: 22px;
        height: 100%;
    }

    .ai-genie-banner-logo {
        padding-left: 0;
        height: 100%;
    }

    .ai-genie-banner-logo img {
        height: 70px;
        width: auto;
    }

    .ai-genie-banner-logo .dotlottie-canvas {
        height: 70px;
        width: auto;
    }

    .ai-genie-banner-divider {
        display: block;
        width: 1px;
        height: 62px;
    }

    .ai-genie-banner-text-description {
        font-size: 16px;
    }

    .ai-genie-banner-right-container {
        width: 100%;
        justify-content: center;
    }

    .ai-genie-banner-cta-button {
        width: 100%;
        height: 100%;
        border-radius: 3px;
        gap: 0.35em;
        align-items: center;
    }

    .ai-genie-banner-cta-button::after {
        width: 0.9em;
        height: 0.9em;
    }
}

@media (min-width: 1000px) {
    .ai-genie-cta-container {
        bottom: 70px;
    }

    .ai-genie-cta-button {
        width: 180px;
        max-width: 180px;
        min-width: 120px;
        min-height: 38px;
        border-radius: 3px;
        font-size: 12px;
        gap: 4px;
        padding: 16px 24px;
    }

    .ai-genie-banner-cta-button .btn-inner {
        font-size: 12px;
    }

    .ai-genie-banner-cta-button::after {
        margin-left: 3px;
        width: 10px;
        height: 10px;
    }

    .ai-genie-bottom-banner {
        bottom: 70px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 1160px;
        min-width: 900px;
        padding: 9px;
        border-radius: 2px;
        border-width: 1px;
        
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: stretch;
        gap: 24px;
    }

    .ai-genie-banner-left-container {
        display: block;
        flex: 1 1 540px;
        min-width: 540px;
        height: auto;
        position: relative;
    }

    .ai-genie-banner-left-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        gap: 24px;
        height: 100%;
        box-sizing: border-box;
    }

    .ai-genie-banner-logo {
        padding-left: 38px;
        padding-right: 8px;
        height: 100%;
    }

    .ai-genie-banner-logo img {
        height: 70px;
        width: auto;
    }

    .ai-genie-banner-logo .dotlottie-canvas {
        height: 70px;
        width: auto;
    }

    .ai-genie-banner-divider {
        width: 1px;
        height: 62px;
    }

    .ai-genie-banner-text-description {
        max-width: 550px;
        width: auto;
        min-width: 0;
        font-size: 16px;
        flex-shrink: 1;
    }

    .ai-genie-banner-right-container {
        justify-content: flex-end;
        width: 270px;
        padding: 10px;

    }

    .ai-genie-banner-cta-button {
        width: 100%;
        height: 100%;
        border-radius: 3px;
        gap: 0.35em;
        align-items: center;
    }


    .ai-genie-banner-cta-button::after {
        width: 0.9em;
        height: 0.9em;
    }

}
