/* Dark Futuristic Glassmorphism Theme */

:root {
    /* Colors */
    --color-black: #000000;
    --color-near-black: #0d0d0d;
    --color-dark-grey: #1a1a1a;
    --color-orange: #ff8c42;
    --color-white: #ffffff;
    --color-light-grey: #cccccc;
    --color-medium-grey: #888888;
    --color-footer-grey: #aaaaaa;
    --color-dark-text: #111111;

    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --border-radius-sm: 12px;
    --border-radius-md: 24px;
    --border-radius-lg: 30px;
    --border-radius-full: 50px;
    
    /* Effects */
    --blur-heavy: 60px;
    --blur-medium: 30px;
    --blur-light: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-white);
    background: var(--color-black);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.light-streak {
    position: absolute;
    background: linear-gradient(135deg, 
        var(--color-orange) 0%, 
        rgba(255, 140, 66, 0.6) 30%, 
        rgba(217, 217, 217, 0.4) 60%, 
        rgba(217, 217, 217, 0.1) 100%);
    filter: blur(var(--blur-heavy));
    border-radius: var(--border-radius-full);
}

.streak-1 {
    width: 800px;
    height: 200px;
    top: 10%;
    left: -200px;
    transform: rotate(25deg);
    animation: float1 15s ease-in-out infinite;
}

.streak-2 {
    width: 600px;
    height: 150px;
    top: 40%;
    right: -150px;
    transform: rotate(-30deg);
    animation: float2 20s ease-in-out infinite;
}

.streak-3 {
    width: 500px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    transform: rotate(45deg);
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(25deg); }
    50% { transform: translateY(-30px) rotate(25deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(-30deg); }
    50% { transform: translateY(40px) rotate(-30deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Main Layout */
main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero {
    width: 100%;
    text-align: center;
}

/* Waitlist Badge */
.waitlist-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(13, 13, 13, 0.7);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: var(--border-radius-full);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: var(--spacing-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.waitlist-badge svg {
    width: 16px;
    height: 16px;
    color: var(--color-white);
}

/* Main Heading */
.main-heading {
    font-size: clamp(64px, 10vw, 72px);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--spacing-2xl);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 
                 0 0 40px rgba(255, 255, 255, 0.1);
    letter-spacing: -0.02em;
}

/* Glassmorphic Card */
.glassmorphic-card {
    background: rgba(13, 13, 13, 0.45);
    backdrop-filter: blur(var(--blur-medium));
    border-radius: var(--border-radius-lg);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transition: var(--transition);
}

.glassmorphic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 66, 0.3), transparent);
}

.glassmorphic-card:hover {
    border-color: rgba(255, 140, 66, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 140, 66, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-heading {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.product-description {
    font-size: 18px;
    color: var(--color-light-grey);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.card-subtext {
    font-size: 16px;
    color: var(--color-medium-grey);
    line-height: 1.5;
    margin-bottom: var(--spacing-xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* Form Styles */
.waitlist-form {
    margin-bottom: var(--spacing-lg);
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 16px;
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    outline: none;
    font-family: var(--font-family);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.input-wrapper input::placeholder {
    color: var(--color-medium-grey);
    font-weight: 400;
}

.input-wrapper input:focus {
    border-color: rgba(255, 140, 66, 0.5);
    background: rgba(26, 26, 26, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.input-wrapper input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.input-wrapper input:invalid {
    border-color: rgba(239, 68, 68, 0.5);
}

.input-wrapper input:valid:not(:placeholder-shown) {
    border-color: rgba(34, 197, 94, 0.5);
}

/* Add subtle glow to required fields */
.input-wrapper input:required::after {
    content: '*';
    color: var(--color-orange);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.join-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, var(--color-orange) 0%, #ff6b1a 100%);
    color: var(--color-white);
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
    transition: var(--transition);
    white-space: nowrap;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.3);
}

.join-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.join-button:hover::before {
    left: 100%;
}

.join-button:hover {
    background: linear-gradient(135deg, #ff6b1a 0%, var(--color-orange) 100%);
    box-shadow: 0 12px 35px rgba(255, 140, 66, 0.4);
    transform: translateY(-2px);
}

.join-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.3);
}

.button-text {
    font-weight: 600;
}

.button-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.join-button:hover .button-arrow {
    transform: translateX(4px);
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.8) 0%, rgba(26, 26, 26, 0.6) 100%);
    border: 1px solid rgba(255, 140, 66, 0.4);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    backdrop-filter: blur(var(--blur-light));
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
}

.success-message h3 {
    color: var(--color-orange);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(255, 140, 66, 0.3);
}

.success-message p {
    color: var(--color-light-grey);
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

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

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg) 0;
    text-align: center;
    z-index: 10;
}

.footer-text {
    color: var(--color-footer-grey);
    font-size: 14px;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .main-heading {
        font-size: clamp(48px, 12vw, 64px);
        margin-bottom: var(--spacing-xl);
    }
    
    .glassmorphic-card {
        padding: 32px 24px;
        margin: 0 var(--spacing-sm);
    }
    
    .card-heading {
        font-size: 28px;
    }
    
    .card-subtext {
        font-size: 16px;
    }
    
    .form-fields {
        gap: var(--spacing-sm);
    }
    
    .input-wrapper input {
        padding: 16px 18px;
        font-size: 16px;
    }
    
    .join-button {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .light-streak {
        filter: blur(40px);
    }
    
    .streak-1 {
        width: 600px;
        height: 150px;
    }
    
    .streak-2 {
        width: 400px;
        height: 100px;
    }
    
    .streak-3 {
        width: 350px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .main-heading {
        font-size: clamp(36px, 14vw, 48px);
    }
    
    .glassmorphic-card {
        padding: 24px 16px;
        margin: 0 16px;
    }
    
    .card-heading {
        font-size: 24px;
    }
    
    .product-description {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .card-subtext {
        font-size: 14px;
    }
    
    .form-fields {
        gap: 16px;
    }
    
    .input-wrapper input {
        padding: 18px 20px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 12px;
    }
    
    .join-button {
        padding: 18px 24px;
        font-size: 16px;
        min-height: 56px; /* Better touch target */
    }
    
    .waitlist-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .waitlist-badge svg {
        width: 14px;
        height: 14px;
    }
    
    /* Improve background effects for mobile */
    .light-streak {
        filter: blur(30px);
    }
    
    .background-effects {
        transform: scale(1.1); /* Slight zoom for better coverage */
    }
}

/* Loading state */
.loading {
    opacity: 0.8;
    pointer-events: none;
}

.loading .join-button {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.7) 0%, rgba(255, 107, 26, 0.7) 100%);
    cursor: not-allowed;
}

.loading .button-arrow {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

/* Smooth animations for performance */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}