:root {
    --primary-color: #34C759;
    /* WeHelp Green */
    --primary-dark: #248a3d;
    --text-main: #1d1d1f;
    --text-secondary: #86868b;
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-lg: 24px;
    --radius-xl: 40px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.btn-app-store {
    display: inline-block;
    transition: var(--transition);
}

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

.btn-app-store img {
    height: 50px;
    width: auto;
}

/* --- Hero Section (Map) --- */
.hero {
    text-align: center;
    padding: 80px 0 40px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.map-showcase {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
    aspect-ratio: 16/9;
    background: #e1e1e1;
    /* Placeholder */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 4px solid #fff;
}

.map-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-weight: 600;
}

/* --- Horizontal Requests List --- */
.live-requests {
    padding: 80px 0;
    overflow: hidden;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
}

.scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 24px 40px;
    /* Bottom padding for shadow */
    margin: 0 -24px;
    /* Bleed to edges on mobile */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Hide scrollbar */
.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.request-card {
    flex: 0 0 320px;
    /* Fixed width */
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: center;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.request-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.req-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.req-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eee;
    margin-right: 12px;
    object-fit: cover;
}

.req-meta {
    display: flex;
    flex-direction: column;
}

.req-name {
    font-weight: 600;
    font-size: 1rem;
}

.req-dist {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.req-body {
    margin-bottom: 16px;
    flex-grow: 1;
}

.req-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.req-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.req-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f2f2f7;
}

.req-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(52, 199, 89, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.req-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Features Section --- */
.feature-section {
    padding: 80px 0;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
    justify-content: center;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    max-width: 450px;
}

.feature-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
}

.feature-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.feature-visual {
    flex: 1;
    max-width: 400px;
    position: relative;
}

/* Phone Mockup Styling */
.phone-mockup {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 9/19.5;
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

/* --- Footer --- */
footer {
    padding: 60px 0;
    border-top: 1px solid #eee;
    background: #fff;
}

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

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links a {
    margin-left: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .feature-block {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .feature-block.reverse {
        flex-direction: column;
    }

    .feature-text {
        margin: 0 auto;
    }

    .map-showcase {
        border-radius: 20px;
        margin-top: 24px;
    }

    .container {
        padding: 0 20px;
    }
}

/* --- Category Pills --- */
.category-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #eee;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

.pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pill.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* --- Reviews --- */
.reviews-section {
    padding: 80px 0;
    background: #fff;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: #f9f9f9;
    padding: 32px;
    border-radius: 24px;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 24px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.review-author span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- Bottom CTA Banner --- */
.bottom-cta {
    padding: 0 0 80px;
}

.cta-banner {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8800 100%);
    /* Hacoo Orange Style, or change to Green */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    /* WeHelp Green */
    border-radius: 40px;
    padding: 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(52, 199, 89, 0.3);
}

.cta-content {
    flex: 1;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: #fff;
}

.cta-list {
    list-style: none;
    margin-bottom: 32px;
}

.cta-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.cta-list li::before {
    content: "✓";
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.cta-image {
    width: 300px;
    height: 400px;
    position: relative;
    margin-right: -40px;
    margin-bottom: -100px;
    transform: rotate(-10deg);
}

.cta-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .cta-image {
        display: none;
    }

    .cta-list {
        display: inline-block;
        text-align: left;
    }

    /* Mobile adjustments for new visuals */
    .visual-showcase {
        height: 350px;
    }

    .badge-float {
        transform: scale(0.9);
    }
}

/* --- Custom Leaderboard Visual --- */
.visual-showcase {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaderboard-card {
    background: #fff;
    padding: 24px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 300px;
    z-index: 10;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lb-header h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.lb-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f7;
}

.lb-row:last-child {
    border-bottom: none;
}

.lb-rank {
    font-weight: 700;
    color: #ccc;
    width: 24px;
    font-size: 1.1rem;
}

.lb-row.top-1 .lb-rank {
    color: #FFD700;
}

/* Gold for #1 */

.lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0 12px;
    object-fit: cover;
}

.lb-name {
    flex-grow: 1;
    font-weight: 600;
    font-size: 1rem;
}

.lb-points {
    font-weight: 700;
    color: var(--primary-color);
}

/* Floating Badges */
.badge-float {
    position: absolute;
    background: #fff;
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 4s ease-in-out infinite;
    z-index: 20;
    border: 2px solid #fff;
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.badge-1 {
    top: 20px;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 40px;
    left: -30px;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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