/* ===============================
   FastDrop Driver Landing Page CSS
   Improved, Commented & Responsive
   =============================== */

/* 1. IMPORTS & RESET
   ---------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* 2. CSS VARIABLES (Design System)
   ---------------------------- */
:root {
    /* Colors */
    --primary: #ff6b35;
    --primary-light: #ff8c5f;
    --secondary: #1a936f;
    --secondary-light: #2bb58d;
    --accent: #114b5f;
    --accent-light: #1c6a8a;
    --light: #f9f7f3;
    --dark: #2a2d34;
    --ios-bg: #f2f2f7;
    --ios-card-bg: rgba(255, 255, 255, 0.85);
    --ios-gray: #6c6c70;
    --ios-light-gray: #e5e5ea;
    --ios-green: #34c759;

    /* Effects */
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.3);
    --primary-grad: linear-gradient(135deg, #ff6b35 0%, #ff9f1c 100%);
    --ios-blur: blur(20px);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. BASE & BODY
   ---------------------------- */
body.ios-bg {
    background-color: var(--ios-bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 4. NAVBAR (iPhone Glass Style)
   ---------------------------- */
.ios-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;
    background: var(--glass-bg);
    backdrop-filter: var(--ios-blur);
    -webkit-backdrop-filter: var(--ios-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.ios-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 92%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ios-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ios-logo {
    height: 38px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.ios-nav-menu {
    display: flex;
    gap: 32px;
}

.ios-nav-link {
    text-decoration: none;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    opacity: 0.7;
    transition: var(--transition);
}

.ios-nav-link:hover {
    color: var(--primary);
    opacity: 1;
}

.ios-nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ios-btn-secondary {
    text-decoration: none;
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    transition: var(--transition);
}

.ios-btn-primary {
    background: var(--primary-grad);
    color: white;
    padding: 12px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
    transition: var(--transition);
}

.ios-btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.ios-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* 5. HERO SECTION
   ---------------------------- */
.ios-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, rgba(255, 107, 53, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(26, 147, 111, 0.05), transparent);
    position: relative;
    overflow: hidden;
}

.ios-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 92%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.ios-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ios-hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.text-gradient {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ios-hero-subtitle {
    font-size: 18px;
    color: var(--ios-gray);
    max-width: 500px;
    margin-bottom: 40px;
}

.ios-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.ios-btn-main {
    background: var(--primary-grad);
    color: white;
    padding: 18px 36px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ios-btn-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.ios-hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 13px;
    color: var(--ios-gray);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--ios-light-gray);
}

.ios-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.ios-phone-mockup {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #1c1c1e;
    box-shadow: 0 50px 100px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.ios-mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    z-index: 5;
}

.income-card {
    top: 20%;
    right: -30px;
    color: var(--ios-green);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 6. FEATURES SECTION
   ---------------------------- */
.ios-features {
    padding: 100px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 92%;
}

.ios-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.ios-section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--dark);
    margin-bottom: 15px;
}

.ios-section-subtitle {
    color: var(--ios-gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.ios-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ios-feature-card {
    background: var(--ios-card-bg);
    padding: 40px 30px;
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.ios-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    background: #fff;
}

.ios-feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 25px;
}

.icon-blue { background: rgba(0, 122, 255, 0.1); color: #007aff; }
.icon-orange { background: rgba(255, 107, 53, 0.1); color: var(--primary); }
.icon-green { background: rgba(52, 199, 89, 0.1); color: var(--ios-green); }

.ios-feature-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.ios-feature-text {
    font-size: 15px;
    color: var(--ios-gray);
    line-height: 1.6;
}

/* 7. HOW IT WORKS (STEPS)
   ---------------------------- */
.ios-steps-section {
    padding: 100px 0;
    background: #fff;
}

.ios-steps-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 92%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.ios-step-item {
    text-align: center;
    position: relative;
    padding: 20px;
}

.ios-step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 100px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    z-index: 1;
}

.ios-step-icon {
    width: 80px;
    height: 80px;
    background: var(--ios-bg);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.ios-step-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.ios-step-desc {
    font-size: 15px;
    color: var(--ios-gray);
    line-height: 1.6;
}

/* 8. EARNINGS CALCULATOR
   ---------------------------- */
.ios-earnings-section {
    padding: 100px 0;
    background: var(--ios-bg);
}

.ios-earnings-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 92%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.ios-earnings-card {
    background: var(--ios-card-bg);
    backdrop-filter: var(--ios-blur);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 35px;
    box-shadow: var(--shadow);
}

.ios-badge-green {
    background: rgba(52, 199, 89, 0.1);
    color: var(--ios-green);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.ios-count-value {
    color: var(--primary);
    font-weight: 700;
    font-size: 20px;
}

.ios-slider {
    width: 100%;
    margin: 30px 0;
    accent-color: var(--primary);
}

.ios-result-display {
    display: flex;
    justify-content: space-between;
    background: var(--dark);
    padding: 30px;
    border-radius: 25px;
    color: white;
    margin-top: 30px;
}

.result-value {
    font-size: 28px;
    font-weight: 700;
}

.result-divider {
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.highlighted .result-value {
    color: var(--primary-light);
}

.ios-calc-disclaimer {
    font-size: 12px;
    color: var(--ios-gray);
    margin-top: 20px;
    text-align: center;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    color: var(--ios-green);
    font-size: 24px;
}

/* 9. FAQ SECTION
   ---------------------------- */
.ios-faq-section {
    padding: 100px 0;
    background: #fff;
}

.ios-faq-container {
    max-width: 800px;
    margin: 0 auto;
    width: 92%;
}

.ios-faq-item {
    background: var(--ios-bg);
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.ios-faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    text-align: right;
}

.ios-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(255,255,255,0.5);
}

.ios-faq-answer p {
    padding: 0 24px 24px;
    color: var(--ios-gray);
    font-size: 15px;
}

.ios-faq-item.active .ios-faq-answer {
    max-height: 200px;
}

.ios-faq-item.active .ios-faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

/* 10. FOOTER
   ---------------------------- */
.ios-footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 92%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    margin-bottom: 25px;
    color: var(--primary-light);
}

.link-group a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: 0.3s;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
    color: #888;
}

/* 11. RESPONSIVE DESIGN (Mobile First)
   ---------------------------- */
@media (max-width: 992px) {
    .ios-nav-menu, .ios-nav-auth {
        display: none;
    }
    .ios-nav-toggle {
        display: block;
    }
    .ios-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ios-hero-subtitle, .ios-hero-actions, .ios-hero-stats {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    .ios-hero-visual {
        margin-top: 40px;
    }
    .ios-earnings-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .ios-steps-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    /* Remove step arrows on small screens */
    .ios-step-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .ios-section-title {
        font-size: 28px;
    }
    .ios-hero-title {
        font-size: 40px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* Desktop: Add arrow between steps */
@media (min-width: 992px) {
    .ios-step-item:not(:last-child)::after {
        content: "\f105";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 60px;
        right: -25px;
        font-size: 24px;
        color: var(--ios-light-gray);
    }
}