/* $HABIBI · shared look: near-black night, 24k gold, emerald, sand. Bodoni Moda (display), Manrope (text), Reem Kufi + IBM Plex Sans Arabic (Arabic). */
@font-face { font-family: 'Dollar'; src: url(/fonts/manrope.woff2) format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0024; } /* Bodoni's $ reads as S */
@font-face { font-family: 'Bodoni'; src: url(/fonts/bodoni.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Bodoni'; src: url(/fonts/bodoni-i.woff2) format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(/fonts/manrope.woff2) format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Kufi'; src: url(/fonts/kufi.woff2) format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'PlexAr'; src: url(/fonts/plexar-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'PlexAr'; src: url(/fonts/plexar-700.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  --bg: #050505; --bg2: #0b0907; --card: #110e0a; --card2: #17120c; --line: rgba(233, 196, 120, .16); --line2: rgba(233, 196, 120, .32);
  --ink: #f7f1e6; --mut: #b9ad98; --dim: #7d7466;
  --gold: #f0c766; --gold2: #d9a94a; --gold3: #8f6a26; --sand: #ead7ae; --emer: #19b37f; --emer2: #0c6b4c; --red: #ff7a6b;
  --accent: var(--gold); --accent-ink: #1a1206;
  --goldg: linear-gradient(100deg, #8f6a26 0%, #f0c766 22%, #fff3c9 38%, #f0c766 52%, #b8862f 78%, #f7d98c 100%);
  --disp: 'Dollar', 'Bodoni', 'Kufi', Georgia, serif; --text: 'Manrope', 'PlexAr', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 18px; --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
html[dir=rtl] { --disp: 'Dollar', 'Kufi', 'Bodoni', serif; --text: 'PlexAr', 'Manrope', system-ui, sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { background: var(--bg); color: var(--ink); font: 500 16px/1.6 var(--text); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
em { font-style: italic; }
h1 em, h2 em, h3 em, .gold { background: var(--goldg); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[dir=rtl] h1 em, html[dir=rtl] h2 em { font-style: normal; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
html[dir=rtl] .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; padding: 14px 0; transition: transform .4s var(--ease); }
.nav::before { content: ''; position: absolute; inset: 0; background: linear-gradient(#050505e6, #05050500); pointer-events: none; }
.nav-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px/1 var(--disp); letter-spacing: .02em; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line2), 0 6px 20px #f0c76633; }
.brand small { font: 600 15px/1 'Kufi', var(--disp); color: var(--gold); margin-inline-start: 2px; }
.nav-r { display: flex; align-items: center; gap: 8px; }
.nav-link { font-weight: 700; font-size: 14px; color: var(--sand); padding: 10px 12px; border-radius: 99px; }
.nav-link:hover, .nav-link.on { color: var(--gold); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #ffffff0d; border: 1px solid var(--line); font-size: 13px; color: var(--mut); white-space: nowrap; }
.chip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #ffffff08; font-size: 15px; font-weight: 800; }
.icon-btn:hover { border-color: var(--line2); color: var(--gold); }
.lang-btn { min-width: 46px; height: 40px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: #ffffff08; font: 700 14px/1 'Kufi', var(--text); color: var(--sand); }
.lang-btn:hover { border-color: var(--gold2); color: var(--gold); }

/* buttons: liquid gold */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 99px; overflow: hidden; isolation: isolate;
  font: 800 16px/1 var(--text); letter-spacing: .01em; color: var(--accent-ink); background: linear-gradient(180deg, #ffe7a6, #f0c766 45%, #c9952f); box-shadow: 0 1px 0 #fff6d5 inset, 0 -2px 0 #9b6f22 inset, 0 10px 30px -8px #f0c76680;
  transition: transform .25s var(--spring); white-space: nowrap; }
.btn::after { content: ''; position: absolute; inset: 0 auto 0 -60%; width: 50%; background: linear-gradient(100deg, transparent, #ffffffa0, transparent); transform: translateX(0) skewX(-20deg); z-index: -1; animation: shine 4.5s 1.5s var(--ease) infinite; }
@keyframes shine { 0%, 70% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(420%) skewX(-20deg); } }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn.wait { opacity: .7; pointer-events: none; }
.btn.ghost { color: var(--ink); background: #0a0806b3; border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost::after { display: none; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn.big { min-height: 60px; padding: 0 30px; font-size: 17px; }
.btn.emer { color: #eafff5; background: linear-gradient(180deg, #2fd29b, #19b37f 50%, #0c6b4c); box-shadow: 0 1px 0 #9ff3d3 inset, 0 10px 30px -10px #19b37f99; }
html[dir=rtl] .btn { font-weight: 700; letter-spacing: 0; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--emer); flex: none; }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #19b37f; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.offscreen, .offscreen * { animation-play-state: paused !important; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

/* lattice texture (static) */
.lattice { background-image: url(/media/lattice.svg); background-size: 96px 96px; }

.foot { padding: 46px 0 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }
.foot a:hover { color: var(--gold); }
.foot > a { display: inline-flex; align-items: center; min-height: 40px; min-width: 40px; justify-content: center; }
.foot .brand { color: var(--ink); font-size: 18px; }
.foot p { max-width: 520px; }

/* Arabic text waits for i18n.js (max 1.2 s) so RTL visitors never see English flash */
html.i18n-wait [data-i18n], html.i18n-wait [data-i18n-html] { opacity: 0; animation: i18nshow 0s 1.2s forwards; }
@keyframes i18nshow { to { opacity: 1; } }

@media (max-width: 640px) {
  .nav { padding: 10px 0; }
  .brand { font-size: 18px; } .brand img { width: 34px; height: 34px; }
  .nav-r .chip, .nav-r .nav-link { display: none; }
  .btn.big { min-height: 56px; font-size: 16px; padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
