:root {
    /* Vibrant Professional Palette */
    --primary: #4F46E5;
    /* Indigo 600 */
    --primary-dark: #4338ca;
    --secondary: #7C3AED;
    /* Violet 600 */
    --accent: #EC4899;
    /* Pink 500 */

    --bg-white: #FFFFFF;
    --bg-gray: #F9FAFB;
    /* Gray 50 */

    --text-main: #111827;
    /* Gray 900 */
    --text-muted: #6B7280;
    /* Gray 500 */
    --text-light: #F3F4F6;
    /* Gray 100 */

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    --gradient-text: linear-gradient(135deg, #4F46E5 0%, #EC4899 100%);

    /* Shadows - Deep & Soft */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);

    /* Layout */
    --container-width: 1200px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-padding {
    padding: 100px 0;
}

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

.text-white {
    color: white !important;
}

.text-white p {
    color: rgba(255, 255, 255, 0.9);
}

/* Navigation */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 24px 0;
}

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

.logo {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    margin-left: 32px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: white;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    color: white !important;
}

/* Language Selector */
.lang-selector {
    margin-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.lang-current {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* Hero Section */
.hero {
    position: relative;
    background: var(--gradient-hero);
    min-height: 100vh;
    /* Changed from 900px to min-height 100vh */
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Space for navbar */
    padding-bottom: 120px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    overflow: hidden;
}

/* Geometric Overlay Pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-grid>* {
    position: relative;
    z-index: 20;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-xl);
}

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

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

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 3D Phone Mockup */
/* 3D Phone Frame (Static) */
.phone-frame {
    width: 280px;
    height: 580px;
    /* Fixed height for frame */
    /* 3D Transform applies to the frame */
    transform: rotateY(-15deg) rotateX(5deg);
    border-radius: 40px;
    box-shadow:
        50px 50px 100px rgba(0, 0, 0, 0.3),
        -5px -5px 20px rgba(255, 255, 255, 0.1) inset;
    border: 8px solid #111;
    background: #000;
    position: relative;
    /* Context for absolute images */
    overflow: hidden;
    /* Clip images to rounded corners */
    transition: transform 0.5s ease;
    /* Hover effect only */
}

.mockup-container {
    position: relative;
    perspective: 1500px;
    z-index: 5;
    width: 280px;
    /* Match image width */
    height: 580px;
    /* Approx height for iPhone aspect ratio */
    margin: 0 auto;
    /* Center it */
}

.mockup-container:hover .phone-frame {
    transform: rotateY(-10deg) rotateX(2deg) translateY(-20px);
}

/* Sliding Screen Images */
.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;

    /* Default: Waiting on Right */
    transform: translateX(100%);
    opacity: 1;
    /* Keep opacity 1 if we want solid slide, or fade too */
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.mockup-img.active {
    /* Active: Center */
    transform: translateX(0);
    z-index: 10;
}

.mockup-img.exit {
    /* Exit: Move to Left */
    transform: translateX(-100%);
    z-index: 1;
}

/* Floating Stats Cards */
.float-card {
    position: absolute;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 6s infinite ease-in-out;
    z-index: 20;
}

.float-card h4 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin: 0;
}

.float-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.float-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.float-2 {
    bottom: 20%;
    left: -40px;
    animation-delay: 2s;
}

@keyframes float {

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

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

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--bg-gray);
    position: relative;
}

.section-header {
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-text);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #EEF2FF;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.feature-card:nth-child(2n) .icon-box {
    background: #FDF2F8;
    color: var(--accent);
}

.feature-card:nth-child(3n) .icon-box {
    background: #F5F3FF;
    color: var(--secondary);
}

/* Marquee Section */
.marquee-wrapper {
    background: white;
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 40px;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.flag-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    background: var(--bg-gray);
    padding: 12px 24px;
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Screenshots Gallery */
.screenshot-showcase {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0 60px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE */
    justify-content: center;
    flex-wrap: wrap;
}

.screenshot-showcase::-webkit-scrollbar {
    display: none;
}

.app-screen {
    width: 260px;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
    border: 4px solid #111;
}

.app-screen:hover {
    transform: translateY(-10px) scale(1.02);
    z-index: 5;
}

/* Footer (Dark) */
.footer-dark {
    background: #0F172A;
    /* Slate 900 */
    color: white;
    padding: 80px 0 40px;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    margin-top: -60px;
    /* Overlap effect */
    position: relative;
    z-index: 10;
}

.footer-dark h4 {
    color: white;
    margin-bottom: 24px;
}

.footer-dark a {
    color: #94A3B8;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-dark a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    margin-top: 60px;
    padding-top: 32px;
    text-align: center;
    color: #64748B;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 80px;
    }

    .hero-grid .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .mockup-container {
        width: 100%;
        margin: 0 auto;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .float-card {
        display: none;
    }

    /* Hide floating cards on mobile to prevent clutter */
}

@media (max-width: 640px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    h1 {
        font-size: 2.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Footer mobile layout */
    .footer-dark .container>div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }

    .footer-dark img {
        width: 100px !important;
    }

    /* Timeline mobile */
    .timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding-left: 20px;
    }

    .timeline-badge {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }

    /* Hero buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }

    /* Logo */
    .logo span {
        font-size: 1rem !important;
    }

    .logo img {
        height: 35px !important;
    }

    /* Phone mockup */
    .mockup-container {
        width: 220px !important;
        height: 450px !important;
    }

    .phone-frame {
        width: 220px !important;
        height: 450px !important;
        /* Reduce box-shadow to prevent overflow */
        box-shadow:
            20px 20px 40px rgba(0, 0, 0, 0.3),
            -5px -5px 20px rgba(255, 255, 255, 0.1) inset !important;
    }

    /* Section padding */
    section {
        padding: 60px 0 !important;
    }

    /* Version history */
    .timeline-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    /* Container max-width */
    .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Prevent any element from causing overflow */
    * {
        max-width: 100%;
    }

    /* Fix hero grid */
    .hero-grid {
        overflow: hidden;
    }

    /* Navbar */
    .navbar {
        padding: 12px 0;
    }

    .nav-content {
        padding: 0 16px;
    }
}