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

:root {
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-text-secondary: #666666;
    --color-accent: #ff6b35;
    --color-input-bg: #f5f5f5;
    --color-input-border: #e0e0e0;
    --color-success: #22c55e;
    --color-error: #ef4444;
    --font-primary: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --transition-speed: 0.3s;
}

/* Dark mode colors */
[data-theme="dark"] {
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-accent: #ff6b35;
    --color-input-bg: #1a1a1a;
    --color-input-border: #2a2a2a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    position: relative;
}

/* Hide scrollbar but allow scroll */
body::-webkit-scrollbar {
    display: none;
}
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    position: relative;
    z-index: 20;
}

.logo {
    height: 60px;
    width: auto;
}

/* Light mode: show clean logo, hide dark logo */
.logo-light {
    display: block;
}
.logo-dark {
    display: none;
}

/* Dark mode: show shadow logo, hide light logo */
[data-theme="dark"] .logo-light {
    display: none;
}
[data-theme="dark"] .logo-dark {
    display: block;
}

.tagline {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 420px;
    line-height: 1.4;
}

/* Animated swipe highlight */
.highlight-swipe {
    font-weight: 500;
    color: #FF6B35; /* Fallback for browsers without background-clip support */
    background: linear-gradient(90deg, #FF6B35, #FFAA33, #FF6B35, #FFAA33, #FF6B35);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: waveFlow 2s linear infinite;
}

/* Ensure text is transparent only when background-clip is supported */
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .highlight-swipe {
        color: transparent;
    }
}

@keyframes waveFlow {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}

/* Respect reduced motion preference for accessibility */
@media (prefers-reduced-motion: reduce) {
    .highlight-swipe {
        animation: none;
        background-position: 0% center;
    }
}

.description {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 480px;
    line-height: 1.6;
    margin-top: 0.75rem;
    opacity: 0.85;
}

/* Language Selector - Glassmorphism */
.language-selector {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.language-toggle {
    background: rgba(245, 245, 245, 0.7);
    border: 1.5px solid rgba(224, 224, 224, 0.4);
    color: var(--color-text);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

[data-theme="dark"] .language-toggle {
    background: rgba(26, 26, 26, 0.7);
    border-color: rgba(42, 42, 42, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.language-toggle:hover {
    background: rgba(245, 245, 245, 0.85);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .language-toggle:hover {
    background: rgba(26, 26, 26, 0.85);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.language-toggle:active {
    transform: translateY(0) scale(0.95);
}

.dropdown-arrow {
    font-size: 0.6rem;
    opacity: 0.7;
    transition: transform var(--transition-speed);
}

.language-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    background: rgba(245, 245, 245, 0.8);
    border: 1.5px solid rgba(224, 224, 224, 0.5);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed);
    overflow: hidden;
    min-width: 160px;
}

[data-theme="dark"] .language-dropdown {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(42, 42, 42, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    color: var(--color-text);
    transition: all var(--transition-speed);
    position: relative;
}

.lang-option:hover {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-option .flag {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-option .lang-name {
    font-size: 0.875rem;
    font-weight: 500;
}


/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Countdown Timer */
.countdown {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.countdown-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.countdown-label {
    font-size: 1rem;
    color: var(--color-text-secondary);
    text-transform: capitalize;
}

.countdown-separator {
    font-size: 3rem;
    font-weight: 300;
    opacity: 0.5;
    margin-bottom: 2rem;
}

/* Waitlist Form */
.waitlist-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-wrapper {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(245, 245, 245, 0.8);
    border: 1.5px solid rgba(224, 224, 224, 0.5);
    border-radius: 50px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-speed);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .email-input {
    background: rgba(26, 26, 26, 0.7);
    border-color: rgba(42, 42, 42, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.email-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(245, 245, 245, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

[data-theme="dark"] .email-input:focus {
    background: rgba(26, 26, 26, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.email-input::placeholder {
    color: var(--color-text-secondary);
}

.email-input.error {
    border-color: var(--color-error);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-speed);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Dark mode: Add glow effect to button for better visibility */
[data-theme="dark"] .submit-btn {
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4), 0 0 40px rgba(255, 107, 53, 0.2);
}

[data-theme="dark"] .submit-btn:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5), 0 0 50px rgba(255, 107, 53, 0.3);
}

/* Consent Checkbox */
.consent-wrapper {
    width: 100%;
    padding-left: 1.5rem; /* Align with email input placeholder text */
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.consent-label input[type="checkbox"] {
    margin-top: 0.2rem;
    cursor: pointer;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.consent-label a {
    color: var(--color-text);
    text-decoration: underline;
    transition: opacity var(--transition-speed);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.consent-label a:hover {
    opacity: 0.7;
}

/* Form Message - Glassmorphism (matches language toggle style) */
.form-message {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    text-align: center;
    display: none;
    font-weight: 600;
    background: rgba(245, 245, 245, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .form-message {
    background: rgba(26, 26, 26, 0.7);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-message.success {
    display: block;
    border: 1.5px solid rgba(34, 197, 94, 0.8);
    color: var(--color-success);
}

.form-message.error {
    display: block;
    border: 1.5px solid rgba(239, 68, 68, 0.8);
    color: var(--color-error);
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.avatars {
    display: flex;
    margin-left: -0.5rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-left: -0.5rem;
}

.social-proof-text {
    font-size: 0.95rem;
}

.social-proof-text strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Text Overlay - Large Background Text */
.text-overlay {
    position: absolute;
    bottom: -5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(3rem, 15vw, 12rem);
    font-weight: 700;
    white-space: nowrap;
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    z-index: 20;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-speed);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.footer-links a:hover {
    color: var(--color-text);
    background: rgba(245, 245, 245, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .footer-links a:hover {
    background: rgba(26, 26, 26, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.separator {
    color: var(--color-text-secondary);
}

.copyright {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* Mobile Galleries - Only visible on mobile */
.mobile-gallery {
    display: none;
}

@media (max-width: 768px) {
    .mobile-gallery {
        display: block;
        width: 100vw;
        margin-left: -1rem;
        overflow: hidden;
        margin-top: 0;
        margin-bottom: 0;
        /* Dynamic height - uses more vertical space */
        height: clamp(100px, 18vh, 220px);
    }

    .mobile-gallery-track {
        display: flex;
        gap: 0.75rem;
        animation: scrollGallery 20s linear infinite;
        width: max-content;
        height: 100%;
        align-items: center;
    }

    .mobile-gallery-2 .mobile-gallery-track {
        animation-direction: reverse;
    }

    .mobile-img {
        flex-shrink: 0;
        /* Fixed aspect ratio 4:3 - height scales dynamically */
        aspect-ratio: 4 / 3;
        height: clamp(100px, 18vh, 240px);
        border-radius: clamp(12px, 2.5vw, 20px);
        overflow: hidden;
        background: transparent;
    }

    .mobile-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    @keyframes scrollGallery {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
}

/* Landscape orientation - larger galleries with more height */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-gallery {
        height: clamp(140px, 28vh, 320px);
    }

    .mobile-img {
        height: clamp(130px, 26vh, 300px);
    }
}

/* Very tall phones (iPhone 14 Pro Max, etc) - maximize vertical space */
@media (max-width: 768px) and (min-height: 800px) {
    .mobile-gallery {
        height: clamp(130px, 22vh, 280px);
    }

    .mobile-img {
        height: clamp(120px, 20vh, 260px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        padding-bottom: 4rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        min-height: auto;
    }

    .header {
        margin-bottom: 0;
        padding: 0.5rem 0;
        gap: 0.25rem;
    }

    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .form-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .submit-btn {
        width: 100%;
    }

    .main-content {
        flex: 0;
        gap: 0.75rem;
        padding: 0;
    }

    .waitlist-form {
        gap: 0.5rem;
    }

    .social-proof {
        margin-top: 0;
    }

    .footer {
        margin-top: 0;
        padding-top: 0.5rem;
    }

    /* Language selector mobile adjustments */
    .language-selector {
        bottom: 1rem;
        right: 1rem;
    }

    .language-toggle {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        gap: 0.375rem;
    }

    .language-dropdown {
        min-width: 140px;
    }

    .lang-option {
        padding: 0.75rem 1rem;
    }

    .lang-option .flag {
        font-size: 1.1rem;
    }

    .lang-option .lang-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .social-proof {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Tablet-specific fixes (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-content {
        gap: 1rem;
    }
}
