/* =========================================
   LANDING.CSS - Landing Page Styles
   Uses design tokens from base.css
   ========================================= */

/* =========================================
   1. COMPONENTS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base) var(--easing-default);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-orange) 100%);
    color: white;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -3px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.btn-secondary:hover {
    background-color: rgba(249, 115, 22, 0.1);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.badge {
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--primary-orange);
    padding: 4px 12px;
    border-radius: var(--radius-xxl);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
}

.view-all-link {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-all-link:hover {
    gap: 12px;
}

/* =========================================
   2. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-orange);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-secondary);
}

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

.mobile-menu-icon {
    display: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    transition: color var(--transition-base);
}

.mobile-menu-icon:hover {
    color: var(--primary-orange);
}

.mobile-menu-icon.active {
    color: var(--primary-orange);
}

/* =========================================
   3. HERO SECTION & THREE.JS CONTAINER
   ========================================= */
.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    position: relative;
}

#hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
}

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

.store-badge {
    background-color: #000;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    min-width: 160px;
    transition: transform var(--transition-base);
}

.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}

.store-badge i {
    font-size: 24px;
}

.store-badge div {
    display: flex;
    flex-direction: column;
}

.store-badge span {
    font-size: 10px;
}

.store-badge strong {
    font-size: 16px;
    line-height: 1.2;
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
    border: 8px solid #262626;
}

.phone-screen {
    background: var(--bg-surface);
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    padding-top: 40px;
}

/* Mockup UI Details */
.app-header {
    padding: 0 16px 16px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--text-primary);
}

.map-mockup {
    height: 220px;
    background-color: #e5e5e5;
    background-image: radial-gradient(#d4d4d4 1px, transparent 1px);
    background-size: 10px 10px;
    position: relative;
}

.pin {
    position: absolute;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--primary-orange);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.pin-1 { top: 25%; left: 35%; }
.pin-2 { top: 55%; left: 75%; }
.pin-me { top: 45%; left: 50%; width: 20px; height: 20px; background: var(--primary-orange); border: 3px solid white; }

.activity-card-mock {
    background: white;
    margin: 12px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.activity-card-mock.up-front {
    position: absolute;
    bottom: 20px;
    left: 12px;
    right: 12px;
    margin: 0;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.activity-card-mock .tag {
    background: var(--primary-orange);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 700;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.distance {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.activity-card-mock h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.activity-card-mock .time {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.participants {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.participants .bar {
    height: 6px;
    background: #F3F4F6;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.participants .fill {
    height: 100%;
    background: var(--secondary-gold);
    border-radius: 3px;
}

.btn-mock {
    width: 100%;
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

/* Hero Extensions */
.badge-new {
    display: inline-block;
    background-color: #FFF7ED;
    color: var(--primary-orange);
    border: 1px solid var(--primary-orange);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* =========================================
   4. STATS BAR
   ========================================= */
.stats-bar {
    background-color: var(--text-primary);
    color: white;
    padding: 32px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.stats-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #A3A3A3;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: #404040;
}

/* =========================================
   5. SECTIONS GENERIQUES & SPORTS
   ========================================= */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Sports Grid */
.text-center-sub {
    text-align: center;
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 12px;
}

.text-center-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 56px;
    font-weight: 800;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px;
}

.sport-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.sport-card:hover {
    border-color: var(--primary-orange);
    background: white;
    box-shadow: var(--shadow-brand);
    transform: translateY(-5px);
}

.sport-card i {
    font-size: 40px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    display: block;
}

.sport-card span {
    font-weight: 700;
    font-size: 15px;
}

/* =========================================
   6. HOW IT WORKS & FEATURES
   ========================================= */
.bg-surface {
    background-color: var(--bg-surface);
}

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

.step-item {
    position: relative;
    padding-top: 24px;
}

.step-number {
    font-size: 64px;
    font-weight: 900;
    color: rgba(249, 115, 22, 0.15);
    position: absolute;
    top: 0;
    left: -16px;
    z-index: 0;
    line-height: 1;
}

.step-item h3 {
    position: relative;
    font-size: 24px;
    margin-bottom: 16px;
    z-index: 1;
}

.step-item p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: rgba(249, 115, 22, 0.3);
}

.icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #FFF7ED, #FEF3C7);
    color: var(--primary-orange);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================
   7. HIGHLIGHT SECTION (Gamification) & THREE.JS
   ========================================= */
.section-highlight {
    background: linear-gradient(180deg, var(--bg-white) 0%, #FFF7ED 100%);
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

#gamification-canvas-container {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150%;
    height: 200%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

.image-block {
    position: relative;
    z-index: 1;
}

.feature-list {
    margin-top: 32px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.li-icon {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    font-size: 18px;
}

.feature-list strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.feature-list p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Stats Decoration Card */
.stats-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-brand);
    text-align: center;
    max-width: 340px;
    margin: 0 auto;
    border: 1px solid rgba(249, 115, 22, 0.1);
    position: relative;
}

.rank-badge {
    background: linear-gradient(135deg, var(--secondary-gold), var(--gold-light));
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.stars-display {
    font-size: 56px;
    font-weight: 800;
    color: var(--secondary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.stats-card > p {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 32px;
}

.mini-leaderboard {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 16px;
    text-align: left;
    font-size: 14px;
}

.mini-leaderboard .row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    color: var(--text-primary);
}

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

.mini-leaderboard .dim {
    color: var(--text-secondary);
    font-weight: 500;
}

/* =========================================
   8. TESTIMONIALS, ORG & FAQ
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xxl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.testimonial-card .stars {
    color: var(--secondary-gold);
    font-size: 16px;
    margin-bottom: 24px;
}

.testimonial-card p {
    font-size: 18px;
    margin-bottom: 32px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

.user-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.user-info span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Org Banner */
.org-banner {
    background: linear-gradient(135deg, #18181B, #27272A);
    border-radius: 32px;
    padding: 80px 64px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.org-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.1), transparent 60%);
    pointer-events: none;
}

.badge-dark {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    display: inline-block;
    font-weight: 700;
}

.org-content h3 {
    font-size: 40px;
    margin-bottom: 24px;
    font-weight: 800;
}

.org-content p {
    color: #A1A1AA;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
}

.org-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item[open] {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] summary {
    color: var(--primary-orange);
    border-bottom: 1px solid var(--bg-surface);
}

.faq-item summary i {
    transition: transform 0.3s;
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 24px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* =========================================
   9. FOOTER
   ========================================= */
.footer {
    background-color: var(--bg-surface);
    padding: 100px 0 32px;
    border-top: 1px solid var(--border-color);
}

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

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 15px;
    transition: color 0.2s;
}

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

.brand-col p {
    color: var(--text-secondary);
    margin: 24px 0 32px;
    font-size: 16px;
    max-width: 280px;
    line-height: 1.6;
}

.socials {
    display: flex;
    gap: 24px;
    font-size: 24px;
}

.socials a:hover {
    color: var(--primary-orange);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* =========================================
   10. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .hero h1 { font-size: 48px; }
    .split-layout { gap: 48px; }
    .steps-grid { gap: 32px; }
}

@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 16px 20px;
        border-radius: var(--radius-md);
        transition: background var(--transition-base);
    }

    .nav-links a:hover {
        background: rgba(249, 115, 22, 0.08);
    }

    .nav-links .btn {
        margin-top: 8px;
        text-align: center;
    }

    .mobile-menu-icon { display: block; }

    .hero { padding-top: 120px; padding-bottom: 60px; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 64px; }
    .hero-subtitle { margin: 0 auto 40px; }
    .cta-group { justify-content: center; }
    .phone-mockup { margin-top: 0; }

    .stats-wrapper { flex-direction: column; gap: 32px; }
    .stat-divider { width: 80px; height: 1px; }
    .stat-number { font-size: 48px; }

    .split-layout { grid-template-columns: 1fr; text-align: center; }
    .image-block { order: -1; margin-bottom: 48px; }
    .feature-list li { justify-content: center; text-align: left; }

    .steps-grid { grid-template-columns: 1fr; gap: 48px; max-width: 500px; margin: 0 auto; }
    .step-item { text-align: center; }
    .step-number { left: 50%; transform: translateX(-50%); }

    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
    .brand-col p { margin: 24px auto; }
    .socials { justify-content: center; }

    /* Three.js Mobile adjustments */
    #gamification-canvas-container {
        width: 100%;
        height: 100%;
        top: 0; left: 0;
        opacity: 0.5;
    }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 40px; }
    .section-header h2 { font-size: 28px; }
    .sports-grid { grid-template-columns: repeat(2, 1fr); }
    .org-banner { padding: 48px 24px; }
    .org-content h3 { font-size: 28px; }
}
