/* =========================================================
   BANZZEN — Main stylesheet
   1. Tokens   2. Base   3. Components   4. Sections
   5. Animations   6. Responsive
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #050b1a;
  --bg-2: #081230;
  --surface: rgba(12, 28, 64, 0.55);
  --border: rgba(80, 170, 255, 0.28);
  --border-strong: rgba(80, 190, 255, 0.6);
  --text: #ffffff;
  --text-2: #b9c6de;
  --muted: #8193b3;
  --accent: #3ec5ff;
  --accent-2: #1f8dff;
  --success: #3ee08f;
  --danger: #ff6b7a;

  --grad-accent: linear-gradient(180deg, #5fd4ff 0%, #22a8ff 100%);
  --glow: 0 0 24px rgba(62, 197, 255, 0.35);

  --font: "Inter", system-ui, sans-serif;
  --font-display: "Outfit", "Inter", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-ar: "Cairo", "Inter", sans-serif;

  --radius: 14px;
  --radius-lg: 20px;
  --container: 1240px;
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.icon {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.arrow { width: 18px; height: 18px; transition: transform .25s; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-family: var(--font-ar); font-size: 15px; }
.muted { color: var(--muted); }

/* ---------- 3. Components ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: .08em;
  direction: ltr;
}
.logo span, .zz {
  background: linear-gradient(180deg, #6fdcff 0%, #1f9bff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(62, 197, 255, .45));
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn--primary {
  background: var(--grad-accent);
  color: #04142e;
  box-shadow: 0 8px 28px rgba(34, 168, 255, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(34, 168, 255, .5); }
.btn--outline {
  border: 1.5px solid var(--accent);
  color: var(--text);
  background: rgba(10, 30, 70, .4);
}
.btn--outline:hover { background: rgba(62, 197, 255, .12); box-shadow: var(--glow); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 18px 44px; font-size: 19px; }

.icon-circle {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: radial-gradient(circle, rgba(31, 141, 255, .35), rgba(8, 18, 48, .6));
  color: #9fe3ff;
  box-shadow: var(--glow);
  flex-shrink: 0;
}
.icon-circle .icon { width: 26px; height: 26px; }
.icon-circle--lg { width: 74px; height: 74px; }
.icon-circle--lg .icon { width: 34px; height: 34px; }

.zz { filter: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled {
  background: rgba(5, 11, 26, .85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; gap: 38px; font-size: 15px; }
.nav a { position: relative; color: var(--text-2); transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.lang__btn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; }
.lang__btn.is-active { color: var(--text); }
.lang__sep { color: var(--muted); }

.burger { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 24px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 11px; }
.burger span:nth-child(3) { top: 20px; }
.burger.is-open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ---------- 4. Sections ---------- */

/* Hero */
.hero {
  position: relative;
  min-height: 700px;
  padding-top: calc(var(--header-h) + 30px);
  padding-bottom: 40px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 11, 26, .92) 0%, rgba(5, 11, 26, .55) 32%, rgba(5, 11, 26, 0) 50%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 11, 26, .6) 12%, transparent 30%),
    linear-gradient(180deg, rgba(5, 11, 26, .55) 0%, transparent 18%),
    url("../images/hero.jpg") 70% center / cover no-repeat,
    radial-gradient(ellipse at 85% 30%, rgba(255, 150, 70, .35), transparent 45%),
    linear-gradient(180deg, #16284d 0%, #1b2f55 40%, #0a1430 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 20px;
}
.hero__title {
  font-family: var(--font-ar);
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.25;
  text-align: start;
  margin-bottom: 18px;
}
.hero__title .line { display: block; white-space: nowrap; }
.hero__title .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__sub {
  font-family: var(--font-ar);
  font-size: clamp(17px, 1.6vw, 22px);
  color: #e3eaf7;
  max-width: 44ch;
  line-height: 1.7;
  margin-bottom: 32px;
}
/* the car sits on the right of the photo, so the hero never mirrors */
html[dir="rtl"] .hero__inner { direction: ltr; }
html[dir="rtl"] .hero__content { direction: rtl; }
/* keep Arabic hero lines aligned to the content edge in both languages */
html[dir="ltr"] .hero__title, html[dir="ltr"] .hero__sub { text-align: left; }

.social-proof { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-size: 13px; color: var(--text-2); }
.social-proof p { max-width: 190px; line-height: 1.4; }
.social-proof strong { color: var(--text); font-weight: 500; }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  background: var(--c);
  border: 2px solid var(--bg);
  margin-inline-start: -10px;
}
.avatars span:first-child { margin-inline-start: 0; }

/* Hero visual */
.hero__visual { position: relative; min-height: 520px; }
.float-card {
  position: absolute;
  padding: 14px 20px;
  border-color: var(--border-strong);
  box-shadow: var(--glow), 0 20px 40px rgba(0, 0, 0, .4);
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}
.float-card small { display: block; font-size: 12px; color: var(--text-2); }
.float-card strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.3; }
.float-card--share { top: 0; inset-inline-start: 6%; display: flex; align-items: center; gap: 16px; }
.float-card--return { top: 110px; inset-inline-end: -20px; animation-delay: -3s; }
.float-card__row { display: flex; align-items: center; gap: 10px; }
.bars { width: 30px; height: 30px; fill: var(--accent); }
.up { color: var(--accent); font-weight: 600; }

.ring { width: 58px; height: 58px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring__track { stroke: rgba(62, 197, 255, .15); }
.ring__bar {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: var(--p) 100; /* r=15.9 → circumference ≈ 100 */
}


/* Waitlist */
.waitlist { position: relative; z-index: 3; margin-top: -30px; }
.waitlist__card {
  padding: 26px 32px 32px;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 0 40px rgba(31, 141, 255, .25), inset 0 0 30px rgba(31, 141, 255, .08);
  background: linear-gradient(135deg, rgba(14, 40, 90, .7), rgba(6, 16, 40, .75));
}
.waitlist__card h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); }
html[lang="ar"] .waitlist__card h2 { font-family: var(--font-ar); }
.waitlist__sub { color: var(--text-2); font-size: 17px; margin-bottom: 20px; }

.form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr) auto;
  gap: 18px;
  align-items: start;
}
.field { min-width: 0; }
.field label { display: block; font-size: 13px; margin-bottom: 8px; color: #dbe5f5; }
.input {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding-inline: 14px;
  border: 1px solid rgba(160, 190, 230, .45);
  border-radius: 8px;
  background: rgba(4, 12, 30, .55);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(62, 197, 255, .18); }
.input .icon { width: 19px; height: 19px; color: #c7d3e8; }
.input input, .input select {
  flex: 1; min-width: 0; height: 100%;
  background: transparent; border: 0; outline: 0;
  font-size: 14px;
}
.input input::placeholder { color: var(--muted); }
.input select { appearance: none; cursor: pointer; color: var(--text); }
.input select:invalid { color: var(--muted); }
.input select option { background: var(--bg-2); color: var(--text); }
.input .chevron { pointer-events: none; }
.field.has-error .input { border-color: var(--danger); }
.error { display: block; min-height: 16px; font-size: 12px; color: var(--danger); margin-top: 4px; }
.form__submit { height: 48px; padding-inline: 30px; margin-top: 27px; font-size: 16px; }
.form__submit[disabled] { opacity: .7; cursor: progress; }
.form__success {
  margin-top: 16px; padding: 14px 18px;
  border-radius: 10px;
  background: rgba(62, 224, 143, .12);
  border: 1px solid rgba(62, 224, 143, .5);
  color: #bff5d8;
}

/* Features strip */
.features { padding: 34px 0; border-bottom: 1px solid rgba(80, 170, 255, .12); }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature {
  display: flex; align-items: center; gap: 16px;
  padding-inline: 20px;
  border-inline-start: 1px solid rgba(80, 170, 255, .2);
}
.feature:first-child { border-inline-start: 0; padding-inline-start: 0; }
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.feature p { font-size: 13px; color: var(--text-2); }

/* Generic section */
.section { padding: 90px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  margin-bottom: 12px;
}
html[lang="ar"] .section__head h2 { font-family: var(--font-ar); }
.section__head p:last-child { color: var(--text-2); font-size: 18px; }

/* How it works */
.how {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(5, 11, 26, .85) 50%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(31, 141, 255, .15), transparent 60%);
}
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; }
.step {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  padding: 26px 24px;
  min-height: 116px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--glow); }
.step__num { position: absolute; top: 14px; inset-inline-start: 14px; font-family: var(--font-display); font-size: 15px; color: var(--text-2); }
.step h3 { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-2); }
.step__arrow { color: var(--accent); width: 20px; height: 20px; }
html[dir="rtl"] .step__arrow { transform: scaleX(-1); }

/* Why */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item { padding: 28px 24px; transition: transform .25s, box-shadow .25s; }
.why__item:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.why__stat {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.why__item h3 { font-size: 18px; margin-bottom: 6px; }
.why__item p { color: var(--text-2); font-size: 14px; }

/* Fleet */
/* flex so an incomplete last row stays centred */
.fleet__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.fleet__grid .car-card { flex: 0 1 calc((100% - 48px) / 3); }
.car-card { overflow: hidden; transition: transform .25s, box-shadow .25s; }
.car-card:hover { transform: translateY(-6px); box-shadow: var(--glow); }
.car-card__img { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.car-card__img--2 { background-image: url("../images/fleet-economy.jpg"), linear-gradient(135deg, #16325a, #081230); }
.car-card__img--4 { background-image: url("../images/fleet-shuttle.jpg"), linear-gradient(135deg, #1a2d55, #0a1430); }
.car-card__img--5 { background-image: url("../images/fleet-small-truck.jpg"), linear-gradient(135deg, #16325a, #081230); }
.car-card__body { padding: 22px; }
.tag {
  display: inline-block; font-size: 12px; padding: 4px 10px;
  border-radius: 20px; border: 1px solid var(--border-strong); color: var(--accent);
  margin-bottom: 10px;
}
.car-card h3 { font-size: 20px; }
.disclaimer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 22px; }

/* About */
.about__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 48px;
  background: linear-gradient(135deg, rgba(20, 60, 130, .5), rgba(6, 16, 40, .7));
  border-color: var(--border-strong);
}
.about__inner h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
html[lang="ar"] .about__inner h2 { font-family: var(--font-ar); }
.about__inner p:last-child { color: var(--text-2); max-width: 640px; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid rgba(80, 170, 255, .12); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .logo { font-size: 24px; }
.footer__nav { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); }
.footer__nav a:hover { color: var(--text); }
.footer__copy { font-size: 13px; color: var(--muted); }

/* ---------- 5. Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 6. Responsive ---------- */
@media (max-width: 1100px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__submit { grid-column: 1 / -1; margin-top: 4px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .feature:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .steps { grid-template-columns: 1fr; }
  .step__arrow { transform: rotate(90deg); justify-self: center; }
  html[dir="rtl"] .step__arrow { transform: rotate(90deg); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: rgba(5, 11, 26, .97);
    border-bottom: 1px solid var(--border);
    transform: translateY(calc(-100% - var(--header-h)));
    visibility: hidden;
    transition: transform .35s, visibility .35s;
    z-index: -1;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 16px 24px; border-top: 1px solid rgba(80, 170, 255, .1); }
  .nav a::after { display: none; }
  .burger { display: block; }
  .header__actions .btn { display: none; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__bg {
    background:
      linear-gradient(180deg, rgba(5, 11, 26, .85) 0%, rgba(5, 11, 26, .55) 45%, rgba(5, 11, 26, .2) 70%, var(--bg) 100%),
      url("../images/hero.jpg") 72% bottom / cover no-repeat,
      var(--bg);
  }
  .hero__visual { min-height: 360px; }
  .fleet__grid .car-card { flex-basis: calc((100% - 24px) / 2); }
  .about__inner { flex-direction: column; align-items: flex-start; padding: 32px; }
}

@media (max-width: 600px) {
  .container { padding-inline: 16px; }
  .logo { font-size: 24px; }
  .btn--lg { width: 100%; padding: 16px 24px; font-size: 17px; }
  .hero__visual { min-height: 300px; }
  .float-card { padding: 10px 14px; }
  .float-card strong { font-size: 19px; }
  .float-card--return { top: auto; bottom: 10px; inset-inline-end: 0; }
  .ring { width: 44px; height: 44px; }
  .waitlist__card { padding: 22px 18px; }
  .form { grid-template-columns: 1fr; gap: 6px; }
  .features__grid, .why__grid { grid-template-columns: 1fr; }
  .fleet__grid .car-card { flex-basis: 100%; }
  .feature { border-inline-start: 0; padding-inline: 0; }
  .section { padding: 64px 0; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
}
