:root {
    --bg-black: #000;
    --text-white: #fff;
    --text-muted: #aaa;
    --border-dark: #222;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


body {
    background: var(--bg-black);
    color: var(--text-white);
}

.page {
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
}

.logo {
    align-self: center;
    margin-top: 40px;
    width: 69px;
}

.centered-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.centered-content h1 {
    font-size: clamp(30px, 6vw, 52px);
    font-weight: 100;
    margin-bottom: 5px;
}

.nowrap {
    white-space: nowrap;
}

.centered-content h2 {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 100;
    margin-bottom: 80px;
    color: var(--text-muted);
    opacity: 60%;
}

.key-shot {
    max-width: 640px;
    padding: 0 40px;
}

#second {
    position: relative;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    max-height: 100vh;
    img {
        height: 100vh;
        display: block;
    }
    .content {
        height: 100vh;
    }
    .text {
        position: absolute;
        right: 20%;
        bottom: 20%;
        justify-content: center;
        align-items: flex-start;
        align-content: center;
        max-width: 35%;
        z-index: 2; /* ensures overlap */
        p {
            font-size: clamp(16px, 1.25vw, 20px);
            font-weight: 100;
            width: fit-content;
        }
        .info {
            opacity: 0.7;
            margin-bottom: 40px;
        }
    }
    .cta-join {
        padding: clamp(8px, 1vw, 16px) clamp(12px, 2vw, 32px);
        background: #FDFDFD;
        color: #0A0C11;
        border: none;
        font-size: clamp(16px, 1vw, 16px);
        cursor: pointer;
        margin-top: 15%;
        border-radius: 100px;
    }
}
.label-heading {
    margin-bottom: 4px;
    padding-left: 8px;
}

.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    padding: 12px 0;
}


@media (max-width: 768px) {
    .logo {
        width: 52px;
    }

    .key-shot {
        max-width: 290px;
        padding: 0 40px;
    }

    .page {
        flex-direction: column;
    }

    #second {
        max-height: 100vh;
        height: 100vh;
    }

    #second {
        position: relative;
        max-height: 90vh;
        max-width: 100vw;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    /* CONTENT AREA */
    #second .content {
        position: relative;
        flex: 1; /* takes full available height */
        overflow: hidden;
        align-items: center;
    }

    /* IMAGE — bottom aligned */
    #second .image {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1;
        img {
            width: 85%;
            height: auto;
            /*max-height: 519px;*/
            object-fit: inherit;
            display: block;
        }
    }

    /* OVERLAY TEXT + CTA */
    #second .text {
        position: absolute;
        inset: 0; /* top:0 right:0 bottom:0 left:0 */
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* 🔑 top & bottom */
        align-items: center;
        align-content: center;
        padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 5vw, 4rem);
        z-index: 2;
        text-align: center;
        .info {
            max-width: 100%;
            font-weight: 100;
            font-size: 16px;
            padding: 0 40px;
            margin-bottom: 20px; !important
        }
    }
    /* CTA */
    #second .cta-join {
        margin-top: auto;
        pointer-events: auto;
        padding: 12px 40px;
    }

    /* FOOTER */
    #second .site-footer {
        text-align: center;
        padding: 1rem;
        font-size: 0.7rem;
    }
}


/* ===== Right Section (Form) ===== */
.form-wrapper {
    max-width: 420px;
    width: 100%;
}

.form-wrapper h2 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}


/* Modal overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 10px;
    /* small padding for mobile */
    overflow: auto;
    /* allow scrolling if content exceeds modal height */
}

/* Modal content */
.modal-content {
    background-color: #000;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 40px;
    color: var(--text-white);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-dark);
}

/* Scrollbar styling for modern browsers */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}


#modal {
    align-items: center;
    justify-content: center;
}

.modal-content .close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    font-weight: 100;
    cursor: pointer;
}

.close:hover {
    color: #ffffff;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-dark);
    color: var(--text-white);
    border-radius: 40px 40px;
    font-size: 0.8rem;
}

.modal-content input::placeholder {
    color: #666;
}

.modal-content button {
    width: 100%;
    padding: 14px;
    background: #FDFDFD;
    color: #0A0C11;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 100px;
}

.modal-content button:hover {
    opacity: 0.9;
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 100;
}

.select-group {
    margin-bottom: 16px;
}

.select-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.radio-selector {
    border-radius: 40px 40px;
}

.segmented {
    display: flex;
    border: 1px solid var(--border-dark);
    border-radius: 40px;
    padding: 2px;              /* 🔑 creates breathing room */
    background: rgba(255, 255, 255, 0.08);
}

.segmented input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.segmented label {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    background: transparent;
    color: var(--text-white);
    transition: background 0.2s ease, color 0.2s ease;
    border-radius: 40px;       /* 🔑 full pill */
}

.segmented label:last-child {
    border-right: none;
}

.segmented input:checked + label {
    background: #fff;
    color: #000;
}
.segmented label {
    border: none;
}

form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-dark);
    color: var(--text-white);
    border-radius: 40px 40px;
    font-size: 0.8rem;
    resize: vertical;
    min-height: 120px;
}