/* ==========================================================================
   Alternative 4: Interactive Pure ChatGPT Hero (Clean White Experience)
   ========================================================================== */

/* Hero container layout */
.hero-copy-block {
    max-width: 900px !important;
    width: 100%;
}

.hero-centered-section {
    padding-top: clamp(108px, 13vh, 120px) !important;
    padding-bottom: clamp(24px, 3vh, 36px) !important;
}

/* Hero Presentation Title (Prominent 2-line title with balanced spacing) */
.hero-presentation-header {
    opacity: 1;
    margin-bottom: 22px;
}

.hero-presentation-header .hero-centered-title {
    font-size: clamp(42px, 5.2vw, 68px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.03em !important;
    max-width: 14ch !important;
    margin: 0 auto !important;
    text-wrap: balance !important;
}

/* White ChatGPT Hero Container (Balanced empty canvas space below opening messages, expands on interaction) */
.hero-chat-container {
    width: 100%;
    max-width: 820px;
    height: 260px;
    margin: 0 auto;
    background: #ffffff;
    color: #0f172a;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08),
                0 1px 3px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    text-align: left;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-chat-container.is-extended {
    height: 480px;
}

.hero-chat-container.is-extended .hero-chat-messages {
    padding: 20px 24px 14px;
    gap: 14px;
}

.hero-chat-container:hover {
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.12),
                0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Chat Messages Window */
.hero-chat-messages {
    flex: 1;
    padding: 16px 20px 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    background: #ffffff;
    transition: padding 0.3s ease, gap 0.3s ease;
}

.hero-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.hero-chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.hero-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

/* Message Rows */
.chat-msg-row {
    display: flex;
    gap: 10px;
    width: 100%;
    animation: chatMsgAppear 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chatMsgAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg-row.is-user {
    justify-content: flex-end;
}

.chat-msg-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: width 0.3s ease, height 0.3s ease;
}

.chat-msg-avatar svg {
    width: 13px;
    height: 13px;
    transition: width 0.3s ease, height 0.3s ease;
}

.chat-msg-avatar.avatar-bot {
    background: #0f172a;
    color: #ffffff;
}

.chat-msg-avatar.avatar-user {
    display: none;
}

.chat-msg-bubble {
    font-size: 14px;
    line-height: 1.48;
    word-break: break-word;
    transition: font-size 0.3s ease, line-height 0.3s ease;
}

.hero-chat-container.is-extended .chat-msg-row {
    gap: 12px;
}

.hero-chat-container.is-extended .chat-msg-avatar {
    width: 26px;
    height: 26px;
    margin-top: 2px;
}

.hero-chat-container.is-extended .chat-msg-avatar svg {
    width: 14px;
    height: 14px;
}

.hero-chat-container.is-extended .chat-msg-bubble {
    font-size: 14.5px;
    line-height: 1.55;
}

.chat-msg-row.is-user .chat-msg-bubble {
    background: #f4f4f5;
    color: #0f172a;
    border: 1px solid #e4e4e7;
    border-radius: 18px 18px 4px 18px;
    padding: 10px 16px;
    max-width: 82%;
    font-weight: 450;
}

.chat-msg-row.is-bot .chat-msg-bubble {
    color: #1e293b;
    max-width: 92%;
    padding: 2px 0;
}

/* Clean Bot List & Text Typography */
.bot-reply-text p {
    margin: 0 0 8px 0;
    color: #1e293b;
}

.bot-reply-text p:last-child {
    margin-bottom: 0;
}

.bot-clean-list {
    margin: 8px 0 10px 0;
    padding-left: 20px;
    color: #334155;
    line-height: 1.65;
}

.bot-clean-list li {
    margin-bottom: 6px;
}

.bot-clean-list li:last-child {
    margin-bottom: 0;
}

.bot-clean-list strong {
    color: #0f172a;
    font-weight: 600;
}

.chat-benefit-link {
    color: #0f172a;
    text-decoration: underline;
    text-decoration-color: #2563eb;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2.5px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.chat-benefit-link:hover {
    color: #2563eb;
    text-decoration-color: #1d4ed8;
}

.agent-split-row {
    scroll-margin-top: 100px;
}

/* Chat Input Area (Pure ChatGPT style) */
.hero-chat-input-area {
    padding: 8px 16px 10px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    transition: padding 0.3s ease;
}

.hero-chat-container.is-extended .hero-chat-input-area {
    padding: 12px 20px 14px;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 22px;
    padding: 4px 8px 4px 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s, padding 0.3s ease, border-radius 0.3s ease;
}

.hero-chat-container.is-extended .chat-input-wrapper {
    padding: 6px 8px 6px 18px;
    border-radius: 26px;
    gap: 10px;
}

.chat-input-wrapper:focus-within {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.hero-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #0f172a;
    font-size: 13.5px;
    line-height: 1.4;
    resize: none;
    max-height: 90px;
    font-family: inherit;
    transition: font-size 0.3s ease;
}

.hero-chat-container.is-extended .hero-chat-input {
    font-size: 14.5px;
    line-height: 1.45;
}

.hero-chat-input::placeholder {
    color: #94a3b8;
}

.hero-chat-send-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hero-chat-send-btn svg {
    width: 13px;
    height: 13px;
}

.hero-chat-container.is-extended .hero-chat-send-btn {
    width: 32px;
    height: 32px;
}

.hero-chat-container.is-extended .hero-chat-send-btn svg {
    width: 15px;
    height: 15px;
}

.hero-chat-send-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: scale(1.05);
}

.hero-chat-send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #cbd5e1;
    color: #ffffff;
}

/* Post Chat Actions */
.hero-post-chat-actions {
    margin-top: 18px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-centered-section {
        padding-top: 90px !important;
    }

    .hero-presentation-header {
        margin-bottom: 18px !important;
    }

    .hero-presentation-header .hero-centered-title {
        font-size: clamp(32px, 8.5vw, 44px) !important;
        max-width: 14ch !important;
    }

    .hero-chat-container {
        border-radius: 16px;
        height: 260px;
    }

    .hero-chat-container.is-extended {
        height: 460px;
    }

    .hero-chat-messages {
        padding: 14px 16px 8px;
        gap: 8px;
    }

    .chat-msg-row.is-user .chat-msg-bubble {
        max-width: 88%;
        font-size: 13.5px;
    }

    .hero-chat-input-area {
        padding: 8px 12px 10px;
    }
}
