/* Structural layouts and variables */
.chatbot-demo-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--desktop-bg);
    padding: 0 4%;
    overflow: hidden;
    box-sizing: border-box;
}

.chatbot-demo-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    margin: 0 auto;
    position: relative;
    min-height: inherit;
}

.chatbot-demo-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 80px 0;
    z-index: 2;
}

.chatbot-demo-eyebrow {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chatbot-demo-heading {
    font-size: 54px;
    line-height: 1.15;
    font-weight: 800;
    margin: 0;
}

.chatbot-demo-description {
    font-size: 18px;
    line-height: 1.6;
}

.chatbot-demo-description p {
    margin: 0;
}

.chatbot-demo-action {
    margin-top: 10px;
}

.chatbot-demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 32px;
    gap: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.chatbot-demo-btn:hover {
    transform: translateY(-2px);
}

.chatbot-demo-btn-icon {
    display: flex;
    align-items: center;
}

.chatbot-demo-btn-icon i,
.chatbot-demo-btn-icon svg {
    display: block;
    width: 1em;
    height: 1em;
}

/* Desktop visual composition bleeding to edges */
.chatbot-demo-visual {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1;
    width: 50%;
    height: 100%;
}

.chatbot-demo-img-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    height: 100%;
}

.chatbot-demo-img-wrapper img {
    width: auto;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom right;
    display: block;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .chatbot-demo-container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .chatbot-demo-heading {
        font-size: 42px;
    }
    .chatbot-demo-visual {
        width: 45%;
    }
}

@media (max-width: 767px) {
    .chatbot-demo-section {
        background-image: var(--mobile-bg);
        padding: 50px 20px;
        min-height: auto !important;
    }
    .chatbot-demo-container {
        display: flex;
        flex-direction: column;
        gap: 36px;
        text-align: center;
    }
    .chatbot-demo-content {
        align-items: center;
        padding: 0;
    }
    .chatbot-demo-heading {
        font-size: 32px;
    }
    .chatbot-demo-description {
        font-size: 16px;
    }
    .chatbot-demo-visual {
        position: relative;
        width: 100%;
        height: auto;
        right: auto !important;
        bottom: auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
    }
    .chatbot-demo-img-wrapper {
        justify-content: center;
        align-items: center;
    }
    .chatbot-demo-img-wrapper img {
        max-width: 80%;
        height: auto;
        max-height: 400px;
        object-position: center;
    }
}
