/* ═══════════ Asharfi.ai — tokens ═══════════ */
:root {
  --primary: #175430;
  --primary-active: #1d6a3d;
  --primary-pale: #e6efe8;
  --green-soft: #9cc4ab;
  --canvas: #fcfcfa;
  --sand: #f3f3ef;
  --ink: #101310;
  --ink-soft: #232722;
  --ink-deep: #113b22;
  --body: #43473f;
  --mute: #7c7f76;
  --positive: #1f7a43;
  --hairline: color-mix(in oklab, var(--ink) 13%, transparent);

  --display: "Archivo", system-ui, sans-serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;
  --arabic: "Noto Kufi Arabic", var(--text);

  --r-card: 10px;
  --r-btn: 6px;
  --r-input: 6px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -0.02em;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.wrap-narrow { max-width: 800px; }

/* ═══════════ Reveal motion ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; }
.reveal.d4 { transition-delay: 0.28s; }
.reveal.d5 { transition-delay: 0.35s; }

/* SVG stroke draw-on */
.draw { stroke-dasharray: var(--len, 300); stroke-dashoffset: var(--len, 300); }
.in .draw, .draw.in {
  animation: drawStroke 1.2s var(--ease-out) forwards;
}
@keyframes drawStroke { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .flow-dot, .net-dots, .pulse-dot::after { display: none !important; }
  .net-node circle { animation: none !important; }
  .wait-fill { animation: none !important; }
}

/* ═══════════ Buttons ═══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--r-btn);
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.btn svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-active); }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--canvas); }

/* ═══════════ Badges ═══════════ */
.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}
.badge-positive { background: var(--primary-pale); color: var(--ink-deep); }

/* ═══════════ Nav ═══════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--sand) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 13px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo em { font-style: normal; color: var(--mute); font-weight: 600; }
.logo-mark { width: 28px; height: 28px; color: var(--ink); }

.nav-links {
  display: flex;
  gap: 2px;
  margin-inline: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); color: var(--ink); }
.nav-links a.active { color: var(--ink); background: color-mix(in oklab, var(--ink) 7%, transparent); }

.btn-nav { padding: 10px 18px; font-size: 14px; }

.lang-link {
  font-family: var(--arabic);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 12px 9px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-btn);
  line-height: 1;
  transition: border-color 0.2s, background 0.2s;
}
.lang-link:hover { border-color: var(--ink); }

.nav-toggle { display: none; }

/* ═══════════ Bands ═══════════ */
.band { padding-block: clamp(64px, 8.5vw, 112px); }
.band-sand { background: var(--sand); }
.band-canvas { background: var(--canvas); }
.band-ink { background: var(--ink); }

/* ═══════════ Page-end CTA band ═══════════ */
.cta-band { padding-block: clamp(56px, 7vw, 88px); }
.cta-band h2 {
  color: var(--canvas);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  max-width: 26ch;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-light { background: var(--canvas); color: var(--ink); }
.btn-light:hover { background: var(--sand); }
.btn-ghost-light {
  background: transparent;
  color: var(--canvas);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--canvas) 45%, transparent);
}
.btn-ghost-light:hover { background: var(--canvas); color: var(--ink); box-shadow: none; }

/* ═══════════ Section heads + Arabic-numeral markers ═══════════ */
.sec-head { position: relative; margin-bottom: clamp(36px, 5vw, 60px); max-width: 720px; }
.sec-head h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.8rem, 3.1vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
}
/* Watermark kufi numeral behind each section head */
.sec-head[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: -0.3em;
  left: -0.05em;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: clamp(6rem, 9vw, 8.5rem);
  line-height: 1;
  color: color-mix(in oklab, var(--ink) 4.5%, transparent);
  pointer-events: none;
  z-index: 0;
}
.band-ink .sec-head[data-num]::before { color: color-mix(in oklab, var(--canvas) 7%, transparent); }
.sec-marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mute);
}
.sec-marker b {
  font-family: var(--arabic);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
  padding-bottom: 2px;
}
.sec-marker b {
  padding-right: 12px;
  border-right: 1px solid var(--hairline);
}
.sec-note { margin-top: 10px; font-size: 13.5px; color: var(--mute); }

/* ═══════════ Hero ═══════════ */
.hero {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 54px); /* fill first screen; tape lands on the fold */
  padding: clamp(40px, 4.5vw, 64px) 0 0;
}
.hero-lattice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink);
  opacity: 0.055;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 36%, #000 74%);
  mask-image: linear-gradient(100deg, transparent 36%, #000 74%);
}

/* Animated emerald underline on the key hero phrase */
.u-draw { position: relative; display: inline-block; }
.u-draw::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.05em;
  bottom: 0.03em;
  height: 0.08em;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  animation: uDraw 0.8s var(--ease-out) 1.1s forwards;
}
@keyframes uDraw { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .u-draw::after { transform: scaleX(1); animation: none; }
}
.hero-grid {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.pulse-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--positive);
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--positive);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.04;
  max-width: 14ch;
}
.hero-ar {
  font-family: var(--arabic);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-deep);
  margin-top: 18px;
  text-align: left;
  direction: rtl;
  max-width: fit-content;
}
.hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  margin-top: 16px;
  max-width: 48ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--mute);
}

/* Hero visual */
.hero-visual { position: relative; display: grid; justify-items: center; }
.hero-khatam {
  position: absolute;
  width: min(420px, 92%);
  top: -32px;
  right: -44px;
  color: var(--ink);
  opacity: 0.07;
  pointer-events: none;
}

.invoice-card {
  position: relative;
  width: min(400px, 100%);
  background: var(--canvas);
  border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent);
  border-radius: var(--r-card);
  padding: 26px 28px;
  box-shadow: 0 20px 40px -28px color-mix(in oklab, var(--ink) 28%, transparent);
}
.invoice-note {
  position: absolute;
  top: -28px;
  left: 2px;
  font-size: 12px;
  color: var(--mute);
}
.invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.invoice-id { font-size: 13px; font-weight: 700; color: var(--mute); letter-spacing: 0.02em; }
.invoice-amount {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 3.2vw, 2.2rem);
  color: var(--ink);
  margin-top: 16px;
  font-variant-numeric: tabular-nums;
}
.invoice-label {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Advance split: 85% now vs reserve */
.adv-block { margin-top: 14px; }
.adv-bar {
  position: relative;
  height: 22px;
  border-radius: 5px;
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  overflow: hidden;
}
.adv-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 85%;
  background: var(--primary);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transform-origin: left center;
  transform: scaleX(0);
}
.in .adv-fill { animation: advGrow 1.2s var(--ease-out) 0.5s forwards; }
@keyframes advGrow { to { transform: scaleX(1); } }
.adv-fill b {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding-right: 8px;
  opacity: 0;
  transition: opacity 0.3s 1.4s;
}
.in .adv-fill b { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .adv-fill { transform: scaleX(1); animation: none; }
  .adv-fill b { opacity: 1; transition: none; }
}
.adv-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.adv-labels strong { color: var(--ink); font-weight: 700; }
.adv-note { margin-top: 3px; font-size: 11.5px; color: var(--mute); }

.risk-dd { display: flex; align-items: center; gap: 10px; }
.risk-meter { width: 60px; height: 8px; color: var(--ink); }
.invoice-rows { margin-top: 20px; border-top: 1px solid var(--hairline); }
.invoice-rows div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 11px;
}
.invoice-rows div + div { border-top: 1px solid color-mix(in oklab, var(--ink) 7%, transparent); }
.invoice-rows dt { font-size: 14px; color: var(--mute); }
.invoice-rows dd { font-size: 14px; font-weight: 700; color: var(--ink); }
.dd-strong { color: var(--ink-deep); background: var(--primary-pale); padding: 2px 9px; border-radius: 6px; }

.flow-svg {
  width: min(440px, 92%);
  margin-top: 26px;
  color: var(--ink);
  overflow: visible;
}
.flow-svg text {
  font-family: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--body);
  text-anchor: middle;
}

/* ═══════════ Trade tape (illustrative ticker) ═══════════ */
.tape {
  position: relative;
  display: flex;
  align-items: stretch;
  margin-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--hairline);
  background: color-mix(in oklab, var(--canvas) 55%, transparent);
}
.tape-tag {
  flex: none;
  display: flex;
  align-items: center;
  padding: 11px 18px 11px clamp(20px, 4vw, 48px);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mute);
  border-right: 1px solid var(--hairline);
}
.tape-viewport { flex: 1; overflow: hidden; display: flex; align-items: center; }
.tape-track { display: flex; width: max-content; animation: tapeScroll 48s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-set { display: flex; flex: none; gap: 52px; padding-left: 52px; }
.tape-set span {
  flex: none;
  font-size: 13px;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.tape-set strong { color: var(--ink); font-weight: 600; }
.tape-set i {
  font-style: normal;
  color: var(--primary);
  font-size: 8px;
  vertical-align: 2px;
  margin-right: 14px;
}
@keyframes tapeScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; }
}

/* ═══════════ Problem ═══════════ */
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.problem-stat { max-width: 46ch; }
.stat-huge {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.8rem, 5.6vw, 4.4rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-huge em { font-style: normal; font-size: 0.42em; font-weight: 600; color: var(--mute); letter-spacing: 0; }
.problem-stat > p { margin-top: 12px; font-size: 15px; }
.wait-bar { margin-top: 24px; width: min(340px, 100%); overflow: visible; color: var(--ink); }
.wait-label { font-size: 11px; font-weight: 600; fill: var(--mute); }
.wait-fill {
  transform-origin: left center;
  transform: scaleX(0);
}
.in .wait-fill { animation: waitGrow 2.2s var(--ease-out) 0.3s forwards; }
@keyframes waitGrow { to { transform: scaleX(1); } }

/* ═══ Collapsible point (summary visible, detail on demand) ═══ */
.points { display: grid; align-content: start; max-width: 640px; }
.point { border-bottom: 1px solid var(--hairline); }
.point:first-child { border-top: 1px solid var(--hairline); }
.point summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.point summary::-webkit-details-marker { display: none; }
.point summary::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  background: var(--primary);
  transform: rotate(45deg);
}
.point summary::after {
  content: "+";
  margin-left: auto;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  color: var(--mute);
  transition: transform 0.3s var(--ease-out);
}
.point[open] summary::after { transform: rotate(45deg); }
.point p { padding: 0 24px 16px 19px; font-size: 14.5px; max-width: 56ch; }

.points-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  max-width: 980px;
}
.points-grid .point:nth-child(2) { border-top: 1px solid var(--hairline); }

/* Inline disclosure for secondary blocks */
.more summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--body);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: "+";
  font-size: 16px;
  font-weight: 400;
  color: var(--mute);
  transition: transform 0.3s var(--ease-out);
}
.more[open] summary::after { transform: rotate(45deg); }
.more summary:hover { color: var(--ink); }

.gap-strip {
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(28px, 4vw, 40px);
}
.gap-strip .more { margin-top: 18px; }
.gap-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 32px; margin-top: 20px; }
.gap-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; }
.gap-list strong { color: var(--ink); }
.gap-num {
  font-family: var(--arabic);
  font-weight: 600;
  font-size: 14px;
  flex: none;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--ink);
  padding-bottom: 3px;
}
.gap-close {
  font-size: 15px;
  max-width: 68ch;
  color: var(--ink);
}
.gap-close a { font-weight: 600; color: var(--ink-deep); text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ═══════════ Steps ═══════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 26px 22px 24px;
}
.step-icon { width: 40px; height: 40px; color: var(--ink); margin-bottom: 18px; }
.step-num {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--arabic);
  font-weight: 600;
  font-size: 1rem;
  color: var(--mute);
  opacity: 0.7;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14px; }

/* ═══════════ Platform ═══════════ */
.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
}
.plat-feature {
  background: var(--ink);
  border-radius: var(--r-card);
  padding: clamp(28px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
}
.plat-feature h3 {
  color: var(--canvas);
  font-size: clamp(1.35rem, 2.1vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 14px;
}
.plat-feature p { color: color-mix(in oklab, var(--canvas) 74%, var(--ink)); margin-top: 10px; font-size: 15px; }
.plat-feature ul { margin-top: auto; padding-top: 26px; display: grid; gap: 10px; }
.plat-feature ul li {
  color: color-mix(in oklab, var(--canvas) 88%, var(--ink));
  font-size: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.plat-feature ul li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  background: var(--green-soft);
  transform: rotate(45deg) translateY(-1px);
}
.plat-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-soft);
  border: 1px solid color-mix(in oklab, var(--green-soft) 40%, transparent);
  border-radius: 6px;
  padding: 3px 10px;
}
.plat-rows { display: grid; gap: 18px; }
.plat-row {
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(22px, 2.5vw, 30px);
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.plat-row .plat-tag { color: var(--ink); border-color: var(--hairline); flex: none; margin-top: 2px; }
.plat-row h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; }
.plat-row p { font-size: 14.5px; max-width: 52ch; }

/* ═══════════ Intelligence (dark band) ═══════════ */
.band-ink .sec-marker { color: color-mix(in oklab, var(--canvas) 60%, var(--ink)); }
.band-ink .sec-marker b { color: var(--canvas); border-right-color: color-mix(in oklab, var(--canvas) 20%, transparent); }
.band-ink .sec-head h2 { color: var(--canvas); }
.intel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.band-ink .point { border-color: color-mix(in oklab, var(--canvas) 14%, transparent); }
.band-ink .point summary { color: var(--canvas); }
.band-ink .point summary::before { background: var(--green-soft); }
.band-ink .point summary::after { color: color-mix(in oklab, var(--canvas) 50%, var(--ink)); }
.band-ink .point p { color: color-mix(in oklab, var(--canvas) 68%, var(--ink)); }

.net-svg { width: 100%; max-width: 430px; margin-inline: auto; color: var(--canvas); }
.net-svg .core-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  fill: var(--ink-deep);
  text-anchor: middle;
}
.net-node circle {
  fill: var(--ink);
  stroke: var(--green-soft);
  stroke-width: 1.5;
  animation: nodePulse 3.5s ease-in-out calc(var(--i) * 0.45s) infinite;
}
@keyframes nodePulse {
  0%, 100% { stroke-width: 1.5; }
  50% { stroke-width: 3; }
}
.net-node text {
  font-family: var(--text);
  font-size: 13px;
  font-weight: 600;
  fill: color-mix(in oklab, var(--canvas) 78%, var(--ink));
  text-anchor: middle;
}

/* ═══════════ Why UAE ═══════════ */
.uae-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 52px);
}
.uae-stats > div {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 26px;
}
.uae-stats dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.8vw, 2.9rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.uae-stats dd { margin-top: 10px; font-size: 14px; max-width: 32ch; }

.uae-points { margin-bottom: clamp(30px, 4vw, 44px); }

/* ═══════════ Trust ═══════════ */
.trust-disclaimer {
  margin-top: 32px;
  font-size: 12.5px;
  color: var(--mute);
  max-width: 72ch;
}

/* ═══════════ Roadmap ═══════════ */
.road {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.road-phase {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 32px);
}
.road-phase.is-now { background: var(--ink); border-color: var(--ink); }
.road-phase.is-now h3 { color: var(--canvas); }
.road-phase.is-now ul li { color: color-mix(in oklab, var(--canvas) 74%, var(--ink)); }
.road-phase.is-now .road-when { color: var(--green-soft); border-color: color-mix(in oklab, var(--green-soft) 40%, transparent); }
.road-phase.is-now ul li::before { color: var(--green-soft); }
.road-when {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--hairline);
  color: var(--ink);
  border-radius: 6px;
  padding: 4px 11px;
  margin-bottom: 16px;
}
.road-phase h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; line-height: 1.2; }
.road-line { font-size: 14px; margin-bottom: 14px; }
.road-phase.is-now .road-line { color: color-mix(in oklab, var(--canvas) 72%, var(--ink)); }
.road-phase ul { display: grid; gap: 8px; margin-top: 12px; }
.road-phase ul li {
  font-size: 14px;
  display: flex;
  gap: 10px;
}
.road-phase ul li::before { content: "·"; font-weight: 700; color: var(--positive); flex: none; }
.road-phase.is-now .more summary { color: color-mix(in oklab, var(--canvas) 60%, var(--ink)); }
.road-phase.is-now .more summary:hover { color: var(--canvas); }
.road-phase.is-now ul li { color: color-mix(in oklab, var(--canvas) 74%, var(--ink)); }

/* ═══════════ Register ═══════════ */
.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.register-perks { display: grid; gap: 12px; margin-bottom: 24px; }
.register-perks li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.register-perks li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 7px; height: 7px;
  background: var(--primary);
  transform: rotate(45deg);
}
.register-note { font-size: 13.5px; color: var(--mute); max-width: 46ch; }

.register-form {
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(26px, 3.2vw, 36px);
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.register-form label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.register-form .opt { font-weight: 400; color: var(--mute); }
.register-form input:not([type="checkbox"]),
.register-form select,
.register-form textarea {
  font: 400 15px/1.4 var(--text);
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-input);
  padding: 11px 13px;
  width: 100%;
  transition: border-color 0.2s;
}
.register-form textarea { resize: vertical; }
.register-form :is(input, select, textarea):focus-visible {
  outline: none;
  border-color: var(--ink);
}
.register-form ::placeholder { color: var(--mute); }
.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 400 !important;
  color: var(--body) !important;
  font-size: 13px !important;
  display: grid;
  gap: 10px;
}
.consent input {
  width: 17px; height: 17px;
  margin-top: 2px;
  accent-color: var(--ink);
}
/* ═══ Typeform-style wizard ═══ */
.wiz-head { display: flex; align-items: center; gap: 14px; }
.wiz-count { font-size: 12px; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; flex: none; }
.wiz-progress { flex: 1; height: 3px; border-radius: 2px; background: color-mix(in oklab, var(--ink) 10%, transparent); overflow: hidden; }
.wiz-progress span { display: block; height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.4s var(--ease-out); }

.wiz-steps { min-height: 190px; display: grid; align-content: start; }
.wstep { display: none; border: 0; }
.wstep.active { display: grid; gap: 12px; animation: stepIn 0.35s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wstep.active { animation: none; } }
.wstep > label { font-size: 17px; font-weight: 700; color: var(--ink); font-family: var(--display); letter-spacing: -0.01em; }
.wstep input:not([type="checkbox"]), .wstep textarea { font-size: 16px !important; }

.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-grid-2 { grid-template-columns: 1fr 1fr; }
.opt-btn {
  font: 600 14px/1.3 var(--text);
  color: var(--ink);
  text-align: left;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-input);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.opt-btn:hover { border-color: var(--ink); }
.opt-btn.selected { border-color: var(--primary); background: var(--primary-pale); color: var(--ink-deep); }

.wiz-nav { display: flex; align-items: center; gap: 14px; }
.wiz-back {
  background: none;
  border: 0;
  font: 600 14px var(--text);
  color: var(--mute);
  cursor: pointer;
  padding: 8px 4px;
}
.wiz-back:hover { color: var(--ink); }
.wiz-hint { font-size: 12px; color: var(--mute); margin-left: auto; }
.wiz-error { font-size: 13px; color: #a03030; }

/* ═══ Waitlist result (Revolut-style prelaunch queue) ═══ */
.invited-chip {
  background: var(--primary-pale);
  color: var(--ink-deep);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--r-input);
  padding: 10px 14px;
}
.wl-result { display: grid; gap: 14px; text-align: center; justify-items: center; padding-block: 8px; }
.wl-kicker { font-size: 14px; font-weight: 700; color: var(--ink); }
.wl-pos {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(3rem, 5.5vw, 4rem);
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.wl-sub { font-size: 14.5px; max-width: 42ch; }
.wl-sub b { color: var(--ink); }
.wl-link { display: flex; gap: 10px; width: 100%; }
.wl-url {
  flex: 1;
  min-width: 0;
  font: 400 13.5px/1.4 var(--text);
  color: var(--body);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-input);
  padding: 11px 13px;
}
.wl-copy { padding: 11px 18px; flex: none; }
.wl-share { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.wl-share-btn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: var(--r-btn);
  padding: 9px 15px;
  background: var(--canvas);
  transition: border-color 0.15s;
}
.wl-share-btn:hover { border-color: var(--ink); }
.wl-note { font-size: 12px; color: var(--mute); }
.form-fine { font-size: 12px; color: var(--mute); text-align: center; }
.form-success {
  background: var(--primary-pale);
  color: var(--ink-deep);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r-input);
  padding: 13px 16px;
  text-align: center;
}

/* ═══════════ FAQ ═══════════ */
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 17px 22px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 0.98rem;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-x {
  position: relative;
  flex: none;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--sand);
  transition: background 0.25s, transform 0.35s var(--ease-out);
}
.faq-x::before, .faq-x::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--ink);
}
.faq-x::before { width: 10px; height: 1.6px; }
.faq-x::after { width: 1.6px; height: 10px; transition: opacity 0.2s; }
details[open] .faq-x { background: var(--primary-pale); transform: rotate(180deg); }
details[open] .faq-x::after { opacity: 0; }
.faq-list details p { padding: 0 22px 18px; font-size: 14.5px; max-width: 65ch; }
.faq-list details a { color: var(--ink-deep); font-weight: 600; }

/* ═══════════ Footer ═══════════ */
.footer { background: var(--ink); color: color-mix(in oklab, var(--canvas) 70%, var(--ink)); padding-block: clamp(56px, 7vw, 80px) 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 44px;
}
.logo-light { color: var(--canvas); }
.logo-light em { color: color-mix(in oklab, var(--canvas) 50%, var(--ink)); }
.footer-brand p { font-size: 14px; margin-top: 16px; max-width: 40ch; }
.footer-ar {
  font-family: var(--arabic);
  color: var(--green-soft);
  font-size: 14px !important;
}
.footer-col { display: grid; gap: 9px; align-content: start; font-size: 14px; }
.footer-col h4 {
  font-family: var(--display);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.footer-col a { text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--canvas); }
.footer-legal {
  border-top: 1px solid color-mix(in oklab, var(--canvas) 12%, transparent);
  padding-top: 26px;
  font-size: 12px;
  color: color-mix(in oklab, var(--canvas) 46%, var(--ink));
}
.footer-legal > p { max-width: 90ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.footer-bottom [lang="ar"] { font-family: var(--arabic); color: var(--green-soft); }

/* ═══════════ Responsive ═══════════ */
@media (max-width: 1023px) {
  .hero-grid, .intel-grid, .register-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-items: start; margin-top: 8px; }
  .hero-khatam { right: -20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .net-svg { max-width: 380px; margin-inline: 0; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; }
  .nav-toggle {
    display: grid;
    gap: 5px;
    background: none;
    border: 0;
    padding: 10px 4px;
    cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--ink); }
  .nav.open .nav-links {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--sand);
    padding: 16px clamp(20px, 4vw, 48px) 24px;
    border-bottom: 1px solid var(--hairline);
    gap: 2px;
  }
  .problem-grid { grid-template-columns: 1fr; }
  .gap-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .uae-stats { grid-template-columns: 1fr; }
  .points-grid { grid-template-columns: 1fr; }
  .points-grid .point:nth-child(2) { border-top: 0; }
  .road { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { max-width: none; }
}

/* ═══════════ Arabic / RTL ═══════════ */
html[lang="ar"] body { font-family: "Noto Sans Arabic", var(--text); }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .logo,
html[lang="ar"] .wstep > label {
  font-family: var(--arabic);
  letter-spacing: 0;
}
html[lang="ar"] .hero h1 { font-size: clamp(1.8rem, 3.1vw, 2.6rem); line-height: 1.4; max-width: none; }
html[lang="ar"] .sec-head h2 { line-height: 1.45; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
html[lang="ar"] .btn { font-family: "Noto Sans Arabic", var(--text); }
html[lang="ar"] .u-draw::after { bottom: -0.06em; }

[dir="rtl"] .sec-marker b { border-right: 0; border-left: 1px solid var(--hairline); padding-right: 0; padding-left: 12px; }
[dir="rtl"] .sec-head[data-num]::before { left: auto; right: -0.05em; }
[dir="rtl"] .point p { padding: 0 19px 16px 24px; }
[dir="rtl"] .register-perks li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .register-perks li::before { left: auto; right: 0; }
[dir="rtl"] .step-num { right: auto; left: 20px; }
[dir="rtl"] .hero-lattice {
  -webkit-mask-image: linear-gradient(-100deg, transparent 36%, #000 74%);
  mask-image: linear-gradient(-100deg, transparent 36%, #000 74%);
}
[dir="rtl"] .u-draw::after { transform-origin: right; }
[dir="rtl"] .btn svg { transform: rotate(180deg); }
[dir="rtl"] .btn:hover svg { transform: rotate(180deg) translateX(3px); }
[dir="rtl"] .opt-btn { text-align: right; }
[dir="rtl"] .wiz-hint { margin-left: 0; margin-right: auto; }
[dir="rtl"] .adv-fill { inset: 0 0 0 auto; transform-origin: right center; }
[dir="rtl"] .adv-fill b { padding-right: 0; padding-left: 8px; }
[dir="rtl"] .tape { direction: ltr; }
[dir="rtl"] .tape-tag { direction: rtl; }
[dir="rtl"] .lang-link { font-family: var(--display); }
