/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.938rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 140px 24px 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.hero-logo {
    height: 120px;
    width: auto;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

/* Chat Box */
.chat-container {
    max-width: 640px;
    margin: 0 auto 32px;
}

.chat-box {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.chat-beta-banner {
    background: #fef08a;
    color: #854d0e;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.8125rem;
    line-height: 1.4;
    border-bottom: 1px solid #fde047;
    margin: -8px -8px 12px -8px;
    border-top-left-radius: calc(var(--radius-xl) - 1px);
    border-top-right-radius: calc(var(--radius-xl) - 1px);
}

.chat-beta-banner strong {
    color: #713f12;
    font-weight: 600;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send-btn {
    height: 48px;
    padding: 0 20px;
    border: none;
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chat-send-btn:hover {
    background: var(--primary-dark);
}

.chat-send-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.chat-input:disabled {
    background: var(--bg-secondary);
    cursor: wait;
}

/* New Conversational Styles */
.messages-container {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    font-size: 0.938rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.user-message {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message {
    align-self: flex-start;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}


/* CTA Button */
.cta-section {
    margin-top: 24px;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Value Props Section */
.value-props {
    padding: 80px 24px;
    background: var(--bg-primary);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.value-card p {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Page */
.features-page {
    padding: 100px 24px 60px;
    flex: 1;
}

.features-header {
    text-align: center;
    margin-bottom: 64px;
}

.features-header h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.features-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-section {
    margin-bottom: 64px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-example {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.example-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.feature-example code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    word-break: break-word;
}

/* Problem Section */
.problem-section {
    margin-bottom: 64px;
}

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

.problem-card,
.solution-card {
    padding: 32px;
    border-radius: var(--radius-lg);
}

.problem-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.solution-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.problem-card h3,
.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.problem-card ul,
.solution-card ul {
    list-style: none;
}

.problem-card li,
.solution-card li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
    font-size: 0.938rem;
    line-height: 1.5;
}

.problem-card li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 600;
}

.solution-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 600;
}

/* CTA Section on Page */
.cta-section-page {
    text-align: center;
    padding: 64px 32px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.cta-section-page h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.cta-section-page p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Footer */
.footer {
    padding: 32px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }
    
    .hero {
        padding: 120px 20px 60px;
        min-height: auto;
    }
    
    .hero-subtitle {
        margin-bottom: 32px;
    }
    
    .chat-input {
        padding: 14px 16px;
        font-size: 0.938rem;
    }
    
    .chat-send-btn {
        width: 44px;
        height: 44px;
    }
    
    .value-props {
        padding: 60px 20px;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .features-page {
        padding: 90px 20px 40px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .coming-soon-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
    }
}
