/* Ajeer Partners — base tokens, typography, layout, nav, hero */

:root {
  /* Brand */
  --blue:        #005CFC;
  --blue-700:    #0048CC;
  --blue-50:     #EFF4FF;
  --blue-100:    #DCE7FE;

  /* Deep navy (no pure black anywhere) */
  --ink:         #0E2247;
  --ink-2:       #1F365A;
  --ink-soft:    #3E5478;
  --muted:       #6B7C99;
  --muted-2:     #94A3B8;

  /* Surfaces */
  --paper:       #FFFFFF;
  --paper-2:     #F7F8FB;
  --paper-warm:  #FBF7F1;
  --paper-warm-2:#F4EDDF;
  --line:        #E5E8EE;
  --line-2:      #D7DCE5;

  /* Warm accent */
  --coral:       #F08A3E;
  --coral-soft:  #FCEEDF;
  --coral-deep:  #C5631F;

  /* Status */
  --green:       #138A55;
  --green-soft:  #DAF1E5;
  --yellow:      #F2B70A;
  --red:         #DD3B45;

  /* Fonts */
  --font-ar:     'Alexandria', 'IBM Plex Sans Arabic', sans-serif;
  --font-en:     'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-display:'Instrument Serif', 'Bodoni Moda', Georgia, serif;
  --font-mono:   'JetBrains Mono', ui-monospace, monospace;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14, 34, 71, 0.05);
  --shadow-md: 0 8px 22px rgba(14, 34, 71, 0.07);
  --shadow-lg: 0 24px 56px rgba(14, 34, 71, 0.10);
  --shadow-xl: 0 40px 90px rgba(14, 34, 71, 0.16);

  /* Layout */
  --maxw: 1320px;
  --pad-x: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body[data-lang="en"] { font-family: var(--font-en); }

/* Force shared nav + footer to use IBM Plex Sans Arabic regardless of partner page font */
.aj-nav, .aj-nav *, .aj-footer, .aj-footer * {
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif !important;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--blue); color: white; }

/* ===== Layout helpers ===== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline-start: var(--pad-x);
  padding-inline-end: var(--pad-x);
}
.section { padding: clamp(70px, 9vw, 120px) 0; }

/* ===== Typography ===== */
.h1 {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.026em;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.h2 {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.014em;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
body[data-lang="ar"] .h1,
body[data-lang="ar"] .h2,
body[data-lang="ar"] .h3 { letter-spacing: -0.005em; line-height: 1.18; }
body[data-lang="ar"] .h1 { line-height: 1.12; }

.lead {
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 62ch;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
body[data-lang="ar"] .eyebrow { letter-spacing: 0.04em; }

.num-display {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  font-family: inherit;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.btn-primary {
  background: var(--blue); color: white;
  box-shadow: 0 4px 14px rgba(0, 92, 252, 0.28);
}
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 6px 20px rgba(0, 92, 252, 0.35); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { background: var(--paper-2); }

.btn-arrow svg { transition: transform 0.18s ease; }
body[data-lang="ar"] .btn-arrow svg { transform: scaleX(-1); }
.btn-arrow:hover svg { transform: translateX(3px); }
body[data-lang="ar"] .btn-arrow:hover svg { transform: scaleX(-1) translateX(3px); }

/* ===== Logo ===== */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--blue);
  border-radius: 8px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark::after {
  content: '';
  width: 0;
  height: 0;
  border-inline-start: 6px solid transparent;
  border-inline-end: 6px solid transparent;
  border-bottom: 10px solid white;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.in { will-change: auto; }
.reveal[data-d="1"] { transition-delay: 0.06s; }
.reveal[data-d="2"] { transition-delay: 0.12s; }
.reveal[data-d="3"] { transition-delay: 0.18s; }
.reveal[data-d="4"] { transition-delay: 0.24s; }
.reveal[data-d="5"] { transition-delay: 0.30s; }
.reveal[data-d="6"] { transition-delay: 0.36s; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(20px);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-portals {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(15, 34, 71, 0.04);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}
.nav-portal {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.18s ease;
}
.nav-portal:hover { color: var(--ink); }
.nav-portal.active {
  background: var(--ink);
  color: white;
  font-weight: 600;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  transition: border-color 0.18s ease;
}
.lang-toggle:hover { border-color: var(--ink); }
@media (max-width: 900px) { .nav-portals { display: none; } }

/* ===== Section head ===== */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 820px;
}
.section-head.center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 160px 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 34, 71, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 34, 71, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-glow-a {
  top: -200px;
  inset-inline-end: -200px;
  width: 600px;
  height: 600px;
  background: rgba(0, 92, 252, 0.18);
}
.hero-glow-b {
  bottom: -200px;
  inset-inline-start: -200px;
  width: 500px;
  height: 500px;
  background: rgba(240, 138, 62, 0.16);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 980px;
}
.hero-title {
  margin: 0;
  text-wrap: balance;
}
.hero-highlight {
  color: var(--blue);
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0; right: 0;
  height: 0.14em;
  background: var(--blue);
  opacity: 0.18;
  border-radius: 4px;
  transform-origin: left;
  animation: highlight-grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s forwards;
  transform: scaleX(0);
}
body[data-lang="ar"] .hero-highlight::after { transform-origin: right; }
@keyframes highlight-grow { to { transform: scaleX(1); } }

.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.hero-stat-num {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.hero-stat-label {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

/* ===== Trust strip (logo grid) ===== */
.trust-strip {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}
.trust-label {
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 32px;
  font-weight: 600;
}
body[data-lang="ar"] .trust-label { letter-spacing: 0.05em; }
.trust-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.trust-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: trust-flow 40s linear infinite;
}
@keyframes trust-flow {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
body[data-lang="ar"] .trust-track { animation-name: trust-flow-rtl; }
@keyframes trust-flow-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}
.trust-marquee:hover .trust-track { animation-play-state: paused; }
.trust-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 12px 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.trust-cell:hover { transform: scale(1.08); }
.partner-img {
  max-height: 96px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===== Sticky CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 110px);
  z-index: 50;
  background: var(--ink);
  color: white;
  padding: 12px 12px 12px 22px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  font-size: 14px;
  max-width: calc(100vw - 32px);
}
.sticky-cta.show { transform: translate(-50%, 0); }
.sticky-cta-text { font-weight: 500; }
@media (max-width: 500px) {
  .sticky-cta { gap: 10px; padding: 10px 10px 10px 16px; font-size: 13px; }
}
