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

:root {
    --bg: #08090d;
    --card: rgba(17, 19, 27, 0.86);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: #969ca8;
    --accent: #5865f2;
    --accent-hover: #6975ff;
}

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

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

    background: var(--bg);
    color: var(--text);
}

.redirect-page {
    position: relative;

    min-height: 100vh;

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

    padding: 24px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(88, 101, 242, 0.09),
            transparent 38%
        ),
        var(--bg);
}

/* Background grid */

.background-grid {
    position: absolute;
    inset: 0;

    opacity: 0.35;

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

    background-size: 50px 50px;

    mask-image:
        radial-gradient(
            circle,
            black 20%,
            transparent 75%
        );
}

/* Glow */

.glow {
    position: absolute;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    filter: blur(110px);

    opacity: 0.14;

    pointer-events: none;
}

.glow-one {
    top: -180px;
    left: -120px;

    background: #5865f2;
}

.glow-two {
    right: -160px;
    bottom: -180px;

    background: #7289da;
}

/* Card */

.redirect-card {
    position: relative;
    z-index: 5;

    width: min(100%, 500px);

    padding: 48px;

    text-align: center;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 24px;

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255,255,255,0.04);

    animation: cardIn 0.7s ease;
}

/* Discord icon */

.discord-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 25px;

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

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #5865f2,
            #4752c4
        );

    box-shadow:
        0 15px 35px rgba(88, 101, 242, 0.25);

    animation: float 3s ease-in-out infinite;
}

.discord-icon span {
    color: white;

    font-size: 30px;
    font-weight: 800;
}

/* Text */

.eyebrow {
    margin-bottom: 10px;

    color: #727988;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.2em;
}

h1 {
    font-size: clamp(32px, 7vw, 44px);

    line-height: 1.1;

    letter-spacing: -0.045em;
}

h1 span {
    color: var(--accent);
}

p {
    max-width: 380px;

    margin: 17px auto 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}

/* Loading bar */

.loader {
    width: 100%;
    height: 4px;

    margin: 30px 0 22px;

    overflow: hidden;

    border-radius: 100px;

    background: rgba(255,255,255,0.07);
}

.loader-bar {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background: var(--accent);

    animation: loading 4s linear forwards;
}

/* Button */

.continue-button {
    display: flex;

    width: 100%;
    height: 50px;

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

    color: white;

    background: var(--accent);

    border-radius: 12px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    box-shadow:
        0 10px 30px rgba(88, 101, 242, 0.2);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.continue-button:hover {
    background: var(--accent-hover);

    transform: translateY(-2px);
}

.continue-button:active {
    transform: translateY(0);
}

/* Invite */

.invite {
    margin-top: 18px;

    color: #666c78;

    font-family:
        Consolas,
        Monaco,
        monospace;

    font-size: 11px;
}

/* Footer */

.footer {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;

    margin-top: 28px;

    color: #4f5561;

    font-size: 10px;
}

.dot {
    color: #30343d;
}

/* Animations */

@keyframes cardIn {

    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

}

@keyframes loading {

    from {
        width: 0%;
    }

    to {
        width: 100%;
    }

}

/* Mobile */

@media (max-width: 600px) {

    .redirect-card {
        padding: 38px 24px;
        border-radius: 20px;
    }

    h1 {
        font-size: 32px;
    }

}
