/* =========================================
   FairDrive – Dominant Global Landing
   Premium Black/Gold • Glass • Cinematic
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root{
  --fd-bg:#020203;
  --fd-card-bg:#050506;
  --fd-border-soft:rgba(255,195,120,.18);
  --fd-gold:#f4c96e;
  --fd-gold-deep:#c89432;
  --fd-gold-soft:#f8e0a0;
  --fd-text-main:#f7f0dd;
  --fd-text-muted:#c3b89d;
  --fd-shadow-soft:0 24px 60px rgba(0,0,0,.9);
  --fd-radius-xl:26px;
  --fd-radius-pill:999px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
  margin:0;
  padding:0;
  -webkit-tap-highlight-color:transparent;
}

html,body{height:100%;}

body{
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:radial-gradient(circle at top, #1a1510 0, #020203 55%, #000 100%);
  color:var(--fd-text-main);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* Background */
.fd-page-bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 10% -10%, rgba(255,210,140,.12) 0, transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(255,210,140,.22) 0, transparent 65%);
  z-index:0;
}

/* Shell */
.fd-shell{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 16px;
}

/* Card */
.fd-card{
  width:100%;
  max-width:1100px;
  background:radial-gradient(circle at top left, rgba(255,215,140,.08), #050506 55%, #020203 100%);
  border-radius:var(--fd-radius-xl);
  border:1px solid var(--fd-border-soft);
  box-shadow:var(--fd-shadow-soft);
  padding:24px 26px 26px;
  position:relative;
}

.fd-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  border:1px solid rgba(255,230,170,.10);
  pointer-events:none;
}

/* Topbar */
.fd-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:26px;
}

.fd-brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.fd-logo-mark{
  width:44px;
  height:44px;
  background:#020203;
  border-radius:12px;
  box-shadow:
    0 0 0 1px rgba(255,215,150,.35),
    0 0 36px rgba(255,210,140,.70);
  display:flex;
  align-items:center;
  justify-content:center;
}

.fd-logo-mark-inner{
  width:32px;
  height:32px;
  border-radius:999px;
  border:2px solid var(--fd-gold);
  display:flex;
  align-items:center;
  justify-content:center;
}

.fd-logo-mark-text{
  font-family:"Playfair Display",serif;
  font-size:14px;
  letter-spacing:.08em;
  color:var(--fd-gold);
}

.fd-brand-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.fd-logo-word{
  font-family:"Playfair Display",serif;
  font-size:20px;
  letter-spacing:.26em;
  color:var(--fd-gold);
}

.fd-logo-sub{
  font-size:11px;
  letter-spacing:.18em;
  color:var(--fd-text-muted);
}

.fd-topbar-right{
  display:flex;
  align-items:center;
  gap:18px;
}

.fd-nav{
  display:flex;
  gap:18px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  flex-wrap:wrap;
}

.fd-nav-link{
  text-decoration:none;
  color:var(--fd-text-muted);
  position:relative;
}

.fd-nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:1px;
  background:linear-gradient(90deg, transparent, var(--fd-gold), transparent);
  transition:width .22s ease-out;
}

.fd-nav-link:hover{color:var(--fd-gold-soft);}
.fd-nav-link:hover::after{width:100%;}

/* Language */
.fd-lang-wrapper{
  display:flex;
  align-items:center;
  gap:8px;
}

.fd-lang-label{
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--fd-text-muted);
}

.fd-lang-select{
  background:#050506;
  border-radius:var(--fd-radius-pill);
  border:1px solid rgba(255,215,150,.42);
  color:var(--fd-gold-soft);
  padding:7px 16px;
  font-size:12px;
  outline:none;
  cursor:pointer;
}

/* Main */
.fd-main{
  display:flex;
  flex-direction:column;
  gap:26px;
}

/* Hero */
.fd-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr);
  gap:40px;
  align-items:center;
}

.fd-hero-left{max-width:600px;}

.fd-hero-kicker{
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--fd-gold-deep);
  margin-bottom:14px;
}

.fd-hero-title{
  font-family:"Playfair Display",serif;
  font-size:42px;
  line-height:1.08;
  color:var(--fd-gold);
  margin-bottom:12px;
}

.fd-hero-subtitle{
  font-size:14px;
  line-height:1.85;
  color:var(--fd-text-muted);
  margin-bottom:18px;
}

/* Buttons */
.fd-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:14px;
}

.fd-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 22px;
  border-radius:var(--fd-radius-pill);
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  font-weight:700;
  transition:transform .16s ease-out, box-shadow .16s ease-out, background .16s ease-out, border-color .16s ease-out;
  user-select:none;
}

.fd-btn:active{transform:translateY(1px);}

.fd-btn-primary{
  background:radial-gradient(circle at 10% -40%, #fff6d4 0, #f4c96e 35%, #c48a30 100%);
  color:#1b1207;
  box-shadow:0 16px 40px rgba(0,0,0,.85);
}

.fd-btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 55px rgba(0,0,0,.95);
}

.fd-btn-ghost{
  background:rgba(5,5,7,.8);
  color:var(--fd-gold-soft);
  border-color:rgba(255,215,150,.4);
}

.fd-btn-ghost:hover{background:rgba(10,9,8,.95);}

.fd-btn-outline{
  background:transparent;
  color:var(--fd-text-main);
  border-color:rgba(255,215,150,.45);
}

.fd-btn-outline:hover{
  background:rgba(255,215,150,.08);
  border-color:rgba(255,215,150,.65);
}

/* Meta */
.fd-hero-meta{
  font-size:12px;
  color:var(--fd-text-muted);
}

.fd-hero-meta-links a{
  color:var(--fd-gold-soft);
  text-decoration:none;
}

.fd-hero-meta-links a:hover{text-decoration:underline;}

/* Trust chips */
.fd-trust-row{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.fd-trust-chip{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,210,140,.25);
  background:rgba(6,6,8,.55);
  padding:8px 12px;
  border-radius:999px;
  color:var(--fd-gold-soft);
  font-size:12px;
}

.fd-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--fd-gold);
  box-shadow:0 0 14px rgba(244,201,110,.75);
}

/* Right badge */
.fd-hero-right{display:flex; align-items:center; justify-content:center;}

.fd-secure-circle{
  width:260px;
  height:260px;
  border-radius:50%;
  border:1px solid rgba(255,215,150,.65);
  box-shadow:0 0 35px rgba(255,210,140,.9), 0 0 120px rgba(255,190,110,.8);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
  background:radial-gradient(circle, rgba(255,210,140,.05), transparent 70%);
}

.fd-secure-top,
.fd-secure-middle{
  font-size:13px;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--fd-gold-soft);
}

.fd-secure-number{
  font-family:"Playfair Display",serif;
  font-size:40px;
  color:var(--fd-gold);
}

.fd-secure-bottom{
  font-size:11px;
  max-width:190px;
  color:var(--fd-text-muted);
}

/* Stats */
.fd-stats-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.fd-stat-box{
  background:rgba(6,6,8,.90);
  border-radius:16px;
  border:1px solid rgba(255,210,140,.35);
  padding:14px 16px;
  text-align:center;
}

.fd-stat-number{
  font-family:"Playfair Display",serif;
  font-size:24px;
  color:var(--fd-gold);
  margin-bottom:4px;
}

.fd-stat-label{
  font-size:12px;
  color:var(--fd-text-muted);
}

/* Why */
.fd-why{margin-top:6px;}

.fd-section-title{
  font-family:"Playfair Display",serif;
  font-size:18px;
  color:var(--fd-gold);
  margin-bottom:6px;
}

.fd-section-sub{
  font-size:13px;
  color:var(--fd-text-muted);
  margin-bottom:14px;
}

.fd-pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
}

.fd-pill{
  padding:8px 18px;
  border-radius:999px;
  border:1px solid rgba(255,210,140,.40);
  background:rgba(5,5,7,.90);
  color:var(--fd-gold-soft);
  font-size:13px;
  cursor:default;
}

.fd-feature-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}

.fd-feature{
  border:1px solid rgba(255,210,140,.22);
  background:rgba(6,6,8,.55);
  border-radius:18px;
  padding:14px 16px;
}

.fd-feature-title{
  font-weight:800;
  color:var(--fd-gold-soft);
  margin-bottom:6px;
  letter-spacing:.02em;
}

.fd-feature-text{
  color:var(--fd-text-muted);
  font-size:13px;
  line-height:1.7;
}

/* Countries */
.fd-countries{margin-top:4px;}

.fd-countries-head{margin-bottom:10px;}

.fd-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.fd-chip{
  padding:9px 16px;
  border-radius:999px;
  border:1px solid rgba(255,210,140,.35);
  background:rgba(9,8,7,.90);
  font-size:13px;
  color:var(--fd-gold-soft);
  transition:transform .12s ease-out, border-color .12s ease-out, background .12s ease-out;
}

.fd-chip:hover{
  transform:translateY(-1px);
  border-color:rgba(255,210,140,.60);
  background:rgba(15,14,12,.92);
}

/* Bottom CTA */
.fd-bottom-cta{
  margin-top:12px;
  padding-top:14px;
  border-top:1px solid rgba(255,210,140,.18);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  font-size:13px;
}

.fd-bottom-left p{color:var(--fd-gold-soft);}

.fd-bottom-hint{
  margin-top:6px;
  color:var(--fd-text-muted) !important;
  font-size:12px;
  line-height:1.7;
}

.fd-bottom-right{text-align:right;}
.fd-bottom-join{color:var(--fd-gold-soft); margin-bottom:8px; font-weight:700;}

.fd-bottom-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.fd-bottom-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 16px;
  border-radius:999px;
  border:1px solid rgba(255,210,140,.45);
  background:rgba(5,5,7,.70);
  color:var(--fd-gold-soft);
  cursor:pointer;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:700;
}

.fd-bottom-btn:hover{background:rgba(12,11,10,.90);}

.fd-bottom-btn-gold{
  background:radial-gradient(circle at 10% -40%, #fff6d4 0, #f4c96e 35%, #c48a30 100%);
  color:#1b1207;
  border-color:transparent;
}

/* Footer */
.fd-footer{
  margin-top:10px;
  padding-top:12px;
  border-top:1px solid rgba(255,210,140,.18);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  font-size:11px;
}

.fd-footer-left{display:flex; flex-direction:column; gap:2px;}
.fd-footer-logo{
  font-family:"Playfair Display",serif;
  letter-spacing:.22em;
  font-size:14px;
  color:var(--fd-gold);
}
.fd-footer-sub{color:var(--fd-text-muted); letter-spacing:.18em;}

.fd-footer-links{display:flex; gap:14px; flex-wrap:wrap;}
.fd-footer-links a{color:var(--fd-text-muted); text-decoration:none;}
.fd-footer-links a:hover{color:var(--fd-gold-soft);}

.fd-footer-copy{color:var(--fd-text-muted);}

/* =========================
   RTL (Arabic) – Safe Fix
   Uses html[dir="rtl"] not body[dir="rtl"]
========================= */
html[dir="rtl"] .fd-topbar{flex-direction:row-reverse;}
html[dir="rtl"] .fd-brand{flex-direction:row-reverse;}
html[dir="rtl"] .fd-brand-text{text-align:right;}
html[dir="rtl"] .fd-nav{direction:rtl;}
html[dir="rtl"] .fd-topbar-right{flex-direction:row-reverse;}
html[dir="rtl"] .fd-hero-grid{direction:rtl;}
html[dir="rtl"] .fd-hero-left{text-align:right;}
html[dir="rtl"] .fd-hero-actions{justify-content:flex-end;}
html[dir="rtl"] .fd-hero-meta-links{direction:rtl;}
html[dir="rtl"] .fd-bottom-cta{flex-direction:row-reverse;}
html[dir="rtl"] .fd-bottom-right{text-align:left;}
html[dir="rtl"] .fd-bottom-actions{justify-content:flex-start;}
html[dir="rtl"] .fd-footer{flex-direction:row-reverse;}

/* Responsive */
@media (max-width: 900px){
  .fd-card{padding:20px 18px 20px;}
  .fd-topbar{flex-direction:column; align-items:flex-start;}
  .fd-topbar-right{width:100%; justify-content:space-between; flex-wrap:wrap;}
  .fd-hero-grid{grid-template-columns:minmax(0,1fr); gap:26px;}
  .fd-hero-right{justify-content:flex-start;}
  .fd-stats-row{grid-template-columns:minmax(0,1fr);}
  .fd-feature-grid{grid-template-columns:minmax(0,1fr);}
  .fd-bottom-cta{flex-direction:column; align-items:flex-start; text-align:left;}
  .fd-bottom-right{text-align:left;}
  .fd-bottom-actions{justify-content:flex-start;}
  .fd-footer{flex-direction:column; align-items:flex-start;}
}

@media (max-width: 600px){
  .fd-shell{padding:18px 10px;}
  .fd-logo-word{font-size:18px;}
  .fd-hero-title{font-size:32px;}
  .fd-hero-actions{flex-direction:column; align-items:stretch;}
  .fd-btn{width:100%;}
  .fd-secure-circle{width:220px; height:220px;}
}
/* ================================
   Backend Pending Visual State
================================ */
body.fd-backend-pending #fdCities,
body.fd-backend-pending #fdDrivers,
body.fd-backend-pending #fdRating {
  opacity: 0.55;
  filter: blur(0.5px);
  transition: opacity 0.4s ease, filter 0.4s ease;
}