/* Axelerate · short investor brief. Three pages, English + Arabic in one file.
   Brand tokens are the investor deck's (pitch-deck/deck.css); fonts are self-hosted copies. */

@font-face { font-family: 'Josefin Sans'; src: url(assets/fonts/JosefinSans-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Josefin Sans'; src: url(assets/fonts/JosefinSans-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Josefin Sans'; src: url(assets/fonts/JosefinSans-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Josefin Sans'; src: url(assets/fonts/JosefinSans-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Josefin Tab'; src: url(assets/fonts/JosefinSansTab-Regular.woff2) format('woff2'); font-weight: 400; unicode-range: U+0030-0039; font-display: swap; }
@font-face { font-family: 'Josefin Tab'; src: url(assets/fonts/JosefinSansTab-SemiBold.woff2) format('woff2'); font-weight: 600; unicode-range: U+0030-0039; font-display: swap; }
@font-face { font-family: 'Josefin Tab'; src: url(assets/fonts/JosefinSansTab-Bold.woff2) format('woff2'); font-weight: 700; unicode-range: U+0030-0039; font-display: swap; }
@font-face { font-family: 'Cairo'; src: url(assets/fonts/Cairo-arabic.woff2) format('woff2'); font-weight: 400 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; src: url(assets/fonts/Cairo-latin.woff2) format('woff2'); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212; }

:root {
  --navy: #001233;
  --ink: #0A0A0A;
  --blue: #003DFF;
  --blue-deep: #0036BC;
  --blue-2: #4F7DFF;
  --blue-3: #9DB6FF;
  --yellow: #FFE600;
  --t1: #FFFFFF;
  --t2: #D4D4D4;
  --t3: #A1A1A1;
  --line: rgba(255, 255, 255, .14);
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .075);
  --eo: cubic-bezier(.16, 1, .3, 1);
  --latin: 'Josefin Tab', 'Josefin Sans', 'Segoe UI', system-ui, sans-serif;
  --arabic: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font: var(--latin);
  --gut: clamp(16px, 4vw, 56px);
  --bar-h: 64px;
}
html[data-lang="ar"] { --font: var(--arabic); }

/* ---------- the language switch: both languages are in the markup, one is hidden ---------- */
html[data-lang="en"] body [lang="ar"]:not(.lang-btn) { display: none !important; }
html[data-lang="ar"] body [lang="en"] { display: none !important; }

* { box-sizing: border-box; }
html {
  background: var(--navy);
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--t1);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 760px at 92% -8%, rgba(0, 61, 255, .22), transparent 66%),
    radial-gradient(900px 700px at -10% 48%, rgba(0, 54, 188, .14), transparent 62%),
    radial-gradient(1000px 700px at 100% 96%, rgba(0, 61, 255, .16), transparent 64%),
    linear-gradient(170deg, #001233 0%, #020c26 40%, #050a18 75%, #07080d 100%);
  background-attachment: fixed;
}
p { margin: 0; }
b, strong { font-weight: 600; color: var(--t1); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
bdi, [dir="ltr"] { unicode-bidi: isolate; }

mark {
  color: var(--navy);
  background: var(--yellow);
  padding: 0 .16em;
  border-radius: .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gut);
  background: rgba(0, 10, 32, .55);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.bar-logo img { height: 26px; width: auto; }
.bar-right { display: flex; align-items: center; gap: 18px; }
.bar-tag { color: var(--t3); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
html[data-lang="ar"] .bar-tag { letter-spacing: 0; font-size: 14px; }

.lang {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}
.lang-btn {
  appearance: none; border: 0; cursor: pointer;
  min-width: 52px; height: 32px; padding: 0 12px;
  border-radius: 999px; background: transparent; color: var(--t2);
  font: 600 14px/1 var(--latin); letter-spacing: .06em;
  transition: background .25s var(--eo), color .25s var(--eo);
}
.lang-btn[lang="ar"] { font-family: var(--arabic); letter-spacing: 0; font-size: 15px; }
.lang-btn[aria-pressed="true"] { background: var(--blue); color: #fff; }
.lang-btn:not([aria-pressed="true"]):hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lang-btn:focus-visible, .btn:focus-visible, .dots a:focus-visible, .next:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ---------- page dots (desktop) ---------- */
.dots {
  position: fixed; z-index: 25; top: 50%; transform: translateY(-50%);
  inset-inline-end: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.dots a {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  text-decoration: none; color: var(--t3); font: 600 12px/1 var(--latin); letter-spacing: .1em;
}
.dots a::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  transition: transform .3s var(--eo), background .3s var(--eo);
}
.dots a span { opacity: 0; transition: opacity .3s var(--eo); }
.dots a.on { color: #fff; }
.dots a.on::after { background: var(--yellow); transform: scale(1.35); }
.dots a.on span, .dots a:hover span { opacity: 1; }

/* ---------- pages ---------- */
.page {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--bar-h) + clamp(28px, 6vh, 64px)) var(--gut) clamp(72px, 10vh, 104px);
  isolation: isolate;
}
.page + .page { border-top: 1px solid rgba(255, 255, 255, .06); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; position: relative; z-index: 1; }

.kicker {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--blue-3); font-size: 14px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 22px;
}
.kicker .num {
  font-family: var(--latin); color: var(--navy); background: var(--blue-3);
  border-radius: 6px; padding: 5px 8px 3px; letter-spacing: .06em; font-size: 13px;
}
html[data-lang="ar"] .kicker { letter-spacing: 0; text-transform: none; font-size: 16px; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.1vw, 72px); line-height: 1.06; max-width: 15.5em; }
h2 { font-size: clamp(30px, 4.2vw, 58px); line-height: 1.08; max-width: 18em; }
h3 { font-size: 22px; line-height: 1.2; }
/* Cairo reads larger than Josefin at the same size, so Arabic headings step down a notch */
html[data-lang="ar"] h1 { font-size: clamp(30px, 4.1vw, 58px); line-height: 1.42; letter-spacing: 0; }
html[data-lang="ar"] h2 { font-size: clamp(27px, 3.4vw, 48px); line-height: 1.45; letter-spacing: 0; }
html[data-lang="ar"] h3 { line-height: 1.5; letter-spacing: 0; }
html[data-lang="ar"] mark { padding: 0 .14em; }

.lede { margin-top: 22px; max-width: 40em; font-size: clamp(17px, 1.5vw, 20px); color: var(--t2); }
html[data-lang="ar"] .lede { line-height: 1.85; }

/* ---------- page 1 ---------- */
.p1-photo {
  position: absolute; z-index: 0; inset: 0 0 0 auto; width: 58%;
  background: url(assets/img/photo-cover.jpg) 62% 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,.75) 70%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,.75) 70%, #000 100%);
  opacity: .62;
}
.p1-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 18, 51, .55) 0%, transparent 30%, transparent 62%, rgba(2, 12, 38, .96) 100%);
}
html[dir="rtl"] .p1-photo {
  inset: 0 auto 0 0;
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,.75) 70%, #000 100%);
  mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,.75) 70%, #000 100%);
}

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(30px, 5vh, 48px); max-width: 1000px;
}
.stat {
  padding: 22px 22px 20px;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.stat-n {
  font-family: var(--latin); font-weight: 700; font-size: clamp(30px, 3vw, 40px); line-height: 1;
  color: #fff; letter-spacing: -.01em; margin-bottom: 12px;
  text-align: start;
}
html[dir="rtl"] .stat-n { text-align: right; }
.stat p { color: var(--t2); font-size: 15.5px; line-height: 1.5; }
html[data-lang="ar"] .stat p { line-height: 1.75; }

.spark {
  margin: clamp(28px, 4.5vh, 44px) 0 0; max-width: 820px;
  padding-inline-start: 22px; border-inline-start: 3px solid var(--blue-2);
}
.spark blockquote { margin: 0; }
.spark blockquote p { font-size: clamp(17px, 1.6vw, 21px); color: var(--t1); line-height: 1.5; font-style: italic; }
html[data-lang="ar"] .spark blockquote p { font-style: normal; line-height: 1.85; }
.spark figcaption { margin-top: 10px; color: var(--blue-3); font-size: 16px; }

/* ---------- page 2 ---------- */
.path {
  list-style: none; margin: clamp(30px, 5vh, 48px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  counter-reset: step; position: relative;
}
.step {
  position: relative; padding: 26px 24px 24px;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(165deg, rgba(0, 61, 255, .16), rgba(255, 255, 255, .03) 60%);
}
.step + .step::before {
  /* the arrow between two steps; it follows the reading direction */
  content: ""; position: absolute; top: 44px; inset-inline-start: -13px;
  width: 10px; height: 10px; border-top: 2px solid var(--blue-3); border-right: 2px solid var(--blue-3);
  transform: rotate(45deg);
}
html[dir="rtl"] .step + .step::before { transform: rotate(-135deg); }
.step-n {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff; font: 700 17px/1 var(--latin); margin-bottom: 16px;
  padding-top: 3px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--t2); font-size: 15.5px; }
html[data-lang="ar"] .step p { line-height: 1.8; }
.url {
  display: inline-block; margin-top: 12px; font: 500 13px/1 var(--latin); letter-spacing: .03em;
  color: var(--blue-3); padding: 7px 10px 5px; border-radius: 8px; background: rgba(157, 182, 255, .1);
}

.also {
  margin-top: 16px; display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 16px;
  border: 1px dashed rgba(157, 182, 255, .35); background: var(--glass);
}
.also-tag {
  flex: none; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); background: var(--blue-3); border-radius: 999px; padding: 6px 12px 4px;
}
html[data-lang="ar"] .also-tag { letter-spacing: 0; font-size: 14px; padding: 4px 12px; }
.also p { color: var(--t2); font-size: 15.5px; }
html[data-lang="ar"] .also p { line-height: 1.8; }

.founder {
  margin-top: clamp(22px, 4vh, 36px); display: flex; align-items: center; gap: 20px; max-width: 860px;
}
.founder img {
  flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 8%;
  border: 2px solid rgba(157, 182, 255, .5);
}
.founder-name { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.founder p:not(.founder-name) { color: var(--t2); font-size: 15.5px; }
html[data-lang="ar"] .founder p:not(.founder-name) { line-height: 1.8; }

/* ---------- page 3 ---------- */
.ways {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(28px, 4.5vh, 44px); max-width: 980px;
}
.way {
  padding: 24px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}
.way-tag { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-3); margin-bottom: 10px; }
html[data-lang="ar"] .way-tag { letter-spacing: 0; text-transform: none; font-size: 14px; }
.way h3 { font-size: 24px; margin-bottom: 8px; }
.way p:not(.way-tag) { color: var(--t2); font-size: 16px; }
html[data-lang="ar"] .way p:not(.way-tag) { line-height: 1.8; }

.sharia {
  margin-top: 16px; max-width: 980px; color: var(--t3); font-size: 15px;
  padding-inline-start: 14px; border-inline-start: 2px solid rgba(255, 255, 255, .2);
}
html[data-lang="ar"] .sharia { line-height: 1.8; }

.cta {
  margin-top: clamp(28px, 4.5vh, 44px); max-width: 980px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 26px 28px; border-radius: 22px;
  background:
    radial-gradient(500px 220px at 85% 0%, rgba(157, 182, 255, .25), transparent 70%),
    linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 24px 60px -24px rgba(0, 61, 255, .65);
}
.cta > div:first-child { flex: 1 1 340px; }
.cta-h { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.cta p:not(.cta-h) { color: rgba(255, 255, 255, .85); font-size: 16px; }
html[data-lang="ar"] .cta p { line-height: 1.75; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px;
  border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15.5px; white-space: nowrap;
  transition: transform .25s var(--eo), background .25s var(--eo);
}
.btn-main { background: #fff; color: var(--blue); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; }
.btn:hover { transform: translateY(-2px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
html:not([data-lang="ar"]) .btn { padding-top: 3px; } /* Josefin sits high in its box */

.foot {
  margin-top: clamp(26px, 4vh, 40px); padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  color: var(--t3); font-size: 13.5px;
}

/* ---------- next-page link ---------- */
.next {
  position: absolute; z-index: 2; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--t3); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
html[data-lang="ar"] .next { letter-spacing: 0; font-size: 14px; }
.next i {
  width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); animation: nudge 2.2s ease-in-out infinite;
}
.next:hover { color: #fff; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }

/* ---------- entrance (only when the script runs; without it everything is simply there) ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--eo), transform .8s var(--eo); }
.js .rv.in { opacity: 1; transform: none; }
.js .stats .rv:nth-child(2), .js .path .rv:nth-child(2), .js .ways .rv:nth-child(2) { transition-delay: .08s; }
.js .stats .rv:nth-child(3), .js .path .rv:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .next i { animation: none; }
  .js .rv { transition-duration: .3s; transform: none; }
}

/* ---------- desktop: pages snap ---------- */
@media (min-width: 900px) and (min-height: 640px) {
  html { scroll-snap-type: y proximity; }
  .page { scroll-snap-align: start; }
}
/* desktop: sizes also follow the screen's height, so each page fits one screen */
@media (min-width: 900px) {
  .page { padding-top: calc(var(--bar-h) + 3.5vh); padding-bottom: 64px; }
  .kicker { margin-bottom: 1.8vh; }
  h1 { font-size: min(5.1vw, 7.2vh, 72px); }
  h2 { font-size: min(4.2vw, 6vh, 58px); }
  html[data-lang="ar"] h1 { font-size: min(4.1vw, 5.6vh, 58px); }
  html[data-lang="ar"] h2 { font-size: min(3.4vw, 4.9vh, 48px); }
  .lede { margin-top: 1.8vh; }
  .stats, .path, .ways { margin-top: 3.4vh; }
  .spark, .cta { margin-top: 3.2vh; }
  .founder { margin-top: 2.6vh; }
  .foot { margin-top: 2.6vh; }
  .next { bottom: 14px; }
}

/* ---------- tablet / phone ---------- */
@media (max-width: 899px) {
  .dots { display: none; }
  .stats, .path, .ways { grid-template-columns: 1fr; }
  .step + .step::before { display: none; }
  .p1-photo {
    inset: 0 0 auto 0; width: 100%; height: 62vh; opacity: .5;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 55%, transparent 100%);
    background-position: 62% 20%;
  }
  html[dir="rtl"] .p1-photo { inset: 0 0 auto 0; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 55%, transparent 100%); }
  .page { justify-content: flex-start; }
  .p1 { padding-top: calc(var(--bar-h) + 30vh); }
  .next { display: none; }
  .page { padding-bottom: 56px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar-tag { display: none; }
  .bar-logo img { height: 22px; }
  .stat { padding: 18px; }
  .stat-n { font-size: 32px; }
  .also { flex-direction: column; align-items: flex-start; }
  .founder { align-items: flex-start; }
  .founder img { width: 60px; height: 60px; }
  .cta { padding: 22px 20px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .foot { flex-direction: column; }
}
