.bt-home-popup-anchor {
    position: relative;
    z-index: 30;
}

.bt-home-popup {
    position: absolute;
    bottom: calc(100% + 16px);
    z-index: 40;
    box-sizing: border-box;
    width: 250px;
    padding: 6px 14px;
    color: #4b5563;
    font-family: Inter, sans-serif;
    font-size: 12.16px;
    font-weight: 400;
    line-height: 15.808px;
    text-align: left;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(250, 250, 250, 0.97) 58%,
        rgba(242, 244, 246, 0.96) 100%
    );
    border: 0;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12), 0 5px 14px rgba(15, 23, 42, 0.07);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.985);
    transition: opacity 3s ease, transform 3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 3s;
}

.bt-home-popup--assessments {
    right: calc(50% + 8px);
}

.bt-home-popup--ai {
    left: calc(50% + 8px);
}

.bt-home-popup.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 3s ease, transform 3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.bt-home-popup__title,
.bt-home-popup__text {
    margin: 6.08px 0;
    padding: 0;
    color: #4b5563;
    font-family: Inter, sans-serif;
    font-size: 12.16px;
    line-height: 15.808px;
}

.bt-home-popup__title {
    font-weight: 700;
}

.bt-home-popup__text {
    font-weight: 400;
}

.bt-home-gif-wrap {
    position: relative;
    overflow: visible;
}

.bt-home-gif-caption {
    position: absolute;
    top: 50%;
    left: calc(100% + 28px);
    z-index: 5;
    box-sizing: border-box;
    width: 290px;
    margin: 0;
    padding: 0;
    color: #4b5563;
    font-family: Inter, sans-serif;
    font-size: 12.16px;
    font-weight: 400;
    line-height: 15.808px;
    text-align: left;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(10px, -50%);
    transition: opacity 3s ease, transform 3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 3s;
}

.bt-home-gif-caption.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
    transition: opacity 3s ease, transform 3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.bt-home-feature-grid {
    overflow: visible !important;
}

.bt-home-feature {
    position: relative;
    z-index: 1;
    transform: scale(1);
    transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.bt-home-intro-line {
    position: relative;
    z-index: 1;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.bt-home-footer-item {
    position: relative;
    z-index: 1;
    transform-origin: center center;
    transition: transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
    .bt-home-feature:hover {
        z-index: 5;
        transform: scale(1.08);
    }

    .bt-home-feature {
        transform-origin: center center;
    }

    .bt-home-intro-line:hover {
        z-index: 5;
        transform: scale(1.04);
    }

    .bt-home-footer-item:hover,
    .bt-home-footer-item:focus-within {
        z-index: 5;
        transform: scale(1.10);
    }
}

@media (max-width: 900px) {
    .bt-home-gif-wrap {
        width: 100% !important;
        max-width: 100%;
    }

    .bt-home-gif-caption {
        position: relative;
        top: auto;
        left: 50%;
        width: min(320px, calc(100vw - 32px));
        margin: 14px 0 0;
        font-size: 12.16px;
        line-height: 15.808px;
        text-align: center;
        transform: translate(-50%, 10px);
    }

    .bt-home-gif-caption.is-open {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 700px) {
    .bt-home-popup,
    .bt-home-popup--assessments,
    .bt-home-popup--ai {
        right: auto;
        left: 50%;
        width: min(250px, calc(100vw - 32px));
        transform: translate(-50%, 10px) scale(0.985);
    }

    .bt-home-popup.is-open {
        transform: translate(-50%, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bt-home-popup,
    .bt-home-popup.is-open,
    .bt-home-gif-caption,
    .bt-home-gif-caption.is-open,
    .bt-home-footer-item {
        transition-duration: 0.01ms;
    }
}
