:root {
    --bg-main: #050505;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.08);
    --primary: #4F46E5;
    /* Indigo/Blue from App */
    --primary-glow: rgba(79, 70, 229, 0.4);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 0.75rem;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 60ch;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Glassmorphism Components */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

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

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

/* Special Case for Centered Navbar Animation */
.navbar.fade-in-up {
    transform: translate(-50%, 20px);
}

.navbar.fade-in-up.visible {
    transform: translate(-50%, 0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: scale(1);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 40px var(--primary-glow), 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-success {
    background: #a3e635;
    color: #000;
    box-shadow: 0 0 20px rgba(163, 230, 53, 0.4);
}

.btn-success:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 40px rgba(163, 230, 53, 0.6), 0 10px 25px rgba(0, 0, 0, 0.3);
    background: #b8f247;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}



.download-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.store-badge img {
    height: 44px;
    transition: transform 0.3s;
}

.store-badge:hover img {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    padding-top: 10rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.12), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.hero-screenshot {
    max-width: 240px;
    width: 100%;
}

/* Features */
.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: var(--primary);
}

.feature-icon i {
    font-size: 1.5rem;
}

/* Stats / Social Highlighting */
.social-proof {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Pricing */
.pricing-card {
    position: relative;
    overflow: hidden;
}

.pricing-card.premium {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 50px rgba(79, 70, 229, 0.2), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pricing-card.premium:hover {
    box-shadow: 0 0 70px rgba(79, 70, 229, 0.3), 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(79, 70, 229, 0.8);
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    margin: 0.75rem 0;
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    background: #020202;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .navbar {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border-glass);
        background: rgba(5, 5, 5, 0.9);
    }

    .navbar.fade-in-up {
        transform: translateY(-10px);
    }

    .navbar.fade-in-up.visible {
        transform: translateY(0);
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero {
        padding-top: 8rem;
    }

    .hero .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        text-align: center !important;
    }

    .hero .download-badges {
        justify-content: center !important;
    }

    h1 {
        font-size: 2.25rem;
    }

    .store-badge img {
        height: 40px;
    }

    /* Limit screenshot size on mobile */
    .hero-screenshot,
    .sync-screenshot-main,
    .sync-screenshot-secondary {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Ensure constrained container for visuals */
    #sync img {
        max-width: 220px !important;
        /* Cap width on mobile */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}