/* ============================================
   Rafik Darbak — Design tokens
   ============================================ */

@font-face {
  font-family: "Expo Arabic";
  src: url("../fonts/expo/ExpoArabic-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Expo Arabic";
  src: url("../fonts/expo/ExpoArabic-Book.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Expo Arabic";
  src: url("../fonts/expo/ExpoArabic-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Expo Arabic";
  src: url("../fonts/expo/ExpoArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Expo Arabic";
  src: url("../fonts/expo/ExpoArabic-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/Roboto-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/Roboto-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --blue: #0078ff;
  --blue-dark: #0057c2;
  --blue-deep: #062044;
  --yellow: #fcce08;
  --ink: #0a0e16;
  --ink-soft: #10182b;
  --white: #ffffff;
  --grey-100: #f4f6fa;
  --grey-300: #d7dce6;
  --grey-500: #8791a6;
  --grey-700: #4b5468;

  --font-ar: "Expo Arabic", "Roboto", sans-serif;
  --font-en: "Roboto", "Expo Arabic", sans-serif;

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22,.68,0,1);
}

html[lang="en"] {
  --font-active: var(--font-en);
}
html[lang="ar"] {
  --font-active: var(--font-ar);
}

/* ============================================
   Reset
   ============================================ */

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-active, var(--font-ar));
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--blue);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 999;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ============================================
   Reveal-on-scroll
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(0,120,255,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(0,120,255,.65); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn-store {
  background: var(--ink);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 14px;
  gap: 12px;
}
.btn-store:hover { transform: translateY(-2px); }
.store-icon { width: 26px; height: 26px; flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; font-size: 17px; }
.store-text small { font-weight: 400; font-size: 11px; opacity: .8; }
.btn-store-soon { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); }

/* ============================================
   Header
   ============================================ */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 18px;
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgb(10,14,22);
  padding-block: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand-logo { height: 32px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-inline-end: auto;
  margin-inline-start: 12px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  opacity: .88;
  transition: opacity .2s;
}
.main-nav a:hover { opacity: 1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: auto;
}
.lang-toggle {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background .2s;
}
.lang-toggle:hover { background: rgba(255,255,255,.18); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset-inline: 0;
    top: 68px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgb(10,14,22);
    padding: 18px 24px 28px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 140px 90px;
  overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(1.05);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,10,20,.55) 0%, rgba(6,10,20,.55) 30%, rgba(6,12,24,.92) 78%, #060a14 100%),
    linear-gradient(90deg, rgba(6,10,20,.75) 0%, rgba(6,10,20,.15) 55%);
}
.hero-inner { position: relative; z-index: 1; color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--yellow);
  background: rgba(252,206,8,.12);
  border: 1px solid rgba(252,206,8,.35);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-inner .eyebrow {
  animation: eyebrow-flash 1.3s ease-in-out infinite;
}
@keyframes eyebrow-flash {
  0%, 100% {
    border-color: rgba(252,206,8,.35);
    background: rgba(252,206,8,.12);
    box-shadow: 0 0 0 rgba(252,206,8,0);
  }
  50% {
    border-color: rgba(252,206,8,.95);
    background: rgba(252,206,8,.26);
    box-shadow: 0 0 20px rgba(252,206,8,.55);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-inner .eyebrow { animation: none; }
}

.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.12;
  max-width: 16ch;
  margin-bottom: 22px;
}
.hero-title .accent { color: var(--blue); text-shadow: 0 0 40px rgba(0,120,255,.5); }

.flip-rotator {
  display: inline-block;
  overflow: hidden;
  perspective: 500px;
  vertical-align: top;
}
.flip-rotator-inner {
  display: inline-block;
  transform-origin: 50% 50%;
  transform: rotateX(0deg);
  opacity: 1;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}
.flip-rotator-inner.flip-out {
  transform: rotateX(90deg);
  opacity: 0;
}
.flip-rotator-inner.flip-in-instant {
  transition: none;
  transform: rotateX(-90deg);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .flip-rotator-inner { transition: opacity .3s ease; transform: none !important; }
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--grey-300);
  max-width: 52ch;
  margin-bottom: 38px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 20px; font-weight: 700; }
.stat span { font-size: 13px; color: var(--grey-500); }
.stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,.18); }

/* ============================================
   Trust strip / news ticker
   ============================================ */

.trust-strip {
  background: var(--blue-deep);
  color: var(--white);
  padding-block: 16px;
  overflow: hidden;
}
.ticker {
  overflow: hidden;
  direction: ltr;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}
.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 48px;
  padding-inline-end: 48px;
}
.ticker-group span {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-300);
  white-space: nowrap;
}
@keyframes ticker-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ============================================
   Section headings
   ============================================ */

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow {
  color: var(--blue);
  background: rgba(0,120,255,.08);
  border-color: rgba(0,120,255,.25);
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.22;
}

section { padding-block: 96px; }

/* ============================================
   Features
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(10,14,22,.25);
  background: var(--white);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--i-bg, var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--grey-700); font-size: 15px; }

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ============================================
   Split section (trust / driver)
   ============================================ */

.split-section { background: var(--ink); color: var(--white); overflow: hidden; }
.split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.split-content .eyebrow {
  color: var(--yellow);
  background: rgba(252,206,8,.1);
  border-color: rgba(252,206,8,.3);
}
.split-content h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.28; margin-bottom: 18px; }
.split-content p { color: var(--grey-300); font-size: 16px; margin-bottom: 26px; }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-inline-start: 30px;
  font-size: 15px;
  color: var(--white);
}
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
}
.check-list li::after {
  content: "";
  position: absolute;
  inset-inline-start: 5px;
  top: 8px;
  width: 8px;
  height: 4px;
  border-inline-start: 2px solid #fff;
  border-block-end: 2px solid #fff;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .split-inner { grid-template-columns: 1fr; gap: 36px; }
  .split-media { order: -1; }
}

/* ============================================
   How it works
   ============================================ */

.how-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.how-steps { display: flex; flex-direction: column; gap: 30px; }
.how-step { display: flex; gap: 20px; align-items: flex-start; }
.how-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(0,120,255,.1);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.how-step h3 { font-size: 18px; margin-bottom: 6px; }
.how-step p { color: var(--grey-700); font-size: 15px; }
.how-media img {
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: 0 30px 60px -20px rgba(10,14,22,.35);
}

@media (max-width: 860px) {
  .how-layout { grid-template-columns: 1fr; gap: 36px; }
  .how-media { order: -1; max-width: 340px; margin-inline: auto; width: 100%; }
}

/* ============================================
   CTA section
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; max-width: 640px; }
.cta-icon { width: 56px; height: 56px; margin-bottom: 22px; }
.cta-inner h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,.85); font-size: 16px; margin-bottom: 34px; }
.cta-inner .btn-store { background: var(--ink); }

/* ============================================
   Footer
   ============================================ */

.site-footer { background: var(--ink); color: var(--white); padding-block: 44px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--grey-300); }
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: 13px; color: var(--grey-500); width: 100%; text-align: center; margin-top: 12px; }

@media (max-width: 620px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ============================================
   Responsive base
   ============================================ */

@media (max-width: 620px) {
  section { padding-block: 64px; }
  .hero { padding-block: 120px 60px; min-height: auto; }
  .hero-stats { gap: 16px; }
  .btn-store { padding: 10px 18px; }
}

/* ============================================
   Custom cursor
   ============================================ */

@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-active,
  body.custom-cursor-active a,
  body.custom-cursor-active button,
  body.custom-cursor-active .btn {
    cursor: none;
  }

  .cursor-dot,
  .cursor-glow,
  .cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
  }

  .cursor-glow {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,120,255,.35), rgba(0,120,255,0) 72%);
    transition: opacity .2s ease;
  }

  .cursor-dot-inner {
    display: block;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 10px rgba(0,120,255,.7);
    transition: transform .25s cubic-bezier(.4,0,.2,1), background .25s ease;
  }
  .cursor-dot.grow .cursor-dot-inner {
    transform: scale(2.2);
    background: var(--yellow);
    box-shadow: 0 0 16px rgba(252,206,8,.7);
  }

  .cursor-trail {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--blue);
  }
}
