:root {
    --nlp-bg: #050505;
    --nlp-panel: rgba(12, 12, 14, 0.92);
    --nlp-panel-strong: rgba(18, 18, 22, 0.98);
    --nlp-border: rgba(255, 255, 255, 0.08);
    --nlp-border-strong: rgba(86, 137, 255, 0.38);
    --nlp-text: #f4f4f5;
    --nlp-dim: #9ea0a8;
    --nlp-blue: #3b82f6;
    --nlp-blue-soft: rgba(59, 130, 246, 0.18);
}

html,
body {
    min-height: 100%;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.08), transparent 30%),
        linear-gradient(180deg, #09090b 0%, #030303 100%);
}

body.nlp-body {
    margin: 0;
    color: var(--nlp-text);
    font-family: "Inter", "Segoe UI", sans-serif;
}

/* ─── Background image ─── */
.nlp-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.nlp-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 45%, rgba(0,0,0,0.75) 78%, #000 100%);
}

/* ─── Snow canvas ─── */
#nlp-snow-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    width: 100%;
    height: 100%;
}

/* ─── Stacking context when bg is active ─── */
.nlp-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px 20px;
    overflow: hidden;
}

.nlp-card {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
    border-radius: 28px;
    border: 1px solid var(--nlp-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 25%),
        var(--nlp-card-bg, var(--nlp-panel));
    box-shadow:
        0 24px 90px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 34px 18px 18px;
    backdrop-filter: blur(var(--nlp-card-blur, 16px));
}

.nlp-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
    opacity: 0.45;
}

.nlp-avatar-wrap {
    width: 110px;
    height: 110px;
    margin: -88px auto 18px;
    padding: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.38);
}

.nlp-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
    background: #111;
}

.nlp-header {
    text-align: center;
    margin-bottom: 22px;
}

.nlp-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(2rem, 5vw, 2.35rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
    font-weight: 800;
}

.nlp-badge {
    width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 auto;
    transform: translateY(1px);
}

.nlp-badge svg {
    width: 100%;
    height: 100%;
    fill: var(--nlp-blue);
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nlp-badge svg circle {
    fill: var(--nlp-blue);
    stroke: none;
}

.nlp-badge svg path {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

.nlp-role {
    margin: 12px 0 0;
    color: var(--nlp-dim);
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.nlp-bio {
    margin: 12px auto 0;
    max-width: 30ch;
    color: #c7c8cd;
    font-size: 0.98rem;
    line-height: 1.65;
}

.nlp-content p {
    margin: 0;
}

.nlp-links {
    display: grid;
    gap: 10px;
}

.nlp-link {
    position: relative;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--nlp-text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        var(--nlp-panel-strong);
    border: 1px solid var(--nlp-border);
    border-radius: 20px;
    padding: 20px 20px;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        color 180ms ease;
    overflow: hidden;
}

.nlp-link::before {
    content: none;
}

.nlp-link:hover,
.nlp-link:focus-visible {
    border-color: rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
        rgba(24, 24, 28, 0.98);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    outline: none;
}

.nlp-link-icon {
    width: 24px;
    height: 24px;
    color: #d7d7dc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nlp-link-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nlp-link-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.nlp-link-label {
    display: block;
    font-size: 1rem;
    font-weight: 650;
    color: #fafafa;
}

.nlp-link-description {
    display: block;
    color: #71747d;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.nlp-link-arrow {
    width: 17px;
    height: 17px;
    color: #8a8f9c;
    flex: 0 0 auto;
    transition: transform 180ms ease, color 180ms ease;
}

.nlp-link-arrow svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nlp-link:hover .nlp-link-arrow,
.nlp-link:focus-visible .nlp-link-arrow {
    transform: translate(1px, -1px);
    color: #a4abbb;
}

.nlp-footer-note {
    margin-top: 18px;
    text-align: center;
    color: #81848d;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ─── Colored icons ─── */
.nlp-link--colored {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
}

.nlp-link--colored .nlp-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--nlp-brand, #6B7280);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
}

.nlp-link--colored .nlp-link-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

/* Light-background brand exceptions: keep icon dark */
.nlp-link--colored[data-brand="snapchat"] .nlp-link-icon svg,
.nlp-link--colored[data-brand="yandex-music"] .nlp-link-icon svg {
    stroke: #000;
}

/* Instagram gradient override */
.nlp-link--colored[data-brand="instagram"] .nlp-link-icon {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

@media (max-width: 640px) {
    .nlp-shell {
        padding: 72px 16px 28px;
    }

    .nlp-card {
        width: min(100%, 520px);
        border-radius: 24px;
        padding: 28px 18px 18px;
    }

    .nlp-avatar-wrap {
        width: 98px;
        height: 98px;
        margin-top: -78px;
    }

    .nlp-link {
        grid-template-columns: 22px minmax(0, 1fr) 16px;
        gap: 14px;
        padding: 18px 18px;
        border-radius: 18px;
    }

    .nlp-link--colored {
        grid-template-columns: 36px minmax(0, 1fr) 16px;
    }

    .nlp-link-icon {
        width: 22px;
        height: 22px;
    }

    .nlp-badge {
        width: 19px;
        height: 19px;
    }
}
