:root {
    --bg-dark: #050510;
    --primary: #a855f7;
    --primary-hover: #9333ea;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --bottom-nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    background-color: var(--bg-dark);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 16, 0.8), rgba(5, 5, 16, 0.95));
}

/* DESKTOP NAV */
nav.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links .btn-primary {
    color: white !important;
    /* Force white text */
}

/* Hidden on desktop */
.bottom-nav {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    /* Deprecated */
}

/* HERO & GENERAL STYLES */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 1rem 4rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-primary.small {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.separator {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

.features {
    padding: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 1.5rem;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box.purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.icon-box.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.icon-box.amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.icon-box.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 1rem;
    margin: 0;
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 1rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

.footer-link {
    font-weight: 700;
    background: linear-gradient(to right, #a855f7, #ec4899);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    transition: transform 0.3s;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #a855f7, #ec4899);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}

.footer-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-showcase {
    position: relative;
    margin-top: 4rem;
    perspective: 1000px;
    width: 100%;
    max-width: 900px;
    transform-style: preserve-3d;
}

.screenshot {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 100px -20px rgba(168, 85, 247, 0.3);

    transform: rotateX(0deg);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

/* ========================================= */
/* MOBILE / RESPONSIVE STYLES (App-like) */
/* ========================================= */
@media (max-width: 768px) {

    /* Hide top nav links completely */
    .nav-links {
        display: none !important;
    }

    .lang-switch {
        display: none !important;
    }

    /* Padding for Top Nav and Bottom Nav */
    nav.top-nav {
        /* Keep logo visible but hide right side */
        padding: 1rem 1.5rem;
        justify-content: center;
        /* Center logo on mobile */
    }

    body {
        padding-bottom: var(--bottom-nav-height);
        /* Space for bottom nav */
    }

    /* Show Bottom Nav */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--bottom-nav-height);
        background: #050510;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        justify-content: space-around;
        align-items: center;
        z-index: 999;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 500;
        width: 100%;
        height: 100%;
        transition: color 0.2s;
    }

    .nav-item svg {
        width: 24px;
        height: 24px;
        transition: transform 0.2s;
    }

    .nav-item.active {
        color: var(--primary);
    }

    .nav-item:active {
        transform: scale(0.95);
    }

    /* Hero adjustments */
    .hero {
        padding-top: 6rem;
    }

    h1 {
        font-size: 2.75rem;
        padding: 0 0.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 3rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .features {
        padding: 3rem 1.5rem;
        grid-template-columns: 1fr;
    }

    /* Disable Download Button on Mobile */
    .cta-group .btn-primary {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
        background: #333;
        /* Grey out */
        box-shadow: none;
    }

    /* Optional: Add a text indicating desktop only? */
    .cta-group .btn-primary:after {
        content: '(PC Only)';
        font-size: 0.8em;
        margin-left: 5px;
        opacity: 0.7;
    }
}