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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.main-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 18px;
    color: #888;
    font-weight: 300;
}

.main-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.view-toggle {
    display: flex;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 4px;
}

.toggle-btn {
    padding: 12px 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.toggle-btn:hover {
    color: #fff;
}

.toggle-btn.active {
    background: #333;
    color: #fff;
}

/* Demo View Specific Styles */
.demo-view {
    display: none;
}

.demo-view.active {
    display: block;
}

.use-case-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.use-case-tab {
    padding: 12px 24px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.use-case-tab:hover {
    border-color: #555;
    color: #fff;
}

.use-case-tab.active {
    background: #333;
    border-color: #555;
    color: #fff;
}

.demo-container {
    background: #0a0a0a;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #1a1a1a;
}

.demo-header {
    text-align: center;
    margin-bottom: 40px;
}

.demo-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 8px;
}

.demo-description {
    color: #888;
    font-size: 16px;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.before-after {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.before-after:hover {
    border-color: #333;
}

.label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
}

.before .label {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.after .label {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Before styling - generic text */
.generic-output {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 13px;
    color: #ccc;
    white-space: pre-line;
    background: #0a0a0a;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #222;
    /* max-height: 600px; */
    overflow-y: auto;
}

/* Enhanced UI Components */
.enhanced-interface {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 24px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.metric-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: #555;
    transform: translateY(-2px);
}

.metric-value {
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.insight-section {
    margin-bottom: 32px;
}

.insight-header {
    font-weight: 500;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.insight-icon {
    margin-right: 12px;
    font-size: 16px;
}

.insight-list {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.insight-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #333;
}

.insight-item:last-child {
    border-bottom: none;
}

.status-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-high { 
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-medium { 
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-low { 
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 16px;
}

.priority-high { background: #ef4444; }
.priority-medium { background: #f59e0b; }
.priority-low { background: #10b981; }

.progress-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
}

.progress-bar {
    background: #333;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
    transition: width 0.3s ease;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tag {
    background: #1a1a1a;
    color: #ccc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #333;
}

.key-terms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.key-term {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 16px;
    border-radius: 8px;
}

.key-term-label {
    font-weight: 500;
    color: #fff;
    font-size: 14px;
}

.key-term-value {
    color: #888;
    font-size: 13px;
    margin-top: 4px;
}

/* Component Analysis Specific Styles */
.component-view {
    display: none;
}

.component-view.active {
    display: block;
}

.component-analysis {
    background: #0a0a0a;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #1a1a1a;
}

.analysis-header {
    text-align: center;
    margin-bottom: 50px;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.component-category {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 24px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.category-icon {
    font-size: 20px;
}

.category-header h3 {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    flex: 1;
}

.usage-indicator {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.component-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.component-card:hover {
    border-color: #555;
    transform: translateY(-2px);
}

.component-preview {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-metric {
    text-align: center;
    min-width: 80px;
}

.mini-value {
    font-size: 18px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 4px;
}

.mini-label {
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.mini-progress-bar {
    width: 80px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
}

.mini-tag {
    background: #333;
    color: #ccc;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 500;
}

.mini-list-item {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: #ccc;
    margin-bottom: 4px;
}

.mini-priority-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    margin-right: 8px;
}

.mini-keyvalue {
    text-align: center;
}

.mini-key {
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.mini-value-small {
    font-size: 11px;
    color: #fff;
    font-weight: 500;
}

.component-name {
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
}

.semantic-pattern {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
    font-style: italic;
}

.domain-usage {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.domain-tag {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 500;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.ai-pipeline {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
}

.pipeline-header {
    text-align: center;
    margin-bottom: 32px;
}

.pipeline-header h3 {
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 8px;
}

.pipeline-header p {
    color: #888;
    font-size: 14px;
}

.pipeline-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pipeline-step {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-width: 160px;
    transition: all 0.3s ease;
}

.pipeline-step:hover {
    border-color: #555;
    transform: translateY(-2px);
}

.step-number {
    width: 32px;
    height: 32px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    margin: 0 auto 12px;
    font-size: 14px;
}

.step-title {
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
}

.step-description {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.pipeline-arrow {
    color: #555;
    font-size: 20px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .comparison {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .demo-container, .component-analysis {
        padding: 24px;
    }
    
    .component-grid {
        grid-template-columns: 1fr;
    }
    
    .pipeline-steps {
        flex-direction: column;
    }
    
    .pipeline-arrow {
        transform: rotate(90deg);
        margin: 16px 0;
    }
    
    .use-case-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .view-toggle {
        flex-direction: column;
        width: 200px;
    }
}