/* ==========================================================================
   Divinity School — Landing Page
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    height: 100%;
}

body {
    background: #000;
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

/* --- Page layout --- */

.page {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

/* --- Background image --- */

.bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
    z-index: 0;
}

/* --- Left-edge gradient overlay --- */

.page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0) 55%
    );
    pointer-events: none;
}

/* --- All foreground content above image --- */

.coming-soon,
.content,
.btn-waitlist {
    position: relative;
    z-index: 2;
}

/* --- Coming soon --- */

.coming-soon {
    font-weight: 500;
    font-size: 12px;
    line-height: normal;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
}

/* --- Content block (middle section) --- */

.content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 367px;
}

.logo-icon {
    flex-shrink: 0;
}

.heading {
    font-weight: 500;
    font-size: 24px;
    line-height: normal;
    letter-spacing: -0.48px;
    color: #fff;
}

.subtext {
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
    color: #fff;
}

.subtext a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Waitlist button --- */

.btn-waitlist {
    display: block;
    width: 320px;
    padding: 16px 24px;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.14px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-waitlist:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* --- Modal / Lightbox --- */

.modal {
    border: none;
    background: transparent;
    padding: 0;
    max-width: 100vw;
    max-height: 100vh;
    margin: auto;
    position: fixed;
    inset: 0;
    width: fit-content;
    height: fit-content;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal[open] {
    animation: fadeIn 0.25s ease;
}

.modal-inner {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 48px 24px 24px;
}

.modal-inner iframe {
    display: block;
    border: none;
    max-width: 100%;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.modal-close:hover {
    color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive — Mobile (<=768px)
   ========================================================================== */

@media (max-width: 768px) {
    .page {
        height: 100svh;
        gap: 32px;
        justify-content: flex-start;
    }

    .content {
        width: 100%;
        max-width: 367px;
        gap: 10px;
    }

    .logo-icon {
        width: 48px;
        height: 48px;
    }

    .btn-waitlist {
        width: 100%;
        max-width: 320px;
    }
}
