/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    padding: 2rem 0;
    text-align: center;
}

.brand {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    font-weight: 900;
    background: linear-gradient(180deg, #ffffff 0%, #00ff87 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 255, 135, 0.4));
}

/* Main Content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 4rem;
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    max-width: 900px;
    width: 100%;
}

.hero-wrapper {
    position: relative;
    margin-bottom: 3rem;
    padding: 8rem 0 4rem;
    min-height: 500px;
}

.background-hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 100%;
    height: auto;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    object-fit: contain;
    max-width: 700px;
}

/* Ensure video behaves like the image */
video.background-hero {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.02em;
    position: relative;
    text-transform: uppercase;
    z-index: 1;
    margin-top: 40px;
    background: linear-gradient(180deg, #ffffff 0%, #00ff87 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    filter: drop-shadow(0 4px 20px rgba(0, 255, 135, 0.4));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 4px 20px rgba(0, 255, 135, 0.4));
    }
    to {
        filter: drop-shadow(0 4px 30px rgba(0, 255, 135, 0.7));
    }
}

/* Animated bracket/border lines around COMING SOON */
@keyframes drawLine {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes drawSide {
    0% {
        height: 0;
        opacity: 0;
    }
    100% {
        height: 20px;
        opacity: 1;
    }
}

.title::before,
.title::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 2px;
    background: #00ff87;
    left: -10%;
    transform-origin: center;
    animation: drawLine 1.5s ease-out forwards;
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.8),
                0 0 30px rgba(0, 255, 135, 0.5),
                0 0 45px rgba(0, 255, 135, 0.3);
    filter: drop-shadow(0 0 10px rgba(0, 255, 135, 1));
}

.title::before {
    top: 0;
}

.title::after {
    bottom: 0;
    animation-delay: 0.3s;
}


.description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.7;
    background: rgba(0, 0, 0, 0.85);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.description strong {
    color: #00ff87;
    font-weight: 700;
}

.description p {
    margin-bottom: 1rem;
}

.tagline {
    font-weight: 600;
    color: #00ff87;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1rem;
}

/* Form Section */
.form-section {
    width: 100%;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.6);
    padding: 3rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 135, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #00ff87 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.form-subtitle {
    font-size: 1rem;
    color: #999;
    font-weight: 400;
}

.spots-counter {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.85);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.counter-number {
    color: #00ff87;
    font-weight: 700;
    font-size: 1.1rem;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.25rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%),
                      url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(0,255,135,0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right 1rem center;
    background-size: 100%, 1.5em;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.form-group select::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.3), rgba(76, 175, 80, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.form-group input {
    background-image: none;
}

.form-group input::placeholder,
.form-group select option[value=""][disabled] {
    color: #888;
    text-transform: none;
    letter-spacing: normal;
}

/* Custom Select Dropdown Styles */
.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
    border: 2px solid rgba(0, 255, 135, 0.2);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.custom-select-trigger:hover {
    border-color: rgba(0, 255, 135, 0.4);
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(28, 28, 28, 0.95) 100%);
}

.custom-select.open .custom-select-trigger {
    border-color: #00ff87;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5),
                0 0 0 2px rgba(0, 255, 135, 0.3);
}

.custom-select-trigger .arrow {
    position: relative;
    height: 10px;
    width: 10px;
}

.custom-select-trigger .arrow::before,
.custom-select-trigger .arrow::after {
    content: "";
    position: absolute;
    bottom: 0px;
    width: 0.15rem;
    height: 100%;
    transition: all 0.3s;
}

.custom-select-trigger .arrow::before {
    left: -3px;
    transform: rotate(45deg);
    background-color: #00ff87;
}

.custom-select-trigger .arrow::after {
    left: 3px;
    transform: rotate(-45deg);
    background-color: #00ff87;
}

.custom-select.open .arrow::before {
    transform: rotate(-45deg);
}

.custom-select.open .arrow::after {
    transform: rotate(45deg);
}

.custom-options {
    position: absolute;
    display: none;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    border: 2px solid rgba(0, 255, 135, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(0, 255, 135, 0.1) inset;
    backdrop-filter: blur(20px);
    max-height: 300px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Mobile optimization for dropdown */
@media (max-width: 768px) {
    .custom-options {
        max-height: 50vh; /* Use viewport height on mobile */
        top: calc(100% + 4px); /* Closer to trigger on mobile */
    }
    
    .custom-select-trigger {
        padding: 1rem; /* Slightly smaller padding on mobile */
        font-size: 1rem;
    }
}

.custom-select.open .custom-options {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-option {
    position: relative;
    display: block;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    -webkit-tap-highlight-color: transparent;
}

/* Mobile touch optimization */
@media (max-width: 768px) {
    .custom-option {
        padding: 1.2rem 1.25rem; /* Bigger touch targets for mobile */
        font-size: 1rem;
    }
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    color: #00ff87;
    background: linear-gradient(90deg, rgba(0, 255, 135, 0.1) 0%, transparent 100%);
    padding-left: 1.5rem;
}

.custom-option:hover::before {
    content: '→';
    position: absolute;
    left: 0.5rem;
    color: #00ff87;
    animation: pulse 0.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Scrollbar for dropdown */
.custom-options::-webkit-scrollbar {
    width: 6px;
}

.custom-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-options::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 135, 0.3);
    border-radius: 3px;
}

.custom-options::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 135, 0.5);
}

/* Keep original select hidden but functional on desktop */
@media (min-width: 769px) {
    .form-group select {
        display: none;
    }
}

/* Glowing arrow indicator with pulse */
@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 135, 0.8));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(0, 255, 135, 1))
                drop-shadow(0 0 40px rgba(0, 255, 135, 0.6));
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

.scroll-indicator {
    display: none;
    position: relative;
    margin-top: 40px;
    text-align: center;
    cursor: pointer;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator .arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #00ff87;
    filter: drop-shadow(0 0 15px rgba(0, 255, 135, 0.8));
    animation: glowPulse 2s ease-in-out infinite;
}

.scroll-indicator .arrow::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 20px;
    background: #00ff87;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}

/* Show native select on mobile for better UX */
@media (max-width: 768px) {
    /* Show scroll indicator only on mobile */
    .scroll-indicator {
        display: block;
    }
    
    /* Hide indicator when user scrolls to form */
    .scroll-indicator.hidden {
        display: none;
    }
    .custom-select {
        display: none;
    }
    
    .form-group select {
        display: block !important;
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 500;
        background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
        border: 2px solid rgba(0, 255, 135, 0.2);
        border-radius: 12px;
        color: #ffffff;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%),
                          url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(0,255,135,0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat, no-repeat;
        background-position: center, right 1rem center;
        background-size: 100%, 1.5em;
    }
}

.form-group input:focus,
.form-group select:focus {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5),
                0 0 0 2px rgba(0, 255, 135, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.form-group select:focus {
    background-image: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(30, 30, 30, 0.98) 100%),
                      url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(0,255,135,1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.form-group input:focus::placeholder {
    opacity: 0.5;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.7;
}

.submit-btn {
    padding: 1.5rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00ff87 0%, #00cc6a 100%);
    color: #000000;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 135, 0.3);
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
    border: 2px solid #00ff87;
    background: rgba(0, 255, 135, 0.05);
}

.success-message p {
    font-size: 1.125rem;
    font-weight: 500;
    color: #00ff87;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
.footer {
    padding: 2rem 0 3rem;
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    font-weight: 300;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .brand {
        font-size: 1rem;
    }
    
    .main {
        gap: 2rem;
        padding: 1rem 0;
    }
    
    /* Show scroll indicator on mobile */
    .scroll-indicator {
        display: block !important;
    }
    
    .scroll-indicator.hidden {
        display: none !important;
    }
    
    .hero-wrapper {
        padding: 2rem 0;
        margin-bottom: 1rem;
        min-height: 400px;
    }
    
    .background-hero {
        opacity: 0.5;
        max-width: 500px;
        width: 100%;
        top: 50%;
        transform: translate(-50%, -50%) scale(1.1);
    }
    
    .title {
        font-size: clamp(2.5rem, 9vw, 4.5rem);
        margin-top: 100px;
    }
    
    .description {
        font-size: 0.95rem;
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .form-section {
        max-width: 100%;
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-subtitle {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 1rem 0;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 1.25rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0;
    }
    
    .header {
        padding: 1rem;
    }
    
    .brand {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }
    
    .main {
        gap: 1.5rem;
        padding: 0.5rem 0;
    }
    
    .hero-wrapper {
        padding: 1.5rem 0;
        min-height: 350px;
    }
    
    .background-hero {
        opacity: 0.5;
        max-width: 400px;
        width: 100%;
        top: 50%;
        transform: translate(-50%, -50%) scale(1);
    }
    
    .title {
        font-size: 2.8rem;
        margin-top: 90px;
        line-height: 0.95;
    }
    
    .description {
        font-size: 0.875rem;
        padding: 1.25rem;
        line-height: 1.6;
        margin: 0 0.5rem 1rem;
    }
    
    .tagline {
        font-size: 0.85rem;
    }
    
    .form-section {
        width: calc(100% - 2rem);
        padding: 1.75rem 1.25rem;
        margin: 0 1rem;
        border-radius: 12px;
    }
    
    .form-header {
        margin-bottom: 1.5rem;
    }
    
    .form-title {
        font-size: 1.35rem;
    }
    
    .form-subtitle {
        font-size: 0.85rem;
    }
    
    .spots-counter {
        font-size: 0.85rem;
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
        border-radius: 6px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 1.25rem;
        font-size: 0.95rem;
        border-radius: 6px;
    }
    
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer p {
        font-size: 0.75rem;
    }
}

/* Focus and Accessibility */
input:focus,
button:focus {
    outline: 2px solid #00ff87;
    outline-offset: 2px;
}

/* Selection Colors */
::selection {
    background: #00ff87;
    color: #000000;
}

::-moz-selection {
    background: #00ff87;
    color: #000000;
}

/* Animation for counter */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.counter-number {
    animation: pulse 2s ease-in-out infinite;
}