:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --success: #22c55e;
    --warning: #f59e0b;
    --border: #222222;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.5rem;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
}

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

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--border);
}

.news-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: var(--accent);
}

.news-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.news-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    color: var(--accent);
    font-weight: 500;
}

.news-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-summary {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.news-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.highlight {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-primary);
    border-radius: 4px;
    color: var(--success);
    font-family: 'JetBrains Mono', monospace;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-bottom: 48px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.leaderboard-table th {
    text-align: left;
    padding: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.leaderboard-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.leaderboard-table tr:hover {
    background: var(--bg-tertiary);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    background: var(--bg-tertiary);
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #000;
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
    color: #000;
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #fff;
}

.score {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--success);
}

/* Benchmark Legend */
.benchmark-legend {
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.benchmark-legend h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

.legend-item strong {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.legend-item span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Spotlight */
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.spotlight-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

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

.spotlight-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.spotlight-badge {
    font-size: 0.6875rem;
    padding: 4px 10px;
    background: var(--accent);
    color: white;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spotlight-badge.open {
    background: var(--success);
}

.spotlight-benchmarks {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.benchmark-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.benchmark-name {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.bar {
    height: 28px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #60a5fa);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    transition: width 0.5s ease;
}

.spotlight-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.pricing-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.pricing-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.pricing-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.pricing-model {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-model:last-child {
    border-bottom: none;
}

.model-name {
    font-weight: 500;
}

.model-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--success);
}

.model-price small {
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

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

.footer-update {
    margin-top: 8px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-card.featured {
        grid-column: span 2;
    }
    
    .legend-grid,
    .spotlight-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .news-grid,
    .legend-grid,
    .spotlight-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card.featured {
        grid-column: span 1;
    }
    
    .nav-links {
        display: none;
    }
}
