:root {
    --bg-top: #000022;
    --bg-bottom: #3a1c71;
    --grid-color: #ff00ff;
    --sun-color: #ff9900;
    --text-color: #00ffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
}

body {
    background: linear-gradient(to bottom, var(--bg-top) 0%, var(--bg-bottom) 50%, #000 50%, #000 100%);
    overflow: hidden;
    height: 100vh;
}

/* Sky & Horizon */
.sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 1;
}

.sun {
    position: absolute;
    bottom: 50%; /* exactly at horizon */
    left: 50%;
    transform: translate(-50%, 50%); /* half sunk */
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #ffea00 0%, #ff0f7b 100%);
    box-shadow: 0 0 50px var(--sun-color);
    z-index: 2;
    /* Sunset lines effect */
    mask-image: linear-gradient(to bottom, black 50%, transparent 50%, transparent 55%, black 55%, black 65%, transparent 65%, transparent 70%, black 70%, black 85%, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 50%, transparent 55%, black 55%, black 65%, transparent 65%, transparent 70%, black 70%, black 85%, transparent 85%);
}

.mountains {
    position: absolute;
    bottom: 50%;
    width: 100%;
    height: 15vh;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 200" xmlns="http://www.w3.org/2000/svg"><path d="M0,200 L100,50 L200,100 L300,20 L400,120 L500,40 L600,150 L700,60 L800,90 L900,10 L1000,200 Z" fill="%23000"/></svg>') repeat-x bottom;
    background-size: auto 100%;
    z-index: 3;
}

/* 3D Grid Floor effect */
.grid-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
    perspective: 400px;
    z-index: 4;
    overflow: hidden;
    background-color: #000;
}

.grid {
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(var(--grid-color) 2px, transparent 2px),
        linear-gradient(90deg, var(--grid-color) 2px, transparent 2px);
    background-size: 50px 50px;
    transform: rotateX(75deg);
    transform-origin: top;
    animation: gridMove 2s linear infinite;
    /* Glow */
    box-shadow: 0 0 20px var(--grid-color) inset;
    filter: drop-shadow(0 0 5px var(--grid-color));
}

@keyframes gridMove {
    0% { transform: rotateX(75deg) translateY(0); }
    100% { transform: rotateX(75deg) translateY(50px); }
}

/* UI Layer */
.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.neon-text {
    font-size: 8rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--grid-color),
        0 0 40px var(--grid-color),
        0 0 80px var(--grid-color);
    transform: skewX(-10deg) rotateZ(2deg);
    margin-bottom: 2rem;
    pointer-events: auto;
    transition: transform 0.1s;
}

.neon-box {
    border: 2px solid var(--text-color);
    padding: 1rem 2rem;
    color: var(--text-color);
    text-shadow: 0 0 5px var(--text-color);
    box-shadow: 0 0 10px var(--text-color) inset, 0 0 10px var(--text-color);
    background: rgba(0, 255, 255, 0.05);
    font-size: 1.2rem;
    display: flex;
    gap: 2rem;
    backdrop-filter: blur(5px);
}
