:root {
    --text: #ffffff;
    --btn-bg: #ffffff;
    --btn-text: #111827;
    --btn-radius: 14px;
    --bg: linear-gradient(to bottom, #1e1e2f, #0F0F52);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: auto;
}
.particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}
main {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 42px 20px 30px;
    position: relative;
    z-index: 1;
}
.loading-card,
.error-card {
    width: 100%;
    margin-top: 16vh;
    padding: 28px 22px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}
.loading-card h1,
.error-card h1 {
    margin: 0 0 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
}
.loading-card p,
.error-card p {
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
}
.retry-btn {
    margin-top: 18px;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    color: #07111f;
    background: #7dd3fc;
}
.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 0 16px;
    border: 2px solid rgba(255,255,255,0.22);
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
    object-fit: cover;
    background: rgba(255,255,255,0.2);
}
.avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    font-family: "Space Grotesk", sans-serif;
}
h1.bio-title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
    width: 100%;
    padding: 0 16px;
}
.bio-copy {
    margin: 0 0 34px;
    max-width: 340px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
    opacity: 0.95;
    padding: 0 16px;
}
.socials {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 8px 10px;
    margin-bottom: 24px;
}
.socials::-webkit-scrollbar { display: none; }
.social {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.14);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.social svg {
    width: 21px;
    height: 21px;
    display: block;
    overflow: visible;
}
.social svg [stroke] { stroke-width: 2; }
.links {
    width: 100%;
    padding: 0 4px 42px;
}
.section-title {
    text-transform: uppercase;
    opacity: 0.75;
    margin: 24px 0 10px;
    font-size: 11px;
    letter-spacing: 0.14em;
    font-weight: 900;
}
.link {
    width: 100%;
    display: block;
    position: relative;
    margin: 0 0 14px;
    padding: 15px 18px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    border-radius: var(--btn-radius);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateZ(0);
}
.link.with-thumb {
    padding-left: 64px;
    padding-right: 16px;
}
.thumb {
    display: block;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.3);
}
.video {
    width: 100%;
    margin: 0 0 14px;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background: #000;
    aspect-ratio: 16/9;
}
.video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.footer {
    margin-top: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 10px;
    font-weight: 700;
    opacity: 0.7;
}
.footer a { color: var(--text); }
.desktop-qr {
    display: none;
    z-index: 2;
}
.desktop-qr img {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    display: block;
}
.ai-launch {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    background: rgba(15,15,35,0.76);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 14px;
    backdrop-filter: blur(6px);
}
@media (min-width: 1024px) {
    .ai-launch { right: 16px; bottom: 16px; }
    .desktop-qr {
        display: block;
        position: fixed;
        left: 16px;
        bottom: 16px;
        z-index: 100;
        background: rgba(255,255,255,0.92);
        color: #6b7280;
        border-radius: 12px;
        padding: 8px;
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
    .desktop-qr small {
        display: block;
        text-align: center;
        margin-top: 4px;
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .08em;
        font-weight: 700;
    }
}