* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
    --accent: #3b82f6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
}

.tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.description {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 24px 32px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-alt);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 48px;
    text-align: center;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.capability-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.capability-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.capability-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.capability-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.capability-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Experience Section */
.experience {
    padding: 100px 0;
}

.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.experience-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 32px;
    bottom: -48px;
    width: 2px;
    background: var(--border);
}

.experience-marker {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.experience-content h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.role {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.experience-content ul {
    list-style: none;
}

.experience-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.experience-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 2px;
    background: var(--primary);
}

/* Philosophy Section */
.philosophy {
    padding: 100px 0;
    background: var(--bg-alt);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-item {
    padding: 24px;
    border-left: 3px solid var(--primary);
    background: white;
}

.philosophy-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.philosophy-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Chat Section */
.chat-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
}

.chat-section h2 {
    color: white;
}

.chat-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
    opacity: 0.9;
}

.chat-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-content {
    padding: 14px 18px;
    border-radius: 16px;
    line-height: 1.5;
    color: var(--text);
}

.message.assistant .message-content {
    background: #f3f4f6;
    border-bottom-left-radius: 4px;
}

.message.user .message-content {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-container {
    display: flex;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: #f9fafb;
}

.chat-input-container input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-container input:focus {
    border-color: var(--primary);
}

.chat-input-container button {
    margin-left: 12px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-input-container button:hover {
    background: var(--primary-dark);
}

.chat-input-container button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Footer */
.footer {
    padding: 60px 0;
    background: #111827;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.footer p {
    opacity: 0.8;
}

.footer-note {
    margin-top: 8px;
    font-size: 0.9rem;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
}

.modal-content h3 {
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.modal-content input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 16px;
}

.modal-content button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.modal-content button:hover {
    background: var(--primary-dark);
}

/* Loading indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    background: #f3f4f6;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat {
        flex: 1;
        min-width: 140px;
        padding: 16px 20px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .capabilities-grid,
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-buttons {
        flex-direction: column;
    }
}
