/* Ajeer Stores — base styles (inherits Partners design system) */

:root {
  --blue: #005CFC;
  --blue-700: #0048CC;
  --blue-50: #EFF4FF;
  --blue-100: #DCE7FE;
  --navy: #0A1F44;
  --navy-2: #14264F;
  --ink: #0F1318;
  --ink-2: #1F2937;
  --muted: #5B6577;
  --muted-2: #7A8597;
  --line: #E5E8EE;
  --line-2: #D9DDE6;
  --paper: #FBFAF6;
  --paper-2: #F4F1EA;
  --orange: #EE7A2C;
  --orange-soft: #FBE5D3;
  --green: #0F7A4A;
  --green-soft: #DCF1E8;
  --yellow: #F4C100;

  --font-ar: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif;
  --font-en: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 24px 64px rgba(10, 31, 68, 0.12);
  --shadow-xl: 0 40px 100px rgba(10, 31, 68, 0.18);

  --maxw: 1440px;
  --pad-x: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
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;
}
html { scroll-behavior: smooth; }
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; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-sm { padding: clamp(60px, 7vw, 100px) 0; }

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--blue);
  padding: 8px 14px;
  border: 1px solid var(--blue-100);
  background: var(--blue-50);
  border-radius: var(--radius-pill);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 92, 252, 0.15);
}

.h1 {
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.h2 {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.h3 {
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--muted);
  line-height: 1.65;
  max-width: 60ch;
}

/* 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: 15px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 4px 16px rgba(0, 92, 252, 0.28); }
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 8px 24px rgba(0, 92, 252, 0.35); }
.btn-dark { background: var(--navy); color: white; }
.btn-dark:hover { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.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; transform: scaleX(-1); }
.btn-arrow:hover svg { transform: scaleX(-1) translateX(3px); }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  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[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }

.num-display {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: saturate(1.4) blur(20px);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  border-bottom-color: var(--line);
}
.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, 19, 24, 0.04);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
}
.nav-portal {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  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;
}
@media (max-width: 900px) {
  .nav-portals { display: none; }
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 31, 68, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 31, 68, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1024px) { .hero-content { grid-template-columns: 1fr; gap: 48px; } }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero-highlight {
  color: var(--blue);
  position: relative;
  display: inline-block;
}
.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 0.02em;
  left: 0;
  right: 0;
  height: 0.16em;
  background: var(--blue);
  opacity: 0.18;
  border-radius: 4px;
  transform-origin: right;
  animation: highlight-grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s forwards;
  transform: scaleX(0);
}
@keyframes highlight-grow { to { transform: scaleX(1); } }
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stat-num {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* Ticker */
.ticker-section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
  overflow: hidden;
}
.ticker-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  margin-bottom: 32px;
  font-weight: 600;
}
.ticker-row {
  display: flex;
  gap: 64px;
  align-items: center;
  animation: ticker-rtl 40s linear infinite;
  width: max-content;
}
@keyframes ticker-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
.ticker-logo {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter 0.2s ease;
}
.ticker-logo:hover { filter: grayscale(0) opacity(1); }
.ticker-logo-text {
  font-weight: 600;
  font-size: 22px;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: -0.01em;
  opacity: 0.6;
}

/* Section head */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 56px;
  max-width: 880px;
}
.section-head.center {
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand .logo { color: white; }
.footer-tagline {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
  line-height: 1.55;
  max-width: 32ch;
}
.footer-col h5 {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: white; }
.footer-bar {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}

/* Sticky bottom CTA */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 90;
  background: var(--ink);
  color: white;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 40px rgba(10,31,68,0.25);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sticky-cta.visible { transform: translateX(-50%) translateY(0); }
.sticky-cta .btn-primary { padding: 8px 16px; font-size: 13px; }
@media (max-width: 600px) {
  .sticky-cta { left: 16px; right: 16px; transform: translateY(120px); }
  .sticky-cta.visible { transform: translateY(0); }
}
