/* ── Lab Landing Page ────────────────────────────────────────────────────── */

.lab {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.lab__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lab__kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-lab);
}

.lab__header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.1;
}

.lab__desc {
    font-size: 14px;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0;
}

/* ── Grid ────────────────────────────────────────────────────────────────── */

.lab__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

/* ── Lab Card ────────────────────────────────────────────────────────────── */

.lab-card {
    --card-accent: var(--neon-cyan);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.lab-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 8%, transparent), transparent 60%);
    opacity: 0;
    transition: opacity 0.22s;
    pointer-events: none;
}

.lab-card:hover {
    border-color: color-mix(in srgb, var(--card-accent) 40%, transparent);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px color-mix(in srgb, var(--card-accent) 15%, transparent);
}

.lab-card:hover::before {
    opacity: 1;
}

/* ── Card Top ────────────────────────────────────────────────────────────── */

.lab-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.lab-card__icon {
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--card-accent) 50%, transparent));
}

.lab-card__status {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid;
    background: rgba(255, 255, 255, 0.04);
}

/* ── Card Body ───────────────────────────────────────────────────────────── */

.lab-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.lab-card__category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--card-accent) 80%, var(--text-dim));
    margin: 0;
}

.lab-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.2;
}

.lab-card__desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 4px 0 0;
}

/* ── Card Footer ─────────────────────────────────────────────────────────── */

.lab-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.lab-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lab-card__tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--text-muted);
}

.lab-card__arrow {
    font-size: 18px;
    color: color-mix(in srgb, var(--card-accent) 60%, transparent);
    transition: transform 0.18s, color 0.18s;
    flex-shrink: 0;
}

.lab-card:hover .lab-card__arrow {
    transform: translateX(4px);
    color: var(--card-accent);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .lab {
        padding: 24px 16px 60px;
        gap: 28px;
    }

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

    .lab__header h1 {
        font-size: 28px;
    }
}
