:root {
    --green: #00ff9d;
    --green-soft: #13f5a0;
    --black: #000;
    --field: #b8b8b8;
    --field-text: #525252;
    --white: #fff;
    --bar-h: clamp(5px, .4vw, 8px);
    --art-w: 1920px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--black);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--white);
    background:
        linear-gradient(90deg, #000 0%, #020806 9%, #071f18 18%, #000 34%, #000 66%, #071f18 82%, #020806 91%, #000 100%);
    font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-weight: 400;
}

img {
    display: block;
    max-width: 100%;
}

.mobile-logo {
    display: none;
}

.page {
    width: min(100%, var(--art-w));
    margin: 0 auto;
    overflow: hidden;
    background: var(--black);
    box-shadow:
        -80px 0 140px rgba(0, 255, 157, .08),
        80px 0 140px rgba(0, 255, 157, .08);
}

.top-line {
    height: var(--bar-h);
    background: var(--green);
}

.hero {
    position: relative;
    display: grid;
    min-height: calc(100vh - var(--bar-h));
    min-height: calc(100svh - var(--bar-h));
    padding: clamp(44px, 6vh, 90px) 22px;
    place-items: center;
    isolation: isolate;
    overflow: hidden;
    background: #000;
}

.hero::before,
.signup::before {
    position: absolute;
    inset: -2.5%;
    content: "";
    z-index: 0;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1);
    animation: slow-bg 18s ease-in-out infinite alternate;
    will-change: transform;
}

.hero::before {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .44)),
        url("../img/FOTO_1.png");
}

.hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 24%;
    content: "";
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 96%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    width: min(100%, 1360px);
    transform: translateY(clamp(8px, 4vh, 48px));
    transition: transform .18s ease-out;
}

.main-logo {
    width: min(58vw, 1088px);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .62));
    animation: logo-in .9s cubic-bezier(.2, .75, .2, 1) both;
}

.thanks-logo {
    width: min(29vw, 544px);
}

.date {
    width: min(27vw, 319px);
    margin-top: clamp(36px, 5vw, 74px);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7));
    animation: fade-rise .75s ease .28s both;
}

.thanks-wrap {
    min-height: 100vh;
    min-height: 100svh;
}

.thanks-hero {
    position: relative;
    display: grid;
    min-height: calc(100vh - var(--bar-h));
    min-height: calc(100svh - var(--bar-h));
    padding: clamp(44px, 6vh, 90px) 22px;
    place-items: center;
    isolation: isolate;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .5)),
        url("../img/FOTO_1.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.thanks-hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    content: "";
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 96%);
}

.thanks-content {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    width: min(100%, 1360px);
    transform: translateY(0);
    transition: transform .18s ease-out;
}

.thanks-message {
    margin: clamp(24px, 3.5vw, 44px) 0 0;
    color: var(--white);
    font-size: clamp(20px, 2.35vw, 36px);
    font-weight: 400;
    line-height: 1.12;
    text-align: center;
    text-shadow: 0 12px 30px rgba(0, 0, 0, .82);
}

.thanks-message span {
    color: var(--green);
    font-weight: 500;
}

.thanks-page .countdown {
    width: min(72vw, 360px);
    gap: clamp(5px, .7vw, 10px);
    margin-top: clamp(6px, .9vw, 12px);
}

.thanks-page .countdown-item {
    min-height: clamp(42px, 4vw, 56px);
    padding: 7px 6px;
    border-radius: 12px;
}

.thanks-page .countdown-item span {
    font-size: clamp(17px, 2.1vw, 26px);
}

.thanks-page .countdown-item small {
    font-size: clamp(8px, .8vw, 10px);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(74px, 1fr));
    gap: clamp(7px, 1vw, 14px);
    width: min(82vw, 460px);
    margin-top: clamp(16px, 2.4vw, 28px);
}

.countdown-kicker {
    margin: clamp(18px, 2.8vw, 32px) 0 0;
    color: var(--white);
    font-size: clamp(15px, 1.6vw, 23px);
    font-weight: 400;
    letter-spacing: 0;
    text-align: center;
    text-shadow: 0 10px 24px rgba(0, 0, 0, .8);
    animation: fade-rise .75s ease .4s both;
}

.countdown-kicker + .countdown {
    margin-top: clamp(8px, 1.2vw, 16px);
}

.countdown-item {
    display: grid;
    min-height: clamp(52px, 5vw, 70px);
    padding: 9px 8px;
    place-items: center;
    border: 1px solid rgba(0, 255, 157, .72);
    border-radius: 16px;
    background: rgba(0, 0, 0, .72);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .42);
}

.countdown-item span {
    color: var(--green);
    font-size: clamp(20px, 2.8vw, 34px);
    font-weight: 500;
    line-height: 1;
}

.countdown-item small {
    margin-top: 4px;
    color: var(--white);
    font-size: clamp(9px, 1vw, 12px);
    font-weight: 400;
    text-transform: uppercase;
}

.signup {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(42px, 6vh, 86px) clamp(20px, 6vw, 118px);
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #000;
}

.signup::before {
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .22) 54%, rgba(0, 0, 0, .04)),
        url("../img/FOTO_2.png");
    animation-duration: 22s;
}

.signup-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(260px, 47%) minmax(330px, 1fr);
    gap: clamp(32px, 6vw, 94px);
    align-items: start;
    width: min(100%, 1180px);
    margin: 0 auto;
}

.event-mark {
    width: min(29vw, 320px);
    margin: 8px auto 0;
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .74));
}

.form-shell {
    width: min(100%, 540px);
    margin-top: clamp(2px, 1vw, 18px);
    padding: clamp(24px, 2.7vw, 38px) clamp(20px, 2.8vw, 34px) clamp(24px, 2.7vw, 36px);
    border: 1.5px solid var(--green);
    border-radius: 44px;
    background: rgba(0, 0, 0, .9);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
}

.form {
    display: grid;
    gap: clamp(13px, 1.15vw, 18px);
}

.field,
.submit {
    width: 100%;
    min-height: clamp(42px, 3.45vw, 52px);
    border-radius: 999px;
    font-family: inherit;
    font-size: clamp(16px, 1.12vw, 20px);
    font-weight: 400;
    letter-spacing: 0;
}

.field {
    border: 1.5px solid var(--green);
    padding: 0 clamp(20px, 2vw, 32px);
    color: var(--field-text);
    background: var(--field);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}

.field::placeholder {
    color: #666;
    opacity: 1;
}

.field:focus {
    border-color: var(--white);
    background: #d9e4e0;
    box-shadow: 0 0 0 3px rgba(0, 255, 157, .22), 0 12px 28px rgba(0, 255, 157, .1);
    transform: translateY(-2px);
}

.submit {
    position: relative;
    overflow: hidden;
    border: 0;
    color: #050505;
    background: var(--green);
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 0 0 rgba(0, 255, 157, 0);
    animation: button-pulse 3.8s ease-in-out infinite;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.submit span {
    position: relative;
    z-index: 1;
}

.submit::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    content: "";
    background: linear-gradient(90deg, #004d34, #00ff9d, #0b6d4f);
    opacity: 0;
}

.submit.is-loading {
    color: #fff;
    background: #050505;
    cursor: wait;
    filter: none;
    animation: none;
}

.submit.is-loading::before {
    width: 100%;
    opacity: 1;
    animation: loading-bar 1.15s ease-in-out infinite;
}

.submit.is-loading span::after {
    content: "...";
}

.submit:hover,
.submit:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.submit.is-loading:hover,
.submit.is-loading:focus-visible {
    filter: none;
    transform: none;
}

@keyframes loading-bar {
    0% {
        transform: translateX(-100%);
    }

    55% {
        transform: translateX(0);
    }

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

.index-countdown {
    width: min(64vw, 390px);
    animation: fade-rise .75s ease .48s both;
}

.index-countdown .countdown-item {
    min-height: clamp(44px, 4vw, 58px);
    border-radius: 14px;
    background: rgba(0, 0, 0, .58);
}

.index-countdown .countdown-item span {
    font-size: clamp(18px, 2.2vw, 28px);
}

.index-countdown .countdown-item small {
    font-size: clamp(8px, .8vw, 10px);
}

.scroll-cue {
    display: grid;
    width: clamp(34px, 4vw, 48px);
    height: clamp(34px, 4vw, 48px);
    margin-top: clamp(28px, 3.4vw, 46px);
    place-items: center;
    border: 1px solid rgba(0, 255, 157, .75);
    border-radius: 999px;
    background: rgba(0, 0, 0, .52);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .5);
    animation: scroll-cue 1.8s ease-in-out infinite;
}

.scroll-cue span {
    display: block;
    width: clamp(12px, 1.4vw, 17px);
    height: clamp(12px, 1.4vw, 17px);
    border-right: 3px solid var(--green);
    border-bottom: 3px solid var(--green);
    transform: translateY(-3px) rotate(45deg);
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
    background: var(--green);
    outline: 0;
}

.scroll-cue:hover span,
.scroll-cue:focus-visible span {
    border-color: #000;
}

.reveal-on-scroll,
.reveal-field {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .72s ease, transform .72s cubic-bezier(.2, .75, .2, 1);
}

.reveal-field:nth-child(1) {
    transition-delay: .08s;
}

.reveal-field:nth-child(2) {
    transition-delay: .16s;
}

.reveal-field:nth-child(3) {
    transition-delay: .24s;
}

.reveal-field:nth-child(4) {
    transition-delay: .32s;
}

.reveal-field:nth-child(5) {
    transition-delay: .4s;
}

.reveal-field:nth-child(6) {
    transition-delay: .48s;
}

.reveal-field:nth-child(7) {
    transition-delay: .56s;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes logo-in {
    from {
        opacity: 0;
        transform: scale(.94) translateY(18px);
    }

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

@keyframes fade-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

@keyframes slow-bg {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.055);
    }
}

@keyframes button-pulse {
    0%,
    72%,
    100% {
        box-shadow: 0 0 0 rgba(0, 255, 157, 0);
    }

    82% {
        box-shadow: 0 0 26px rgba(0, 255, 157, .55);
    }
}

@keyframes scroll-cue {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.notice {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: 22px;
    color: #04160e;
    background: var(--green-soft);
    font-size: 17px;
    font-weight: 500;
    text-align: center;
}

.notice.error {
    color: #fff;
    background: #242424;
    border: 1px solid var(--green);
    text-align: left;
}

.notice.error ul {
    margin: 0;
    padding-left: 20px;
}

.form-alert {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: -4px 2px 2px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 91, 91, .7);
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, rgba(69, 15, 18, .96), rgba(24, 9, 10, .98));
    box-shadow: 0 12px 28px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .04);
    animation: alert-in .32s cubic-bezier(.2, .8, .2, 1) both;
}

.form-alert[hidden] {
    display: none;
}

.form-alert-icon {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: #250507;
    background: #ff6868;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 5px rgba(255, 104, 104, .12);
}

.form-alert-content {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.form-alert-title,
.form-alert-message {
    display: block;
}

.form-alert-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
}

.form-alert-message {
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    line-height: 1.35;
}

.field.field-error {
    border-color: #ff6868;
    background: #f3dada;
    box-shadow: 0 0 0 4px rgba(255, 104, 104, .18);
    animation: field-shake .34s ease both;
}

.field.field-error:focus {
    border-color: #ff6868;
    color: var(--field-text);
    background: #f3dada;
    box-shadow: 0 0 0 4px rgba(255, 104, 104, .2), 0 12px 28px rgba(255, 104, 104, .08);
    transform: none;
}

@keyframes alert-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
    }

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

@keyframes field-shake {
    0%, 100% { transform: translateX(0); }
    30% { transform: translateX(-5px); }
    60% { transform: translateX(4px); }
}

.form-target {
    position: absolute;
    inset: -9999px auto auto -9999px;
    width: 1px;
    height: 1px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .hero {
        min-height: calc(100vh - var(--bar-h));
        min-height: calc(100svh - var(--bar-h));
        padding: 15vh 18px 12vh;
        background-position: center top;
    }

    .main-logo {
        width: min(70vw, 608px);
    }

    .thanks-logo {
        width: min(44vw, 304px);
    }

    .date {
        width: min(42vw, 260px);
        margin-top: 36px;
    }

    .index-countdown {
        width: min(82vw, 340px);
    }

    .thanks-message {
        font-size: clamp(28px, 7vw, 52px);
    }

    .signup {
        min-height: 100vh;
        min-height: 100svh;
        padding: 54px 20px 86px;
        background-position: 38% top;
    }

    .signup-inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .event-mark {
        width: min(48vw, 260px);
        margin: 0 auto;
    }

    .form-shell {
        margin: 0 auto;
        border-radius: 38px;
    }
}

@media (max-width: 560px) {
    .top-line {
        height: var(--bar-h);
    }

    .hero {
        min-height: calc(100vh - var(--bar-h));
        min-height: calc(100svh - var(--bar-h));
        padding: 18vh 18px 12vh;
    }

    .date {
        width: min(54vw, 220px);
    }

    .thanks-hero {
        background-size: auto 100%;
    }

    .thanks-message {
        max-width: 330px;
        font-size: 21px;
    }

    .thanks-page .countdown {
        width: min(86vw, 270px);
    }

    .countdown {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        width: min(90vw, 300px);
    }

    .countdown-item {
        min-height: 50px;
        padding: 7px 4px;
        border-radius: 13px;
    }

    .countdown-item span {
        font-size: 20px;
    }

    .countdown-item small {
        font-size: 9px;
    }

    .signup {
        padding-top: 42px;
        background-position: 34% top;
    }

    .signup::before {
        background-image:
            linear-gradient(90deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .22) 54%, rgba(0, 0, 0, .04)),
            url("../img/FOTO_2_MOBILE.jpg");
        background-position: center top;
    }

    .signup-inner {
        gap: 22px;
    }

    .event-mark {
        width: min(58vw, 220px);
        order: 1;
    }

    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    .hero-mobile-logo {
        width: min(75vw, 325px);
        margin-bottom: clamp(18px, 5vw, 30px);
    }

    .signup-mobile-logo {
        width: min(100%, 350px);
        margin-bottom: clamp(10px, 3vw, 18px);
    }

    .index-countdown {
        width: min(90vw, 300px);
    }

    .form-shell {
        order: 2;
        width: min(100%, 350px);
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .form {
        gap: 14px;
    }

    .field,
    .submit {
        min-height: 46px;
        font-size: 17px;
    }

    .field {
        padding: 0 24px;
        color: #fff;
        background: rgba(0, 0, 0, .24);
        box-shadow: inset 0 0 0 1px rgba(0, 255, 157, .18);
        backdrop-filter: blur(1px);
    }

    .field::placeholder {
        color: rgba(255, 255, 255, .78);
        opacity: 1;
    }

    .field:focus {
        color: #fff;
        background: rgba(0, 0, 0, .48);
        box-shadow: 0 0 0 4px rgba(0, 255, 157, .18), inset 0 0 0 1px rgba(255, 255, 255, .14);
        transform: none;
    }

    .field:focus::placeholder {
        color: transparent;
        opacity: 0;
    }
}

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

    .reveal-on-scroll,
    .reveal-field {
        opacity: 1;
        transform: none;
    }
}
