:root {
    --color-white: #FFFFFF;
    --color-bg: #FAFAFC;
    --color-text: #1D1D1F;
    --color-text-muted: #86868B;
    --color-purple: #A883F4;
    --color-purple-light: rgba(168, 131, 244, 0.15);
    --color-green: #62D583;
    --color-green-light: rgba(98, 213, 131, 0.15);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* On desktop, keep it minimal with no vertical scroll. Override in media query for mobile. */
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Grain Effect */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: multiply;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--color-purple), #8A5AF1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-cta {
    background-color: var(--color-text);
    color: var(--color-white);
    text-decoration: none;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-cta:hover {
    background-color: var(--color-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(168, 131, 244, 0.3);
}

.mobile-only {
    display: none;
}

/* Split Layout configuration */
.split-layout {
    display: flex;
    flex: 1;
    /* Takes remaining height after nav */
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    /* Contains children, stops page scrolling */
}

/* Hero Section (Left Pane) */
.hero {
    flex: 1;
    padding: 0 0 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Removed hero background glow as requested for minimalism */
.hero-content {
    max-width: 500px;
}

.badge {
    background-color: var(--color-green-light);
    color: var(--color-green);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    display: inline-block;
    border: 1px solid rgba(98, 213, 131, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--color-purple);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--color-text-muted);
    font-weight: 400;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* Waitlist Wrapper */
.waitlist-wrapper {
    width: 100%;
    max-width: 420px;
    min-height: 100px;
    border-radius: 100px;
    position: relative;
    z-index: 5;
}

/* Customizing GetWaitlist variables */
#getWaitlistContainer {
    --gw-bg: transparent;
    --gw-text: var(--color-text);
    --gw-primary: var(--color-purple);
    --gw-primary-text: var(--color-white);
    --gw-border-radius: 100px;
    --gw-font-family: var(--font-primary);
}

/* App Showcase Section (Right Pane) */
.showcase {
    flex: 1.2;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* contain gallery */
    position: relative;
}

/* Add white fade-out gradient to right edge indicating scrollability */
.showcase::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1.5vw;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    z-index: 10;
}

.app-store-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    /* Reduced from 1.5rem for tighter desktop grouping */
    padding: 0 5vw 2rem 5vw;
    /* Added bottom padding to accommodate scrollbar */
    align-items: center;
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 131, 244, 0.4) transparent;
    width: 100%;
    height: 100%;
}

.app-store-gallery::-webkit-scrollbar {
    height: 6px;
}

.app-store-gallery::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.app-store-gallery::-webkit-scrollbar-thumb {
    background: rgba(168, 131, 244, 0.4);
    border-radius: 10px;
}

.app-store-gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 131, 244, 0.7);
}

.gallery-item {
    scroll-snap-align: center;
    flex: 0 0 auto;
    /* Removed border-radius, overflow, background, and shadow to prevent clipping the PNG's native shadow */
}

.gallery-item img {
    height: 65vh;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 36px;
    /* restored rounded screens */
}

/* Lightbox removed */

/* Responsive Adjustments */
@media (max-width: 950px) {
    .mobile-only {
        display: inline-block;
    }

    .nav-cta.mobile-only {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    body {
        height: auto;
        overflow: auto;
        /* allow natural scrolling */
        min-height: 100vh;
    }

    .split-layout {
        flex-direction: column-reverse;
        justify-content: flex-end;
        height: auto;
        overflow: visible;
        padding-top: 1rem;
    }

    .hero {
        flex: none;
        text-align: center;
        padding: 0 5%;
        margin-bottom: 0rem;
        margin-top: 1rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }

    .waitlist-wrapper {
        margin: 0 auto;
        max-width: 100%;
    }

    .showcase {
        flex: none;
        width: 100%;
        height: auto;
        padding-bottom: 0rem;
    }

    /* Keep the gradient but make it a bit narrower on mobile */
    .showcase::after {
        width: 2vw;
    }

    .app-store-gallery {
        padding: 0 5vw 2rem 5vw;
        gap: 0.75rem;
        /* reduced from 1rem */
        height: auto;
    }

    .gallery-item img {
        height: 60vh;
        /* Much larger relative to viewport for readability on phones */
    }
}

@media (max-width: 480px) {
    .gallery-item img {
        height: 55vh;
    }

    .navbar {
        padding: 1rem 5%;
    }
}