:root {
    color-scheme: dark;
    --bg: #090a0f;
    --surface: #11131a;
    --surface-2: #171a24;
    --line: rgba(255, 255, 255, .075);
    --line-strong: rgba(139, 60, 247, .34);
    --text: #f5f3f8;
    --soft: #d8d4df;
    --muted: #8c8796;
    --primary: #8b3cf7;
    --primary-soft: #c4b5fd;
    --success: #22c55e;
    --shadow: 0 26px 90px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 12% -16%, rgba(139, 60, 247, .18), transparent 34%),
        radial-gradient(circle at 94% 8%, rgba(139, 60, 247, .08), transparent 24%),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
svg { display: block; width: 18px; height: 18px; fill: currentColor; }

.page {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 25px 0 44px;
}
.site-header {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    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; line-height: 1.2; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.header-meta { display: flex; align-items: center; gap: 13px; }
.domain-label { color: var(--muted); font-size: 11px; }
.share-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--soft);
    padding: 0 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}
.share-button:hover { border-color: var(--line-strong); background: var(--surface-2); }
.share-button svg { width: 15px; height: 15px; }

.panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(17, 19, 26, .96);
}
.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.hero-main {
    min-width: 0;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 34px;
    background:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 44px 44px;
}
.avatar-wrap { width: 112px; height: 112px; position: relative; }
.avatar {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 30px;
    background: linear-gradient(145deg, #25153e, #171a24);
    color: #e9d5ff;
    font-size: 35px;
    font-weight: 800;
    letter-spacing: -.04em;
}
.verified-dot {
    width: 31px;
    height: 31px;
    position: absolute;
    right: -5px;
    bottom: 5px;
    display: grid;
    place-items: center;
    border: 4px solid var(--surface);
    border-radius: 50%;
    background: var(--success);
    color: #07130b;
}
.verified-dot svg { width: 14px; height: 14px; }
.identity-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.verification-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(34, 197, 94, .23);
    border-radius: 999px;
    background: rgba(34, 197, 94, .07);
    color: #86efac;
    padding: 5px 8px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.verification-chip span { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
h1 {
    margin: 9px 0 0;
    color: #fff;
    font-size: clamp(36px, 5vw, 56px);
    line-height: .98;
    letter-spacing: -.06em;
}
.headline { margin: 12px 0 0; color: var(--primary-soft); font-size: 15px; font-weight: 650; }
.summary { max-width: 700px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.link-row a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--soft);
    padding: 0 11px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: border-color .18s ease, color .18s ease;
}
.link-row a:hover { border-color: var(--line-strong); color: #fff; }
.link-row a span { color: var(--primary-soft); }
.hero-side {
    display: grid;
    align-content: center;
    gap: 0;
    border-left: 1px solid var(--line);
    background: #0e1017;
    padding: 25px;
}
.hero-side > .eyebrow { margin-bottom: 5px; }
.hero-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}
.hero-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-stat span { color: var(--muted); font-size: 11px; }
.hero-stat strong { color: #fff; font-size: 23px; letter-spacing: -.04em; }

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 12px;
    margin-top: 12px;
}
.content-card { min-width: 0; padding: 21px; }
.certificates-card { grid-row: span 2; }
.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 17px;
}
.section-head h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 21px;
    line-height: 1.1;
    letter-spacing: -.035em;
}
.section-index {
    color: #4f4a59;
    font: 700 10px/1 "JetBrains Mono", monospace;
}
.skill-list { display: grid; gap: 14px; }
.skill-item > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--soft);
    font-size: 11px;
    font-weight: 700;
}
.skill-item > div:first-child strong { color: var(--primary-soft); }
.track {
    height: 6px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #262a37;
}
.track span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }

.list-grid { display: grid; gap: 8px; }
.list-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    color: inherit;
    padding: 12px;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease;
}
.list-item:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.certificate-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(139, 60, 247, .1);
    color: var(--primary-soft);
}
.certificate-mark svg { width: 18px; height: 18px; }
.certificate-copy { min-width: 0; }
.certificate-copy strong,
.certificate-copy span,
.certificate-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.certificate-copy strong { color: #f4f1f7; font-size: 12px; }
.certificate-copy span { margin-top: 4px; color: var(--primary-soft); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.certificate-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.item-arrow { color: #6e6878; font-size: 14px; }

.badge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.badge-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-2);
    padding: 10px;
}
.badge-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #25163a;
    color: var(--primary-soft);
    font-size: 12px;
    font-weight: 800;
}
.badge-item strong,
.badge-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-item strong { color: var(--soft); font-size: 11px; }
.badge-item span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.empty-card { max-width: 560px; margin: 13vh auto 0; padding: 36px; text-align: center; }
.empty-card h1 { margin: 0; font-size: 31px; letter-spacing: -.04em; }
.empty-card p,
.empty-line { color: var(--muted); font-size: 12px; }
.empty-line {
    border: 1px dashed var(--line);
    border-radius: 11px;
    background: var(--surface-2);
    padding: 14px;
}
.profile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
    padding: 18px 2px 0;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .03em;
}
.profile-footer div { display: flex; align-items: center; gap: 9px; }
.profile-footer img { width: 25px; height: 25px; object-fit: contain; opacity: .9; }

@media (max-width: 860px) {
    .profile-hero { grid-template-columns: 1fr; }
    .hero-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-top: 1px solid var(--line);
        border-left: 0;
        padding: 10px 22px;
    }
    .hero-side > .eyebrow { display: none; }
    .hero-stat {
        display: grid;
        justify-content: center;
        gap: 4px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        padding: 12px;
        text-align: center;
    }
    .hero-stat:last-child { border-right: 0; padding: 12px; }
    .content-grid { grid-template-columns: 1fr; }
    .certificates-card { grid-row: auto; }
}

@media (max-width: 620px) {
    .page { width: min(100% - 22px, 1160px); padding-top: 13px; }
    .site-header { margin-bottom: 13px; }
    .brand img { width: 34px; height: 34px; }
    .domain-label { display: none; }
    .share-button { width: 39px; height: 39px; justify-content: center; padding: 0; }
    .share-button span { display: none; }
    .hero-main {
        grid-template-columns: 1fr;
        gap: 17px;
        padding: 22px 18px;
    }
    .avatar-wrap,
    .avatar { width: 82px; height: 82px; }
    .avatar { border-radius: 22px; font-size: 26px; }
    .verified-dot { width: 27px; height: 27px; right: -5px; bottom: 1px; }
    h1 { font-size: 38px; }
    .headline { font-size: 13px; }
    .summary { font-size: 12px; }
    .verification-chip { font-size: 7px; }
    .hero-side { padding: 8px; }
    .hero-stat { padding: 10px 5px; }
    .hero-stat span { font-size: 8px; }
    .hero-stat strong { font-size: 19px; }
    .content-card { padding: 17px; }
    .badge-grid { grid-template-columns: 1fr; }
    .profile-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
