@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #020508;
    --card-bg: #0b1217;
    --primary-blue: #00b4d8; 
    --accent-red: #ff2a2a; 
    --text-main: #ffffff;
    --text-dim: #90a0b0;
    --border-color: rgba(255, 255, 255, 0.15);
    --grid-line: rgba(255, 255, 255, 0.15); 
}

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

body {
    background-color: var(--bg-color);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- BACKGROUND FX --- */
.background-fx {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

#snow-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- UTILS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.glow-text { text-shadow: 0 0 20px rgba(0, 180, 216, 0.4); }
.red-glow { text-shadow: 0 0 20px rgba(255, 42, 42, 0.6); color: var(--accent-red); }

/* --- LANDING PAGE --- */
.hero-section {
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mascot-lg {
    width: 240px;
    height: 240px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 40px rgba(0, 180, 216, 0.3));
    animation: float 4s ease-in-out infinite;
}

h1 {
    font-size: 4rem; /* Default Desktop Size */
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 0 40px rgba(0, 180, 216, 0.6); 
    background: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover { 
    border-color: var(--primary-blue); 
    color: var(--primary-blue); 
}

/* --- FEATURES SECTION --- */
.features-section { margin-bottom: 100px; }
.section-title { color: var(--primary-blue); margin-bottom: 3rem; font-size: 1.5rem; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover { border-color: var(--primary-blue); transform: translateY(-5px); }

.card-icon { 
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    display: block;
    border-radius: 10%; 
    border: 2px solid rgba(255,255,255,0.1);
}

.feature-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; color: white; }
.feature-card p { color: var(--text-dim); font-size: 1rem; line-height: 1.6; }

/* --- CHAT INTERFACE --- */
.chat-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.chat-box {
    width: 100%;
    max-width: 600px;
    height: 85vh;
    background: #080c10;
    border: 1px solid var(--border-color);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    overflow: hidden;
}

.chat-header {
    padding: 20px; /* Reduced slightly */
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(8, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
}

.header-mascot { width: 40px; height: 40px; vertical-align: middle; margin-right: 12px; }

.chat-messages {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- UPDATED: 20% Smaller Font Sizes for Chat --- */
.message { 
    max-width: 85%; 
    padding: 14px 18px; 
    border-radius: 20px; 
    font-size: 0.95rem; /* Reduced from 1.15rem */
    line-height: 1.5; 
    animation: fadeIn 0.3s ease; 
}

.user-msg { 
    align-self: flex-end; 
    background: #1a232d; 
    color: white; 
    border-bottom-right-radius: 4px; 
}

.ai-msg { 
    align-self: flex-start; 
    background: rgba(0, 180, 216, 0.1); 
    color: var(--primary-blue); 
    border: 1px solid rgba(0, 180, 216, 0.25); 
    border-bottom-left-radius: 4px; 
}

.ai-msg strong { color: white; }

.suggestions {
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* Reduced Suggestion Text */
.suggestion-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--text-dim);
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem; /* Reduced from 1rem */
    transition: 0.2s;
}

.suggestion-btn:hover { 
    border-color: var(--primary-blue); 
    color: var(--primary-blue); 
    background: rgba(0, 180, 216, 0.05); 
}

.input-area {
    padding: 20px;
    background: rgba(11, 18, 23, 0.95);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

/* Reduced Input Text */
.chat-input {
    flex: 1;
    background: #020508;
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 14px;
    color: white;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem; /* Reduced from 1.1rem */
}

.chat-input:focus { border-color: var(--primary-blue); box-shadow: 0 0 15px rgba(0, 180, 216, 0.1); }

.send-btn {
    background: var(--primary-blue);
    border: none;
    width: 50px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    transition: 0.2s;
}

.send-btn:hover { opacity: 0.9; transform: scale(1.05); }

@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* 13% Reduction for Phone Screens (4rem -> 3.5rem) */
    h1 {
        font-size: 3.5rem; 
    }
    
    .mascot-lg {
        width: 200px;
        height: 200px;
    }
    
    .chat-box {
        height: 90vh;
        max-width: 100%;
    }
}

