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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;
    background: #000;
    position: relative;
}

/* Video Background */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark overlay over video - REMOVED and created as separate element instead */

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

/* Floating Navigation Bar */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 2rem;
    right: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

/* Log In Button */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.get-started-btn,
.login-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.get-started-btn {
    background: rgba(255, 255, 255, 0.96);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.96);
}

.get-started-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.login-btn {
    background: transparent;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.login-btn.disabled {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: none;
    box-shadow: none;
}

/* Center Overlay Container */
.overlay-container {
    position: fixed;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    text-align: center;
    width: min(1100px, 92vw);
    pointer-events: none;
}

.cta-copy,
.inline-link {
    pointer-events: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(14, 17, 22, 0.45);
    color: #dfeaf8;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.overlay-text {
    font-size: clamp(2.2rem, 3.2vw, 4rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    line-height: 1.08;
    text-transform: uppercase;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    white-space: normal;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-subtext {
    max-width: 760px;
    margin: 0.9rem auto 0;
    font-size: clamp(1.3rem, 1vw, 1.2rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
}

.cta-copy {
    max-width: 840px;
    margin: 1.1rem auto 0;
    font-size: 1.02rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.95;
    animation: fadeInUp 0.7s ease-out;
    white-space: nowrap;
}

.inline-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
    opacity: 0.85;
}

.inline-link:hover {
    opacity: 1;
}

.submit-btn,
.close-btn {
    font: inherit;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, #ffffff 0%, #dfeaf8 100%);
    color: #081018;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 32px rgba(0, 0, 0, 0.3);
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 200;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 11, 0.7);
    backdrop-filter: blur(6px);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(620px, calc(100vw - 2rem));
    background: rgba(10, 14, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 2rem 1.5rem 1.25rem;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.modal-panel h2 {
    color: #fff;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    margin-bottom: 0.75rem;
}

.modal-subtext {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.close-btn {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid label {
    display: grid;
    gap: 0.45rem;
    color: #dfeaf8;
    font-size: 0.94rem;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    color: #fff;
    font: inherit;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.form-grid input:focus,
.form-grid textarea:focus {
    outline: 2px solid rgba(138, 180, 255, 0.7);
    border-color: rgba(138, 180, 255, 0.7);
}

.form-status {
    min-height: 1.2rem;
    margin-top: 0.9rem;
    color: #a9eecb;
    font-size: 0.93rem;
}

.story-section {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3.2rem;
    z-index: 10;
    padding: 0 2.2rem;
    background: transparent;
}

.story-inner {
    max-width: 100%;
    width: calc(100% - 4.4rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.story-item {
    background: rgba(10, 14, 20, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 1.2rem 1.4rem 1rem;
    backdrop-filter: blur(8px);
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.story-item h2 {
    font-size: clamp(1.05rem, 1.4vw, 1.7rem);
    line-height: 1.2;
    color: #dfeaf8;
    font-weight: 700;
    margin-bottom: 0.7rem;
    letter-spacing: -0.04em;
}

.story-item p {
    font-size: clamp(0.76rem, 0.9vw, 1rem);
    line-height: 1.5;
    color: rgba(245, 247, 250, 0.9);
    margin: 0.2rem 0;
    max-width: 100%;
}

.highlight {
    display: inline-block;
    position: relative;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

.highlight-blue {
    color: #6ab5ff;
}

.highlight-red {
    color: #ff7b7b;
}

.highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.12em;
    height: 0.12em;
    background: currentColor;
    opacity: 0.35;
    filter: blur(0.6px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .navbar-content {
        flex-direction: row;
    }

    .logo {
        font-size: 1.2rem;
    }

    .login-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .overlay-container {
        top: 40%;
    }

    .overlay-text {
        font-size: clamp(1.9rem, 5vw, 2.8rem);
        padding: 0 1rem;
    }

    .story-section {
        bottom: 0.8rem;
    }

    .story-inner {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .story-item {
        min-height: 120px;
    }

    .story-item h2 {
        font-size: 1.05rem;
    }

    .story-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .overlay-text {
        font-size: 1.8rem;
        padding: 0 1rem;
        white-space: normal;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1rem;
        letter-spacing: 0;
    }

    .login-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .story-section {
        margin-top: 58vh;
        padding-bottom: 4rem;
    }

    .story-inner {
        padding: 0 1rem;
        grid-template-columns: 1fr;
    }

    .story-item {
        padding-top: 1rem;
    }
}
