:root {
    color-scheme: dark;

    --mn-purple: #6a0dad;
    --mn-authority: #4a2e91;
    --mn-violet: #9b59b6;
    --mn-plum: #28183e;
    --mn-purple-black: #191020;

    --soft-lavender: #eee4f7;
    --pale-lavender: #f8f5fb;
    --text-muted: #c8bdd3;

    --card-background: rgba(35, 22, 51, 0.76);
    --card-border: rgba(238, 228, 247, 0.14);

    --shadow:
        0 35px 100px rgba(5, 2, 10, 0.48),
        0 10px 35px rgba(106, 13, 173, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--mn-purple-black);
}

body {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;

    color: var(--pale-lavender);

    background:
        radial-gradient(
            circle at 18% 15%,
            rgba(155, 89, 182, 0.25),
            transparent 31rem
        ),
        radial-gradient(
            circle at 85% 78%,
            rgba(106, 13, 173, 0.31),
            transparent 32rem
        ),
        linear-gradient(
            145deg,
            #120b19 0%,
            var(--mn-purple-black) 45%,
            var(--mn-plum) 100%
        );

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    isolation: isolate;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -3;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );

    background-size: 46px 46px;
    content: "";
    pointer-events: none;
}

a {
    color: inherit;
}

.background-glow {
    position: fixed;
    z-index: -2;
    border: 1px solid rgba(222, 194, 239, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.background-glow::before,
.background-glow::after {
    position: absolute;
    border: inherit;
    border-radius: inherit;
    content: "";
}

.background-glow::before {
    inset: 17%;
}

.background-glow::after {
    inset: 35%;
}

.background-glow-one {
    top: -13rem;
    right: -8rem;
    width: 31rem;
    aspect-ratio: 1;
}

.background-glow-two {
    bottom: -17rem;
    left: -10rem;
    width: 38rem;
    aspect-ratio: 1;
}

.redirect-page {
    display: grid;
    width: 100%;
    padding: clamp(1rem, 4vw, 3rem);
    place-items: center;
}

.redirect-card {
    position: relative;
    width: min(100%, 36rem);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    overflow: hidden;

    border: 1px solid var(--card-border);
    border-radius: 2rem;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.05),
            transparent 42%
        ),
        var(--card-background);

    box-shadow: var(--shadow);
    text-align: center;

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.redirect-card::before {
    position: absolute;
    top: 0;
    left: 10%;

    width: 80%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(219, 178, 241, 0.7),
            transparent
        );

    content: "";
}

.brand-header {
    display: flex;
    justify-content: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-align: left;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;

    border: 1px solid rgba(235, 210, 248, 0.22);
    border-radius: 1rem;

    background:
        linear-gradient(
            145deg,
            var(--mn-purple),
            var(--mn-authority)
        );

    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.15),
        0 10px 25px rgba(106, 13, 173, 0.25);
}

.brand-letter {
    color: white;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.brand-text {
    display: grid;
    gap: 0.14rem;
}

.brand-text strong {
    font-size: 1rem;
    font-weight: 720;
    letter-spacing: -0.025em;
}

.brand-text small {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.redirect-visual {
    display: flex;
    width: min(100%, 15rem);
    margin: 2.6rem auto 2rem;
    align-items: center;
}

.domain-node {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 1rem;
    aspect-ratio: 1;

    border: 3px solid var(--mn-purple-black);
    border-radius: 50%;
}

.domain-node-source {
    background: var(--mn-violet);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.8);
}

.domain-node-destination {
    background: var(--soft-lavender);
    box-shadow: 0 0 22px rgba(238, 228, 247, 0.55);
}

.route-line {
    position: relative;
    flex: 1;
    height: 2px;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            var(--mn-violet),
            var(--soft-lavender)
        );
}

.route-pulse {
    position: absolute;
    top: 50%;
    left: 0;

    width: 2.7rem;
    height: 0.32rem;
    border-radius: 999px;

    background: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);

    transform: translate(-100%, -50%);
    animation: route-pulse 1.35s ease-in-out infinite;
}

.redirect-content {
    max-width: 28rem;
    margin-inline: auto;
}

.status-label {
    margin: 0 0 0.75rem;

    color: #d8a8ee;
    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

h1 {
    margin: 0;

    font-size: clamp(1.65rem, 7vw, 2.55rem);
    font-weight: 680;
    letter-spacing: -0.045em;
    line-height: 1.13;
}

.domain-name,
.destination-name {
    display: inline;
}

.domain-name {
    color: #d9a8ed;
}

.destination-name {
    color: white;
}

.redirect-description {
    max-width: 24rem;
    margin: 1rem auto 0;

    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.progress-track {
    width: min(100%, 21rem);
    height: 3px;
    margin: 2rem auto 1.35rem;
    overflow: hidden;

    border-radius: 999px;
    background: rgba(238, 228, 247, 0.1);
}

.progress-bar {
    display: block;
    width: 100%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--mn-violet),
            var(--soft-lavender)
        );

    box-shadow: 0 0 13px rgba(183, 116, 216, 0.55);

    transform: scaleX(0);
    transform-origin: left;

    animation:
        redirect-progress
        var(--redirect-duration, 4000ms)
        linear
        forwards;
}

.continue-button {
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;

    padding: 0.72rem 1.15rem;

    border: 1px solid rgba(230, 204, 243, 0.16);
    border-radius: 999px;

    color: var(--soft-lavender);
    background: rgba(255, 255, 255, 0.035);

    font-size: 0.84rem;
    font-weight: 680;
    text-decoration: none;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.continue-button svg {
    width: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;

    transition: transform 180ms ease;
}

.continue-button:hover {
    border-color: rgba(231, 202, 246, 0.32);
    color: white;
    background: rgba(255, 255, 255, 0.075);
    transform: translateY(-1px);
}

.continue-button:hover svg {
    transform: translateX(3px);
}

.brand:focus-visible,
.continue-button:focus-visible,
.site-footer a:focus-visible,
.noscript-message a:focus-visible {
    outline: 3px solid var(--soft-lavender);
    outline-offset: 4px;
}

.noscript-message {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.noscript-message a {
    color: white;
}

.site-footer {
    padding:
        0
        1.5rem
        max(1.35rem, env(safe-area-inset-bottom));

    color: rgba(222, 207, 231, 0.7);
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.76rem;
    letter-spacing: 0.025em;
}

.site-footer a {
    color: var(--soft-lavender);
    font-weight: 680;
    text-decoration-color: rgba(202, 161, 224, 0.55);
    text-underline-offset: 0.2em;
}

.site-footer a:hover {
    color: white;
    text-decoration-color: white;
}

@keyframes route-pulse {
    from {
        transform: translate(-100%, -50%);
    }

    to {
        transform: translate(550%, -50%);
    }
}

@keyframes redirect-progress {
    to {
        transform: scaleX(1);
    }
}

@media (max-width: 460px) {
    .redirect-page {
        padding-inline: 1rem;
    }

    .redirect-card {
        padding-inline: 1.3rem;
        border-radius: 1.6rem;
    }

    .redirect-visual {
        margin-block: 2.1rem 1.65rem;
    }

    .redirect-description {
        max-width: 19rem;
    }
}

@media (max-height: 680px) {
    .redirect-page {
        padding-block: 1rem;
    }

    .redirect-card {
        padding-block: 1.3rem;
    }

    .redirect-visual {
        margin-block: 1.5rem 1.2rem;
    }

    .site-footer {
        padding-bottom: max(
            0.8rem,
            env(safe-area-inset-bottom)
        );
    }
}

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

    .progress-bar {
        transform: scaleX(1);
    }
}

@supports not (backdrop-filter: blur(1px)) {
    .redirect-card {
        background: rgba(40, 24, 62, 0.97);
    }
}