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

:root {
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent-orange: #ff7f50;
    --accent-blue: #4a9eff;
    --border-color: #30363d;
    --font-mono: 'Courier New', 'Courier', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Main Grid */
.benchmarks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .benchmarks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1600px) {
    .benchmarks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Styling */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: var(--accent-orange);
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.card canvas {
    flex: 1;
    min-height: 300px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 3rem;
}

.sources {
    margin-top: 2rem;
}

.sources h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.sources ul {
    list-style: none;
    padding-left: 0;
}

.sources li {
    margin-bottom: 0.75rem;
}

.sources a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.sources a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

.source-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .card h2 {
        font-size: 1.1rem;
    }

    header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
}

/* Chart.js Legend Customization */
canvas {
    max-height: 400px;
}
