/* ---------- EXPLAINER OVERLAY ---------- */
.explainer-overlay {
    position: fixed;
    inset: 0;
    background: var(--grey-900);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out);
}

.explainer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.explainer-container {
    width: 95%;
    max-width: 1200px;
    height: 80vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.explainer-visual {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explainer-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.explainer-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 24px;
    transition: opacity 0.5s;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.explainer-image-wrapper img.ken-burns {
    animation: ken-burns 10s infinite alternate ease-in-out;
}

@keyframes ken-burns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-1%, -1%);
    }
}

.explainer-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a1a1a, #000);
    color: #fff;
}

.explainer-text h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, var(--teal-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.explainer-text p {
    font-size: 20px;
    color: var(--grey-400);
    line-height: 1.6;
}

.explainer-text.fade-in {
    animation: slideInRight 0.8s var(--ease-out) forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.explainer-controls {
    margin-top: 40px;
}

.explainer-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
}

.explainer-progress-bar {
    height: 100%;
    background: var(--teal-500);
    width: 0%;
    transition: width 0.3s;
}

.explainer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--grey-500);
}

.explainer-btns {
    display: flex;
    gap: 12px;
}

.explainer-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.explainer-nav-btn:hover {
    background: var(--teal-600);
    border-color: var(--teal-500);
}

.explainer-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
}

.explainer-close:hover {
    background: #ff4444;
    transform: rotate(90deg);
}

@media (max-width: 991px) {
    .explainer-container {
        grid-template-columns: 1fr;
        height: 90vh;
    }

    .explainer-content {
        padding: 30px;
    }

    .explainer-text h2 {
        font-size: 30px;
    }

    .explainer-text p {
        font-size: 16px;
    }
}