/**
 * AINNA NeuralOps LLM Model Hub
 * Corporate Minimalist Design
 * Dark/Light Mode Support
 * Glassmorphism Cards
 */

:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-glass: rgba(18, 18, 26, 0.7);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    
    --accent-primary: #00f0ff;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #00f0ff 0%, #7c3aed 100%);
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2f7;
    --bg-glass: rgba(255, 255, 255, 0.8);
    
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8a8a9a;
    
    --accent-primary: #0066ff;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #0066ff 0%, #7c3aed 100%);
    
    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 30px rgba(0, 102, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition-normal), color var(--transition-normal);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 80px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.theme-toggle .theme-icon {
    font-size: 20px;
}

/* Cache Toggle */
.cache-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cache-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    padding: 16px 0;
    transition: all var(--transition-normal);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
}

.nav-logo-icon {
    font-size: 28px;
}

.nav-logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    z-index: 0;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 8px 20px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 500;
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-highlight {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-main {
    display: block;
    color: var(--text-primary);
}

.hero-tagline {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 64px;
    width: 100%;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.section-tag {
    display: inline-block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

/* Models Section */
.models-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.models-section .container {
    max-width: 1140px;
    margin: 0 auto;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 340px));
    gap: 24px;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.model-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease-out both;
    transform: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.model-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--accent-primary);
}

.model-card:nth-child(1) { animation-delay: 0.1s; }
.model-card:nth-child(2) { animation-delay: 0.2s; }
.model-card:nth-child(3) { animation-delay: 0.3s; }
.model-card:nth-child(4) { animation-delay: 0.4s; }
.model-card:nth-child(5) { animation-delay: 0.5s; }
.model-card:nth-child(6) { animation-delay: 0.6s; }

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.model-icon {
    font-size: 48px;
}

.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-active {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.model-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.model-family {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.model-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: 20px;
}

.model-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.detail-value {
    font-size: 15px;
    color: var(--text-secondary);
}

.model-footer {
    display: flex;
    justify-content: flex-end;
}

.vllm-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    background: var(--accent-gradient);
    border-radius: 100px;
    color: #000;
}

/* Routing Section */
.routing-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.routing-explainer {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.routing-explainer p {
    font-size: 18px;
    color: var(--text-secondary);
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
    padding: 40px;
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    min-width: 140px;
    transition: all var(--transition-fast);
}

.flow-step.highlight {
    background: var(--accent-gradient);
    box-shadow: var(--shadow-glow);
}

.flow-step.highlight .flow-label {
    color: #000;
}

.flow-icon {
    font-size: 36px;
}

.flow-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.flow-arrow {
    font-size: 28px;
    color: var(--accent-primary);
}

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

.component-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: all var(--transition-normal);
}

.component-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.component-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.component-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.component-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Architecture Section */
.architecture-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.architecture-diagram {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.arch-layer {
    margin-bottom: 16px;
}

.arch-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.arch-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 32px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.top-box {
    background: var(--accent-gradient);
    color: #000;
}

.top-box .arch-text {
    font-weight: 700;
}

.router-box {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(124, 58, 237, 0.2));
    border-color: var(--accent-primary);
}

.vllm-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(0, 240, 255, 0.3));
    border-color: var(--accent-secondary);
}

.data-box {
    background: var(--bg-tertiary);
}

.arch-icon {
    font-size: 28px;
}

.arch-text {
    font-size: 18px;
    font-weight: 600;
}

.arch-arrow {
    text-align: center;
    font-size: 24px;
    color: var(--accent-primary);
    padding: 8px 0;
}

.model-pool {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pool-model {
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}

.detached-systems {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.system-item {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

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

.benefit-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: all var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Security Section */
.security-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.security-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all var(--transition-normal);
}

.security-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.security-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.security-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.security-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

.compliance-highlight {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--accent-gradient);
    padding: 32px;
    border-radius: var(--radius-lg);
    color: #000;
}

.compliance-icon {
    font-size: 56px;
    flex-shrink: 0;
}

.compliance-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.compliance-content p {
    font-size: 16px;
    opacity: 0.9;
}

/* Expansion Section */
.expansion-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.expansion-timeline {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: -32px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition-fast);
}

.timeline-content:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.cta-button.primary {
    background: var(--accent-gradient);
    color: #000;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.cta-button.secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.cta-button.secondary:hover {
    border-color: var(--accent-primary);
}

.cta-button.tertiary {
    background: transparent;
    color: var(--text-secondary);
    text-decoration: underline;
}

.cta-button.tertiary:hover {
    color: var(--accent-primary);
}

/* Footer */
.site-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.footer-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Globe Button */
.globe-button {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-tagline {
        font-size: 20px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .nav-links {
        display: none;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .compliance-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .model-card {
        padding: 24px;
    }
    
    .model-icon {
        font-size: 36px;
    }
    
    .model-name {
        font-size: 24px;
    }
}