:root {
    --primary: #6366F1;
    --primary-light: #818CF8;
    --accent: #F59E0B;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(15, 23, 42, 0.7);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --border: 1px solid rgba(255, 255, 255, 0.18);
    --text-main: #1E293B;
    --text-muted: #64748B;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #0F172A;
        --text-main: #F1F5F9;
        --text-muted: #94A3B8;
        --glass: rgba(30, 41, 59, 0.7);
        --border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Fixed background to prevent white background in dark mode */
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 40%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.08), transparent 40%),
        var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--border);
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#app-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
header {
    padding-top: 160px;
    padding-bottom: 100px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--text-main);
    z-index: 2;
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #EC4899);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
    /* Fallback */
    display: inline-block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-visual {
    flex: 1;
    position: relative;
}

.hero-img-container {
    position: relative;
}

#hero-image {
    width: 100%;
    max-width: 600px;
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.floating-card {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: var(--border);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    font-weight: 600;
    font-size: 0.9rem;
}

.c1 {
    top: 10%;
    right: -5%;
    color: #059669;
}

.c2 {
    bottom: 20%;
    left: -5%;
    color: var(--accent);
}

/* Badges & Buttons */
.store-badge img {
    height: 110px;
    width: auto;
    mix-blend-mode: multiply;
    filter: contrast(1.1) brightness(1);
    transition: transform 0.3s;
    background: transparent;
    display: block;
}

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

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Features Section */
.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 4rem;
    font-weight: 800;
    line-height: 1.2;
}

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

.feature-card {
    padding: 2.5rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

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

/* CTA Section */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    text-align: center;
    padding: 80px 40px;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    color: white;
}

.cta-box h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.store-badge-large img {
    height: 140px;
    width: auto;
    mix-blend-mode: multiply;
    filter: contrast(1.1) brightness(1);
    transition: transform 0.3s;
    background: transparent;
}

/* Footer */
footer {
    padding: 60px 0 40px;
    border-top: var(--border);
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-up {
    opacity: 0;
}

.animate-up.visible {
    animation: fadeInUp 0.8s forwards;
}

.animate-fade-in {
    animation: fadeIn 1.2s forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 3s ease-in-out infinite 1.5s;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 3rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

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