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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #667eea;
}

.hero {
    padding: 120px 2rem 80px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-demo {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.llrm-query-demo h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#queryInput {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.execute-btn, .run-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.execute-btn:hover, .run-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.query-result {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    text-align: left;
    font-family: monospace;
    min-height: 60px;
    color: #333;
}

.applications {
    padding: 80px 2rem;
    background: white;
    text-align: center;
}

.applications h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.app-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #667eea;
    transform: scale(1.2);
}

.app-display {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    height: 400px;
}

.app-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.app-card.active {
    opacity: 1;
    transform: translateX(0);
}

.app-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.app-visual {
    height: 200px;
    margin: 1rem 0;
}

.market-projections {
    padding: 80px 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
}

.market-projections h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.projections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projection-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.projection-card:hover {
    transform: translateY(-10px);
}

.projection-card h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.chart-container {
    height: 300px;
    margin-bottom: 1rem;
}

.projection-card p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.tech-hero {
    padding: 120px 2rem 80px;
    text-align: center;
    color: white;
}

.tech-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.llrm-sql-examples {
    padding: 80px 2rem;
    background: white;
}

.llrm-sql-examples h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.example-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.tab-btn.active, .tab-btn:hover {
    background: #667eea;
    color: white;
}

.example-content {
    max-width: 1000px;
    margin: 0 auto;
}

.example {
    display: none;
    width: 100%;
}

.example.active {
    display: block;
}

.example h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.code-demo {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
}

.code-demo pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.result-area {
    background: #e6fffa;
    border: 1px solid #38b2ac;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    min-height: 60px;
    font-family: monospace;
    color: #2d3748;
}

.tech-architecture {
    padding: 80px 2rem;
    background: #f8f9fa;
}

.tech-architecture h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.arch-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.arch-component {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.arch-component:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.arch-component h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.tech-diagram {
    height: 300px;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ai-functions {
    padding: 80px 2rem;
    background: white;
}

.ai-functions h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.function-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s;
}

.function-card:hover {
    transform: translateY(-3px);
}

.function-card h4 {
    color: #667eea;
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .example-tabs {
        flex-wrap: wrap;
    }
    
    .arch-container {
        grid-template-columns: 1fr;
    }
}
/* Agentic Architecture Styles */
.agent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.agent-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.agent-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.agent-box small {
    display: block;
    font-size: 0.7em;
    opacity: 0.8;
    margin-top: 4px;
}

/* Responsive Design for Agentic Components */
@media (max-width: 768px) {
    .agent-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .projections-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projection-card {
        padding: 1.5rem;
    }
    
    .agent-box {
        padding: 12px;
        font-size: 0.95em;
    }
}

/* Enhanced Query Result Styling */
.query-result table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
}

.query-result table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
}

.query-result table tr:nth-child(even) {
    background: rgba(102, 126, 234, 0.05);
}
/* Enhanced Flow Diagram Styles */
.flow-diagram {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.flow-row {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.flow-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 300px;
}

.flow-box:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transform: translateY(-2px);
}

.flow-box h4 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 1.1em;
}

.flow-arrow {
    text-align: center;
    font-size: 2em;
    color: #667eea;
    margin: 5px 0;
}

.agent-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.agent-mini-grid span {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8em;
}

.processing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.proc-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.component-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: none;
}

.detail-card.active {
    display: block;
}

.detail-card h4 {
    color: #667eea;
    margin: 0 0 15px 0;
}

.detail-card ul {
    margin: 0;
    padding-left: 20px;
}

.detail-card li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Layer-specific colors */
.input-layer { border-color: #4CAF50; }
.input-layer h4 { color: #4CAF50; }

.agent-layer { border-color: #FF9800; }
.agent-layer h4 { color: #FF9800; }

.processing-layer { border-color: #9C27B0; }
.processing-layer h4 { color: #9C27B0; }

.integration-layer { border-color: #2196F3; }
.integration-layer h4 { color: #2196F3; }

.output-layer { border-color: #F44336; }
.output-layer h4 { color: #F44336; }
/* Main LLRM Model Styles */
.main-llrm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.main-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    border-radius: 6px;
    font-size: 0.75em;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Agent Container with Individual LLRM Models */
.agent-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
}

.agent-llrm-box {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 193, 7, 0.1));
    border: 2px solid rgba(255, 152, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agent-llrm-box:hover {
    border-color: rgba(255, 152, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 193, 7, 0.2));
    transform: translateY(-2px);
}

.agent-llrm-box h5 {
    margin: 0 0 8px 0;
    color: #FF9800;
    font-size: 0.9em;
}

.mini-llrm {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px;
    margin: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mini-llrm div {
    font-size: 0.7em;
    margin: 2px 0;
}

.agent-llrm-box p {
    margin: 8px 0 0 0;
    font-size: 0.8em;
    opacity: 0.9;
}

/* External Grid */
.external-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.external-grid span {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 6px;
    font-size: 0.8em;
    text-align: center;
}

/* Layer-specific colors */
.user-layer { border-color: #4CAF50; }
.user-layer h4 { color: #4CAF50; }

.main-llrm-layer { border-color: #9C27B0; }
.main-llrm-layer h4 { color: #9C27B0; }

.external-layer { border-color: #607D8B; }
.external-layer h4 { color: #607D8B; }

/* Function Category Styles */
.ai-functions h3 {
    color: #667eea;
    margin: 30px 0 15px 0;
    font-size: 1.3em;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    padding-bottom: 8px;
}

.main-function { border-left: 4px solid #9C27B0; }
.doc-function { border-left: 4px solid #4CAF50; }
.web-function { border-left: 4px solid #FF9800; }
.mcp-function { border-left: 4px solid #2196F3; }
.gen-function { border-left: 4px solid #F44336; }

/* Responsive Design Updates */
@media (max-width: 768px) {
    .agent-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .main-llrm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .external-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .agent-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
