:root {
    /* Professional Dark Theme Palette */
    --bg-body: #0B0F19;
    /* Deep Slate/Black */
    --bg-surface: #111827;
    /* Slightly lighter for cards */
    --primary: #10B981;
    /* Emerald Green - Professional & Trustworthy */
    --primary-hover: #059669;
    --accent: #3B82F6;
    /* Professional Blue */
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(17, 24, 39, 0.7);

    --container-width: 1200px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Store Buttons */
.store-btn {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s;
}

.store-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.store-btn img {
    height: 48px;
    /* Standard visible height */
    width: auto;
}

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

body {
    -webkit-font-smoothing: antialiased;
    /* Crisp text on Mac */
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.025em;
    /* Tighter tracking for modern look */
    line-height: 1.2;
    color: #fff;
}

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

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(11, 15, 25, 0.8);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    /* Align lang selector to right */
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    /* Sharper corners */
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2), 0 2px 4px -1px rgba(16, 185, 129, 0.1);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 90vh;
    /* Fill most of screen */
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Background Gradients (Vibrant & Colorful) */
.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Reduced blur for more defined color */
    z-index: 0;
    opacity: 0.6;
    /* Increased opacity for vibrancy */
    animation: drift 20s infinite alternate;
}

@keyframes drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(30px, -30px);
    }
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(16, 185, 129, 0) 70%);
    /* Stronger Emerald */
    top: -150px;
    right: -100px;
}

.circle-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0) 70%);
    /* Stronger Blue */
    bottom: -100px;
    left: -100px;
}

/* Add a third splash of color for "More Colorful" request */
.circle-3 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0) 70%);
    /* Violet */
    top: 40%;
    left: 40%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: 0;
}

/* Hero Layout Grid */
.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1.1fr 0.9fr;
        /* Give text slightly more space */
        align-items: center;
        /* Vertically center */
        text-align: left;
    }
}

/* Hero Text Side */
.hero-text-col {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    /* Full pill for modern look */
    color: #34D399;
    /* Brighter Green */
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Make text pop against dark bg */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #CBD5E1;
    /* Lighter gray for better contrast */
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
        /* Larger on desktop */
        line-height: 1.1;
    }
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Stats "Trust Bar" */
.hero-stats {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Image/Animation Side */
.hero-visual-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
}

/* Animation Container */
.hero-animation-container {
    position: relative;
    width: 300px;
    /* iPhone width */
    height: 600px;
    perspective: 2000px;
    /* Better perspective */
}

/* Phone Mockup (Sleek Pro Style) */
.phone-mockup {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 40px;
    /* Match iPhone corners */
    border: 4px solid #333;
    /* Thinner bezel */
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease-out;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Use the screenshot as background */
.map-bg {
    width: 100%;
    height: 100%;
    background-image: url('../assets/app_screenshot.png');
    background-size: cover;
    background-position: center;
    /* Darken slightly to make text pop */
    filter: brightness(0.9);
}

/* Dynamic overlay elements */
.live-activity-card {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(22, 22, 22, 0.9);
    /* Dark glass */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 20;
    /* Subtle float animation */
    animation: float-activity 4s ease-in-out infinite;
}

@keyframes float-activity {

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

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

.activity-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 0.75rem;
    color: #cbd5e1;
}

.log-popup {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #0F172A;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    animation: log-pop 4s ease-out infinite;
    animation-delay: 1.5s;
    z-index: 30;
}

@keyframes log-pop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    80% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Sections */
.features-section,
.benefits-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #fff;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Benefit Cards (Alternative Layout) */
.benefits-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.benefit-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 1.5rem;
    padding: 10px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    color: var(--primary);
}

/* Footer */
.site-footer {
    background: #05080F;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-heading {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.site-footer p {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 40px;
    font-size: 0.85rem;
    color: #64748B;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}