:root {
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

body {
    opacity: 1;
    animation: siteFadeIn 420ms ease both;
    transition: opacity 260ms ease;
}

@keyframes siteFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body.page-leaving {
    opacity: 0;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.site-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.site-brand-word {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: #f7f9fb;
}

.site-brand:hover .site-brand-logo {
    transform: rotate(-4deg) scale(1.04);
}

.site-brand-logo,
.site-brand-word {
    transition: transform 220ms ease, color 220ms ease;
}

nav a[aria-current="page"],
header a[aria-current="page"] {
    color: #a5ced1;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a5ced1;
    outline-offset: 4px;
}

.site-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 3px;
    pointer-events: none;
}

.site-progress__bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #a5ced1, #8496be, #ffffff);
    box-shadow: 0 0 18px rgba(165, 206, 209, 0.55);
    transition: width 120ms linear;
}

.site-mobile-panel {
    position: fixed;
    inset: 64px 16px auto 16px;
    z-index: 60;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(165, 206, 209, 0.18);
    border-radius: 8px;
    background: rgba(3, 11, 26, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.site-mobile-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-mobile-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #f7f9fb;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.site-mobile-panel a:hover,
.site-mobile-panel a[aria-current="page"] {
    color: #000b0d;
    background: #a5ced1;
}

.site-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.site-lift {
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.site-magnetic {
    transition: transform 180ms ease, filter 180ms ease;
}

.site-magnetic:hover {
    filter: brightness(1.08);
}

.eliora-logo-stage {
    position: relative;
    --orbit-radius: min(185px, 36vw);
    width: min(420px, 78vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.eliora-logo-stage::before,
.eliora-logo-stage::after {
    content: "";
    position: absolute;
    inset: 8%;
    border: 1px solid rgba(165, 206, 209, 0.2);
    border-radius: 999px;
    animation: orbitSpin 18s linear infinite;
}

.eliora-logo-stage::after {
    inset: 19%;
    border-color: rgba(132, 150, 190, 0.24);
    animation-duration: 11s;
    animation-direction: reverse;
}

.eliora-logo-halo {
    position: absolute;
    inset: 18%;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(165, 206, 209, 0.3), transparent 62%),
        conic-gradient(from 120deg, rgba(165, 206, 209, 0.14), rgba(132, 150, 190, 0.34), rgba(0, 91, 100, 0.18), rgba(165, 206, 209, 0.14));
    filter: blur(8px);
    animation: pulseHalo 4.8s ease-in-out infinite;
}

.eliora-hero-logo {
    position: relative;
    z-index: 2;
    width: min(300px, 56vw);
    height: auto;
    filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.52));
    animation: logoFloat 5.8s ease-in-out infinite;
}

.eliora-orbit-dot {
    position: absolute;
    z-index: 3;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #a5ced1;
    box-shadow: 0 0 22px rgba(165, 206, 209, 0.85);
    animation: dotOrbit 7.2s linear infinite;
}

.eliora-orbit-dot:nth-of-type(2) {
    width: 9px;
    height: 9px;
    background: #8496be;
    animation-duration: 10s;
    animation-direction: reverse;
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-16px) rotateX(5deg) rotateY(-5deg);
    }
}

@keyframes pulseHalo {
    0%,
    100% {
        opacity: 0.64;
        transform: scale(0.94);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

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

@keyframes dotOrbit {
    from {
        transform: rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg);
    }
}

.site-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.site-reveal.site-revealed {
    opacity: 1;
    transform: translateY(0);
}

.toast-message {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    max-width: min(360px, calc(100vw - 40px));
    padding: 14px 16px;
    border: 1px solid rgba(165, 206, 209, 0.28);
    border-radius: 8px;
    color: #f7f9fb;
    background: rgba(3, 11, 26, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(16px);
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

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

    body {
        opacity: 1;
    }

    .eliora-logo-stage::before,
    .eliora-logo-stage::after,
    .eliora-logo-halo,
    .eliora-hero-logo,
    .eliora-orbit-dot {
        animation: none !important;
    }
}
