/* HeidePixel Landingpage */

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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #0b0614;
    font-family: Arial, Helvetica, sans-serif;
}

/* Weicher Farb-Glow hinter dem Logo */
body::before {
    content: "";
    position: absolute;
    width: 900px;
    height: 900px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(255, 120, 0, 0.22) 0%,
            rgba(194, 23, 120, 0.20) 30%,
            rgba(74, 18, 111, 0.18) 55%,
            transparent 80%
        );

    filter: blur(140px);
    animation: pulse 12s ease-in-out infinite;
    z-index: 0;
}

.logo-container {
    position: relative;
    z-index: 10;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 24px;
}

.logo {
    width: min(90vw, 700px);
    height: auto;

    opacity: 0;
    transform: translateY(10px) scale(0.985);

    filter:
        drop-shadow(0 0 2px rgba(255,255,255,0.22))
        drop-shadow(0 0 18px rgba(0,0,0,0.68))
        drop-shadow(0 0 42px rgba(255,122,24,0.14));

    animation: logoFadeIn 1.6s ease forwards;

    will-change: opacity, transform;
}

/* Pixel-Partikel */
#particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

#particles span {
    position: absolute;

    background: linear-gradient(
        135deg,
        rgba(255,122,24,0.34),
        rgba(194,23,120,0.32),
        rgba(155,89,182,0.30)
    );

    border-radius: 2px;

    animation-name: drift;
    animation-timing-function: linear;
    animation-iteration-count: infinite;

    box-shadow:
        0 0 8px rgba(255,122,24,0.18),
        0 0 12px rgba(194,23,120,0.14);
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes drift {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    88% {
        opacity: 1;
    }

    100% {
        transform: translateY(-170px) rotate(180deg);
        opacity: 0;
    }
}

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

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

@media (max-width: 768px) {
    body::before {
        width: 600px;
        height: 600px;
        filter: blur(120px);
    }

    .logo {
        width: 94vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    .logo,
    #particles span {
        animation: none;
    }

    .logo {
        opacity: 1;
        transform: none;
    }
}
