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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Ensure ALL elements use SF Pro Display */
* {
    font-family: inherit;
}

/* Explicit font for buttons and inputs */
button, input, textarea, select {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

/* Video fallback when no video is provided */
.video-fallback {
    background: white;
    width: 100%;
    height: 100%;
}

/* Background fallback */
.background-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: -2;
}

/* Transparent black overlay */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
    pointer-events: none;
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    height: 100vh;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    position: relative;
}

/* Full-width separator line */
.top-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* Logo */
.logo {
    z-index: 10;
}

.logo-image {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
}

/* Top Join Button */
.top-join-button {
    background-color: #07BE63;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 5px rgba(7, 190, 99, 0.8),
        0 0 15px rgba(7, 190, 99, 0.6),
        0 0 25px rgba(7, 190, 99, 0.4),
        0 0 35px rgba(7, 190, 99, 0.3),
        0 0 50px rgba(7, 190, 99, 0.1),
        inset 0 0 5px rgba(255, 255, 255, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

.top-join-button:hover {
    background-color: #06A555;
    transform: translateY(-2px);
    box-shadow: 
        0 0 8px rgba(7, 190, 99, 1),
        0 0 20px rgba(7, 190, 99, 0.8),
        0 0 35px rgba(7, 190, 99, 0.6),
        0 0 50px rgba(7, 190, 99, 0.4),
        0 0 70px rgba(7, 190, 99, 0.2),
        0 0 90px rgba(7, 190, 99, 0.1),
        inset 0 0 8px rgba(255, 255, 255, 0.3),
        0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 800px;
}

/* Hero Section */
.hero-section {
    margin-top: 40px;
}

.main-heading {
    color: white;
    font-size: 64px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: #07BE63;
}

.sub-heading {
    color: #07BE63;
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.description {
    color: white;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.location {
    color: white;
    font-size: 18px;
    margin-bottom: 60px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Bottom CTA */
.bottom-cta {
    margin-bottom: 40px;
}

.main-cta-button {
    background-color: #07BE63;
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-cta-button:hover {
    background-color: #06A555;
    transform: translateY(-2px);
}

.cta-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.main-cta-button:hover .cta-icon {
    transform: translateX(3px) translateY(-2px);
}

/* Email Form Overlay */
.email-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.email-form-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    position: relative;
}

.email-form-container h3 {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}

.form-subheader {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
}

.form-field {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.required-asterisk {
    color: #e74c3c;
    font-weight: bold;
}

.form-select {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    color: #333;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-select:invalid {
    color: #9ca3af;
}

.form-select.placeholder {
    color: #9ca3af;
}

.form-select option[value=""] {
    color: #9ca3af;
}

.form-select option:not([value=""]) {
    color: #333;
}

.form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.disclaimer-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
    padding: 0 10px;
}

.email-input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
    color: #333;
    box-sizing: border-box;
}

.email-input::placeholder {
    color: #9ca3af;
}

.email-input:focus {
    outline: none;
    border-color: #07BE63;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background-color: #07BE63;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.submit-button:hover {
    background-color: #06A555;
    transform: translateY(-1px);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    background-color: #f0f0f0;
    color: #666;
}

/* Success Message */
.success-message {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    border: 1px solid #c3e6cb;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-heading {
        font-size: 48px;
    }
    
    .sub-heading {
        font-size: 24px;
    }
    
    .description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 30px;
    }

    .top-nav {
        padding-bottom: 15px;
    }

    .logo-image {
        height: 32px;
    }

    .top-join-button {
        padding: 10px 20px;
        font-size: 12px;
    }

    .main-heading {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .sub-heading {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .description {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .location {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .main-cta-button {
        padding: 16px 32px;
        font-size: 14px;
    }

    .email-form-container {
        padding: 30px 20px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 20px;
    }

    .top-nav {
        padding-bottom: 12px;
    }

    .logo-image {
        height: 28px;
    }

    .main-heading {
        font-size: 28px;
    }

    .sub-heading {
        font-size: 18px;
    }

    .description {
        font-size: 13px;
    }

    .description br {
        display: none;
    }

    .location {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .main-cta-button {
        padding: 14px 28px;
        font-size: 13px;
    }
}

/* --- Keep bottom CTA always in view on mobile (no scrolling) --- */

/* Use dynamic viewport height if supported */
@supports (height: 100dvh) {
    body { height: 100dvh; }
    .container { height: 100dvh; }
}
  
  /* Otherwise, fall back to small viewport height if supported */
@supports (height: 100svh) {
    body { height: 100svh; }
    .container { height: 100svh; }
}
  
/* If neither dvh/svh exists, your existing 100vh still applies */
  
/* Allow the center column to shrink so the CTA stays visible */
.main-content { min-height: 0; }
  
/* Keep the CTA clear of iOS home indicator / notch */
.container {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px);
}

/* --- Fix top overlap on iPhone notch / Dynamic Island --- */

/* Use the dynamic viewport height so the page is exactly one screen tall */
@supports (height: 100dvh) {
    body, .container { height: 100dvh; }
}
  
/* Let the middle column shrink so the footer CTA always fits */
.main-content { min-height: 0; }
  
/* Reserve the safe areas at top & bottom so content doesn't sit under system UI */
.container {
    /* keep your existing 40px vertical padding, but add the safe-area on devices that have it */
    padding-top: calc(env(safe-area-inset-top, 0px) + 40px);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px);
}
  