*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #090c0f;
    --surface: #0e1318;
    --border: #1a2530;
    --border-h: #00ff88;
    --accent: #00ff88;
    --accent-dim: #00cc6a;
    --text: #e2eaf0;
    --muted: #546070;
    --font-mono: 'JetBrains Mono', monospace;
    --font-disp: 'Syne', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

#grid-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Radial glow in center */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 255, 136, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 2rem 1.25rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ── PROFILE ─────────────────────────────── */
.profile {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    animation: fadeDown 0.6s ease both;
}

.avatar-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 0.4rem;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    opacity: 0.4;
    animation: spin 8s linear infinite;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-disp);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.name {
    font-family: var(--font-disp);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.role {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    font-weight: 400;
}

.prompt {
    color: var(--muted);
    margin-right: 0.4em;
}

.tagline {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    line-height: 1.6;
}

/* ── LINKS ───────────────────────────────── */
.links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s, transform 0.18s;
    animation: fadeUp 0.5s ease both;
    position: relative;
    overflow: hidden;
}

/* Hover accent line on left */
.link-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.2s ease;
}

.link-card:hover {
    border-color: rgba(0, 255, 136, 0.35);
    background: rgba(0, 255, 136, 0.04);
    transform: translateX(4px);
}

.link-card:hover::before {
    transform: scaleY(1);
}

.link-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(0, 255, 136, 0.07);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: background 0.2s;
}

.link-icon svg {
    width: 16px;
    height: 16px;
}

.link-card:hover .link-icon {
    background: rgba(0, 255, 136, 0.14);
}

.link-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.link-title {
    font-family: var(--font-disp);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
}

.link-sub {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.link-arrow {
    color: var(--muted);
    font-size: 1rem;
    transition: color 0.2s, transform 0.2s;
}

.link-card:hover .link-arrow {
    color: var(--accent);
    transform: translateX(2px);
}

/* ── FOOTER ──────────────────────────────── */
.footer {
    text-align: center;
    animation: fadeUp 0.5s 1.1s ease both;
}

.footer-text {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

/* ── ANIMATIONS ──────────────────────────── */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── MOBILE ──────────────────────────────── */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem 2.5rem;
    }

    .name {
        font-size: 1.5rem;
    }
}