﻿:root {
    --bg-blur: 8px;
    --text: #e7eef8;
    --muted: #b9c3d2;
    --glass: rgba(230, 241, 255, 0.12);
    --glass-strong: rgba(230, 241, 255, 0.2);
    --line: rgba(255, 255, 255, 0.24);
    --shadow: 0 24px 45px rgba(0, 12, 38, 0.35);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Manrope, "Segoe UI", sans-serif;
    color: var(--text);
    background: #0a1426 url("img/bg.jpg") center center / cover no-repeat fixed;
    line-height: 1.45;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    backdrop-filter: blur(var(--bg-blur));
    background:
        radial-gradient(circle at 10% 10%, rgba(96, 156, 255, 0.16), transparent 52%),
        radial-gradient(circle at 86% 22%, rgba(129, 238, 255, 0.12), transparent 52%),
        linear-gradient(160deg, rgba(5, 15, 32, 0.65), rgba(10, 16, 24, 0.78));
}

.layout {
    position: relative;
    z-index: 1;
    width: min(1150px, calc(100% - 32px));
    margin: 26px auto 40px;
    display: grid;
    gap: 18px;
}

.card {
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.glass {
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
    padding: 22px;
}

.hero__media {
    width: 160px;
    display: grid;
    gap: 10px;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.36);
}

.followers-count {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: #d7e5f5;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Unbounded, Manrope, sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

h1 {
    margin-top: 0;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.subtitle {
    margin: 8px 0 0;
    color: #d6e2f2;
}

.tagline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(144, 213, 255, 0.42);
    background: linear-gradient(130deg, rgba(111, 199, 255, 0.24), rgba(173, 240, 255, 0.16));
    color: #eaf7ff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.tagline-link:hover {
    transform: translateY(-1px);
    border-color: rgba(183, 232, 255, 0.72);
    background: linear-gradient(130deg, rgba(129, 208, 255, 0.34), rgba(190, 246, 255, 0.25));
}

.tagline-link:focus-visible {
    outline: 2px solid rgba(206, 239, 255, 0.85);
    outline-offset: 2px;
}

.social-grid {
    margin-top: 18px;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
}

.social-link {
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius-md);
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background-color 0.2s ease;
    flex: 0 0 160px;
    min-width: 160px;
    scroll-snap-align: start;
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
}

.social-link span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.social-svg {
    width: 18px;
    height: 18px;
    opacity: 0.95;
    filter: brightness(0) invert(1);
}


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

.feature {
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.feature h3 {
    margin-bottom: 10px;
}

.feature p {
    margin: 0 0 16px;
    color: #d5ddeb;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(144, 213, 255, 0.42);
    background: linear-gradient(130deg, rgba(111, 199, 255, 0.24), rgba(173, 240, 255, 0.16));
    color: #eaf7ff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.feature-link:hover {
    transform: translateY(-1px);
    border-color: rgba(183, 232, 255, 0.72);
    background: linear-gradient(130deg, rgba(129, 208, 255, 0.34), rgba(190, 246, 255, 0.25));
}

.accent-gold { box-shadow: inset 0 1px 0 rgba(255, 224, 133, 0.45), var(--shadow); }
.accent-sky { box-shadow: inset 0 1px 0 rgba(131, 219, 255, 0.45), var(--shadow); }
.accent-mint { box-shadow: inset 0 1px 0 rgba(132, 247, 199, 0.45), var(--shadow); }

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 140px 1fr;
        gap: 16px;
        padding: 18px;
    }

    .hero__media {
        width: 140px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .layout {
        width: min(900px, calc(100% - 26px));
    }
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .hero__body {
        width: 100%;
    }

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

@media (max-width: 760px) {
    .layout {
        width: min(720px, calc(100% - 22px));
        margin-top: 18px;
    }

    .card {
        border-radius: 22px;
    }

    h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .subtitle {
        font-size: 15px;
    }

    .tagline-link {
        margin-left: 6px;
        padding: 3px 8px;
    }

    .social-link {
        flex-basis: 148px;
        min-width: 148px;
        padding: 10px;
    }

    .social-link span:last-child {
        font-size: 13px;
    }
}

@media (max-width: 460px) {
    .layout {
        width: calc(100% - 20px);
        margin-top: 16px;
        gap: 12px;
    }

    .hero {
        padding: 14px;
    }

    .hero__media {
        width: 120px;
        gap: 8px;
    }

    .avatar {
        border-radius: 16px;
    }

    .followers-count {
        font-size: 12px;
    }

    .subtitle {
        line-height: 1.6;
    }

    .tagline-link {
        margin-left: 0;
        margin-top: 6px;
    }

    .social-link {
        flex-basis: 132px;
        min-width: 132px;
        padding: 9px;
    }
}



