/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
/* Phosphor Icons */
@import url("https://unpkg.com/@phosphor-icons/web/src/bold/style.css");

:root {
    /* Premium Palette */
    --primary: #FF6B6B;
    /* Light Red - Warmth */
    --primary-hover: #ff5252;
    --dark: #1A1A1A;
    /* Soft Black - Premium Text */
    --gray: #666666;
    /* Secondary Text */
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --surface: #F9FAFB;
    /* Off-white background */

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Header */
/* Header */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.2rem 0;
    transition: 0.3s;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
    position: relative;
}

.nav-header {
    display: none;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid var(--dark);
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {

    /* Side Drawer Mobile Menu */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -320px;
        /* Hidden off-screen right */
        width: 300px;
        /* Fixed width drawer */
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        /* Align left inside drawer */
        padding: 2rem;
        gap: 2rem;
        z-index: 2000;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        /* Apple-like easing */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        border-left: 1px solid rgba(0, 0, 0, 0.05);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: none !important;
        /* Reset transforms */
        border-top: none;
        overflow-y: auto;
        /* Allow menu scrolling */
    }

    /* Toggle Logic */
    .nav-toggle-checkbox:checked~.nav-links {
        right: 0;
        /* Slide In */
    }

    /* Backdrop */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        /* Darken bg */
        backdrop-filter: blur(4px);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    .nav-toggle-checkbox:checked~.nav-backdrop {
        opacity: 1;
        visibility: visible;
    }

    /* Menu Header inside Drawer */
    .nav-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 1rem;
        border-bottom: 1px solid #eee;
        margin-bottom: 1rem;
    }

    .nav-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--dark);
    }

    .close-toggle {
        font-size: 1.5rem;
        color: var(--gray);
        cursor: pointer;
        padding: 0.5rem;
        transition: 0.3s;
    }

    .close-toggle:hover {
        color: var(--primary);
        transform: rotate(90deg);
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1501;
        position: relative;
    }

    /* Staggered Animation for Menu Items */
    .nav-toggle-checkbox:checked~.nav-links .nav-item,
    .nav-toggle-checkbox:checked~.nav-links .auth-buttons {
        animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        opacity: 0;
        transform: translateX(20px);
    }

    .nav-toggle-checkbox:checked~.nav-links .nav-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .nav-toggle-checkbox:checked~.nav-links .nav-item:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav-toggle-checkbox:checked~.nav-links .nav-item:nth-child(4) {
        animation-delay: 0.3s;
    }

    .nav-toggle-checkbox:checked~.nav-links .nav-item:nth-child(5) {
        animation-delay: 0.4s;
    }

    .nav-toggle-checkbox:checked~.nav-links .auth-buttons {
        animation-delay: 0.5s;
    }

    @keyframes slideInRight {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Refined Mobile Link Styling - Reverted to Old Style but with correct flex for structure */
    .nav-links .nav-item {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.8rem 0;
        border-bottom: 1px dashed #f5f5f5;
        /* Old Dashed Border */
        font-weight: 500;
        /* Old Font Weight */
        color: var(--dark);
        display: flex;
        /* Keep flex for alignment if needed */
        align-items: center;
        justify-content: space-between;
    }

    .nav-links .nav-item:hover {
        /* Removed slide effect and primary color hover to match 'old' style preference (or keep simple) */
        /* If old style had hover, it wasn't specified in previous 'style.css' view, usually just default link hover */
    }

    /* Restore Auth Button Layout */
    .nav-links .auth-buttons {
        margin-top: auto;
        width: 100%;
        display: flex;
        /* Ensure display flex is explicitly set if not inherited */
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links .btn-primary,
    .nav-links .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

/* Hero Section - 3 Column Layout */
.hero-section {
    padding: 2rem 0 4rem;
    overflow: hidden;
    background: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

/* Left Column: Text */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFFFFF;
    /* Was #FFF1F1 (Pinkish), changing to White */
    border: 1px solid #E5E5E5;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.dot-red {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.hero-title-large {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 400px;
}

.hero-features {
    display: flex;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.border-red {
    border: 1px solid #FFEBEB;
    background: #FFF9F9;
}

.border-green {
    border: 1px solid #E6FAF0;
    background: #F2FCF7;
}

.text-red {
    color: var(--primary);
}

.text-green {
    color: #00BA5D;
}

.feature-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    line-height: 1.2;
}

.text-xs {
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 0.05em;
}

/* Center Column: Image */
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    /* Optional shadow if image is square/cutout */
    /* filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); */
}

/* Right Column: Card */
.courier-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
}

.form-group {
    margin-bottom: 1.2rem;
}

.input-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #999;
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2rem;
    /* Left padding for dot */
    border: 1px solid #EEE;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--dark);
    background: #F9FAFB;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #FFF;
}

.dot-indicator {
    position: absolute;
    left: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 2;
}

.dot-indicator.green {
    background: #00BA5D;
}

.dot-indicator.red {
    background: var(--primary);
}

.right-icon {
    position: absolute;
    right: 12px;
    color: #BBB;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
}

.btn-red {
    background: var(--primary);
    /* Deeper red for CTA */
    color: #FFF;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-red:hover {
    background: var(--primary-hover);
}

.start-price {
    font-size: 0.8rem;
    text-align: center;
    color: #999;
    margin-top: 0.8rem;
    font-weight: 500;
}

/* Problem Section */
.section-problem {
    padding: 6rem 1rem;
    background: var(--white);
    text-align: center;
}

.problem-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.problem-text {
    font-size: 1.25rem;
    color: var(--gray);
    line-height: 1.8;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

/* How It Works - 3 Step Process */
.section-process {
    padding: 6rem 1rem;
    background: var(--surface);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    position: relative;
}

/* Dashed Line Connector (Desktop) */
.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    border-top: 2px dashed #ddd;
    z-index: 0;
}

.process-card {
    text-align: center;
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
    /* Above dashed line */
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    /* Ensure bg doesn't bleed */
}

/* Specific Style for Step 1 Card */
.step-hero-card {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.75)), url('../img/pack_bg.png');
    background-size: cover;
    background-position: center;
    border: none;
}

.step-rider-card {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.75)), url('../img/rider_bg.png');
    background-size: cover;
    background-position: center;
    border: none;
}

.step-deliver-card {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.75)), url('../img/deliver_bg.png');
    background-size: cover;
    background-position: center;
    border: none;
}

.step-hero-card .process-title,
.step-hero-card .process-text,
.step-rider-card .process-title,
.step-rider-card .process-text,
.step-deliver-card .process-title,
.step-deliver-card .process-text {
    color: #fff;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.step-hero-card .icon-box,
.step-rider-card .icon-box,
.step-deliver-card .icon-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
}

.process-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.process-text {
    color: var(--gray);
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background: var(--white);
    padding: 4rem 1rem 1rem;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--dark);
    transition: 0.3s;
}

.social-icon:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #f5f5f5;
    color: #999;
    font-size: 0.9rem;
}

/* Hide Install App Link on Desktop */
@media (min-width: 769px) {
    .glass-header .nav-links .mobile-only-link {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 1;
    }

    .hero-image-container {
        order: 2;
        margin-bottom: 2rem;
    }

    .hero-card-container {
        order: 3;
    }

    .hero-title-large {
        font-size: 2.5rem;
    }

    .hero-sub {
        margin: 0 auto 2rem;
    }

    .hero-features {
        justify-content: center;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-grid::before {
        display: none;
    }

    .container {
        padding: 0 1.5rem;
    }
}