:root {
    --primary: #818cf8;
    --primary-soft: rgba(129, 140, 248, 0.12);
    --accent: #22d3ee;
    --dark: #f8fafc;
    --bg: #181a1b;
    --text-main: #f1f5f9;
    --text-sub: #94a3b8;
}

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

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

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

    display: grid;
    place-items: center;

    background: var(--bg);
    color: var(--text-main);
    font-family: "Inter", sans-serif;
}

/* Perspektivisches Raster am unteren Rand */
body::after {
    position: fixed;
    right: -25%;
    bottom: -28%;
    left: -25%;
    z-index: -1;
    height: 58%;
    content: "";
    pointer-events: none;

    background-image:
        linear-gradient(rgba(129, 140, 248, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 140, 248, 0.1) 1px, transparent 1px);
    background-size: 52px 52px;

    mask-image: linear-gradient(to top, black 0%, transparent 78%);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 78%);

    opacity: 0.35;
    transform: perspective(600px) rotateX(62deg) scale(1.55);
    transform-origin: bottom center;
    animation: gridDrift 18s linear infinite;
}

/* Zentraler Block */
.page-wrapper {
    width: min(100% - 3rem, 900px);
    text-align: center;
}

/* Inhalt */
.main-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 1.5rem;
    padding: 8px 20px;
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 999px;

    background: rgba(129, 140, 248, 0.1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
    animation: popIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.08s forwards;
}

/* Headline */
.main-hero h1 {
    max-width: 850px;
    margin-bottom: 0.75rem;

    color: #f8fafc;

    font-family: "Sora", sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;

    opacity: 0;
    animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.18s forwards;
}
/* Unterzeile */
.main-hero p {
    color: var(--text-sub);
    font-size: clamp(0.85rem, 3vw, 1.05rem);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    opacity: 0;
    animation: popIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.31s forwards;
}

/* Schnell hintereinander: klein + weich + leicht von unten */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.92);
        filter: blur(7px);
    }

    70% {
        opacity: 1;
        transform: translateY(-2px) scale(1.015);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes gridDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 52px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .page-wrapper {
        width: min(100% - 2.5rem, 900px);
    }

    .status-badge {
        margin-bottom: 1.1rem;
        padding: 7px 16px;
        font-size: 0.7rem;
    }

    .main-hero h1 {
        margin-bottom: 0.65rem;
        font-size: clamp(2.25rem, 11vw, 3.4rem);
        line-height: 1.05;
    }

    .main-hero p {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }

    body::after {
        right: -70%;
        bottom: -22%;
        left: -70%;
        height: 48%;
        background-size: 40px 40px;
        opacity: 0.25;
        transform: perspective(450px) rotateX(62deg) scale(1.7);
    }
}

/* Keine unnötige Bewegung, wenn das Gerät sie reduzieren soll */
@media (prefers-reduced-motion: reduce) {
    body::after,
    .status-badge,
    .main-hero h1,
    .main-hero p {
        animation: none;
        opacity: 1;
    }
}