/* ==========================================================================
   Post Training - Pre-Launch Landing Page
   ========================================================================== */

/* ==========================================================================
   0. Font Face
   ========================================================================== */
@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../assets/fonts/NeueHaasGroteskDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../assets/fonts/NeueHaasGroteskDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../assets/fonts/NeueHaasGroteskDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */
:root {
    --font: 'Neue Haas Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   2. Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: #000;
    color: #fff;
    line-height: 1.6;
    letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased;
    animation: fadeIn 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   3. Full-Screen Hero Video
   ========================================================================== */
.hero-fullscreen {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.hero-fullscreen video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   4. Signup Overlay (Centered, Frosted Glass)
   ========================================================================== */
.signup-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    padding: 48px 40px;
    width: 90%;
    max-width: 480px;
}

.signup-title {
    font-family: var(--font);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 8px;
    color: #fff;
}

.signup-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

/* ==========================================================================
   5. Email Form
   ========================================================================== */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    padding-bottom: 48px;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    font-family: var(--font);
    font-size: 15px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.signup-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.signup-form input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.signup-form button {
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    filter: blur(8px);
    pointer-events: none;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.signup-form button.visible {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
}

.signup-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   6. Form Message
   ========================================================================== */
.form-message {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
}

.form-message.success {
    color: rgba(0, 0, 0, 0.5);
}

.form-message.error {
    color: #f87171;
}

/* ==========================================================================
   7. Responsive
   ========================================================================== */
@media (max-width: 520px) {
    .signup-overlay {
        padding: 36px 24px;
        width: 92%;
    }

    .signup-title {
        font-size: 36px;
    }

    .signup-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .signup-form {
        flex-direction: column;
    }

    .signup-form button {
        padding: 14px;
    }
}
