﻿/* =========================================================================
   DRIVE EASE - APP DOWNLOAD PAGE CSS
   Architecture: Mobile-First, Deep Integration with Global Variables
   ========================================================================= */

.bg-soft {
    background: var(--soft, #f1f6f5);
}

/* 1. PREMIUM HERO SECTION */
.dl-hero {
    position: relative;
    min-height: 100vh;
    background: var(--dark, #06151f);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 130px;
    padding-bottom: 80px;
    color: #fff;
}

.dl-hero-glow {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(7, 135, 206, 0.15), transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
}

.dl-hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    z-index: 2;
    position: relative;
    padding: 0 10px; /* Mobile Fix: Extra breathing room */
}

.dl-hero-text .eyebrow {
    margin-bottom: 20px;
}

.dl-hero-text h1 {
    font-size: clamp(40px, 7vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.dl-hero-text .text-gradient {
    background: linear-gradient(135deg, var(--sky) 0%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dl-hero-text .hero-lead {
    font-size: clamp(16px, 4vw, 18px);
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    max-width: 550px;
}

/* Custom Store Buttons */
.dl-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.dl-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px 24px;
    border-radius: 16px;
    color: #fff;
    transition: all 0.3s var(--ease);
    backdrop-filter: blur(10px);
}

    .dl-store-btn i {
        width: 28px;
        height: 28px;
    }

    .dl-store-btn div {
        display: flex;
        flex-direction: column;
    }

    .dl-store-btn small {
        font-size: 10px;
        opacity: 0.7;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .dl-store-btn strong {
        font-size: 16px;
        font-weight: 700;
        font-family: 'Manrope', sans-serif;
        margin-top: -2px;
    }

    .dl-store-btn:hover {
        background: rgba(255,255,255,0.15);
        border-color: rgba(255,255,255,0.3);
        transform: translateY(-3px);
    }

    .dl-store-btn.light-btn {
        background: #fff;
        color: var(--ink);
        border-color: transparent;
    }

        .dl-store-btn.light-btn:hover {
            background: var(--soft);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

/* Trust Indicators */
.dl-trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

    .dl-trust-indicators span {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 600;
        color: rgba(255,255,255,0.6);
    }

    .dl-trust-indicators i {
        color: var(--green);
        width: 16px;
        height: 16px;
    }

/* Phone Mockup (Pure CSS) */
.dl-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.dl-phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: #111;
    border-radius: 40px;
    border: 8px solid #2a2a2a;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 0 0 2px #444;
    overflow: hidden;
}

.dl-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #2a2a2a;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.dl-screen {
    position: absolute;
    inset: 0;
    background: #f8faf9;
    display: flex;
    flex-direction: column;
}

.dl-app-header {
    background: #fff;
    padding: 40px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    z-index: 2;
}

    .dl-app-header small {
        color: var(--muted);
        font-size: 10px;
        display: block;
        font-weight: 700;
        text-transform: uppercase;
    }

    .dl-app-header strong {
        color: var(--ink);
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

.dl-app-avatar {
    width: 40px;
    height: 40px;
    background: var(--soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

.dl-app-map {
    flex: 1;
    background: #eef4f3;
    position: relative;
    background-image: radial-gradient(rgba(7, 135, 206, 0.1) 2px, transparent 2px);
    background-size: 20px 20px;
}

.dl-map-route {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 80px;
    height: 100px;
    border: 4px dashed var(--blue);
    border-left: 0;
    border-bottom: 0;
    transform: translate(-50%, -50%);
    border-radius: 0 20px 0 0;
}

.dl-map-pin {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: var(--green);
    z-index: 2;
}

.dl-app-sheet {
    background: #fff;
    padding: 24px 20px;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    z-index: 2;
}

    .dl-app-sheet h3 {
        font-size: 18px;
        margin-bottom: 15px;
        color: var(--ink);
    }

.dl-input-mock {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--soft);
    padding: 14px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.dl-btn-mock {
    width: 100%;
    padding: 16px;
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
}

/* Floating Glass Cards */
.dl-float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 16px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 10;
}

    .dl-float-card i {
        color: var(--green);
        width: 18px;
        height: 18px;
    }

.dl-float-1 {
    top: 20%;
    left: -30px;
}

.dl-float-2 {
    bottom: 25%;
    right: -40px;
    color: var(--ink);
    background: rgba(255,255,255,0.9);
    border: none;
}

    .dl-float-2 i {
        color: var(--blue);
    }


/* 2. APP FEATURES */
.dl-features {
    padding: 120px 0;
}

.dl-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.dl-feature-card {
    background: #fff;
    padding: 30px 22px; /* Mobile Fix: Reduced padding so text has room */
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

    .dl-feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(7,135,206,0.08);
        border-color: rgba(7,135,206,0.2);
    }

.dl-icon-box {
    width: 56px;
    height: 56px;
    background: rgba(7,135,206,0.08);
    color: var(--blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.dl-feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--ink);
}

.dl-feature-card p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}


/* 3. HOW APP WORKS TIMELINE */
.dl-works {
    padding: 120px 0;
    background: #fff;
}

.dl-horizontal-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-left: 65px; /* Mobile Fix: Increased padding to push everything inward */
}

.dl-timeline-track {
    position: absolute;
    left: 25px; /* Mobile Fix: Shifted line inwards */
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--soft);
    border-radius: 2px;
}

.dl-timeline-progress {
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--blue), var(--sky));
    border-radius: 2px;
}

.dl-timeline-step {
    position: relative;
    padding-left: 0; /* Mobile Fix */
}

.dl-step-number {
    position: absolute;
    left: -58px; /* Mobile Fix: Perfectly centers circle on the track */
    top: -4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--blue);
    box-shadow: 0 0 0 8px #fff;
    z-index: 2;
}

.dl-timeline-step h3 {
    font-size: 22px;
    color: var(--ink);
    margin: 0 0 10px;
}

.dl-timeline-step p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}


/* 4. APP SCREEN SHOWCASE */
.dl-showcase {
    padding: 140px 0;
}

.dl-showcase-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

.dl-showcase-text h2 {
    font-size: clamp(36px, 5vw, 56px);
    margin: 20px 0;
    line-height: 1.1;
}

.dl-showcase-text p {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    max-width: 500px;
}

.dl-showcase-mockups {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
}

.dl-mockup-back {
    position: absolute;
    left: 10%;
    top: 40px;
    transform: scale(0.9);
    opacity: 0.6;
    filter: blur(2px);
    z-index: 1;
}

.dl-mockup-front {
    position: absolute;
    z-index: 2;
    right: 10%;
    top: 0;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}


/* 5. WHY USE DRIVE EASE */
.dl-compare {
    padding: 120px 0;
}

.dl-compare-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    position: relative;
    margin-bottom: 60px;
}

.dl-comp-panel {
    background: #fff;
    padding: 35px 22px; /* Mobile Fix: Reduced horizontal padding */
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

    .dl-comp-panel.premium {
        background: var(--dark);
        color: #fff;
        box-shadow: 0 30px 60px rgba(7,135,206,0.15);
        border-color: rgba(7,135,206,0.3);
    }

.comp-header {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
}

.dl-comp-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.dl-comp-panel li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
}

.traditional li {
    color: var(--muted);
}

.traditional i {
    color: #e74c3c;
}

.premium i {
    color: var(--green);
}

.dl-comp-vs {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--blue);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin: -30px auto;
    position: relative;
    z-index: 5;
}

/* Counters */
.dl-counters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.dl-counter-item h3 {
    font-size: 48px;
    font-weight: 800;
    color: var(--blue);
    margin: 0 0 5px;
}

.dl-counter-item p {
    font-size: 15px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}


/* 6. FINAL CTA */
.dl-cta-section {
    background: radial-gradient(circle at center, var(--dark) 0%, #030a10 100%);
    color: #fff;
    text-align: center;
    padding: 140px 24px;
    position: relative;
    overflow: hidden;
}

.dl-cta-road {
    position: absolute;
    inset: auto 0 -45%;
    z-index: 1;
    pointer-events: none;
}

    .dl-cta-road span {
        display: block;
        margin: auto;
        width: 80%;
        max-width: 600px;
        height: 600px;
        background: linear-gradient(#173d47, #081c24);
        clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
    }

    .dl-cta-road i {
        position: absolute;
        left: 50%;
        top: 15%;
        height: 75%;
        border-left: 4px dashed rgba(255,255,255,0.2);
        animation: routeFlow 1.5s linear infinite;
    }

.dl-moving-car {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translateX(-50%);
    width: 40px;
    height: 80px;
    background: var(--blue);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.dl-cta-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(7,135,206,0.15), transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.dl-cta-content {
    position: relative;
    z-index: 3;
}

    .dl-cta-content h2 {
        font-size: clamp(36px, 6vw, 64px);
        margin-bottom: 24px;
        letter-spacing: -0.03em;
    }

    .dl-cta-content p {
        color: rgba(255,255,255,0.7);
        font-size: 18px;
        max-width: 550px;
        margin: 0 auto;
    }

@keyframes routeFlow {
    to {
        transform: translateY(50px);
    }
}


/* =======================================================
   DESKTOP ENHANCEMENTS (min-width: 1024px)
   ======================================================= */
@media (min-width: 1024px) {
    /* Hero */
    .dl-hero-container {
        grid-template-columns: 1.15fr 0.85fr;
        text-align: left;
        padding: 0; /* Desktop Restore */
    }

    .dl-hero-text .eyebrow {
        margin: 0 0 20px 0;
    }

    .dl-store-buttons {
        justify-content: flex-start;
    }

    .dl-float-1 {
        left: -60px;
    }

    .dl-float-2 {
        right: -60px;
    }

    /* Features */
    .dl-feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .dl-feature-card {
        padding: 35px 30px; /* Desktop Restore */
    }

    /* Timeline */
    .dl-horizontal-timeline {
        flex-direction: row;
        padding: 0;
        padding-top: 40px;
        gap: 0;
    }

    .dl-timeline-track {
        left: 0;
        top: 0;
        bottom: auto;
        width: 100%;
        height: 4px;
    }

    .dl-timeline-progress {
        width: 0;
        height: 100%;
        background: linear-gradient(to right, var(--blue), var(--sky));
    }

    .dl-timeline-step {
        flex: 1;
        padding-left: 0;
        padding-top: 40px;
        text-align: center;
    }

    .dl-step-number {
        left: 50%;
        top: -18px;
        transform: translateX(-50%);
        width: 44px;
        height: 44px;
        font-size: 16px;
        box-shadow: 0 0 0 10px #fff;
    }

    /* Showcase */
    .dl-showcase-content {
        grid-template-columns: 1fr 1fr;
    }

    .dl-mockup-back {
        left: 10%;
        top: 40px;
    }

    .dl-mockup-front {
        right: 20%;
        top: 0;
    }

    /* Compare */
    .dl-compare-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 60px;
        margin-bottom: 80px;
    }

    .dl-comp-panel {
        padding: 40px 30px; /* Desktop Restore */
    }

        .dl-comp-panel.premium {
            transform: scale(1.05);
        }

    .dl-comp-vs {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        width: 64px;
        height: 64px;
        font-size: 20px;
    }

    .dl-counters {
        grid-template-columns: repeat(3, 1fr);
    }

    /* CTA */
    .dl-cta-section {
        padding: 180px 0;
    }

    .dl-cta-glow {
        width: 1000px;
        height: 1000px;
    }
}


/* =======================================================
   MOBILE ENHANCEMENTS (max-width: 560px)
   ======================================================= */
@media (max-width: 560px) {
    .dl-store-buttons {
        flex-wrap: nowrap !important; /* Ek line me force karne ke liye */
        gap: 8px !important;
        width: 100%;
    }

    .dl-store-btn {
        flex: 1; /* Dono buttons ko 50-50 space dene ke liye */
        padding: 10px 5px;
        gap: 6px;
        justify-content: center;
    }

        .dl-store-btn i {
            width: 22px;
            height: 22px;
        }

        .dl-store-btn small {
            font-size: 8px;
            letter-spacing: 0;
        }

        .dl-store-btn strong {
            font-size: 13px; /* Mobile par fit aane ke liye font size adjust kiya */
        }
}
/* =======================================================
   SHOWCASE MOBILE FIX (max-width: 1023px)
   ======================================================= */
@media (max-width: 1023px) {
    .dl-showcase-mockups {
        height: 450px;
        margin-top: 50px; /* Parallax se overlap rokne ke liye space */
        transform: scale(0.75); /* Screen par fit karne ke liye chota kiya */
        transform-origin: top center;
    }
    
    .dl-mockup-back {
        left: -10px;
        top: 0;
    }
    
    .dl-mockup-front {
        right: -10px;
        top: 100px; /* Dono phone ko cleanly stagger kiya */
    }
}

