:root {
    --bg-main: #050509;
    --bg-gradient-top: #280712;
    --bg-gradient-bottom: #050509;
    --card-bg: #111118;
    --card-border: rgba(255, 255, 255, 0.06);

    --red-deep: #8B1E3F;
    --red-glow: #C6284F;
    --silver: #CFCFCF;
    --silver-soft: #A8A8A8;

    --text-main: #F5F5F8;
    --text-muted: #8F8FA0;

    --radius-large: 24px;
    --radius-bubble: 18px;
    --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.9);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top, rgba(140, 30, 63, 0.35), transparent 55%),
        radial-gradient(circle at bottom, rgba(140, 30, 63, 0.25), transparent 55%),
        linear-gradient(to bottom, var(--bg-gradient-top), var(--bg-gradient-bottom));
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */

.header {
    max-width: 1120px;
    width: 92%;
    margin: 20px auto 0;
    padding: 10px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logo-main {
    color: var(--text-main);
}

.logo-accent {
    background: linear-gradient(120deg, var(--red-glow), var(--silver));
    -webkit-background-clip: text;
    color: transparent;
}

.header-right {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

/* MAIN */

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    padding-bottom: 30px;
}

.hero {
    max-width: 1120px;
    width: 92%;
    margin: 10px auto 18px;
}

.hero h1 {
    font-size: 32px;
    font-weight: 600;
    margin: 6px 0;
}

.hero h1 span {
    color: var(--red-glow);
}

.hero p {
    margin-top: 4px;
    max-width: 540px;
    font-size: 14px;
    color: var(--text-muted);
}

/* CHAT CARD */

.chat-card {
    width: 92%;
    max-width: 780px;
    margin: 0 auto;
    background: radial-gradient(circle at top left, rgba(198, 40, 79, 0.16), transparent 55%),
                radial-gradient(circle at bottom right, rgba(198, 40, 79, 0.12), transparent 55%),
                var(--card-bg);
    border-radius: var(--radius-large);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-card);
    padding: 18px 18px 12px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.chat-container {
    flex: 1;
    min-height: 260px;
    max-height: 480px;
    overflow-y: auto;
    padding: 4px 2px 10px;
}

/* scrollbar */

.chat-container::-webkit-scrollbar {
    width: 6px;
}
.chat-container::-webkit-scrollbar-thumb {
    background: rgba(200, 200, 205, 0.4);
    border-radius: 999px;
}

/* BUBBLES */

.bubble {
    padding: 11px 14px;
    margin-bottom: 10px;
    max-width: 80%;
    border-radius: var(--radius-bubble);
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
    white-space: pre-wrap;
    animation: fadeIn 0.18s ease-out;
}

.bubble ul {
    margin: 6px 0 0 18px;
    padding: 0;
}

.bubble.bot {
    margin-right: auto;
    background: rgba(15, 15, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom-left-radius: 6px;
}

.bubble.user {
    margin-left: auto;
    background: linear-gradient(120deg, var(--red-deep), var(--red-glow));
    border-bottom-right-radius: 6px;
}

/* INPUT */

.input-area {
    display: flex;
    align-items: center;
    margin-top: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 5, 9, 0.9);
    padding: 6px 7px 6px 14px;
}

.input-area:focus-within {
    border-color: var(--red-glow);
    box-shadow: 0 0 0 1px rgba(198, 40, 79, 0.35);
}

#question {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-main);
    padding: 8px 6px;
}

#question::placeholder {
    color: rgba(200, 200, 210, 0.6);
}

#send-btn {
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 9px 16px;
    background: linear-gradient(120deg, var(--red-glow), var(--silver));
    color: #050509;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* STATUS */

.status-line {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    min-height: 16px;
}

/* FOOTER */

.footer {
    max-width: 1120px;
    width: 92%;
    margin: 10px auto 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

.footer .disclaimer {
    margin-top: 4px;
}

/* ANIM */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 24px;
    }
    .chat-card {
        padding: 14px 12px 10px;
    }
}
