/* ============================================================
   Rehlati — Landing Page
   Brand: dark indigo/purple + gold (same identity as admin)
   ============================================================ */

:root {
    --navy: #1e1b4b;
    --navy-2: #171532;
    --navy-3: #100e26;
    --primary: #4f46e5;
    --purple: #7c3aed;
    --gold: #d4af37;
    --gold-2: #f0cf6b;
    --text: #e7e9f8;
    --text-muted: #9aa0c7;
    --text-dark: #232752;
    --muted-dark: #6b7099;
    --card: rgba(255, 255, 255, .045);
    --card-border: rgba(255, 255, 255, .09);
    --radius: 18px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .35);
    --grad: linear-gradient(135deg, #4f46e5, #7c3aed);
    --grad-gold: linear-gradient(135deg, #d4af37, #f0cf6b);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', 'Inter', sans-serif;
    background: var(--navy-3);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

body[dir="ltr"] { font-family: 'Inter', 'Tajawal', sans-serif; }

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px; border-radius: 14px; font-weight: 700; font-size: 16px;
    border: none; cursor: pointer; transition: all .25s ease; font-family: inherit;
}
.btn-primary {
    background: var(--grad); color: #fff;
    box-shadow: 0 10px 30px rgba(79, 70, 229, .4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(79, 70, 229, .55); }
.btn-gold {
    background: var(--grad-gold); color: #1e1b4b;
    box-shadow: 0 10px 30px rgba(212, 175, 55, .35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(212, 175, 55, .5); }
.btn-ghost {
    background: transparent; color: var(--text);
    border: 1.5px solid var(--card-border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Section base ---------- */
section { padding: 96px 0; position: relative; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--gold-2); font-weight: 700; font-size: 14px; letter-spacing: .06em;
    background: rgba(212, 175, 55, .1); border: 1px solid rgba(212, 175, 55, .25);
    padding: 7px 18px; border-radius: 999px; margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.3; }
.section-head p { color: var(--text-muted); margin-top: 12px; font-size: 17px; }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    position: fixed; inset-inline: 0; top: 0; z-index: 100;
    padding: 18px 0; transition: all .3s ease;
}
.navbar.scrolled {
    background: rgba(16, 14, 38, .85); backdrop-filter: blur(16px);
    padding: 12px 0; border-bottom: 1px solid var(--card-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; }
.logo-mark {
    width: 44px; height: 44px; border-radius: 13px; background: var(--grad);
    display: grid; place-items: center; color: #fff; font-size: 19px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, .45);
}
.logo span em { color: var(--gold-2); font-style: normal; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 15px;
    color: var(--text-muted); transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--card); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 14px;
    border: 1.5px solid var(--card-border); color: var(--text); transition: all .2s;
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold-2); }
.nav-cta { padding: 11px 22px; font-size: 14px; }

.burger {
    display: none; width: 44px; height: 44px; border-radius: 10px;
    border: 1.5px solid var(--card-border); background: transparent; color: var(--text);
    font-size: 18px; cursor: pointer;
}

/* Mobile menu */
.mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 99;
    background: rgba(16, 14, 38, .97); backdrop-filter: blur(14px);
    padding: 110px 8% 40px; flex-direction: column; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    padding: 16px 18px; border-radius: 12px; font-size: 18px; font-weight: 700;
    color: var(--text); border: 1px solid transparent;
}
.mobile-menu a:hover { background: var(--card); border-color: var(--card-border); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 150px 0 90px; overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(124, 58, 237, .28), transparent 60%),
        radial-gradient(700px 450px at 0% 110%, rgba(79, 70, 229, .22), transparent 60%),
        var(--navy-3);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(800px 500px at 50% 40%, #000, transparent);
}

.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
    position: relative; z-index: 1;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(212, 175, 55, .1); border: 1px solid rgba(212, 175, 55, .3);
    color: var(--gold-2); font-weight: 700; font-size: 14px;
    padding: 8px 20px; border-radius: 999px; margin-bottom: 24px;
}
.hero-badge i { animation: pulse 2s infinite; }

.hero h1 {
    font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; line-height: 1.25;
    margin-bottom: 22px;
}
.hero h1 .grad-text {
    background: var(--grad-gold);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { color: var(--text-muted); font-size: 18px; max-width: 540px; margin-bottom: 34px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.hero-stat .num {
    font-size: 30px; font-weight: 800; color: #fff;
    display: flex; align-items: baseline; gap: 4px;
}
.hero-stat .num b { color: var(--gold-2); font-size: 22px; }
.hero-stat .lbl { color: var(--text-muted); font-size: 14px; font-weight: 600; }

/* Hero phone mock */
.hero-visual { position: relative; display: flex; justify-content: center; }
.glow {
    position: absolute; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .35), transparent 65%);
    filter: blur(30px); z-index: 0;
}
.phone {
    position: relative; z-index: 1; width: 320px;
    background: linear-gradient(160deg, #232152, #14122e);
    border: 1.5px solid rgba(255, 255, 255, .12);
    border-radius: 38px; padding: 16px; box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}
.phone-screen {
    background: #f4f5fb; border-radius: 26px; overflow: hidden; color: var(--text-dark);
}
.ps-head {
    background: var(--grad); color: #fff; padding: 18px 18px 26px;
    font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 9px;
}
.ps-body { padding: 0 14px 16px; margin-top: -14px; }
.ps-route {
    background: #fff; border-radius: 14px; padding: 14px;
    box-shadow: 0 6px 18px rgba(30, 27, 75, .08); margin-bottom: 12px;
}
.ps-route-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.ps-route-row + .ps-route-row { margin-top: 10px; }
.ps-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.ps-dot.dest { background: var(--gold); }
.ps-offers-title {
    font-size: 12px; font-weight: 800; color: var(--muted-dark);
    margin: 2px 4px 8px; letter-spacing: .04em;
}
.ps-offer {
    background: #fff; border-radius: 14px; padding: 12px 14px;
    box-shadow: 0 6px 18px rgba(30, 27, 75, .08);
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.ps-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--grad); color: #fff; display: grid; place-items: center;
    font-weight: 800; font-size: 15px;
}
.ps-avatar.g { background: var(--grad-gold); color: #1e1b4b; }
.ps-offer-info { flex: 1; min-width: 0; }
.ps-offer-name { font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-offer-rate { font-size: 11px; color: var(--muted-dark); font-weight: 600; }
.ps-offer-rate i { color: var(--gold); }
.ps-price { font-weight: 800; font-size: 14px; color: var(--primary); white-space: nowrap; }
.ps-accept {
    display: block; width: 100%; text-align: center; background: var(--grad-gold);
    color: #1e1b4b; font-weight: 800; font-size: 14px; padding: 12px;
    border-radius: 13px; border: none; cursor: pointer; font-family: inherit;
}

/* floating chips */
.chip {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px;
    background: rgba(30, 27, 75, .82); backdrop-filter: blur(10px);
    border: 1px solid var(--card-border); border-radius: 14px;
    padding: 11px 16px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow);
}
.chip i { color: var(--gold-2); }
.chip-1 { top: 12%; inset-inline-start: -6%; animation: float 5s ease-in-out infinite .6s; }
.chip-2 { bottom: 16%; inset-inline-end: -8%; animation: float 5.5s ease-in-out infinite 1.1s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ============================================================
   How it works
   ============================================================ */
.how { background: var(--navy-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
    background: var(--card); border: 1px solid var(--card-border);
    border-radius: var(--radius); padding: 38px 30px; text-align: center;
    position: relative; transition: all .3s ease;
}
.step:hover { transform: translateY(-8px); border-color: rgba(212, 175, 55, .4); }
.step-num {
    position: absolute; top: 18px; inset-inline-end: 22px;
    font-size: 44px; font-weight: 800; color: rgba(255, 255, 255, .06);
}
.step-icon {
    width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 22px;
    background: var(--grad); display: grid; place-items: center;
    font-size: 30px; color: #fff; box-shadow: 0 12px 30px rgba(79, 70, 229, .4);
}
.step:nth-child(2) .step-icon { background: var(--grad-gold); color: #1e1b4b; box-shadow: 0 12px 30px rgba(212, 175, 55, .35); }
.step h3 { font-size: 21px; font-weight: 800; margin-bottom: 12px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ============================================================
   Features
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
    background: var(--card); border: 1px solid var(--card-border);
    border-radius: var(--radius); padding: 32px 28px; transition: all .3s ease;
}
.feature:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .07); border-color: rgba(124, 58, 237, .5); }
.feature-icon {
    width: 58px; height: 58px; border-radius: 16px; margin-bottom: 20px;
    display: grid; place-items: center; font-size: 23px;
    background: rgba(79, 70, 229, .16); color: #a5b4fc; border: 1px solid rgba(79, 70, 229, .3);
}
.feature:nth-child(3n+2) .feature-icon { background: rgba(212, 175, 55, .13); color: var(--gold-2); border-color: rgba(212, 175, 55, .3); }
.feature:nth-child(3n) .feature-icon { background: rgba(124, 58, 237, .16); color: #c4b5fd; border-color: rgba(124, 58, 237, .3); }
.feature h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.feature p { color: var(--text-muted); font-size: 14.5px; }

/* ============================================================
   Drivers section
   ============================================================ */
.drivers-sec { background: var(--navy-2); overflow: hidden; }
.drivers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.drivers-content .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--gold-2); font-weight: 700; font-size: 14px;
    background: rgba(212, 175, 55, .1); border: 1px solid rgba(212, 175, 55, .25);
    padding: 7px 18px; border-radius: 999px; margin-bottom: 20px;
}
.drivers-content h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.35; margin-bottom: 18px; }
.drivers-content > p { color: var(--text-muted); font-size: 16.5px; margin-bottom: 28px; }

.drivers-list { display: grid; gap: 16px; margin-bottom: 34px; }
.drivers-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 15.5px; }
.drivers-list li i {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 14px;
    background: rgba(212, 175, 55, .13); color: var(--gold-2); border: 1px solid rgba(212, 175, 55, .3);
}

/* driver visual card */
.driver-visual { position: relative; display: flex; justify-content: center; }
.driver-card {
    position: relative; z-index: 1; width: 100%; max-width: 430px;
    background: linear-gradient(160deg, #232152, #14122e);
    border: 1.5px solid rgba(255, 255, 255, .12); border-radius: 26px;
    padding: 30px; box-shadow: var(--shadow);
}
.dc-head { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.dc-avatar {
    width: 62px; height: 62px; border-radius: 18px; background: var(--grad-gold);
    color: #1e1b4b; display: grid; place-items: center; font-size: 26px; font-weight: 800;
}
.dc-name { font-weight: 800; font-size: 18px; }
.dc-car { color: var(--text-muted); font-size: 13.5px; font-weight: 600; }
.dc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dc-stat {
    background: rgba(255, 255, 255, .05); border: 1px solid var(--card-border);
    border-radius: 14px; padding: 16px 10px; text-align: center;
}
.dc-stat .v { font-weight: 800; font-size: 21px; color: var(--gold-2); }
.dc-stat .l { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 3px; }
.dc-earning {
    margin-top: 18px; background: rgba(212, 175, 55, .09);
    border: 1px solid rgba(212, 175, 55, .25); border-radius: 14px;
    padding: 16px 18px; display: flex; align-items: center; justify-content: space-between;
}
.dc-earning .lbl { font-size: 13px; color: var(--text-muted); font-weight: 700; }
.dc-earning .val { font-size: 22px; font-weight: 800; color: var(--gold-2); }

/* ============================================================
   Download
   ============================================================ */
.download-box {
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(212, 175, 55, .14), transparent 60%),
        linear-gradient(135deg, #2a2665, #1a1740);
    border: 1px solid var(--card-border); border-radius: 28px;
    padding: 64px 8%; text-align: center; position: relative; overflow: hidden;
}
.download-box h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin-bottom: 14px; }
.download-box p { color: var(--text-muted); font-size: 16.5px; margin-bottom: 34px; }
.store-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.store-btn {
    display: flex; align-items: center; gap: 13px; text-align: start;
    background: #0d0b1f; border: 1.5px solid var(--card-border);
    padding: 13px 26px; border-radius: 16px; transition: all .25s;
}
.store-btn:hover { border-color: var(--gold); transform: translateY(-3px); }
.store-btn i { font-size: 30px; }
.store-btn .small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 600; }
.store-btn .big { display: block; font-size: 17px; font-weight: 800; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--navy-2); }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
    background: var(--card); border: 1px solid var(--card-border);
    border-radius: 16px; overflow: hidden; transition: border-color .25s;
}
.faq-item.open { border-color: rgba(212, 175, 55, .4); }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; background: transparent; border: none; cursor: pointer;
    color: var(--text); font-family: inherit; font-size: 16.5px; font-weight: 800; text-align: start;
}
.faq-q .fa-chevron-down { color: var(--gold-2); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .fa-chevron-down { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--text-muted); font-size: 15px; }

/* ============================================================
   CTA
   ============================================================ */
.cta-box {
    background:
        radial-gradient(700px 350px at 10% 0%, rgba(124, 58, 237, .35), transparent 60%),
        var(--grad);
    border-radius: 28px; padding: 70px 8%; text-align: center;
    position: relative; overflow: hidden;
}
.cta-box::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px);
    background-size: 26px 26px; opacity: .4;
}
.cta-box h2 { font-size: clamp(26px, 3.8vw, 40px); font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-box p { color: rgba(255, 255, 255, .82); font-size: 17px; margin-bottom: 30px; position: relative; }
.cta-box .btn { position: relative; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: #0b0919; border-top: 1px solid var(--card-border); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer .logo { margin-bottom: 18px; }
.footer-desc { color: var(--text-muted); font-size: 14.5px; max-width: 340px; }
.footer h4 { font-size: 16px; font-weight: 800; margin-bottom: 20px; color: #fff; }
.footer-links-list { display: grid; gap: 12px; }
.footer-links-list a { color: var(--text-muted); font-size: 14.5px; font-weight: 600; transition: color .2s; }
.footer-links-list a:hover { color: var(--gold-2); }
.footer-contact-item { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.footer-contact-item i { color: var(--gold-2); width: 18px; text-align: center; }
.footer-bottom {
    border-top: 1px solid var(--card-border); padding: 22px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    color: var(--text-muted); font-size: 13.5px;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--gold-2); }
.footer-bottom .sep { margin: 0 8px; opacity: .4; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 70px; }
    .hero-desc { margin-inline: auto; }
    .hero-actions, .hero-stats { justify-content: center; }
    .chip-1 { inset-inline-start: 2%; }
    .chip-2 { inset-inline-end: 2%; }
    .steps, .features-grid { grid-template-columns: repeat(2, 1fr); }
    .drivers-grid { grid-template-columns: 1fr; gap: 50px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .burger { display: grid; place-items: center; }
    section { padding: 70px 0; }
    .steps, .features-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 120px; }
    .hero-stats { gap: 26px; }
    .phone { width: 290px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
