/* ==========================================================================
   Deliver It — Modern Landing Page
   Brand: Primary Navy #0B1F4D, Secondary Blue #1D4ED8, Accent Yellow #FDB813
   ========================================================================== */

:root {
    --dnavy: #0B1F4D;
    --dblue: #1D4ED8;
    --dyellow: #FDB813;
    --dbg: #F8FAFC;
    --dwhite: #FFFFFF;
    --dtext: #111827;
    --dtext2: #6B7280;
    --dborder: #E5E7EB;
    --dshadow: 0 10px 40px rgba(0, 0, 0, .06);
    --dshadow-btn: 0 12px 30px rgba(29, 78, 216, .25);
    --dtransition: .3s ease;
    --radius: 14px;
    --radius-lg: 20px;
}

[data-theme="dark"] {
    --dbg: #0B1220;
    --dwhite: #111827;
    --dtext: #F9FAFB;
    --dtext2: #9CA3AF;
    --dborder: #1F2937;
    --dshadow: 0 10px 40px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body.landing-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--dtext);
    background: var(--dbg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.landing-page img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    background: var(--dwhite);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}

.landing-nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.landing-logo {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    transition: var(--dtransition);
}

.landing-logo:hover { transform: translateY(-2px); }

.landing-logo__img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    gap: .15rem;
}

.logo-deliver { color: var(--dnavy); }
.logo-it { color: var(--dyellow); }

[data-theme="dark"] .logo-deliver { color: var(--dtext); }

.landing-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-nav .nav-menu a {
    color: var(--dtext2);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    transition: var(--dtransition);
    position: relative;
}

.landing-nav .nav-menu a:hover,
.landing-nav .nav-menu a:focus {
    color: var(--dblue);
}

.landing-nav .nav-menu a:focus-visible {
    outline: 2px solid var(--dblue);
    outline-offset: 4px;
    border-radius: 4px;
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--dborder);
    border-radius: var(--radius);
    color: var(--dtext);
    cursor: pointer;
    transition: var(--dtransition);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    border-color: var(--dblue);
    color: var(--dblue);
    outline: none;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    right: 1.5rem;
    z-index: 1001;
    min-width: 180px;
    padding: .75rem;
    background: var(--dwhite);
    border: 1px solid var(--dborder);
    border-radius: var(--radius);
    box-shadow: var(--dshadow);
    flex-direction: column;
    gap: .25rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--dtext);
    text-decoration: none;
    padding: .75rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--dtransition);
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
    background: rgba(29,78,216,.08);
    color: var(--dblue);
    outline: none;
}

.mobile-menu a.btn-signup {
    background: var(--dnavy);
    color: #FFFFFF;
    font-weight: 600;
    text-align: center;
    margin-top: .25rem;
}

.mobile-menu a.btn-signup:hover,
.mobile-menu a.btn-signup:focus-visible {
    background: var(--dblue);
    color: #FFFFFF;
}

/* Theme toggle — modern pill override */
.theme-toggle-wrapper {
    margin-right: .25rem;
}

.theme-toggle-switch {
    width: 56px !important;
    height: 30px !important;
    background: var(--dborder) !important;
    border: none !important;
    border-radius: 999px !important;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.08) !important;
}

.theme-toggle-switch.active {
    background: var(--dnavy) !important;
}

.theme-toggle-slider {
    width: 24px !important;
    height: 24px !important;
    background: var(--dwhite) !important;
    top: 3px !important;
    left: 3px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.15) !important;
}

.theme-toggle-switch.active .theme-toggle-slider {
    transform: translateX(26px) !important;
    background: var(--dyellow) !important;
}

.theme-toggle-sun::before,
.theme-toggle-moon::before,
.theme-toggle-slider::after { content: none !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: none;
    border-radius: var(--radius);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--dtransition);
}

.btn:focus-visible {
    outline: 2px solid var(--dblue);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--dnavy);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(11, 31, 77, .2);
}

.btn-primary:hover {
    background: var(--dblue);
    transform: translateY(-2px);
    box-shadow: var(--dshadow-btn);
}

.btn-secondary {
    background: var(--dwhite);
    color: var(--dtext);
    border: 1px solid var(--dborder);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.btn-secondary:hover {
    border-color: var(--dblue);
    color: var(--dblue);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 78, 216, .12);
}

.btn-login {
    padding: .75rem 1rem;
    color: var(--dtext);
    background: transparent;
    font-weight: 500;
    border-radius: var(--radius);
}

.btn-login:hover { color: var(--dblue); background: rgba(29,78,216,.06); }

.btn-signup {
    padding: .875rem 1.75rem;
    background: var(--dnavy);
    color: #FFFFFF;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(11,31,77,.2);
}

.btn-signup:hover {
    background: var(--dblue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29,78,216,.25);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.landing-hero {
    padding: 160px 0 120px;
    background: var(--dbg);
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29,78,216,.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.landing-hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(253,184,19,.10) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp .8s ease forwards;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 1.5rem;
}

.hero-title .line-1 { color: var(--dnavy); }
.hero-title .line-2 { color: var(--dyellow); }

[data-theme="dark"] .hero-title .line-1 { color: var(--dtext); }

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--dtext2);
    max-width: 520px;
    margin: 0 0 2.5rem;
    line-height: 1.8;
}

.hero-subtitle strong { color: var(--dnavy); font-weight: 700; }
[data-theme="dark"] .hero-subtitle strong { color: var(--dyellow); }

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp .8s ease .2s forwards;
}

.hero-visual {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp .8s ease .4s forwards;
    padding-left: 2rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-image picture {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(29,78,216,.12),
        rgba(255,255,255,0)
    );
    z-index: -1;
}

.hero-image img {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
    transition: transform .4s ease;
    animation: float 6s ease-in-out infinite;
}

.hero-image img:hover {
    transform: translateY(-8px);
}

.hero-map {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(29,78,216,.08), rgba(253,184,19,.08));
    border-radius: 50%;
    position: relative;
    box-shadow: var(--dshadow);
    border: 1px solid var(--dborder);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-blob {
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(253,184,19,.18);
    border-radius: 50%;
    filter: blur(40px);
    top: 20%;
    right: 10%;
    z-index: 0;
}

.hero-route {
    position: absolute;
    width: 70%;
    height: 70%;
    border: 2px dashed rgba(29,78,216,.25);
    border-radius: 50%;
    top: 15%;
    left: 15%;
    z-index: 1;
}

.hero-bike {
    position: relative;
    z-index: 2;
    width: 140px;
    height: 140px;
    background: var(--dwhite);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--dshadow);
    color: var(--dnavy);
}

.hero-bike i { width: 72px; height: 72px; }

.hero-pin {
    position: absolute;
    z-index: 3;
    width: 56px;
    height: 56px;
    background: var(--dwhite);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    color: var(--dblue);
    animation: float 4s ease-in-out infinite;
}

.hero-pin i { width: 28px; height: 28px; }

.hero-pin--1 { top: 12%; left: 20%; animation-delay: 0s; }
.hero-pin--2 { top: 18%; right: 15%; animation-delay: 1.2s; color: var(--dyellow); }
.hero-pin--3 { bottom: 20%; left: 12%; animation-delay: .6s; }
.hero-pin--4 { bottom: 15%; right: 22%; animation-delay: 1.8s; color: var(--dnavy); }

.hero-package {
    position: absolute;
    z-index: 3;
    bottom: 8%;
    right: 8%;
    width: 72px;
    height: 72px;
    background: var(--dyellow);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dnavy);
    box-shadow: 0 10px 28px rgba(253,184,19,.3);
    animation: float 5s ease-in-out infinite;
}

.hero-package i { width: 36px; height: 36px; }

/* ==========================================================================
   Why Choose / Features
   ========================================================================== */

.landing-why {
    padding: 120px 0;
    background: var(--dwhite);
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dnavy);
    margin: 0 0 1rem;
}

[data-theme="dark"] .section-title { color: var(--dtext); }

.section-subtitle {
    text-align: center;
    color: var(--dtext2);
    max-width: 560px;
    margin: 0 auto 4rem;
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--dwhite);
    border: 1px solid var(--dborder);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    transition: var(--dtransition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--dshadow);
    border-color: rgba(29,78,216,.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dnavy);
}

.feature-icon.icon-fast { background: rgba(253,184,19,.12); color: var(--dyellow); }
.feature-icon.icon-coverage { background: rgba(29,78,216,.12); color: var(--dblue); }
.feature-icon.icon-secure { background: rgba(11,31,77,.08); color: var(--dnavy); }
.feature-icon.icon-track { background: rgba(16,185,129,.12); color: #10B981; }

.feature-icon i { width: 32px; height: 32px; }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 .75rem;
    color: var(--dtext);
}

.feature-card p {
    color: var(--dtext2);
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Target Audience
   ========================================================================== */

.landing-audience {
    padding: 120px 0;
    background: var(--dbg);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.audience-item {
    background: var(--dwhite);
    border: 1px solid var(--dborder);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    font-weight: 600;
    color: var(--dtext);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    transition: var(--dtransition);
}

.audience-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border-color: var(--dblue);
}

/* ==========================================================================
   Price Estimator
   ========================================================================== */

.landing-estimator {
    padding: 120px 0;
    background: var(--dwhite);
}

.estimator-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--dwhite);
    border: 1px solid var(--dborder);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--dshadow);
}

.estimator-card h2 {
    margin: 0 0 .5rem;
    color: var(--dnavy);
    font-size: 1.75rem;
}

[data-theme="dark"] .estimator-card h2 { color: var(--dtext); }

.estimator-card .lead { color: var(--dtext2); margin-bottom: 2rem; }

.form-group label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 600;
    color: var(--dtext);
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--dborder);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--dwhite);
    color: var(--dtext);
    transition: var(--dtransition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--dblue);
    box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}

.price-result {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(253,184,19,.1);
    border-radius: var(--radius);
    color: var(--dnavy);
    font-weight: 700;
    display: none;
}

.price-result h3 { margin: 0; font-size: 1.25rem; color: var(--dnavy); }

/* ==========================================================================
   Footer
   ========================================================================== */

.landing-footer {
    padding: 3rem 0;
    background: var(--dnavy);
    color: rgba(255,255,255,.7);
    text-align: center;
}

.landing-footer p { margin: 0; font-size: .95rem; }

.footer-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

.app-downloads {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.1rem;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius);
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.store-badge:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
}

.store-badge svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
    }

    .hero-content {
        order: 1;
        padding-right: 0;
    }

    .hero-visual {
        order: 2;
        width: 90%;
        margin: 40px auto 0;
        padding-left: 0;
    }

    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }

    .hero-image::before {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    .landing-header { height: 72px; }
    .landing-nav { height: 72px; gap: 1rem; }

    .nav-menu a:not(.btn) { display: none; }
    .landing-actions { display: none; }
    .menu-toggle { display: inline-flex; }
    .mobile-menu { top: 72px; }

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

    .hero-content { order: 1; }
    .hero-visual { order: 2; }

    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }

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

    .landing-hero .btn,
    .landing-estimator .btn,
    .hero-buttons .btn {
        width: 100%;
    }

    .mobile-menu { right: 1rem; }

    .landing-hero { padding: 120px 0 80px; }
    .landing-why,
    .landing-audience,
    .landing-estimator { padding: 80px 0; }

    .estimator-card { padding: 2rem; }

    .hero-image::before {
        width: 360px;
        height: 360px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }

    .landing-nav { gap: .75rem; }
    .mobile-menu { right: 1rem; }

    .logo-text { font-size: 1.15rem; }
    .landing-logo__img { height: 40px; }

    .landing-hero { padding: 100px 0 60px; }
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
    .hero-visual { width: 100%; margin-top: 32px; }

    .hero-image::before {
        width: 280px;
        height: 280px;
    }

    .section-title { font-size: 1.75rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2.5rem; }

    .feature-card { padding: 1.75rem 1.25rem; }
    .audience-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

    .estimator-card { padding: 1.25rem; }
    .landing-footer { padding: 2rem 0; }
}
