:root {
    color-scheme: light;
    --bg: #faf9f7;
    --text: #282437;
    --muted: #777181;
    --accent: #7954dc;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    -webkit-tap-highlight-color: transparent;
}

.bio-page {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 20px max(28px, env(safe-area-inset-bottom));
    overflow: hidden;
    background:
        radial-gradient(
            ellipse 530px 370px at 50% 0%,
            rgba(211, 190, 251, 0.32),
            transparent 82%
        ),
        radial-gradient(
            ellipse 400px 350px at 100% 33%,
            rgba(255, 214, 184, 0.16),
            transparent 82%
        ),
        #faf9f7;
}

.bio-container {
    width: 100%;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.bio-profile {
    padding-top: 64px;
    text-align: center;
}

.bio-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 124px;
    height: 124px;
    padding: 12px;
    margin: 0 auto 22px;
    border: 1px solid #ebe5ef;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(73, 48, 100, 0.08);
    overflow: hidden;
}

.bio-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bio-logo-fallback {
    font-size: 40px;
    font-weight: 800;
    color: var(--accent);
}

.bio-brand {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.9px;
    color: var(--text);
}

.bio-description {
    max-width: 430px;
    margin: 15px auto 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.bio-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 36px 0 22px;
    color: #8b7b92;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.bio-section-title::before,
.bio-section-title::after {
    content: "";
    width: 30px;
    height: 1px;
    background: #ded5e4;
}

.bio-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bio-link {
    --button-color: #7954dc;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 70px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 17px;
    background: var(--button-color);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(64, 47, 90, 0.12);
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.bio-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(0, 0, 0, 0.035),
        rgba(255, 255, 255, 0.18)
    );
    pointer-events: none;
}

.bio-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 28px rgba(64, 47, 90, 0.18);
}

.bio-link:active {
    transform: scale(0.985);
}

.bio-link-balance {
    width: 27px;
    flex-shrink: 0;
}

.bio-link-text {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 0 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

.bio-link-arrow {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.bio-link-arrow svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bio-link:focus-visible,
.bio-social-link:focus-visible {
    outline: 3px solid #5540a0;
    outline-offset: 4px;
}

.bio-footer {
    margin-top: auto;
    padding-top: 65px;
    text-align: center;
}

.bio-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.bio-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid #eae5ed;
    border-radius: 14px;
    background: #fff;
    color: #625a6d;
    box-shadow: 0 5px 15px rgba(60, 40, 80, 0.05);
    transition:
        transform 0.2s,
        background 0.2s;
}

.bio-social-link:hover {
    background: #f0ebf9;
    transform: translateY(-3px);
}

.bio-social-link svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.bio-copyright {
    margin-top: 28px;
    color: #9992a0;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .bio-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .bio-profile {
        padding-top: 45px;
    }

    .bio-logo-wrap {
        width: 110px;
        height: 110px;
        margin-bottom: 19px;
        border-radius: 24px;
    }

    .bio-brand {
        font-size: 27px;
    }

    .bio-description {
        font-size: 13px;
        line-height: 1.75;
    }

    .bio-section-title {
        margin: 31px 0 20px;
    }

    .bio-links {
        gap: 12px;
    }

    .bio-link {
        min-height: 65px;
        padding: 14px 16px;
        border-radius: 15px;
    }

    .bio-link-text {
        font-size: 14px;
    }

    .bio-footer {
        padding-top: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bio-link,
    .bio-social-link {
        transition: none;
    }
}
