: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);
}

/* ===== Layout ===== */
.page {
    display: flex;
    min-height: 100vh;
}

.section {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo styling */
/* Desktop logo - hidden on mobile */
.logo {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
}

/* Hide mobile-specific logos on desktop */
.logo-mobile,
.logo-header {
    display: none;
}

/* Centered content */
.centered-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: -1;
    width: 100%;
    padding: 0 20px;
}

.image-section img {
    margin-top: 10px;
    height: 800px;
    width: 100%;
    display: inline;
    vertical-align: bottom;
}

.centered-content h1 {
    font-size: 48;
    font-weight: normal;
    margin-bottom: 12px;
}

.centered-content h2 {
    font-size: 28;
    font-weight: lighter;
    margin-bottom: 120px;
    color: var(--text-muted);
    opacity: 60%;
}

.centered-content img {
    max-width: 100%;
    height: auto;
}

/* ===== Left Section ===== */
.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 420px;
}

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

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

form input,
form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-white);
    border-radius: 6px;
    font-size: 1rem;
}

form input::placeholder,
form textarea::placeholder {
    color: #666;
}

form button {
    width: 100%;
    padding: 14px;
    background: white;
    color: black;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.cta-join {
    padding: 12px 32px;
    background: #FDFDFD;
    color: #0A0C11;
    border: none;
    font-size: 16px;
    cursor: hand;
    margin-top: 20px;
    border-radius: 100px;
}

form button:hover {
    opacity: 0.9;
}

#status {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #000;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #222;
    border-radius: 6px;
    width: 80%;
    max-width: 500px;
    color: var(--text-white);
}

.close {
    color: var(--text-white);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #aaa;
}

.modal-content input {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-white);
    border-radius: 6px;
    font-size: 1rem;
}

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

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

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

.modal-content h2 {
    margin-bottom: 20px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .page {
        flex-direction: column;
    }

    .section {
        min-height: 100vh;
        padding: 32px;
    }

    /* Hide desktop logo on mobile */
    .logo {
        display: none;
    }

    #main-title {
        margin-bottom: 5px;
    }

    /* Show mobile-specific logos on mobile */
    .logo-mobile,
    .logo-header {
        display: block;
    }

    /* Mobile logo at bottom of first view */
    .logo-mobile {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 85px;
        z-index: 10;
    }

    /* Header logo for second viewport */
    .logo-header {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 85px;
        z-index: 1000;

        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .logo-header.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Hide logo on mobile */
/* Adjust hero section for desktop to accommodate centered text */
@media (min-width: 769px) {
    .hero {
        position: relative;
        z-index: 1;
    }
}

/* Styles for the second viewport */
.content-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    padding-right: 200px;
    padding-left: 0px;
    left: 0;
}

.left-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-right: 0;
    margin-left: 0;
}

.left-section img {
    max-width: 100%;
    height: auto;
    margin-left: 0;
}

.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 24px;
    margin-right: 200px;
}

.right-section p {
    font-size: 20px;
    font-weight: 100;
}

.info {
    font-size: 24;
    opacity: 0.7;
    margin-bottom: 40px;
    font-weight: 100;
}

#second {
    position: relative;
    height: 90vh;
}

.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;
}

/* Mobile styles for second viewport */
@media (max-width: 768px) {
    .content-container {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        padding: 20px 0px;
        padding-bottom: 0px;
        position: relative;
        justify-content: center;
        align-items: center;
    }

    #second-content {
        margin-top: 0px;
        padding-top: 0px;
    }

    .text-section {
        position: absolute;
        top: 100px;
        justify-content: center;
        align-items: center;
        left: 20px;
        right: 20px;
        z-index: 10;
        padding: 20px;
    }

    .image-section {
        margin-top: auto;
        width: 100%;
        text-align: center;
    }

    .right-section {
        align-items: center;
        justify-items: center;
        text-align: center;
    }


    .left-section {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        padding-right: 0;
        margin-left: 0;
    }

    .left-section img {
        max-width: 100%;
        height: auto;
        margin-left: 0;

    }

    .right-section {
        margin: 10px;
    }

    h2 {
        font-size: 16px;
    }

    h1 {
        font-size: 30px;
        padding: 0px;
        margin-top: 0px;
    }

    .image-section img {
        margin-top: 10px;
        /* height: 600px; */
        width: 100%;
        display: inline;
        vertical-align: bottom;
    }

    .info {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 15px;
        align-items: center;
        justify-content: center;
    }

    .cta-join {
        margin-top: 20px;
        bottom: 20px;
    }
}