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

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

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

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: #0f766e;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #0f766e;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0f766e;
}

.nav-links a.nav-external {
    color: #0f766e;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #0f766e 0%, #155e75 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

#hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

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

.stat .number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat .label {
    font-size: 1rem;
    opacity: 0.8;
}

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

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: #1f2937;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text a {
    color: #0f766e;
    font-weight: 500;
}

.about-text code,
.task-description code,
.complaint code {
    background: #ecfdf5;
    color: #065f46;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.task-types {
    list-style: none;
    margin: 0 0 1.5rem 0;
}

.task-types li {
    background: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border-left: 4px solid #0f766e;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    background: #f0fdfa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #0f766e;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

/* Examples Section */
#examples {
    background: #f8fafc;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2rem;
}

.example-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.example-header h3 {
    font-size: 1.25rem;
    color: #1f2937;
}

.task-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.task-type-badge.type-task {
    background: #dbeafe;
    color: #1e40af;
}

.task-type-badge.type-ticket {
    background: #fee2e2;
    color: #991b1b;
}

.task-description {
    margin-bottom: 1.25rem;
}

.task-description h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.task-description p {
    margin-bottom: 1rem;
}

.complaint {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-style: italic;
    color: #7c2d12;
}

.mcp-note {
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.mcp-note h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #155e75;
}

.mcp-note ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #0e7490;
    font-size: 0.95rem;
}

.mcp-note li {
    margin-bottom: 0.25rem;
}

.mcp-note code {
    background: #cffafe;
    color: #155e75;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.88em;
}

pre {
    background: #1f2937;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.75rem 0;
    overflow-x: auto;
}

pre code {
    color: #e5e7eb;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre;
}

.solution {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.solution h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #059669;
}

/* Leaderboard Section */
.leaderboard-note {
    max-width: 850px;
    margin: -1.5rem auto 2.5rem;
    text-align: center;
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.7;
}

.leaderboard-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f0fdfa;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-weight: 600;
    color: #374151;
}

tbody td:nth-child(3) {
    color: #0f766e;
}

tr:hover {
    background: #f9fafb;
}

/* Metrics */
.metrics {
    margin-top: 3rem;
}

.metrics h3 {
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

.metric-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-cards-row {
    flex-direction: row;
    gap: 2rem;
}

.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
}

.metric-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #0f766e;
}

/* Footer */
footer {
    background: #1f2937;
    color: #9ca3af;
    text-align: center;
    padding: 2rem 0;
}

footer a {
    color: #5eead4;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    #hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .metric-cards-row {
        flex-direction: column;
        gap: 1rem;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }
}
