/* =========================================================
   GENERAL
========================================================= */

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

html {
    background: #000;
}

body {
    overflow-x: hidden;
    background: #000;
    font-family: "PP Telegraf", sans-serif;
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
}

button,
input,
textarea,
select {
    font-family: "PP Telegraf", sans-serif;
}

/* =========================================================
   SECTION 1 - HERO
========================================================= */

.rent-space-main {
    position: relative;
    z-index: 2;
    isolation: isolate;
    width: 100%;
    overflow: visible !important;

    background-color: #10144d;

    background-image:
        linear-gradient(90deg,
            rgba(143, 217, 0, 0.05),
            rgba(0, 0, 0, 0),
            rgba(8, 0, 74, 0.05)),
        url("../img/section1.webp");

    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.rent-space-main>div {
    position: relative;
    z-index: 3;
}

.rent-space-main .mt-auto {
    position: relative;
    z-index: 4;
}

#hero-title,
#hero-title+div {
    position: relative;
    z-index: 5;
}


.hero-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 0;
}

/* =========================================================
   SECTION 2 - PIRAMIDA FEST
========================================================= */




.piramida-fest-tech {
    position: relative;
    z-index: 1;
    width: 100%;
    background-color: #050505;
    background-image: url("../img/section2.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto;
}

/* =========================================================
   SECTION 3 - SIGN UP
========================================================= */

.form-signup-bg {
    width: 100%;
    background-color: #171168;
    background-image: url("../img/section3.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto;
}

/* =========================================================
   FORM INPUTS
========================================================= */

#signup-form {
    width: min(100%, 760px);
    margin-left: auto;
    margin-right: auto;
}

.form-signup-bg [aria-labelledby="signup-title"]>.mx-auto {
    max-width: 860px;
}

.form-input {
    width: 100%;
    height: 56px;
    display: block;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    box-sizing: border-box;
    background: rgb(255 255 255 / 66%);
    color: #000;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    outline: none;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

select.form-input {
    appearance: none;
    padding-right: 48px;
    background-color: rgb(255 255 255 / 66%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px 18px;
}

.highfade-cube-trail {
    position: absolute;
    top: -60px;
    right: 283px;
    z-index: 2;
    width: min(50px);
    min-width: 352px;
    pointer-events: none;
    user-select: none;
}

.lowfade-cube-trail {
    position: absolute;
    right: 630px;
    top: 280px;
    z-index: 2;
    width: min(50px);
    min-width: 650px;
    pointer-events: none;
    user-select: none;
}



.hero-cube-trail {
    position: absolute;
    left: 60px;
    bottom: -260px;
    z-index: 2;
    width: min(1170px);
    min-width: 720px;
    pointer-events: none;
    user-select: none;
}

.piramida-cube-top-trail {
    position: absolute;
    right: 800px;
    top: 80px;
    z-index: 2;
    width: min(140px);
    min-width: 140px;
    pointer-events: none;
    user-select: none;
}

.piramida-cube-bottom-trail {
    position: absolute;
    right: 140px;
    bottom: -30px;
    z-index: 2;
    width: min(250px);
    min-width: 220px;
    pointer-events: none;
    user-select: none;
}

.form-input::placeholder {
    color: #000;
    opacity: 1;
}

.form-input:focus {
    background-color: #fff;

    box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.45);
}

/* =========================================================
   SUBMIT BUTTON
========================================================= */

.signup-submit {
    min-width: 270px;
    padding: 17px 45px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: #d4ff00;
    color: #000;
    font-family: inherit;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.signup-submit:hover {
    background: #fff;
}

.signup-submit:active {
    transform: scale(0.98);
}

.signup-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.piramida-fest-title {
    font-size: 58px;
}

.piramida-fest-paragraph {
    font-size: 28px;
    line-height: 1.2;
}

.piramida-fest-info {
    font-size: 22px;
    line-height: 1.3;
}

/* =========================================================
   BOTTOM GREEN LINE
========================================================= */

.signup-bottom-line {
    width: 100%;
    height: 1px;

    margin-top: 65px;

    background: rgba(212, 255, 0, 0.8);
}

/* =========================================================
   SUCCESS POPUP
========================================================= */

body.popup-open {
    overflow: hidden;
}

.success-popup[hidden] {
    display: none;
}

.success-popup {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.success-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(7px);
}

.success-popup__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    padding: clamp(2rem, 6vw, 3rem);
    border: 1px solid rgba(212, 255, 0, 0.5);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(12, 18, 76, 0.96), rgba(4, 5, 20, 0.96)),
        #050505;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    color: #fff;
    text-align: center;
}

.success-popup__close {
    position: absolute;
    top: 0.7rem;
    right: 0.85rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    color: #d4ff00;
    font-size: 2rem;
    line-height: 1;
}

.success-popup__close:hover,
.success-popup__close:focus-visible {
    color: #fff;
    outline: none;
}

.success-popup__title {
    color: #d4ff00;
    font-size: clamp(1.45rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
}

.success-popup__message {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.35;
}

.success-popup__button {
    margin-top: 1.8rem;
    min-width: 9rem;
    padding: 0.85rem 1.8rem;
    border: 1px solid #d4ff00;
    border-radius: 999px;
    cursor: pointer;
    background: #d4ff00;
    color: #000;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.success-popup__button:hover,
.success-popup__button:focus-visible {
    background: transparent;
    color: #d4ff00;
    outline: none;
}

.success-popup__button:active {
    transform: scale(0.98);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    .rent-space-main {
        background-position: 62% center;
    }

    .piramida-fest-tech {
        background-position: center center;
        background-size: cover;
    }

    .form-signup-bg {
        background-position: center center;
        background-size: cover;
    }
}


@media (max-width: 768px) {
    .highfade-cube-trail {
        position: absolute;
        top: -57px;
        right: 60px;
        z-index: 2;
        width: min(50px);
        min-width: 352px;
        pointer-events: none;
        user-select: none
    }

    .lowfade-cube-trail {
        position: absolute;
        right: 210px;
        top: 280px;
        z-index: 2;
        width: min(50px);
        min-width: 450px;
        pointer-events: none;
        user-select: none;
    }
}



@media (max-width: 900px) {
    .hero-layout {
        min-height: 100svh;
        padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 5vw, 2rem) 0;
    }

    .hero-header,
    .hero-copy {
        padding-inline: 0;
    }

    .hero-header img:first-child {
        width: clamp(7rem, 28vw, 10rem);
    }

    .hero-header img:last-child {
        width: clamp(6.75rem, 27vw, 10rem);
    }

    .hero-copy {
        margin-top: auto;
        padding-bottom: clamp(5rem, 15svh, 9rem);
    }

    #hero-title {
        max-width: 10ch;
        font-size: clamp(3.1rem, 13vw, 6.5rem);
        letter-spacing: 0;
    }

    .hero-meta {
        letter-spacing: 0;
    }

    .hero-meta strong {
        font-size: clamp(1.25rem, 4vw, 1.875rem);
    }

    .hero-meta span {
        font-size: clamp(1.05rem, 3.4vw, 1.5rem);
    }

    .hero-cube-trail {
        left: clamp(-3.75rem, -9vw, -1.75rem);
        bottom: clamp(-9rem, -15vw, -5.5rem);
        width: min(90vw, 640px);
        min-width: 0;
    }

    .piramida-fest-tech>div {
        padding: clamp(4.5rem, 10vw, 6rem) clamp(1.25rem, 4vw, 2rem);
    }

    .piramida-fest-tech .about-content {
        margin-top: 0 !important;
        padding-inline: 0;
    }

    .piramida-fest-title {
        font-size: clamp(2.7rem, 8vw, 4.4rem);
        letter-spacing: 0;
    }

    .piramida-fest-paragraph {
        font-size: clamp(1.16rem, 2.8vw, 1.55rem);
        line-height: 1.25;
    }

    .piramida-fest-info {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
    }

    .piramida-cube-top-trail {
        top: 2rem;
        right: 2rem;
        width: 110px;
        min-width: 0;
        opacity: 0.7;
    }

    .piramida-cube-bottom-trail {
        right: -1rem;
        bottom: 1.5rem;
        width: 180px;
        min-width: 0;
        opacity: 0.5;
    }

    .signup-shell {
        padding: clamp(4.5rem, 10vw, 6rem) clamp(1.25rem, 4vw, 2rem) clamp(3.5rem, 8vw, 5rem);
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
    .highfade-cube-trail {
        position: absolute;
        top: -35px;
        right: -30px;
        z-index: 2;
        width: min(50px);
        min-width: 352px;
        pointer-events: none;
        user-select: none;
    }

    .lowfade-cube-trail {
        position: absolute;
        right: 10px;
        top: 280px;
        z-index: 2;
        width: min(50px);
        min-width: 450px;
        pointer-events: none;
        user-select: none;
    }

}

@media (max-width: 640px) {
    .rent-space-main {
        overflow: hidden !important;
        min-height: 100svh;
        background-position: 58% center;
        background-size: cover;
    }

    .hero-layout {
        min-height: 100svh;
        padding: clamp(1.35rem, 5vw, 1.65rem) clamp(1.15rem, 5vw, 1.45rem) 0;
    }

    .hero-header {
        gap: 1rem;
    }

    .hero-header img:first-child {
        width: clamp(6.5rem, 34vw, 7.25rem);
    }

    .hero-header img:last-child {
        width: clamp(6rem, 32vw, 8rem);
    }

    .hero-copy {
        padding-bottom: clamp(4.8rem, 13svh, 6.75rem);
    }

    #hero-title {
        max-width: 100%;
        font-size: clamp(2.75rem, 13vw, 3.25rem);
        line-height: 0.9;
    }

    .hero-meta {
        margin-top: 1.15rem;
        gap: 0.35rem 0.8rem;
    }

    .hero-meta strong {
        font-size: clamp(1.15rem, 5vw, 1.55rem);
    }

    .hero-meta span {
        font-size: clamp(0.95rem, 4.25vw, 1.25rem);
    }

    .hero-cube-trail {
        left: -12px;
        bottom: -90px;
        width: min(110vw, 420px);
        opacity: 0.9;
    }

    .piramida-fest-tech {
        margin-top: -18px;
        background-position: 54% top;
        background-size: cover;
    }

    .piramida-fest-tech>div {
        padding: clamp(2.75rem, 8vw, 3.5rem) 1.25rem clamp(2rem, 7vw, 2.75rem);
    }

    .piramida-fest-tech .about-content {
        margin-top: 0 !important;
        position: relative;
        z-index: 3;
    }

    .about-text {
        margin-top: 1.55rem !important;
    }

    .about-text> :not(:last-child) {
        margin-block-end: 0.95rem !important;
    }

    .event-block {
        margin-top: 1.45rem !important;
    }

    .piramida-fest-title {
        font-size: clamp(2rem, 9.4vw, 2.45rem);
        line-height: 0.98;
        white-space: nowrap;
    }

    .piramida-fest-paragraph {
        font-size: clamp(0.98rem, 4.05vw, 1.06rem);
        line-height: 1.26;
    }

    .piramida-fest-info {
        font-size: clamp(0.88rem, 3.5vw, 0.98rem);
        line-height: 1.25;
    }

    .form-signup-bg {
        min-height: 100svh;
        margin-top: -34px;
        background-color: #050505;
        background-position: 56% -28px;
        background-size: auto calc(100% + 72px);
    }

    .piramida-cube-top-trail {
        top: -2.2rem;
        right: -2rem;
        width: 95px;
        opacity: 0.24;
    }

    .piramida-cube-bottom-trail {
        right: -1.75rem;
        bottom: 1.35rem;
        width: 127px;
        opacity: 0.4;
    }

    .signup-shell {
        min-height: 100svh;
        padding: clamp(3rem, 8vw, 4rem) 1.25rem clamp(2.5rem, 7vw, 3.5rem);
    }

    #signup-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
        letter-spacing: 0;
    }

    #signup-form {
        margin-top: 1.65rem;
        row-gap: 0.75rem;
    }

    .form-input {
        height: 50px;
        border-radius: 10px;
        padding-inline: 16px;
        font-size: 15px;
    }

    select.form-input {
        padding-right: 44px;
        background-position: right 16px center;
    }

    .signup-submit {
        width: 100%;
        min-width: 0;
        min-height: 56px;
        margin-top: 1.35rem;
        padding: 15px 24px;
        font-size: 1.05rem;
        letter-spacing: 0.08em;
    }

    .signup-bottom-line {
        margin-top: 6.4rem;
    }
}

@media (max-width: 380px) {
    .hero-layout {
        padding-inline: 1rem;
    }

    #hero-title {
        font-size: clamp(2rem, 10vw, 2.45rem);
    }

    .hero-meta strong {
        font-size: 1.08rem;
    }

    .hero-meta span {
        font-size: 0.92rem;
    }

    .piramida-fest-title {
        font-size: clamp(1.85rem, 9.5vw, 2.25rem);
    }

    .piramida-fest-paragraph {
        font-size: 1rem;
    }

    .signup-submit {
        font-size: 1rem;
    }
}










@media (min-width: 768px) and (max-width: 1200px) {
    .highfade-cube-trail {
        position: absolute;
        top: -55px;
        right: 170px;
        z-index: 2;
        width: min(50px);
        min-width: 352px;
        pointer-events: none;
        user-select: none;
    }

    .lowfade-cube-trail {
        position: absolute;
        right: 215px;
        top: 280px;
        z-index: 2;
        width: min(50px);
        min-width: 450px;
        pointer-events: none;
        user-select: none;

    }

}

@media (min-width:1200px) and (max-width: 1400px) {
    .highfade-cube-trail {
        position: absolute;
        top: -55px;
        right: 170px;
        z-index: 2;
        width: min(50px);
        min-width: 352px;
        pointer-events: none;
        user-select: none;
    }

    .lowfade-cube-trail {
        position: absolute;
        right: 310px;
        top: 280px;
        z-index: 2;
        width: min(50px);
        min-width: 450px;
        pointer-events: none;
        user-select: none;
    }

}
