:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --secondary: #FF7675;
    --accent: #00CEC9;
    --bg-dark: #0F0F1A;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-main: #FFFFFF;
    --text-muted: #A0A0B0;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Animated Background Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 15s infinite ease-in-out;
}

.blob-1 { width: 500px; height: 500px; background: var(--primary); top: -10%; left: -10%; }
.blob-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -10%; right: -10%; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: var(--accent); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -10s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Header */
header {
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(15, 15, 26, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

/* LOGO STYLING */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -1px;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    /* If your logo is a transparent PNG and gets lost against the dark background, 
       uncomment the two lines below to give it a subtle glass background */
    /* background: rgba(255, 255, 255, 0.05); */
    /* padding: 4px; */
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 5%;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: slideUp 1s ease-out;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 24px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 206, 201, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 206, 201, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 206, 201, 0); }
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

h1 .highlight {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.cta-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.btn-playstore {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-playstore:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
    border-color: var(--primary);
}

.btn-playstore svg { width: 28px; height: 28px; }
.btn-text-small { font-size: 0.75rem; color: var(--text-muted); display: block; line-height: 1; }
.btn-text-large { font-size: 1.1rem; display: block; line-height: 1.2; }

.auto-redirect-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap; /* Prevents text overflow on tiny screens */
}

.auto-redirect-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* Phone Mockup */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    animation: slideUp 1s ease-out 0.2s both;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: #1A1A24;
    border-radius: 40px;
    border: 8px solid #2D2D3A;
    position: relative;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.05);
    transform: rotateY(-10deg) rotateX(5deg);
    animation: floatPhone 6s ease-in-out infinite;
    overflow: hidden;
}

@keyframes floatPhone {
    0%, 100% { transform: rotateY(-10deg) rotateX(5deg) translateY(0); }
    50% { transform: rotateY(-10deg) rotateX(5deg) translateY(-20px); }
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1A1A24;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #F8F9FA 0%, #E9ECEF 100%);
    padding: 50px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.screen-header { display: flex; justify-content: space-between; align-items: center; }
.screen-logo { font-weight: 800; color: var(--primary); font-size: 1.2rem; }
.screen-avatar { width: 30px; height: 30px; background: var(--secondary); border-radius: 50%; }
.screen-search { height: 40px; background: white; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.screen-categories { display: flex; gap: 10px; }
.cat-pill { padding: 8px 16px; background: white; border-radius: 20px; font-size: 0.7rem; color: #333; font-weight: 600; }
.cat-pill.active { background: var(--primary); color: white; }

.screen-products { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }

.product-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.product-img { width: 100%; height: 60px; background: linear-gradient(135deg, #e0c3fc, #8ec5fc); border-radius: 8px; }
.product-card:nth-child(2) .product-img { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); }
.product-card:nth-child(3) .product-img { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.product-card:nth-child(4) .product-img { background: linear-gradient(135deg, #fccb90, #d57eeb); }

.product-text { height: 8px; background: #eee; border-radius: 4px; width: 80%; }
.product-price { height: 8px; background: var(--primary); border-radius: 4px; width: 50%; opacity: 0.7; }

/* Features Section */
.features {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* Footer */
footer {
    text-align: center;
    padding: 40px 5%;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   MOBILE OPTIMIZATIONS
   ========================================= */
@media (max-width: 900px) {
    header {
        padding: 16px 5%;
    }
    
    .logo {
        font-size: 1.5rem;
        gap: 8px;
    }
    
    .logo-img {
        width: 34px;
        height: 34px;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 5%;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }

    .cta-container { 
        align-items: center; 
        width: 100%;
    }
    
    /* Makes the download button stretch nicely on mobile for easy thumb tapping */
    .btn-playstore {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .phone-mockup {
        width: 220px;
        height: 450px;
        transform: rotateY(0) rotateX(0);
    }
    
    @keyframes floatPhone {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }
    
    .features {
        padding: 60px 5%;
    }
    
    /* Stacks the feature cards vertically on mobile */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 24px;
    }
}

/* Extra small devices (older/smaller phones) */
@media (max-width: 380px) {
    h1 {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}