:root {
    --primary: #4f46e5;
    --secondary: #f43f5e;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --success: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: white;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #e11d48;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #64748b;
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.features p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #64748b;
}

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

.feature-card {
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Demo Section */
.demo {
    padding: 5rem 0;
    background-color: #f1f5f9;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.demo-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.demo-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.demo-card p {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Chat Window */
#chat-window {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-height: 600px;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.chat-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.message {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
    max-width: 80%;
}

.user-message {
    background-color: #eef2ff;
    border-left-color: #818cf8;
    margin-right: auto;
}

.bot-message {
    margin-left: auto;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

#message-input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    outline: none;
    transition: all 0.2s;
}

#message-input:focus {
    border-color: var(--primary);
}

#send-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

#send-button:hover {
    background-color: #4338ca;
}

/* Chat Toggle Button */
.chat-toggle-button {
    display: block;
    margin: 0 auto;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.chat-toggle-button:hover {
    background-color: #4338ca;
    transform: scale(1.05);
}

.chat-icon {
    width: 30px;
    height: 30px;
    display: block;
    margin: 0 auto;
}

/* Chat Container */
#chat-container {
    min-height: 10rem;
    max-height: 30rem;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

/* Chat Buttons */
.chat-action-button {
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.chat-action-button:hover {
    background-color: #4338ca;
}

.chat-actions {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.chat-actions li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    background-color: var(--dark);
    color: white;
    text-align: center;
}

footer p {
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--gray);
}

.copyright {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .demo-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    #chat-window {
        width: 100%;
        max-width: 100%;
        bottom: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
    }
}
