:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-dark: #0f172a;
    --text-white: #ffffff;
    --text-muted: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --accent: #50c9c3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #764ba2;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #667eea;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: #43e97b;
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Navbar */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 2rem;
    /* Further reduced vertical padding */
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(15, 23, 42, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Use Grid for true centering */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-left {
    display: flex;
    justify-content: flex-start;
}

.nav-center {
    display: flex;
    justify-content: center;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

/* Old logo-container unused now, straightforward styling */

.nav-logo {
    width: 52px;
    /* Reduced from 64px */
    height: 52px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 6px;
    /* Slightly reduced padding */
    background: white;
    object-fit: contain;
    border: none;
}

.app-name {
    font-weight: 300;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    /* Key fix: aligns text on baseline so W doesn't drop */
    color: #ffffff;
    /* Solid white to guarantee visibility */
    /* Removed complex gradient clip which was causing invisibility */
}

/* Shared style for U and W */
.big-letter {
    font-size: 3.5rem;
    font-weight: 200;
    /* Very light */
    margin: 0 -1px;
    transform: translateY(6px);
    color: #ffffff;
}

/* Replaced nav-cta with .app-store-button.nav-variant */
.app-store-button.nav-variant {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    color: black;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-store-button.nav-variant:hover {
    transform: scale(1.05);
    background: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 14rem 2rem 4rem;
    /* Increased top padding significantly */
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 500;
    /* Lighter (was 800) */
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(to right, #fff, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(165, 180, 252, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Official Badge Style */
.badge-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.badge-link img {
    height: 44px;
    /* Standard height */
    width: auto;
}

.badge-link:hover {
    transform: scale(1.05);
}

.badge-link.nav-variant img {
    height: 42px;
    /* Increased from 36px */
}

/* Gallery Section */
.gallery-container {
    width: 100%;
    max-width: 900px;
    /* Increased container to fit sides */
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.gallery-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    position: relative;
    padding: 0 1rem;
}

.gallery-viewport {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 520px;
    /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    gap: 20px;
}

.gallery-slot {
    position: relative;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-slot.center {
    width: 260px;
    /* Reduced from 320 (-~20%) */
    height: 520px;
    z-index: 10;
    transform: scale(1);
    opacity: 1;
}

.gallery-slot.side {
    width: 200px;
    height: 400px;
    z-index: 5;
    opacity: 0.5;
    filter: blur(2px);
    transform: scale(0.9);
}

.gallery-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 32px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    border: 6px solid rgba(255, 255, 255, 0.1);
}

.gallery-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-highlight);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gallery-text-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    min-height: 180px;
    /* Prevent jumpiness */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    /* Cleaner look requested */
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.gallery-text-container h3 {
    font-size: 1.5rem;
    /* Reduced */
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.gallery-text-container p {
    color: var(--text-muted);
    font-size: 1rem;
    /* Reduced */
}

.gallery-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.3);
}

/* Animations */
/* Mobile Optimization */
@media (max-width: 768px) {
    .gallery-container {
        margin: 1rem auto;
        gap: 0.5rem;
    }

    .gallery-viewport {
        height: 420px;
        /* Reduced height for mobile */
        gap: 0;
        /* Remove gap to avoid overflow */
        padding-top: 20px;
        /* Space for top buttons if needed */
    }

    /* Center (Active) Image */
    .gallery-slot.center {
        width: 220px;
        /* Smaller width */
        height: 440px;
        z-index: 20;
    }

    /* Side Images: Tuck them behind or make very subtle */
    .gallery-slot.side {
        width: 180px;
        height: 380px;
        opacity: 0.2;
        /* Much more transparent */
        transform: scale(0.8) translateX(0);
        /* Reset positions */
        position: absolute;
        /* Stack them behind definitely */
        z-index: 5;
    }

    /* Specific positioning to "peek" just a little */
    #gallery-img-prev {
        transform: scale(0.8) translateX(-60px);
    }

    #gallery-img-next {
        transform: scale(0.8) translateX(60px);
    }

    .gallery-nav {
        width: 44px;
        /* Larger hit area */
        height: 44px;
        background: rgba(255, 255, 255, 0.15);
        /* More visible */
        backdrop-filter: blur(4px);
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .nav-logo {
        width: 40px;
        /* Smaller header logo on mobile */
        height: 40px;
        padding: 4px;
    }

    .big-letter {
        font-size: 2.8rem;
        /* Smaller title on mobile */
    }

    .app-name {
        font-size: 1.8rem;
    }
}



/* Showcase */
.showcase {
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.showcase-content {
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.showcase h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.showcase-gallery {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    perspective: 1000px;
}

.gallery-item img {
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
}

.gallery-it.hero:hover .floating-phone {
    transform: rotateX(0) rotateY(0) rotateZ(0);
}

/* Reduced size floating phone */
.floating-phone {
    max-width: 240px;
    /* Reduced from 300px (-20%) */
}



/* Watch Section */
/* Layout Constraint */
.container-constraint {
    max-width: 600px;
    /* Matching gallery text card exactly */
    width: 100%;
    margin: 4rem auto;
    padding: 2.5rem;
}

/* CTA Footer */
.download-cta {
    padding: 2rem 2rem 6rem;
    /* Adjusted padding */
    text-align: center;
}

.cta-card {
    /* Styles merged into .container-constraint + glass-card */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.cta-card h2 {
    font-size: 1.8rem;
    /* Reduced from 2.5rem */
    font-weight: 600;
    /* Less prominent */
    margin-bottom: 1rem;
}

.cta-card p {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.big.app-store-button {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.glass-footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        margin-top: 1rem;
    }

    .nav-content {
        justify-content: space-between;
    }

    .nav-cta {
        display: none;
    }

    /* Hide secondary CTA on mobile for simplicity */

    .blob {
        transform: scale(0.6);
    }

    /* Reduce performance load */
    .watch-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .watch-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .watch-section::after {
        right: 50%;
        transform: translateX(50%);
        top: 60%;
    }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    /* Slightly lighter on hover */
    border-color: var(--glass-highlight);
}

.small-text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.lang-opt {
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.lang-opt:hover {
    color: white;
}

.lang-opt.active {
    color: white;
    font-weight: 700;
}

.divider {
    font-size: 0.8rem;
    opacity: 0.3;
}