/* Shared Styles for Product Demos */
.demo-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.app-window { 
    width: 95%; 
    max-width: 900px; 
    height: 700px; 
    max-height: 80vh;
    background-color: white; border-radius: 16px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; 
    display: flex; overflow: hidden; 
}
.sidebar { 
    width: 180px; background-color: #f8fafc; border-right: 1px solid #e2e8f0; 
    padding: 20px; display: flex; flex-direction: column; 
}
.main-content { 
    flex-grow: 1; padding: 20px; position: relative; 
    display: flex; flex-direction: column; align-items: center; 
}
.upload-zone { 
    width: 100%; max-width: 600px; border: 2px dashed #cbd5e1; border-radius: 12px; 
    height: 200px; display: flex; flex-direction: column; justify-content: center; 
    align-items: center; color: #64748b; transition: all 0.3s; text-align: center;
}
.upload-zone.active { border-color: #4f46e5; background-color: #eef2ff; color: #4f46e5; }
.document-view { 
    width: 100%; max-width: 550px; background-color: white; border: 1px solid #e2e8f0; 
    border-radius: 4px; padding: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    display: none; font-family: 'Georgia', serif; line-height: 1.8; color: #334155;
    white-space: pre-wrap;
}
.redline { 
    background-color: rgba(239, 68, 68, 0.1); 
    border-bottom: 2px solid #ef4444; 
    cursor: help; 
    transition: all 0.3s ease;
}
.redline:hover::after {
    content: attr(data-causal);
    position: absolute; bottom: 120%; left: 0;
    background: #1e293b; color: white; padding: 6px 12px;
    font-size: 12px; border-radius: 6px; font-family: 'Inter', sans-serif;
    white-space: nowrap; z-index: 10;
}
.progress-container { 
    width: 100%; max-width: 600px; height: 8px; background: #e2e8f0; border-radius: 4px; 
    overflow: hidden; display: none; margin-bottom: 20px; 
}
.progress-bar { width: 0%; height: 100%; background: #4f46e5; transition: width 0.1s linear; }
.sidebar-item { 
    padding: 8px 12px; border-radius: 6px; cursor: pointer; 
    font-size: 14px; color: #64748b; transition: 0.2s; margin-bottom: 4px; 
}
.sidebar-item.active { background: #eef2ff; color: #4f46e5; font-weight: 600; }

/* Terminal styles */
.terminal-window { 
    width: 95%; max-width: 800px; height: 500px; max-height: 70vh;
    background-color: #1e293b; border-radius: 12px; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); border: 1px solid #334155; 
    display: flex; flex-direction: column; overflow: hidden; position: relative; 
}
.terminal-header { background-color: #334155; padding: 12px; display: flex; flex-direction: row; gap: 8px; align-items: center;}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background-color: #ff5f56; } .yellow { background-color: #ffbd2e; } .green { background-color: #27c93f; }
.terminal-body { padding: 20px; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 14px; color: #f8fafc; overflow-y: auto; flex-grow: 1; white-space: pre-wrap; }
.prompt { color: #4ade80; font-weight: bold; margin-right: 8px; }
.response { color: #cbd5e1; margin-bottom: 8px; display: block; }
.cursor { display: inline-block; width: 8px; height: 18px; background-color: #f8fafc; animation: blink 1s infinite; vertical-align: middle; }

/* Chat styles */
.chat-container { 
    width: 95%; max-width: 600px; height: 700px; max-height: 80vh;
    background-color: white; border-radius: 24px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; 
    display: flex; flex-direction: column; overflow: hidden; 
}
.chat-header { padding: 20px; background-color: white; border-bottom: 1px solid #e2e8f0; text-align: center; font-weight: 600; color: #1e293b; }
.chat-body { flex-grow: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.bubble { max-width: 80%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.5; position: relative; }
.user-bubble { align-self: flex-end; background-color: #4f46e5; color: white; border-bottom-right-radius: 4px; }
.bot-bubble { align-self: flex-start; background-color: #f1f5f9; color: #334155; border-bottom-left-radius: 4px; }
.chat-footer { padding: 20px; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; background-color: white; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .app-window {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        flex-direction: row;
        overflow-x: auto;
    }
    .sidebar-item {
        white-space: nowrap;
        margin-bottom: 0;
        margin-right: 8px;
    }
    .main-content {
        padding: 15px;
    }
    .document-view {
        padding: 15px;
    }
    .terminal-window, .chat-container {
        width: 100%;
        height: auto;
    }
}

/* Fluid Typography for Hero Sections */
.hero-title {
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -1px !important;
    font-size: 2.25rem !important; /* Mobile: ~36px */
}
@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem !important; /* Desktop: ~64px */
    }
}

.hero-subtitle {
    opacity: 0.95 !important;
    line-height: 1.6 !important;
    font-size: 1.125rem !important; /* Mobile: ~18px */
}
@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem !important; /* Desktop: ~24px */
    }
}

.section-title {
    font-weight: 700 !important;
    line-height: 1.3 !important;
    font-size: 1.75rem !important; /* Mobile default */
}
@media (min-width: 768px) {
    .section-title {
        font-size: 2.55rem !important; /* Desktop default */
    }
}

