:root {
    color-scheme: dark;
    --violet: #a855f7;
    --blue: #38bdf8;
    --background: #050310;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: #fff;
    background: var(--background);
    font-family: Arial, Helvetica, sans-serif;
}

.universe {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 42%, #421077 0%, transparent 48%),
        radial-gradient(ellipse at 80% 15%, #102451 0%, transparent 45%),
        #050310;
}

.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 15% 20%, white 90%, transparent),
        radial-gradient(2px 2px at 75% 15%, white 90%, transparent),
        radial-gradient(1px 1px at 45% 65%, white 90%, transparent),
        radial-gradient(2px 2px at 85% 75%, #a5cfff 90%, transparent),
        radial-gradient(1px 1px at 25% 85%, white 90%, transparent);
    background-size: 270px 230px;
    animation: starsMove 35s linear infinite;
}

.hero {
    position: relative;
    z-index: 2;
    padding: 55px 20px 0;
}

.eyebrow {
    color: #c4a5ff;
    letter-spacing: 5px;
    font-size: 12px;
}

.hero h1 {
    margin: 12px 0;
    font-size: clamp(65px, 12vw, 135px);
    font-weight: 900;
    letter-spacing: 8px;
    text-shadow: 0 0 25px #9c42ff, 0 0 75px #6324ff;
}

.subtitle {
    color: #d7d2ef;
    font-size: clamp(16px, 2vw, 23px);
}

.portal-scene {
    position: relative;
    z-index: 2;
    min-height: 580px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.portal {
    position: relative;
    width: min(70vw, 440px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 0 45px #782cff);
}

.portal-ring {
    position: absolute;
    border-radius: 50%;
    inset: 0;
    border: 13px solid transparent;
    border-top-color: #d5a5ff;
    border-bottom-color: #5b7cff;
    box-shadow:
        0 0 20px #9c42ff,
        inset 0 0 30px #6b32ff,
        0 0 65px #5722c9;
    animation: rotatePortal 9s linear infinite;
}

.portal-ring.inner {
    inset: 9%;
    border-width: 8px;
    border-top-color: #38bdf8;
    border-bottom-color: #c084fc;
    animation-direction: reverse;
    animation-duration: 5s;
}

.portal-core {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background:
        repeating-conic-gradient(
            from 0deg,
            #4312a8 0deg,
            #2563eb 24deg,
            #8b5cf6 48deg,
            #150c51 72deg
        );
    box-shadow:
        inset 0 0 65px #050310,
        0 0 45px #9333ea;
    animation: rotatePortal 12s linear infinite;
}

.portal-core::after {
    content: "";
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    background: #e0f2fe;
    filter: blur(30px);
    opacity: .75;
    animation: energyPulse 3s ease-in-out infinite;
}

.portal-action {
    margin-top: 40px;
}

.enter-button {
    display: inline-block;
    padding: 20px 38px;
    border: 1px solid #d8b4fe;
    border-radius: 50px;
    background: linear-gradient(110deg, #6d28d9, #2563eb);
    color: white;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 0 0 25px #7c3aed;
    transition: transform .3s, box-shadow .3s;
}

.enter-button:hover,
.enter-button:focus-visible {
    transform: scale(1.07);
    box-shadow: 0 0 55px #a855f7;
}

.presentation {
    position: relative;
    z-index: 2;
    padding: 70px 20px;
    max-width: 800px;
    margin: auto;
    line-height: 1.8;
}

.presentation h2 {
    font-size: clamp(26px, 4vw, 42px);
}

.presentation p {
    color: #d1c9e7;
}

.invitation {
    color: #c084fc !important;
}

footer {
    position: relative;
    z-index: 2;
    padding: 30px 15px;
    color: #a6a0ba;
    font-size: 13px;
}

@keyframes rotatePortal {
    to { transform: rotate(360deg); }
}

@keyframes energyPulse {
    50% { opacity: 1; transform: scale(1.25); }
}

@keyframes starsMove {
    to { background-position: 270px 230px; }
}

@media (max-width: 600px) {
    .hero { padding-top: 35px; }
    .hero h1 { letter-spacing: 3px; }
    .portal-scene { min-height: 430px; }
    .portal-action { margin-top: 30px; }
    .enter-button { padding: 17px 23px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
