:root {
    color-scheme: dark;
    --bg: #0d0f14;
    --surface: #13161e;
    --surface-2: #171b25;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f1f5f9;
    --muted: #64748b;
    --soft: #cbd5e1;
    --primary: #8b3cf7;
    --success: #22c55e;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 52px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 42px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.brand small,
.domain-label,
.eyebrow,
.summary,
.headline {
    color: var(--muted);
}

.brand small {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 500;
}

.domain-label {
    font-size: 13px;
}

.panel {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.profile-hero {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 28px;
}

.avatar {
    width: 104px;
    height: 104px;
    border-radius: 28px;
    border: 1px solid rgba(139, 60, 247, 0.36);
    background: #1c2030;
    color: #e9d5ff;
    display: grid;
    place-items: center;
    font-size: 34px;
    font-weight: 800;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 6vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.headline {
    margin: 12px 0 0;
    font-size: 16px;
    font-weight: 600;
}

.summary {
    max-width: 740px;
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.7;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.link-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--soft);
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.stat-card {
    padding: 18px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 30px;
    line-height: 1;
}

.content-card {
    margin-top: 14px;
    padding: 22px;
}

.skill-list {
    display: grid;
    gap: 14px;
}

.skill-item div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--soft);
    font-size: 14px;
    font-weight: 600;
}

.track {
    height: 8px;
    margin-top: 9px;
    border-radius: 999px;
    background: #202637;
    overflow: hidden;
}

.track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.list-grid,
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.list-item,
.badge-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    padding: 14px;
}

.list-item strong,
.badge-item strong,
.list-item span,
.badge-item span,
.list-item small {
    display: block;
}

.list-item strong,
.badge-item strong {
    color: var(--text);
    font-size: 14px;
}

.list-item span,
.badge-item span {
    margin-top: 7px;
    color: var(--soft);
    font-size: 12px;
}

.list-item small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.empty-card {
    padding: 32px;
    text-align: center;
}

.empty-card h1 {
    font-size: 32px;
    letter-spacing: -0.03em;
}

.empty-card p,
.empty-line {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 720px) {
    .page {
        width: min(100% - 24px, 1040px);
        padding-top: 22px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 28px;
    }

    .profile-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

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