:root {
    --cyan: #00f6ff;
    --pink: #ff00c8;
    --blue: #273cff;
    --yellow: #fff500;
    --logo: url("Assets/images/Logo_Square_Centre.png");
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    color: white;
    background: #000;
    font-family: "Orbitron", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background: repeating-linear-gradient(0deg,
            transparent 0 3px,
            rgba(255, 255, 255, .08) 4px,
            transparent 5px);
    z-index: 5;
}

.page {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px 20px;
    isolation: isolate;
}

.page::before,
.page::after {
    content: "";
    position: absolute;
    width: 45vw;
    height: 45vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .16;
    z-index: -1;
}

/* .page::before {
            background: var(--blue);
            top: -20%;
            left: -15%;
        }

        .page::after {
            background: var(--pink);
            right: -15%;
            bottom: -20%;
        } */

.content {
    width: min(850px, 100%);
    text-align: center;
}

.logo {
    position: relative;
    width: min(620px, 92vw);
    margin: 0 auto 30px;
    animation: float 4s ease-in-out infinite;
}

.logo img {
    display: block;
    width: 40%;
    margin: 0 auto;
    filter: drop-shadow(0 0 8px var(--cyan)) drop-shadow(0 0 20px rgba(255, 0, 200, .45));
}

.logo::before,
.logo::after {
    content: "";
    position: absolute;
    inset: 18% 0;
    background: var(--logo) center / contain no-repeat;
    pointer-events: none;
    mix-blend-mode: screen;
}

.logo::before {
    transform: translate(-7px, 2px);
    opacity: .65;
    filter: sepia(1) saturate(12) hue-rotate(125deg);
    animation: glitch-left 2.2s infinite steps(2);
}

.logo::after {
    transform: translate(7px, -2px);
    opacity: .55;
    filter: sepia(1) saturate(12) hue-rotate(285deg);
    animation: glitch-right 1.8s infinite steps(2);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: clamp(.7rem, 2vw, .9rem);
    font-weight: 400;
    letter-spacing: .45em;
    text-transform: uppercase;
    text-shadow: 0 0 12px var(--cyan);
}

h2 {
    position: relative;
    margin: 0;
    color: white;
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow:
        3px 0 var(--pink),
        -3px 0 var(--cyan),
        0 0 25px rgba(255, 255, 255, .45);
}

h2::before,
h2::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: transparent;
}

h2::before {
    color: var(--pink);
    mix-blend-mode: screen;
    clip-path: inset(0 0 100% 0);
    animation: title-glitch-left 2.8s infinite steps(1);
}

h2::after {
    color: var(--cyan);
    mix-blend-mode: screen;
    clip-path: inset(0 0 100% 0);
    animation: title-glitch-right 2.8s infinite steps(1);
}

.subtitle {
    max-width: 560px;
    margin: 22px auto 34px;
    color: #c8c8c8;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

.notify {
    display: flex;
    max-width: 470px;
    margin: auto;
    padding: 5px;
    border: 1px solid var(--cyan);
    background: rgba(0, 0, 0, .65);
    box-shadow: 0 0 18px rgba(0, 246, 255, .3);
}

.notify input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px;
    color: white;
    background: transparent;
    font-family: Arial, sans-serif;
}

.notify button {
    border: 0;
    padding: 0 20px;
    color: #000;
    background: var(--cyan);
    cursor: pointer;
    font-family: inherit;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: .2s;
}

.notify button:hover {
    background: var(--pink);
    box-shadow: 0 0 18px var(--pink);
}

.subscriber-count {
    margin: 16px 0 0;
    color: var(--cyan);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.subscriber-count span {
    color: var(--yellow);
    font-size: .9rem;
    font-weight: 900;
}

iframe#hidden_iframe {
    display: none;
}

.status {
    min-height: 20px;
    margin-top: 14px;
    color: var(--yellow);
    font-size: .7rem;
    letter-spacing: .12em;
}

.status:empty {
    display: none;
}

.status.is-loading {
    display: block;
    width: min(280px, 80vw);
    height: 6px;
    margin: 18px auto 0;
    border: .5px solid var(--yellow);
    background: rgba(255, 245, 0, .12);
    box-shadow: 0 0 12px rgba(255, 245, 0, .35);
    overflow: hidden;
}

.status.is-loading::before {
    content: "";
    display: block;
    width: 38%;
    height: 100%;
    background: var(--yellow);
    box-shadow: 0 0 10px var(--yellow);
    animation: register-progress 1.15s ease-in-out infinite;
}

.footer {
    position: fixed;
    right: 20px;
    bottom: 18px;
    left: 20px;
    color: #666;
    font-family: Arial, sans-serif;
    font-size: .7rem;
    letter-spacing: .15em;
    text-align: center;
    text-transform: uppercase;
}

@keyframes float {
    50% {
        transform: translateY(-8px);
    }
}

@keyframes glitch-left {

    0%,
    88%,
    100% {
        clip-path: inset(0);
    }

    90% {
        clip-path: inset(20% 0 55%);
    }

    94% {
        clip-path: inset(65% 0 10%);
    }
}

@keyframes glitch-right {

    0%,
    82%,
    100% {
        clip-path: inset(0);
    }

    85% {
        clip-path: inset(55% 0 25%);
    }

    89% {
        clip-path: inset(10% 0 70%);
    }
}

@keyframes title-glitch-left {

    0%,
    90%,
    100% {
        clip-path: inset(0 0 100% 0);
        transform: translate(0);
    }

    90.5% {
        clip-path: inset(0 0 45% 0);
        transform: translate(-18px, 0);
    }

    91% {
        clip-path: inset(50% 0 0 0);
        transform: translate(14px, 0);
    }

    91.5% {
        clip-path: inset(0 0 100% 0);
    }

    95%,
    95.5% {
        clip-path: inset(20% 0 30% 0);
        transform: translate(-20px, 0);
    }

    96% {
        clip-path: inset(0 0 100% 0);
    }
}

@keyframes title-glitch-right {

    0%,
    90%,
    100% {
        clip-path: inset(0 0 100% 0);
        transform: translate(0);
    }

    90.5% {
        clip-path: inset(50% 0 0 0);
        transform: translate(18px, 0);
    }

    91% {
        clip-path: inset(0 0 45% 0);
        transform: translate(-14px, 0);
    }

    91.5% {
        clip-path: inset(0 0 100% 0);
    }

    95%,
    95.5% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(20px, 0);
    }

    96% {
        clip-path: inset(0 0 100% 0);
    }
}

@keyframes register-progress {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(285%);
    }
}

@media (max-width: 520px) {
    .notify {
        flex-direction: column;
        gap: 5px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .notify input,
    .notify button {
        min-height: 48px;
        border: 1px solid var(--cyan);
    }

    .notify button {
        padding: 12px;
    }
}

@media (max-height: 800px) {
    .page {
        padding: 18px 20px;
    }

    .logo {
        width: min(440px, 70vw);
        margin-bottom: 18px;
    }

    h2 {
        font-size: clamp(2rem, 5vw, 3.8rem);
    }

    .subtitle {
        margin: 14px auto 22px;
    }

    .footer {
        bottom: 10px;
    }
}