@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0e0e10;
    --card: rgba(24, 24, 27, .72);
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --line: rgba(255, 255, 255, .09);
    --line2: rgba(255, 255, 255, .2);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

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

body {
    min-width: 320px;
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.55;
    background: radial-gradient(circle at 50% -8%, rgba(255, 255, 255, .08), transparent 32%),
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px), var(--bg);
    background-size: auto, 42px 42px, 42px 42px, auto;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: min(800px, calc(100% - 40px));
    margin: auto;
    padding: 60px 0;
}

.hero-center {
    text-align: center;
    margin-bottom: 40px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.eyebrow:before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 16px rgba(88, 227, 140, .7);
}

.hero-center h1 {
    margin-top: 22px;
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -.06em;
    background: linear-gradient(180deg, #fff 8%, #8d8d96 105%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 10px;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.card-whoami {
    grid-column: span 2;
}

.card-devices {
    grid-column: 1 / 2;
}

.card-projects {
    grid-column: 2 / 3;
}

.card-socials {
    grid-column: span 2;
}

.card {
    padding: 27px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    backdrop-filter: blur(18px);
    transition: .3s var(--ease);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-1px);
    border-color: var(--line2);
    background: rgba(31, 31, 35, .86);
}

.card h3 {
    font-size: 20px;
    letter-spacing: -.02em;
}

.card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    flex-grow: 1;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .045);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .3s var(--ease);
}

.social-btn:hover {
    background: rgba(255, 255, 255, .1);
    border-color: var(--line2);
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-whoami,
    .card-devices,
    .card-projects,
    .card-socials {
        grid-column: span 1;
    }

    .card {
        padding: 20px;
    }
}

.text-gradient {
    background: linear-gradient(180deg, #fff 8%, #8d8d96 105%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.card-divider {
    width: 100%;
    height: 1px;
    background: var(--line);
    border: none;
    margin: 16px 0;
}

.card-subtitle {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.device-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

.device-grid p {
    margin-top: 0;
    font-size: 13px;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-bottom: 20px;
}

.badges-container img {
    width: 88px;
    height: 31px;
    image-rendering: pixelated;
    border: 1px solid var(--line);
    border-radius: 2px;
}

.badges-container a {
    display: inline-block;
    transition: transform .2s var(--ease);
}

.badges-container a:hover {
    transform: translateY(-1px);
}

.webring-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 16px;
}

.webring-panel {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 12px 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    backdrop-filter: blur(18px);
    font-size: 13px;
    font-weight: 700;
    transition: .3s var(--ease);
}

.webring-panel:hover {
    border-color: var(--line2);
    background: rgba(31, 31, 35, .86);
    transform: translateY(-1px);
}

.webring-panel a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s var(--ease);
}

.webring-panel a:hover {
    color: var(--text);
}

.webring-panel span {
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
}
