:root {
    /* Brand Palette - Refined */
    --primary-color: #FA448C;
    --primary-dark: #d62d70;
    --secondary-color: #495BFC;
    --secondary-dark: #3746d3;
    --accent: #FFD166;
    
    /* Neutrals */
    --text-main: #1A1A2E; 
    --text-body: #4A4A68;
    --bg-light: #F8F9FE;
    --white: #FFFFFF;
    
    /* UI Elements */
    --gradient-brand: linear-gradient(135deg, #FA448C 0%, #495BFC 100%);
    --gradient-soft: linear-gradient(135deg, rgba(250, 68, 140, 0.05) 0%, rgba(73, 91, 252, 0.05) 100%);
    --shadow-soft: 0 20px 40px -10px rgba(73, 91, 252, 0.15);
    --shadow-strong: 0 40px 80px -20px rgba(26, 26, 46, 0.3);
    
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 12px;
    
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.2;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 100;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: rgb(90, 89, 89);
}

.logo img {
    height: 48px;
    margin-right: 12px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin-left: auto; /* Push to the right */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    margin-left: 20px;
    gap: 8px;
    font-weight: 500;
}

.lang-divider {
    color: var(--text-body);
    opacity: 0.5;
    font-size: 0.8rem;
}

.lang-link {
    color: var(--text-body) !important;
    font-size: 0.9rem !important;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
}

.lang-link:hover, .lang-link.active {
    color: var(--primary-color) !important;
    opacity: 1;
}

.lang-link::after {
    display: none !important; /* No underline for lang links */
}

/* Hero Section */
.hero {
    height: 85vh; /* Increased height */
    display: flex;
    /* align-items: center;  Removed to allow full height stretch */
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 90%;
    background: radial-gradient(circle at center, rgba(250, 68, 140, 0.15), rgba(73, 91, 252, 0.05), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    display: flex; /* Layout for overlapping content */
    align-items: center;
    width: 100%;
    height: 100%; /* Force full height of the parent */
    position: relative;
}

.hero-text {
    z-index: 20; /* Higher than image */
    width: 60%; /* Slightly less width to balance */
    padding: 0 0 0 10%; /* No vertical padding, rely on flex centering */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    height: 100%;
    background: transparent; /* Explicitly transparent as requested */
}

.hero-text h1 {
    font-size: 2.2rem; /* Reduced from 2.8rem */
    font-weight: 800;
    margin-bottom: 25px; /* Increase gap after title */
    letter-spacing: -1.0px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Lighter shadow */
}

.hero-text p {
    font-size: 0.95rem; /* Reduced from 1.1rem */
    color: var(--text-body);
    margin-bottom: 25px; /* Reduced from 30px */
    max-width: 90%; /* Increased padding on right to keep text away from image */
    padding: 0;
    line-height: 1.6;
}

.cta-buttons, .hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%; /* Wider image container to avoid "zooming" too much */
    height: 100%;
    z-index: 1;
    display: block;
}

/* The Big Image Style */
.big-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 80% 50%; /* Center horizontally, but shift slightly left */
    display: block;
}

/* Removed hover transform to keep it static */
.big-hero-img:hover {
    /* No effect */
}

/* Feature Phone Mockups (Kept these as they were good) */
.phone-frame {
    position: relative;
    width: 280px;
    height: auto;
    aspect-ratio: 9/19.5;
    background: #000;
    border-radius: 40px;
    border: 4px solid #222;
    box-shadow: 
        0 0 0 2px #444, 
        20px 30px 50px rgba(0,0,0,0.4), 
        -10px -10px 30px rgba(255,255,255,0.05);
    overflow: hidden;
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
    margin: 0 auto;
}

.phone-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.phone-frame.smaller {
    width: 240px;
    border-width: 3px;
    transform: rotate(0);
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Features Section */
.features {
    padding: 120px 0;
    background-color: var(--white);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 80px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    width: 100%;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}

.feature-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon-wrapper {
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--text-main);
    font-weight: 700;
}

.feature-card p {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.6;
}


/* Download Section */
.download-section {
    padding: 120px 0;
    text-align: center;
    background: var(--gradient-brand);
    color: var(--white);
    position: relative;
    clip-path: ellipse(150% 100% at 50% 100%);
    margin-top: 50px;
}

.download-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 800;
}

.download-section p {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 300;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    background-color: var(--white);
    color: var(--text-main);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.store-btn.dark-btn {
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
}

.store-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background-color: #0d0d12;
    /* color: #e0e0e0; */
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col a {
    color: #a0a0b0;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 300;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    font-size: 0.9rem;
    color: #666;
}

/* Hero Specific Buttons */
.hero-buttons {
    justify-content: flex-start !important; /* Override center alignment */
    gap: 15px;
}

.hero-buttons .store-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.hero-buttons .store-btn svg {
    width: 16px;
    height: 16px;
}

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

.fade-in-right { animation: fadeInRight 1s ease-out forwards; }
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-text { animation: fadeInUp 0.8s ease-out forwards; }

/* Responsive */
@media (max-width: 1100px) {
    .container {
        padding: 0 20px;
    }

    /* Navbar */
    .nav-links {
        display: none; /* Simple mobile menu - hidden for now */
    }

    /* Hero Section - Switch from Split Screen to Stacked */
    .hero {
        height: auto;
        min-height: auto;
        flex-direction: column;
        padding-top: 40px;
    }

    .hero-content {
        flex-direction: column;
        height: auto;
    }

    .hero-text {
        width: 100%;
        padding: 40px 20px 20px; /* Add bottom padding */
        text-align: center;
        align-items: center;
        height: auto;
        justify-content: flex-start;
        background: transparent !important;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .hero-buttons {
        justify-content: center !important;
        margin-bottom: 30px;
        width: 100%;
    }

    .hero-image {
        display: none !important; /* Force hide on mobile/tablet/iPad */
    }

    .hero {
        padding-bottom: 60px;
        height: auto; 
    }

    .big-hero-img {
        object-position: top center;
    }

    /* Features */
    .features {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    .features-grid {
        gap: 40px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
}


/* Scroll to Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px; 
    right: 20px;
    z-index: 99;
    font-size: 18px;
    border: none; 
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
    width: 50px; 
    height: 50px;
    display: none;
    align-items: center; 
    justify-content: center;
}
#scrollTopBtn svg { 
    width: 24px; 
    height: 24px; 
}
#scrollTopBtn:hover {
    background-color: var(--bg-light);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}
@media (max-width: 768px) {
  #scrollTopBtn {
    bottom: 25px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}


/* Scroll to Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px; 
    right: 20px;
    z-index: 99;
    font-size: 18px;
    border: none; 
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.3s;
    width: 50px; 
    height: 50px;
    display: none;
    align-items: center; 
    justify-content: center;
}
#scrollTopBtn svg { 
    width: 24px; 
    height: 24px; 
}
#scrollTopBtn:hover {
    background-color: var(--bg-light);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}
@media (max-width: 768px) {
  #scrollTopBtn {
    bottom: 25px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
