:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #22c55e;
    --warning-color: #eab308;
    --error-color: #ef4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
}

/* Header and Navigation */
header {
    background-color: var(--card-background);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    visibility: hidden;
    width: 40px;  /* Preserve the space */
    height: 40px;  /* Preserve the space */
}

.logo img {
    height: 40px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
}

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

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 4rem 0;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-enterprise {
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* Controls */
.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search input,
.category-filter select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 200px;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.model-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.model-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.model-header {
    margin-bottom: 1rem;
}

.model-name {
    font-size: 1.25rem;
    font-weight: 600;
}

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

.model-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.spec-item i {
    color: var(--primary-color);
}

.model-scores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.score-item {
    padding: 0.5rem;
    border-radius: 4px;
    background-color: var(--background-color);
    font-size: 0.875rem;
}

.score-value {
    font-weight: 600;
}

.model-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.details-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 0.5rem;
    margin-top: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.details-toggle:hover {
    background-color: var(--background-color);
    border-radius: 4px;
}

.hidden {
    display: none;
}

/* Methodology Section */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.methodology-item {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--card-background);
    padding: 3rem 1rem;
    margin-top: 4rem;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.company-link {
    font-weight: 500;
    color: var(--primary-color) !important;
}

.company-link i {
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section a {
        font-size: 0.9rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .view-controls {
        margin-left: 0;
    }

    .leaderboard-table {
        font-size: 0.9rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.75rem 0.5rem;
    }

    .view-details,
    .view-examples {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
        width: 100%;
    }
}

/* View Toggle Button */
.view-controls {
    margin-left: auto;
}

.view-toggle {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.view-toggle:hover {
    background-color: var(--secondary-color);
}

.view-toggle i {
    font-size: 1rem;
}

/* Leaderboard Styles */
.leaderboard-section {
    background: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.leaderboard-category-header {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--card-background);
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    min-height: 60px;
    line-height: 1.2;
}

.leaderboard-table th {
    background: var(--background-color);
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 1;
    height: 48px;
}

.leaderboard-table .rank {
    width: 40px;
    font-weight: 600;
    color: var(--primary-color);
    padding-right: 0.5rem;
}

.leaderboard-table .model-name {
    width: 25%;
    font-weight: 500;
    padding-right: 1rem;
}

.leaderboard-table .organization {
    width: 20%;
    color: var(--text-secondary);
    padding-right: 1rem;
}

.leaderboard-table .score {
    width: 80px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    padding-right: 1rem;
}

.leaderboard-table .cost {
    width: 120px;
    white-space: nowrap;
    text-align: right;
    font-family: monospace;
    font-size: 0.95rem;
    position: relative;
}

.leaderboard-table .cost i {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
    cursor: help;
}

.leaderboard-table th.cost {
    text-align: right;
    font-family: inherit;
}

/* Cost tooltip */
.cost[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--text-primary);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: pre-wrap;
    min-width: 200px;
    max-width: 300px;
    z-index: 10;
    font-family: inherit;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

/* Update responsive styles */
@media (max-width: 1024px) {
    .leaderboard-table .cost {
        min-width: 100px;
    }
}

.leaderboard-table .actions {
    width: auto;
}

.actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.view-details,
.view-examples {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 90px;
    white-space: nowrap;
    flex-shrink: 0;
}

.view-details:hover,
.view-examples:hover {
    background: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .leaderboard-section {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .leaderboard-table {
        min-width: 800px;
    }

    .leaderboard-table .model-name {
        width: 30%;
    }

    .leaderboard-table .organization {
        width: 25%;
    }
}

@media (max-width: 768px) {
    .leaderboard-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.5rem;
    }

    .actions {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.25rem 0;
    }

    .view-details,
    .view-examples {
        width: 100%;
        height: 32px;
        min-width: 0;
        font-size: 0.8rem;
    }
}

.cost-header,
.cost {
    position: relative;
    cursor: help;
}

.cost-header i,
.cost i {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.cost {
    font-family: monospace;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cost-info-note {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cost-info-note p {
    margin: 0.25rem 0;
}

.cost-info-note strong {
    color: var(--text-primary);
}

.cost-disclaimer {
    font-style: italic;
    font-size: 0.85rem;
    margin-top: 0.5rem !important;
}

/* Action buttons */
.actions {
    display: flex;
    gap: 0.5rem;
}

.view-details,
.view-examples {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    background: var(--primary-color);
    color: white;
    transition: background-color 0.2s;
}

.view-details:hover,
.view-examples:hover {
    background: var(--secondary-color);
}

/* Tooltip styles */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background: var(--text-primary);
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: pre-wrap;
    max-width: 300px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .leaderboard-section {
        padding: 1rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .cost {
        font-size: 0.8rem;
    }

    .actions {
        flex-direction: column;
        gap: 0.25rem;
    }

    .view-details,
    .view-examples {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
        width: 100%;
    }

    .cost-info-note {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background: var(--secondary-color);
}

.nav-button i {
    font-size: 1.1rem;
}

#leaderboard-section,
#model-evaluations {
    padding: 4rem 1rem;
    scroll-margin-top: 4rem;
}

#model-evaluations h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-section {
    background: var(--background-color);
    padding: 4rem 1rem;
    margin-top: 4rem;
}

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

.contact-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-content ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.contact-content li {
    background: var(--card-background);
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-content .cta-button {
    display: inline-block;
    margin-top: 2rem;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        padding: 0 1rem;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
    }

    #leaderboard-section,
    #model-evaluations {
        padding: 2rem 0.5rem;
    }

    .contact-content ul {
        grid-template-columns: 1fr;
    }
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.social-link:hover {
    color: #000; /* X's brand color is black */
}

.social-link i {
    font-size: 1.1rem;
}

.company-link,
.social-link {
    font-weight: 500;
}

.company-link {
    color: var(--primary-color) !important;
}

.company-link i,
.social-link i {
    font-size: 0.9rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .leaderboard-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .leaderboard-table .actions {
        min-width: 150px;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .view-details,
    .view-examples {
        width: 100%;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Category header styles */
.category-header {
    margin-bottom: 1.5rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.category-title h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.description-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.description-toggle:hover {
    color: var(--primary-color);
}

.description-toggle.active {
    color: var(--primary-color);
}

.category-description {
    background: var(--background-color);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    border-left: 3px solid var(--primary-color);
}

.category-description.hidden {
    display: none;
}

/* Update existing leaderboard section styles */
.leaderboard-section {
    background: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-title h3 {
        font-size: 1.25rem;
    }

    .category-description {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

/* Example display styles */
.example {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.example:not(:last-child) {
    border-bottom: 2px dashed var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.example h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.example-input,
.example-prompt,
.example-output {
    margin-bottom: 1.5rem;
}

.example-input strong,
.example-prompt strong,
.example-output strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example pre {
    background: var(--background-color);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.5;
}

.example-prompt pre {
    color: var(--text-secondary);
    font-style: italic;
    border-left: 3px solid var(--text-secondary);
}

.example-result {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

.example-result.correct {
    background: var(--success-color);
    color: white;
}

.example-result.correct::before {
    content: "✓";
    font-weight: bold;
}

.example-result.incorrect {
    background: var(--error-color);
    color: white;
}

.example-result.incorrect::before {
    content: "✗";
    font-weight: bold;
}

/* Modal adjustments for examples */
.modal-content {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.examples-list {
    margin: 1.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .example {
        padding: 1rem;
    }

    .example pre {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .example-result {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
}

