/* munju.im - Glassmorphism Frosted SaaS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --lavender-white: #F0F4FF;
    --soft-lavender: #E0E7FF;
    --dark-slate: #1E293B;
    --medium-slate: #475569;
    --indigo: #6366F1;
    --soft-indigo: #818CF8;
    --pink: #F472B6;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--lavender-white);
    color: var(--medium-slate);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Gradient Blobs */
.gradient-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: blob-drift 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--indigo);
    opacity: 0.15;
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--pink);
    opacity: 0.12;
    bottom: 20%;
    left: -80px;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--soft-indigo);
    opacity: 0.10;
    top: 50%;
    right: 10%;
    animation-delay: -14s;
}

@keyframes blob-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 16px;
}

/* Hero */
#hero {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
}

.chat-window {
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-window.visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--indigo), var(--pink));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.chat-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--dark-slate);
}

.chat-status {
    font-size: 12px;
    color: var(--soft-indigo);
}

.chat-header-info {
    display: flex;
    flex-direction: column;
}

.chat-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 16px;
    font-size: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-message.show {
    opacity: 1;
    transform: translateY(0);
}

.chat-message.received {
    align-self: flex-start;
    background: var(--soft-lavender);
    color: var(--dark-slate);
    border-radius: 20px 20px 20px 4px;
}

.chat-message.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--indigo), var(--soft-indigo));
    color: var(--white);
    border-radius: 20px 20px 4px 20px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-self: flex-start;
    padding: 12px 16px;
    background: var(--soft-lavender);
    border-radius: 20px 20px 20px 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.typing-indicator.show {
    opacity: 1;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--medium-slate);
    animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Features - Bubble Sections */
#features {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.bubble-section {
    padding: 32px;
    max-width: 520px;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bubble-section.visible {
    opacity: 1;
    transform: translateX(0);
}

.bubble-left {
    align-self: flex-start;
    border-radius: 20px 20px 20px 4px;
}

.bubble-right {
    align-self: flex-end;
    border-radius: 20px 20px 4px 20px;
    transform: translateX(40px);
}

.bubble-right.visible {
    transform: translateX(0);
}

.section-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--dark-slate);
    margin-bottom: 10px;
}

.section-body {
    font-size: 15px;
    color: var(--medium-slate);
    line-height: 1.65;
}

/* CTA */
#cta {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 60px 24px 80px;
}

.cta-panel {
    text-align: center;
    padding: 48px 40px;
    max-width: 500px;
    width: 100%;
}

.cta-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: var(--dark-slate);
    margin-bottom: 10px;
}

.cta-body {
    font-size: 15px;
    color: var(--medium-slate);
    margin-bottom: 24px;
}

.cta-input-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.cta-input {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--dark-slate);
    outline: none;
    width: 220px;
    transition: border-color 0.2s ease;
}

.cta-input:focus {
    border-color: var(--indigo);
}

.cta-input::placeholder {
    color: var(--medium-slate);
    opacity: 0.6;
}

.cta-button {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--indigo), var(--soft-indigo));
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* Footer */
#page-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 32px;
}

.footer-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--medium-slate);
    opacity: 0.4;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 600px) {
    #hero {
        padding: 24px;
    }

    .chat-window {
        max-width: 100%;
    }

    .bubble-section {
        max-width: 100%;
    }

    .cta-input-row {
        flex-direction: column;
        align-items: center;
    }

    .cta-input {
        width: 100%;
    }
}
