:root {
    color-scheme: light;
    --bg-page: #ffffff;
    --bg-phone: #ffffff;
    --primary-gradient: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
    /* The image has a pink/purple vibe */
    --highlight-gradient: linear-gradient(90deg, #b06ab3 0%, #4568dc 100%);
    --glow-color: rgba(224, 170, 255, 0.4);

    --text-primary: #111827;
    --text-secondary: #6b7280;

    --input-bg: #f3f4f6;
    --border-light: #e5e7eb;

    --bot-msg-bg: #FFFFFF;
    /* White bubble */
    --user-msg-bg: #FEE500;
    /* Yellow bubble */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Force background to be white to prevent dark mode override */
    background-color: #ffffff;
}

/* Container */
.showcase-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    padding: 20px;
    gap: 80px;
    align-items: center;
    justify-content: center;
}

/* Left Column: Mockup */
.mockup-column {
    position: relative;
    width: 400px;
    /* Rigid phone width */
    height: 750px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-backdrop {
    position: absolute;
    width: 120%;
    height: 90%;
    background: radial-gradient(circle, #fbc2eb 0%, #a6c1ee 100%);
    filter: blur(60px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    transform: translate(-10px, -10px);
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: var(--bg-phone);
    border-radius: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    position: relative;
}

/* Chat Header */
.chat-header {
    height: 70px;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    /* Clean look */
}

.header-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 36px;
    /* Adjust height to fit header nicely */
    width: auto;
    object-fit: contain;
}

.restart-btn {
    border: 1px solid var(--border-light);
    background: white;
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.restart-btn:hover {
    background: #f9fafb;
}

/* Chat Area */
.chat-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: white;
}

/* Chat Bubbles */
.message {
    max-width: 85%;
    padding: 12px 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    word-break: keep-all;
    /* Korean word break */
}

.message.bot {
    align-self: flex-start;
    background: var(--bot-msg-bg);
    color: var(--text-primary);
    border-radius: 20px;
    border-top-left-radius: 4px;
    border: 1px solid #e5e7eb;
    /* Visibility on white */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Special styling for the first bot welcome block (Removed to align with standard bubble style) */

.message.user {
    align-self: flex-end;
    background: var(--user-msg-bg);
    color: var(--text-primary);
    border-radius: 20px;
    border-top-right-radius: 4px;
    font-weight: 500;
}

/* Input Area */
.input-area {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
}

.attach-btn,
.send-circle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.send-circle-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e5e7eb;
    /* Default gray circle */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.send-circle-btn.active {
    background: #4F46E5;
    /* Active color */
}

#user-input {
    flex: 1;
    background: var(--input-bg);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Right Column: Content */
.content-column {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.highlight-text {
    background: var(--highlight-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

/* Suggestion Chips */
.suggestion-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.suggestion-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.suggestion-chips {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.chip {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    color: #6b7280;
    padding: 12px 24px;
    border-radius: 50px;
    /* Fully rounded pill */
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-family: var(--font-body);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.chip:hover {
    background: white;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* Typing Cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--text-primary);
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .showcase-container {
        flex-direction: column;
        height: auto;
        gap: 15px;
        padding-bottom: 50px;
    }

    .mockup-column {
        height: 600px;
        width: 100%;
        max-width: 400px;
        order: 2;
        /* Chatbot in the middle */
        margin-bottom: 10px;
    }

    .content-column {
        display: contents;
        /* Unwrap to reorder children */
    }

    .content-column h1 {
        order: 1;
        text-align: center;
        width: 100%;
        margin-bottom: 5px;
    }

    .content-column .sub-text {
        order: 1;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .suggestion-group {
        order: 3;
        /* Suggestions at the bottom */
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .suggestion-chips {
        align-items: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        height: auto;
        overflow-y: auto;
        /* Enable vertical scrolling */
        display: block;
        /* Remove flex centering */
    }

    .showcase-container {
        height: auto;
        padding: 20px;
        gap: 30px;
    }

    .mockup-column {
        height: 80vh;
        /* Use viewport height for visual balance */
        max-height: 600px;
        width: 100%;
    }

    .phone-frame {
        border-radius: 20px;
        /* Slightly smaller radius */
    }

    h1 {
        font-size: 2rem;
        /* Smaller heading */
    }

    .sub-text {
        font-size: 1rem;
    }

    .chip {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}