@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;900&family=JetBrains+Mono:wght@400&display=swap');

:root {
    --bg: #060608;
    --pink: #ff007f;
    --purple: #7a00ff;
    --cyan: #00d4ff;
    --white: #fff;
    --dim: rgba(255, 255, 255, .4);
    --glass-bg: rgba(255, 255, 255, .04);
    --glass-border: rgba(255, 255, 255, .08);
}

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

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Background ===== */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--bg);
}

.bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vmax;
    height: 100vmax;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(ellipse 50% 45% at 50% 50%, hsla(330, 100%, 20%, .35) 0%, transparent 100%),
        radial-gradient(ellipse 35% 55% at 50% 50%, hsla(270, 100%, 15%, .25) 0%, transparent 100%),
        radial-gradient(ellipse 60% 35% at 50% 50%, hsla(195, 100%, 20%, .1) 0%, transparent 100%);
    animation: spotlight 8s ease-in-out infinite alternate;
}

.bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: .05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes spotlight {
    0% {
        opacity: .8;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }

    100% {
        opacity: .7;
        transform: translate(-50%, -50%) scale(.95);
    }
}

/* ===== Layout ===== */
.page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 24px 32px;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    animation: fade-up .8s ease-out both;
    margin-bottom: 40px;
}

.logo-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 24px;
    border-radius: 24px;
}

.logo-wrap::before {
    content: '';
    position: absolute;
    inset: -25%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--pink), transparent 70%);
    opacity: .15;
    animation: breathe 5s ease-in-out infinite;
    z-index: 0;
}

.logo-wrap::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--cyan), var(--purple), var(--pink));
    background-size: 300% 300%;
    animation: border-flow 6s ease infinite;
    z-index: 1;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
}

@keyframes border-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.logo-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    padding: 8px;
    background: var(--bg);
    z-index: 2;
}

/* ===== Title + Glitch ===== */
.title {
    font-size: clamp(3.2rem, 14vw, 6rem);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.title-text {
    background: linear-gradient(180deg, #fff 30%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title::before,
.title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.title::before {
    -webkit-text-fill-color: var(--pink);
    animation: glitch-pink 5s linear infinite;
}

.title::after {
    -webkit-text-fill-color: var(--cyan);
    animation: glitch-cyan 5s linear infinite;
}

@keyframes glitch-pink {

    0%,
    7% {
        opacity: 0;
        transform: translate(0);
        clip-path: inset(0);
    }

    8% {
        opacity: .7;
        transform: translate(-3px, 0);
        clip-path: inset(10% 0 70% 0);
    }

    9% {
        opacity: .6;
        transform: translate(2px, 0);
        clip-path: inset(55% 0 15% 0);
    }

    10% {
        opacity: .8;
        transform: translate(-4px, 0);
        clip-path: inset(25% 0 50% 0);
    }

    11% {
        opacity: .5;
        transform: translate(3px, 0);
        clip-path: inset(70% 0 5% 0);
    }

    12% {
        opacity: .7;
        transform: translate(-2px, 0);
        clip-path: inset(5% 0 80% 0);
    }

    13% {
        opacity: .6;
        transform: translate(4px, 0);
        clip-path: inset(40% 0 35% 0);
    }

    14%,
    54% {
        opacity: 0;
        transform: translate(0);
        clip-path: inset(0);
    }

    55% {
        opacity: .5;
        transform: translate(-2px, 0);
        clip-path: inset(20% 0 60% 0);
    }

    56% {
        opacity: .4;
        transform: translate(3px, 0);
        clip-path: inset(65% 0 10% 0);
    }

    57%,
    100% {
        opacity: 0;
        transform: translate(0);
        clip-path: inset(0);
    }
}

@keyframes glitch-cyan {

    0%,
    7% {
        opacity: 0;
        transform: translate(0);
        clip-path: inset(0);
    }

    8% {
        opacity: .6;
        transform: translate(3px, 0);
        clip-path: inset(55% 0 15% 0);
    }

    9% {
        opacity: .7;
        transform: translate(-2px, 0);
        clip-path: inset(10% 0 70% 0);
    }

    10% {
        opacity: .5;
        transform: translate(4px, 0);
        clip-path: inset(70% 0 5% 0);
    }

    11% {
        opacity: .8;
        transform: translate(-3px, 0);
        clip-path: inset(25% 0 50% 0);
    }

    12% {
        opacity: .6;
        transform: translate(2px, 0);
        clip-path: inset(80% 0 5% 0);
    }

    13% {
        opacity: .7;
        transform: translate(-4px, 0);
        clip-path: inset(35% 0 45% 0);
    }

    14%,
    54% {
        opacity: 0;
        transform: translate(0);
        clip-path: inset(0);
    }

    55% {
        opacity: .4;
        transform: translate(2px, 0);
        clip-path: inset(60% 0 25% 0);
    }

    56% {
        opacity: .5;
        transform: translate(-3px, 0);
        clip-path: inset(30% 0 50% 0);
    }

    57%,
    100% {
        opacity: 0;
        transform: translate(0);
        clip-path: inset(0);
    }
}

.tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    color: var(--pink);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ===== Links ===== */
.links {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fade-up .8s .12s ease-out both;
}

.link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .5px;
    transition: background .15s, border-color .15s, transform .1s;
}

.link:hover {
    background: rgba(255, 255, 255, .07);
    border-color: var(--pink);
}

.link:active {
    transform: scale(.97);
}

.link-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    transition: color .15s;
}

.link:hover .link-icon {
    color: var(--pink);
}

/* ===== Footer ===== */
footer {
    margin-top: auto;
    padding: 32px 24px 20px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: .55rem;
    color: var(--dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.8;
    animation: fade-up .8s .25s ease-out both;
}

/* ===== Shared Keyframes ===== */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: .15;
    }

    50% {
        transform: scale(1.08);
        opacity: .08;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pink);
}