@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;500;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg: #0c0f1f;
    --bg-2: #101631;
    --ink: #f2f5ff;
    --muted: #9aa2bf;
    --accent: #5ee6ff;
    --accent-2: #7b5cff;
    --accent-3: #ff6b6b;
    --glass: rgba(255, 255, 255, 0.08);
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Urbanist", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, #182044, var(--bg));
    min-height: 100vh;
    overflow: hidden;
    cursor: none;
}

.default-page {
    position: relative;
}

.bg-layer {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(94, 230, 255, 0.18), transparent 45%),
                radial-gradient(circle at 85% 10%, rgba(123, 92, 255, 0.2), transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(255, 107, 107, 0.16), transparent 45%);
    z-index: 0;
    animation: nebulaShift 16s ease-in-out infinite;
    transform-origin: center;
}

.bg-layer::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06), transparent 45%),
                radial-gradient(circle at 80% 60%, rgba(94, 230, 255, 0.08), transparent 45%),
                radial-gradient(circle at 10% 80%, rgba(123, 92, 255, 0.07), transparent 40%);
    animation: nebulaDrift 22s ease-in-out infinite;
}

@keyframes nebulaShift {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.04) translate(-1%, 1%); }
}

@keyframes nebulaDrift {
    0%, 100% { transform: translate(0, 0); opacity: 0.7; }
    50% { transform: translate(2%, -2%); opacity: 1; }
}

.grain {
    position: fixed;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="120" height="120" filter="url(%23n)" opacity="0.08"/></svg>');
    mix-blend-mode: screen;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
    animation: grainMove 6s steps(6) infinite;
    background-size: 220px 220px;
}

@keyframes grainMove {
    0% { transform: translate(0, 0); opacity: 0.25; }
    50% { transform: translate(-2%, 1%); opacity: 0.35; }
    100% { transform: translate(2%, -1%); opacity: 0.25; }
}

.default-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.04) 0px,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.2;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 2;
    animation: scan 10s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(8px); }
}

.hero {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 28px;
    padding: 70px 8vw 40px;
    align-items: center;
    min-height: 80vh;
    justify-items: center;
    text-align: center;
}

.hero.center {
    grid-template-rows: 1fr auto 1fr;
}

.message h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    margin: 10px 0 18px;
}

.message {
    opacity: 0;
    --px: 0px;
    --py: 0px;
    transform: translate(var(--px), calc(var(--py) + 18px));
    transition: opacity 0.8s ease, transform 0.8s ease;
    align-self: end;
}

.default-page.loaded .message {
    opacity: 1;
    transform: translate(var(--px), var(--py));
}

.message h1.glitch {
    position: relative;
}

.message h1.glitch::before,
.message h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    opacity: 0.8;
    mix-blend-mode: screen;
}

.message h1.glitch::before {
    color: var(--accent);
    clip-path: inset(0 0 55% 0);
    animation: glitchTop 1s linear infinite;
}

.message h1.glitch::after {
    color: var(--accent-3);
    clip-path: inset(55% 0 0 0);
    animation: glitchBottom 1s linear infinite;
}

@keyframes glitchTop {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, -1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, 0); }
    80% { transform: translate(1px, 1px); }
}

@keyframes glitchBottom {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, 1px); }
    40% { transform: translate(-2px, 1px); }
    60% { transform: translate(1px, 0); }
    80% { transform: translate(-1px, -1px); }
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.75rem;
    color: var(--accent);
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.pill {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-weight: 500;
}

.countdown {
    margin-top: 26px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    max-width: 520px;
    width: min(520px, 90vw);
    align-self: start;
}

.countdown-title {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    color: var(--muted);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
    text-align: center;
}

.countdown-grid div {
    background: rgba(12, 15, 31, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 8px;
}

.countdown-grid strong {
    font-size: 1.6rem;
    display: block;
}

.countdown-grid span {
    color: var(--muted);
    font-size: 0.85rem;
}

.avatar-zone {
    display: grid;
    justify-items: center;
    gap: 16px;
    opacity: 0;
    --px: 0px;
    --py: 0px;
    transform: translate(var(--px), calc(var(--py) + 14px));
    transition: opacity 0.9s ease 0.2s, transform 0.9s ease 0.2s;
}

.default-page.loaded .avatar-zone {
    opacity: 1;
    transform: translate(var(--px), var(--py));
}

.face {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    padding: 30px;
    position: relative;
    isolation: isolate;
}

.halo {
    position: absolute;
    inset: -24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 230, 255, 0.4), transparent 65%);
    opacity: 0.35;
    filter: blur(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
    z-index: -1;
    animation: haloShift 8s ease-in-out infinite;
}

@keyframes haloShift {
    0%, 100% { filter: blur(10px) hue-rotate(0deg); opacity: 0.35; }
    50% { filter: blur(14px) hue-rotate(80deg); opacity: 0.55; }
}

.eye {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
}

.pupil {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(94, 230, 255, 0.8);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px)));
}

.mouth {
    position: absolute;
    bottom: 52px;
    width: 80px;
    height: 26px;
    border-bottom: 4px solid rgba(255, 255, 255, 0.4);
    border-radius: 0 0 80px 80px;
}

.tongue {
    position: absolute;
    bottom: 18px;
    left: 50%;
    width: 52px;
    height: 38px;
    background: radial-gradient(circle at 50% 30%, #ff9aa7, #ff6b6b);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.35);
    z-index: 2;
    transform: translate(-50%, 0);
    animation: tongueWiggle 1.2s ease-in-out infinite;
}

@keyframes tongueWiggle {
    0%, 100% { transform: translate(-50%, 0) rotate(0deg); }
    50% { transform: translate(-50%, 4px) rotate(-2deg); }
}

.eye {
    animation: blink 6s infinite;
}


@keyframes blink {
    0%, 96%, 100% { transform: scaleY(1); }
    97% { transform: scaleY(0.15); }
    98% { transform: scaleY(1); }
}

.face {
    animation: faceFloat 6s ease-in-out infinite;
}

@keyframes faceFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hint {
    color: var(--muted);
}

.footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 18px 8vw 30px;
    color: var(--muted);
    font-size: 0.9rem;
}

.cursor {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(94, 230, 255, 0.7);
    transition: transform 0.08s ease-out;
}

.glow-trail {
    position: fixed;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 230, 255, 0.9), rgba(94, 230, 255, 0.2));
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    animation: glowFade 0.8s ease-out forwards;
}

@keyframes glowFade {
    0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

.spark {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(94, 230, 255, 0.9);
    box-shadow: 0 0 12px rgba(94, 230, 255, 0.8);
    pointer-events: none;
    z-index: 3;
    animation: spark 0.7s ease-out forwards;
}

@keyframes spark {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

@media (max-width: 800px) {
    body {
        overflow: auto;
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .hero {
        padding: 60px 6vw 30px;
        min-height: auto;
    }

    .face {
        width: 200px;
        height: 200px;
    }
}
