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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    cursor: none;
    user-select: none;
    -webkit-user-select: none;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom right, #0f172a, #064e3b);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 3px
        ),
        radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 100;
}

.grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    transform: perspective(500px) rotateX(60deg) scale(2);
    transform-origin: center bottom;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.orb-1 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #10b981, transparent);
    top: 20%;
    left: 15%;
    animation: drift-1 20s ease-in-out infinite;
}

.orb-2 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, #059669, transparent);
    bottom: 10%;
    right: 20%;
    animation: drift-2 25s ease-in-out infinite 5s;
}

@keyframes drift-1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30vw, -20vh);
    }
    50% {
        transform: translate(20vw, 15vh);
    }
    75% {
        transform: translate(-15vw, 10vh);
    }
}

@keyframes drift-2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-40vw, 20vh);
    }
    50% {
        transform: translate(-35vw, -30vh);
    }
    75% {
        transform: translate(-20vw, -15vh);
    }
}

.title {
    position: relative;
    z-index: 10;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.05);
    mix-blend-mode: screen;
    animation: text-flicker 8s infinite;
    transition: text-shadow 0.3s ease;
}

.title:hover {
    text-shadow: 
        -2px 0 rgba(255, 0, 0, 0.3),
        2px 0 rgba(0, 255, 255, 0.3);
    animation: chromatic-shift 0.1s infinite;
}

@keyframes chromatic-shift {
    0% {
        text-shadow: 
            -2px 0 rgba(255, 0, 0, 0.3),
            2px 0 rgba(0, 255, 255, 0.3);
    }
    50% {
        text-shadow: 
            -3px 0 rgba(255, 0, 0, 0.4),
            3px 0 rgba(0, 255, 255, 0.4);
    }
    100% {
        text-shadow: 
            -2px 0 rgba(255, 0, 0, 0.3),
            2px 0 rgba(0, 255, 255, 0.3);
    }
}

@media (min-width: 640px) {
    .title {
        font-size: 1.875rem;
    }
}

@media (min-width: 768px) {
    .title {
        font-size: 2.25rem;
    }
}


@keyframes text-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.4;
    }
}

.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.6), transparent);
    pointer-events: none;
    z-index: 9999;
    filter: blur(10px);
    animation: fade-out 1s ease-out forwards;
}

@keyframes fade-out {
    to {
        opacity: 0;
        transform: scale(2);
    }
}

.spawn-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #10b981, transparent);
    filter: blur(60px);
    opacity: 0.7;
    pointer-events: none;
    animation: spawn-fade 3s ease-out forwards;
}

@keyframes spawn-fade {
    0% {
        opacity: 0.7;
        transform: scale(0);
    }
    20% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@media (prefers-reduced-motion: reduce) {
    .orb-1,
    .orb-2 {
        animation: none;
    }
    
    .title {
        animation: none;
    }
    
    body {
        cursor: default;
    }
}
