:root {
    --bg: #0f0f10;
    --bar: #151515;
    --text: #efece6;
    --muted: rgba(239, 236, 230, 0.72);
    --footer-bg: #e7e3dd;
    --footer-text: #2b292b;
    --card: rgba(15, 15, 16, 0.72);
    --border: rgba(239, 236, 230, 0.22);
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: "Neogroteskess";
    src: url("fonts/Fontspring-DEMO-neogroteskess-ultralight.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Tempting";
    src: url("fonts/Tempting.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FuturaPT-Demi";
    src: url("fonts/futura-pt/FuturaCyrillicDemi.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FuturaPT-Bold";
    src: url("fonts/futura-pt/FuturaCyrillicBold.ttf") format("truetype");
    font-display: swap;
}

/* html, body height removed to allow natural flow */

body {
    margin: 0;
    font-family: "Neogroteskess", sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.scene {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.bg-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.65) 60%, rgba(0, 0, 0, 0.8));
}

.bg-video,
.bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}

.bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.bg-three {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
}

.bg-three canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.85;
}

/* Menu removed */

.hero {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.logo-top {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    font-family: 'FuturaPT-Demi';
    font-size: 44px;
    letter-spacing: 0.2em;
    font-weight: 300;
    color: var(--text);
    z-index: 10;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--muted);
    font-weight: 300;
}

.waitlist-container {
    margin-top: auto;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.waitlist-btn {
    padding: 14px 40px;
    color: var(--text);
    font-family: "FuturaPT-Demi", sans-serif;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: capitalize;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    background: url(assets/button_bg.png) no-repeat center;
    background-size: 100% 100%;
    border: none;
    min-width: 210px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.waitlist-btn:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.hero-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.hero-title {
    font-size: 32px;
    line-height: auto;
    margin: auto 0 24px;
    font-family: 'Tempting';
}

.hero-subtitle {
    margin: 0;
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--muted);
    font-weight: 300;
    letter-spacing: 0.02em;
    font-family: "Neogroteskess";
}

.section {
    position: relative;
    z-index: 2;
    padding: 24px 24px 120px;
    display: flex;
    justify-content: center;
}

.participation-grid {
    width: min(1280px, 92vw);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 24px;
    align-content: start;
}

.page-title {
    font-size: clamp(44px, 7vw, 84px);
    letter-spacing: 0.12em;
    font-weight: 300;
    margin: 0 0 18px;
    font-family: "FuturaPT-Bold";
}

.page-intro {
    max-width: 420px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.ways {
    justify-self: end;
    text-align: right;
    max-width: 360px;
    padding-top: 40px;
}

.ways h3 {
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 300;
    margin: 0 0 16px;
    font-family: 'Tempting';
}

.ways p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.prompt-title {
    margin: 64px 0 18px;
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 300;
    line-height: 1.2;
    font-family: 'Tempting';
}

.form-underline {
    margin-top: 18px;
    display: grid;
    gap: 18px;
    max-width: 520px;
}

.field-line label {
    display: block;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
    color: var(--muted);
}

.field-line input,
.field-line textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(239, 236, 230, 0.24);
    padding: 6px 2px 10px;
    background: transparent;
    color: var(--text);
    font-family: "Neogroteskess", sans-serif;
    font-size: 14px;
    outline: none;
}

.field-line textarea {
    min-height: 72px;
    resize: vertical;
}

.submit-pill {
    margin-top: 6px;
    justify-self: start;
    padding: 11px 32px;
    color: var(--text);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    background: url(assets/button_bg.png) black;
    background-size: cover;
    border: none;
}

.side-quote {
    margin-top: 80px;
    text-align: right;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.right-bottom {
    align-self: end;
}

.left-bottom {
    align-self: start;
}

.form-card {
    width: min(680px, 92vw);
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    backdrop-filter: blur(6px);
}

.form-card h1 {
    margin: 0 0 12px;
    font-weight: 300;
    font-size: 32px;
    letter-spacing: 0.02em;
}

.form-card p {
    margin: 0 0 24px;
    color: var(--muted);
}

.form-grid {
    display: grid;
    gap: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--muted);
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(15, 15, 16, 0.7);
    color: var(--text);
    font-family: "Neogroteskess", sans-serif;
    font-size: 16px;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    margin-top: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.submit-btn:hover {
    background: var(--text);
    color: var(--bg);
}

.status {
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}

.footer {
    position: relative;
    z-index: 3;
    background: var(--footer-bg);
    color: var(--footer-text);
    height: 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
}

.footer-left {
    font-size: 16px;
    letter-spacing: 0.02em;
    justify-self: start;
}

.footer-center {
    font-size: 16px;
    letter-spacing: 0.25em;
    font-weight: 500;
    justify-self: center;
}

.footer-right {
    display: flex;
    gap: 16px;
    justify-self: end;
}

.icon {
    width: 20px;
    height: 20px;
    fill: var(--footer-text);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.icon:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .hero,
    .section {
        padding: 32px 20px 40px;
    }

    .participation-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ways,
    .side-quote {
        text-align: left;
        justify-self: start;
    }

    .ways {
        padding-top: 0;
    }

    .prompt-title {
        margin-top: 32px;
    }

    .footer {
        height: auto;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px 20px;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-self: center;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-form {
    position: relative;
    width: 90%;
    max-width: 860px;
    min-height: min(420px, 80vh);
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        inset 0 0 60px rgba(255, 255, 255, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(255, 255, 255, 0.15);
    padding: 48px 44px;
    border-radius: 6px;
    color: #fff;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-form {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    font-family: sans-serif;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.4);
}

.modal-title {
    text-align: center;
    font-family: "Tempting";
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
    color: #efece6;
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.2);*/
    padding-bottom: 20px;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Neogroteskess', sans-serif;
}

.form-group input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 0;
    color: #fff;
    font-family: 'Neogroteskess', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-bottom-color: rgba(255, 255, 255, 0.8);
}

.form-submit-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.modal-submit-btn {
    background: url(assets/button_bg.png) no-repeat center;
    background-size: 100% 100%;
    border: none;
    color: #fff;
    padding: 12px 40px;
    font-family: 'FuturaPT-Demi', sans-serif;
    font-size: 14px;
    letter-spacing: 0.1em;
    cursor: pointer;
    min-width: 140px;
    text-align: center;
    transition: opacity 0.2s;
}

.modal-submit-btn:hover {
    opacity: 0.8;
}

.form-group textarea {
    background: transparent;
    border: none;
    padding: 8px 0;
    color: #fff;
    font-family: 'Neogroteskess', sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    line-height: 4ch;
    background-image: linear-gradient(transparent, transparent calc(4ch - 1px), rgba(255, 255, 255, 0.3) 0px);
    background-size: 100% 4ch;
}
