/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0f;
    --bg-alt: #0f0f18;
    --surface: #151520;
    --surface-hover: #1c1c2e;
    --border: #2a2a3d;
    --text: #e4e4ed;
    --text-secondary: #9595ad;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.25);
    --green: #00d2a0;
    --green-glow: rgba(0, 210, 160, 0.2);
    --orange: #f0a040;
    --red: #f05060;
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header__inner {
    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;
}

.logo__icon {
    font-size: 1.5rem;
}

.logo__accent {
    color: var(--accent-light);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--text);
}

.nav__link:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(108, 92, 231, 0.05);
}

/* Hero Stats */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.hero__stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section__header {
    text-align: center;
    margin-bottom: 56px;
}

.section__title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section__desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tabs__btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.tabs__btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.tabs__btn--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ===== Table ===== */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.table thead {
    background: rgba(108, 92, 231, 0.06);
}

.table th {
    padding: 14px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    text-align: left;
    white-space: nowrap;
    cursor: default;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 14px 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(42, 42, 61, 0.5);
    transition: var(--transition);
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: var(--surface-hover);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table__rank {
    width: 48px;
    text-align: center !important;
}

.table__model {
    min-width: 180px;
}

.table__score {
    width: 100px;
    text-align: center !important;
}

.table__bar {
    width: 160px;
}

/* Model cell */
.model-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.model-cell__logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.model-cell__info {
    display: flex;
    flex-direction: column;
}

.model-cell__name {
    font-weight: 600;
    font-size: 0.95rem;
}

.model-cell__provider {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Rank badge */
.rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.rank--1 { background: linear-gradient(135deg, #ffd700, #f0a040); color: #1a1a2e; }
.rank--2 { background: linear-gradient(135deg, #c0c0c0, #a0a0b0); color: #1a1a2e; }
.rank--3 { background: linear-gradient(135deg, #cd7f32, #b06020); color: #1a1a2e; }
.rank--default { background: var(--surface-hover); color: var(--text-secondary); }

/* Score cell */
.score {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.score--high { color: var(--green); }
.score--mid { color: var(--orange); }
.score--low { color: var(--red); }

/* Level bar */
.level-bar {
    width: 100%;
    height: 8px;
    background: rgba(42, 42, 61, 0.5);
    border-radius: 100px;
    overflow: hidden;
}

.level-bar__fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.level-bar__fill--high { background: linear-gradient(90deg, var(--accent), var(--green)); }
.level-bar__fill--mid { background: linear-gradient(90deg, var(--accent), var(--orange)); }
.level-bar__fill--low { background: linear-gradient(90deg, var(--orange), var(--red)); }

/* ===== Benchmark Cards ===== */
.bench-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.bench-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.bench-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.bench-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bench-card__title {
    font-size: 1.15rem;
    font-weight: 700;
}

.bench-card__tag {
    padding: 4px 12px;
    background: var(--accent-glow);
    color: var(--accent-light);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bench-card__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.bench-card__bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Bench bar row */
.bench-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bench-row__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bench-row__track {
    flex: 1;
    height: 6px;
    background: rgba(42, 42, 61, 0.5);
    border-radius: 100px;
    overflow: hidden;
}

.bench-row__fill {
    height: 100%;
    border-radius: 100px;
    background: var(--accent);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.bench-row__value {
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 42px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ===== Model Cards ===== */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.model-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.model-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.model-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.model-card__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.model-card__meta {
    flex: 1;
}

.model-card__name {
    font-size: 1.15rem;
    font-weight: 700;
}

.model-card__provider {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.model-card__score-badge {
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
}

.model-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.model-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.model-card__tag {
    padding: 4px 12px;
    background: var(--surface-hover);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Methodology ===== */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.method-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.method-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.method-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.method-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.method-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__copy {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--accent-light);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: var(--transition);
        opacity: 0;
    }

    .nav--open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav__link {
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }

    .burger {
        display: flex;
    }

    .burger--active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger--active span:nth-child(2) {
        opacity: 0;
    }

    .burger--active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero__stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .bench-grid,
    .models-grid,
    .method-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .section__title {
        font-size: 1.7rem;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__stat-value {
        font-size: 1.4rem;
    }

    .tabs {
        gap: 6px;
    }

    .tabs__btn {
        padding: 6px 14px;
        font-size: 0.82rem;
    }
}
