:root {
    --primary: #673ab7;
    /* Deep Purple from App Header */
    --primary-dark: #512da8;
    --secondary: #9575cd;
    --accent: #ffd740;
    /* Amber accent for contrast */
    --bg-body: #f8f9fd;
    /* Light App-like background */
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --font-main: 'Outfit', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(103, 58, 183, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

p {
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    /* Increased from 1200px for a wider, fuller look */
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Header */
header {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-block;
    /* Ensure they behave correctly on desktop */
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none !important;
    /* Force hide on desktop */
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
}

/* ===== Store Buttons Fix (Mobile Safe) ===== */

.btn-store-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Button base */
.btn-store-group .btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
}

/* Icon size */
.btn-store-group .btn i {
    font-size: 1.3rem;
}

/* Text alignment */
.btn-store-group .btn div {
    line-height: 1.1;
}

.store-small {
    font-size: 0.65rem;
    display: block;
}

.store-big {
    font-size: 0.9rem;
    font-weight: 600;
}


.btn-primary {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 14px rgba(103, 58, 183, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 58, 183, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--bg-body);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: white;
    /* Changed to white to seamless blend with image background */
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract App Shape Background */
.app-blob {
    width: 450px;
    height: 450px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    opacity: 0.1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    position: absolute;
    z-index: -1;
    animation: blobMorph 8s infinite alternate;
}

@keyframes blobMorph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 50% 40% 50% 50%;
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

/* Features/Content */
.features {
    padding: 100px 0;
    background: var(--bg-body);
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    /* Clickable indicator */
}

/* Temp animation class for click feedback */
.boost-attention {
    animation: boost-pulse 0.5s ease-in-out 2 !important;
    border-color: var(--primary) !important;
    background: #fdf4ff !important;
}

@keyframes boost-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 40px rgba(103, 58, 183, 0.5);
    }
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.feature-card .feature-icon {
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    color: var(--primary);
    background: rgba(103, 58, 183, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    line-height: 1;
}

.feature-card h3 {
    color: var(--text-main);
    font-size: 1.25rem;
}

/* Split Section (User/Partner) */
.split-section {
    display: flex;
    flex-wrap: wrap;
    background: white;
}

.split-col {
    flex: 1;
    min-width: 300px;
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col-user {
    background: white;
    border-right: 1px solid #e2e8f0;
}

.col-partner {
    background: var(--primary);
    color: white;
}

.col-partner h2,
.col-partner p,
.col-partner li,
.col-partner i {
    color: white;
}

.col-partner .btn {
    background: white;
    color: var(--primary);
    box-shadow: none;
}

.col-partner .btn:hover {
    background: #f1f5f9;
}

/* App Download */
.app-download {
    padding: 100px 0;
    text-align: center;
    background: #f1f5f9;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    color: var(--text-muted);
}

.footer-top {
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
        /* Or center if preferred, but left is usually better for lists */
    }
}

/* Animation for Floating Elements */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    h1 {
        /* Reduced size to ensure 2 lines as requested */
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 40px;
        /* Reduced from default */
        text-align: left;
    }

    .about {
        padding-top: 40px;
        /* Reduced from 100px */
    }

    /* Show navigation on mobile, stacked below logo */
    nav {
        /* Keep row for logo and hamburger */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none !important;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 1.5rem 0;
        text-align: center;
        border-radius: 0 0 24px 24px;
        z-index: 100;
    }

    .nav-links.active {
        display: flex !important;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links a {
        margin-left: 0;
        font-size: 1.2rem;
        /* Larger touch targets */
        padding: 1.2rem;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        width: 100%;
        color: var(--text-main);
    }

    .nav-links a:hover {
        background: #f8f9fd;
        color: var(--primary);
    }

    .nav-links .btn {
        margin: 1.5rem auto !important;
        /* Force center */
        display: inline-flex;
        width: 80%;
        /* Wider button on mobile */
        max-width: 250px;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(103, 58, 183, 0.3);
        border: none;
        /* specific override */
    }

    .split-col {
        padding: 4rem 2rem;
    }

    /* Adjust buttons for mobile to fit side-by-side (Horizontal) */
    /* ===== MOBILE FIX ===== */
    .btn-store-group {
        flex-direction: column;
        align-items: flex-start;
        /* 🔥 key fix */
    }

    .btn-store-group .btn {
        width: auto;
        /* 🔥 prevent full width */
        min-width: 220px;
    }
}

/* Button Animation */
@keyframes pulse-attract {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(103, 58, 183, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(103, 58, 183, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(103, 58, 183, 0.3);
    }
}

.btn-animate {
    animation: pulse-attract 2s infinite ease-in-out;
}

/* Store Button enhancements */


/* 3D Hero Image - Full Cover */
/* Hero Visual Container */
.hero-visual {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Prevent spillover */
}

/* 3D Hero Image - Full Cover */
.hero-image-3d {
    width: 100%;
    max-width: 100%;
    max-height: 600px;
    /* Limit height so it doesn't blow up */
    height: auto;
    object-fit: contain;
    /* Ensure image fits nicely */
    position: relative;
    z-index: 2;
    padding: 0;
    /* Removed padding and background to let image cover fully */
    border-radius: 20px;
    /* Soft shadow for depth */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image-3d:hover {
    transform: scale(1.02);
}



/* Float Keyframes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Fade In Up Entrance Animation */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Button Animation (Pulse + Shimmer) */
/* Premium Button Animation (Pulse + Shimmer) */
.btn-animate {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: pulse-attention 2s infinite ease-in-out;
    /* Attention grabbing pulse */
}

.btn-animate:hover {
    animation-play-state: paused;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(103, 58, 183, 0.2);
    background-color: #fce4ec;
    border-color: var(--primary-dark);
}

@keyframes pulse-attention {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(103, 58, 183, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 24px rgba(103, 58, 183, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(103, 58, 183, 0.3);
    }
}

.btn-animate::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-animate:hover::after {
    left: 100%;
}

/* Staggered Delay for grid items */
.grid-3>div:nth-child(1) {
    animation-delay: 0.1s;
}

.grid-3>div:nth-child(2) {
    animation-delay: 0.2s;
}

.grid-3>div:nth-child(3) {
    animation-delay: 0.3s;
}