/* =========================================================
   Sabaek for Financial Services — site styles
   Brand colours taken from the official logo files:
   slate #6B7178 · teal #ABCDD0
   ========================================================= */

:root {
  --slate: #6B7178;
  --teal: #ABCDD0;

  --ink: #6B7178;          /* headings / primary text = logo slate */
  --text: #6B7178;         /* body text = logo slate */
  --dark: #464B51;         /* dark surfaces (CTA band, store buttons) — deeper shade of the logo slate */
  --muted: #6B7178;        /* secondary text = brand slate */
  --line: #E2E6E8;
  --bg: #FFFFFF;
  --bg-soft: #F3F7F8;      /* light panels (teal-tinted) */
  --bg-panel: #E9F1F2;

  --primary: #ABCDD0;      /* logo pale teal — used as a FILL (buttons, chips, tiles) */
  --primary-hover: #97C1C5;
  --primary-soft: #E2EEEF;
  --on-primary: #33383E;   /* text/icons on pale teal (≈5:1 contrast) */

  --up: #1F8A62;
  --down: #C2493D;

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", Arial Narrow, sans-serif;
  --shadow: 0 1px 2px rgba(20,30,40,.06), 0 8px 24px rgba(20,30,40,.06);
}

html[lang="ar"] {
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --font-display: "Tajawal", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--dark); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Icons ---------- */
.ico { width: 22px; height: 22px; flex: none; }
.ico--xs { width: 14px; height: 14px; }
.ico--sm { width: 18px; height: 18px; }
.ico--lg { width: 32px; height: 32px; }
.flip { transform: scaleX(-1); }
[dir="rtl"] .flip { transform: none; }
[dir="rtl"] .flip-rtl, [dir="rtl"] [data-next] .ico { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 8px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--sm { height: 38px; padding: 0 16px; font-size: 15px; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 17px; }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--outline { border-color: var(--primary); color: var(--ink); background: #fff; }
.btn--outline:hover { background: var(--primary-soft); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }

.round-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-grid; place-items: center;
  background: var(--primary); color: var(--on-primary); transition: background-color .2s, opacity .2s;
}
.round-btn:hover { background: var(--primary-hover); }
.round-btn--muted { background: var(--bg-panel); color: var(--slate); }
.round-btn--muted:hover { background: var(--primary-soft); }
.round-btn[disabled] { opacity: .45; cursor: default; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link-arrow:hover { text-decoration-color: var(--ink); }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .ico { transform: scaleX(-1) translateX(4px); }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.eyebrow--sm { font-size: 12.5px; margin-bottom: 10px; color: var(--muted); }
.eyebrow--light { color: rgba(255,255,255,.85); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }

.display {
  font-family: var(--font-display);
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(48px, 8.4vw, 112px); line-height: .92; letter-spacing: -.01em;
  color: var(--ink);
}
.display--md { font-size: clamp(40px, 5.6vw, 76px); margin-bottom: clamp(28px, 4vw, 48px); }
html[lang="ar"] .display { text-transform: none; line-height: 1.15; font-weight: 800; letter-spacing: 0; font-size: clamp(40px, 6.4vw, 84px); }
html[lang="ar"] .display--md { font-size: clamp(34px, 4.6vw, 60px); }

.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--text); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; }
.bar { border-bottom: 1px solid var(--line); }
.bar__inner { display: flex; align-items: center; gap: 24px; }
.bar--main .bar__inner { height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand__logo { height: 44px; width: auto; }
.brand__logo--ar, [dir="rtl"] .brand__logo--en { display: none; }
[dir="rtl"] .brand__logo--ar { display: block; }

.primary-nav { display: flex; gap: clamp(16px, 2.2vw, 34px); margin-inline: auto; }
.primary-nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink); padding: 6px 0; position: relative;
}
html[lang="ar"] .primary-nav a { font-size: 17px; letter-spacing: 0; }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--dark); }
.primary-nav a.is-active::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 3px; background: var(--primary); border-radius: 2px; }

.bar__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 8px 6px; color: var(--ink); }
.lang-switch .ico { color: var(--slate); }
.lang-switch span { font-family: "Tajawal", var(--font); }
html[lang="ar"] .lang-switch span { font-family: "Barlow", sans-serif; }
.menu-toggle { display: none; width: 42px; height: 42px; place-items: center; color: var(--ink); }

.bar--sub .bar__inner { height: 52px; justify-content: space-between; }
.sub-nav { display: flex; align-items: stretch; height: 100%; gap: 4px; }
.sub-nav > a, .dd__btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 15px; font-weight: 500; color: var(--ink); height: 100%; }
.sub-nav > a:hover, .dd__btn:hover, .dd:focus-within .dd__btn { color: var(--dark); }
.sub-nav--end { border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.dd { position: relative; display: flex; }
.dd__btn .ico { transition: transform .2s; }
.dd__panel {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; display: grid; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dd__panel a { padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.dd__panel a:hover { background: var(--primary-soft); color: var(--dark); }
.dd:hover .dd__panel, .dd:focus-within .dd__panel, .dd.is-open .dd__panel { opacity: 1; visibility: visible; transform: none; }
.dd:hover .dd__btn .ico, .dd.is-open .dd__btn .ico { transform: rotate(180deg); }

.mobile-menu { border-top: 1px solid var(--line); background: #fff; padding: 12px var(--gutter) 24px; max-height: calc(100vh - var(--header-h)); overflow: auto; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; color: var(--ink); }
.mobile-menu__cta { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; isolation: isolate; }
.hero { background: #2a2f35; }
.hero__reel { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.2s ease, transform 9s linear;
}
/* active scene fades in and slowly zooms out (Ken Burns) */
.hero__video.is-active { opacity: 1; transform: scale(1); }
/* Overlay: an even slate tint over the whole frame (tames the bright red/green bars),
   a touch of brand teal, then heavier shading behind the text block. */
/* Light overlay: shading only behind the text column and the bottom edge,
   so most of the video stays clear. */
.hero__shade { position: absolute; inset: 0; z-index: -1; --dir: 90deg; background:
  linear-gradient(var(--dir), rgba(34,39,45,.6) 0%, rgba(34,39,45,.32) 35%, rgba(34,39,45,0) 62%),
  linear-gradient(180deg, rgba(34,39,45,0) 55%, rgba(34,39,45,.5) 100%),
  rgba(34,39,45,.1); }
[dir="rtl"] .hero__shade { --dir: 270deg; }
.hero__content { text-shadow: 0 1px 2px rgba(0,0,0,.4), 0 2px 18px rgba(0,0,0,.45); }
.hero__content > :not(.reel-nav) { max-width: 600px; }
/* soft, feathered shade only behind the text block — keeps bright scenes legible
   without darkening the rest of the video */
.hero__content { position: relative; }
.hero__content::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset-inline-start: -12%; top: 6%; width: min(860px, 88%); height: 84%;
  background: radial-gradient(ellipse at 35% 50%, rgba(34,39,45,.55) 0%, rgba(34,39,45,.3) 42%, rgba(34,39,45,0) 72%);
}
.hero__lead { font-weight: 500; }
.hero .btn--ghost { background: rgba(34,39,45,.28); }
.hero .btn--ghost:hover { background: rgba(34,39,45,.45); }
.hero__toggle {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px); transition: background-color .2s;
}
.hero__toggle:hover { background: rgba(255,255,255,.24); }
.hero__content { padding-block: clamp(80px, 14vh, 140px) clamp(48px, 8vh, 88px); }
.hero__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: #fff;
  font-size: clamp(44px, 6.2vw, 92px); line-height: .9; letter-spacing: -.01em; margin-bottom: 16px;
}
html[lang="ar"] .hero__title { text-transform: none; letter-spacing: 0; line-height: 1.15; font-size: clamp(42px, 5.4vw, 80px); }
.hero__lead { font-size: clamp(16px, 1.3vw, 19px); max-width: 520px; color: #fff; margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Scene navigation (story-style progress bars) */
.reel-nav { display: flex; align-items: center; gap: 20px; margin-top: clamp(40px, 7vh, 72px); text-shadow: none; }
.reel-nav__segs { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 820px; }
.seg { display: grid; gap: 10px; text-align: start; padding-block: 8px; color: rgba(255,255,255,.62); font-size: 14px; font-weight: 600; transition: color .2s; }
.seg:hover, .seg.is-active { color: #fff; }
.seg__bar { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.seg__bar i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 2px; }
.seg.is-done .seg__bar i { width: 100%; }
.seg.is-active .seg__bar i { animation: segFill var(--reel-dur, 7s) linear forwards; }
.reel-nav.is-paused .seg.is-active .seg__bar i { animation-play-state: paused; }
.reel-nav.is-static .seg.is-active .seg__bar i { animation: none; width: 100%; }
.seg__label { display: flex; gap: 8px; align-items: baseline; }
.seg__label b { font-family: "Barlow Condensed", sans-serif; font-weight: 700; color: var(--teal); letter-spacing: .04em; }
@keyframes segFill { from { width: 0; } to { width: 100%; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 80px); }
.section--alt { background: var(--bg-soft); }
#accounts { padding-bottom: clamp(24px, 3vw, 40px); }

/* ---------- Carousel ---------- */
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3.25);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 4px; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__track--hl { grid-auto-columns: calc((100% - 3 * 24px) / 3.6); }
.carousel__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* Product cards — Swissquote-style reveal:
   on hover / keyboard focus / tap, the "+" circle scales up to flood the card with pale teal,
   links slide in one by one, and the footer link rises from the bottom. */
.pcard {
  --open-ease: cubic-bezier(.4, 0, .2, 1);
  --pc-dur: .9s;      /* card reveal speed — raise to slow down, lower to speed up */
  --dirx: 1;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px);
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: #2b3036; color: #fff; cursor: pointer;
}
[dir="rtl"] .pcard { --dirx: -1; }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; }
.pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(15,20,25,.6) 0%, rgba(15,20,25,.12) 40%, rgba(15,20,25,0) 100%); }

.pcard__title {
  position: relative; z-index: 1;
  margin: clamp(24px, 2.6vw, 34px) clamp(18px, 2vw, 28px) 0;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 3.4vw, 50px); line-height: .95; color: #fff;
  text-shadow: 0 1px 16px rgba(0,0,0,.25);
  transition: color calc(var(--pc-dur) * .7) var(--open-ease), text-shadow calc(var(--pc-dur) * .7);
}
html[lang="ar"] .pcard__title { text-transform: none; line-height: 1.2; font-size: clamp(30px, 2.8vw, 42px); }

/* the circle that grows */
.pcard__plus {
  position: absolute; z-index: 0; pointer-events: none;
  inset-inline-end: 22px; bottom: 22px;
  width: 44px; aspect-ratio: 1; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--on-primary);
  background-image: linear-gradient(143deg, var(--primary) 0%, var(--primary) 100%);
  transition: scale var(--pc-dur) var(--open-ease), background-image var(--pc-dur);
}
.pcard__plus .ico { transition: opacity .15s calc(var(--pc-dur) * .6); }

.pcard__content {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; pointer-events: none;
  transition: opacity calc(var(--pc-dur) * .9) calc(var(--pc-dur) * .2);
}
.pcard__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pcard__link {
  opacity: 0; translate: calc(-50% * var(--dirx)) 0;
  transition: opacity calc(var(--pc-dur) * .8) ease, translate calc(var(--pc-dur) * .8) ease; transition-delay: 0s;
}
.pcard__content a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px clamp(18px, 2vw, 28px);
  font-size: clamp(16px, 1.35vw, 19px); font-weight: 600; color: var(--on-primary);
  transition: opacity .3s;
}
.pcard__content a .ico { width: 20px; height: 20px; flex: none; transition: translate .3s; }
.pcard__content a:hover { opacity: .72; }
.pcard__content a:hover .ico { translate: calc(10px * var(--dirx)) 0; }
.pcard__content a:focus-visible { outline-offset: -4px; }
.pcard__foot { border-top: 1px solid rgba(51,56,62,.22); translate: 0 100%; transition: translate var(--pc-dur) var(--open-ease); }
.pcard__foot a { padding-block: clamp(16px, 1.8vw, 22px); }

/* open state */
.pcard:is(:hover, :focus-within, .is-open) .pcard__plus {
  scale: 35;
  background-image: linear-gradient(143deg, var(--primary) 26%, #8DBBC0 70%);
}
.pcard:is(:hover, :focus-within, .is-open) .pcard__plus .ico { opacity: 0; transition-duration: 0s; transition-delay: 0s; }
.pcard:is(:hover, :focus-within, .is-open) .pcard__title { color: var(--on-primary); text-shadow: none; }
.pcard:is(:hover, :focus-within, .is-open) .pcard__content { opacity: 1; pointer-events: auto; }
.pcard:is(:hover, :focus-within, .is-open) .pcard__link { opacity: 1; translate: 0 0; transition-delay: calc(var(--pc-dur) * .2 + var(--i, 0) * var(--pc-dur) * .18); }
.pcard:is(:hover, :focus-within, .is-open) .pcard__foot { translate: 0 0; }
/* touch devices: hover is unreliable, so only open on tap (.is-open, set in main.js) */
@media (hover: none) {
  .pcard:hover:not(.is-open):not(:focus-within) .pcard__plus { scale: 1; background-image: linear-gradient(143deg, var(--primary) 0%, var(--primary) 100%); }
  .pcard:hover:not(.is-open):not(:focus-within) .pcard__plus .ico { opacity: 1; }
  .pcard:hover:not(.is-open):not(:focus-within) .pcard__title { color: #fff; }
  .pcard:hover:not(.is-open):not(:focus-within) .pcard__content { opacity: 0; pointer-events: none; }
  .pcard:hover:not(.is-open):not(:focus-within) .pcard__link { opacity: 0; translate: calc(-50% * var(--dirx)) 0; }
  .pcard:hover:not(.is-open):not(:focus-within) .pcard__foot { translate: 0 100%; }
}

/* Live markets card */
.live-card { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow); overflow: hidden; }
.live-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: clamp(24px, 3.2vw, 44px) clamp(20px, 3.2vw, 44px) clamp(20px, 2.4vw, 32px); }
.live-card__head .display--md { margin-bottom: 12px; }
.live-card__lead { max-width: 620px; }
.live-badge { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--dark); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .live-badge { letter-spacing: 0; font-size: 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5E9AA0; animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(94,154,160,.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(94,154,160,0); } }
.live-card__body { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; border-top: 1px solid var(--line); }
.live-overview { height: 600px; border-inline-end: 1px solid var(--line); padding: 6px 4px; }
.live-chart { display: flex; flex-direction: column; height: 600px; min-width: 0; }
.chips { display: flex; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--primary); background: var(--primary-soft); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.live-chart__frame { flex: 1; min-height: 0; }
.live-overview .tradingview-widget-container, .live-chart__frame .tradingview-widget-container,
.live-overview .tradingview-widget-container__widget, .live-chart__frame .tradingview-widget-container__widget { height: 100%; width: 100%; }
.live-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 18px clamp(20px, 3.2vw, 44px); background: var(--bg-soft); border-top: 1px solid var(--line); }
.live-card__foot p { font-size: 13.5px; color: var(--muted); max-width: 640px; }
/* placeholder shimmer until widgets load */
.live-overview:empty, .live-chart__frame:empty { background: linear-gradient(90deg, var(--bg-soft) 0%, #fff 50%, var(--bg-soft) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Why */
.why__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(28px, 4vw, 48px); align-items: start; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.stat { padding: 22px 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-inline-end: 16px; }
.stat:nth-child(even) { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.stat dt { font-size: 14px; color: var(--muted); order: 2; }
.stat dd { font-variant-numeric: tabular-nums; margin: 0 0 4px; font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; color: var(--ink); }
.stat dd::after { content: ""; display: block; width: 36px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--primary); }
.stat { display: flex; flex-direction: column-reverse; }
html[lang="ar"] .stat dd { font-family: "Barlow Condensed", "Tajawal", sans-serif; font-size: clamp(30px, 3.6vw, 48px); }

/* Ticker */
.ticker { border-bottom: 1px solid var(--line); min-height: 46px; background: #fff; }

/* Highlight cards */
.hcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.hcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.hcard__media { aspect-ratio: 10 / 7; overflow: hidden; background: var(--bg-panel); }
.hcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hcard:hover .hcard__media img { transform: scale(1.05); }
.hcard__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hcard__body h3 { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
html[lang="ar"] .hcard__body h3 { text-transform: none; font-size: 24px; line-height: 1.3; }
.hcard__body p:not(.eyebrow) { color: var(--muted); font-size: 16px; }
.hcard__body .link-arrow { margin-top: auto; padding-top: 8px; }
.hcard__body .eyebrow { margin-bottom: 0; }

/* Platforms panel */
.panel { background: var(--bg-soft); border-radius: calc(var(--radius) + 8px); padding: clamp(32px, 5vw, 72px); overflow: hidden; }
.panel__head { text-align: center; }
.pf { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pf__tabs { display: grid; gap: 4px; }
.pf__tab { text-align: start; padding: 20px 22px; border-radius: 12px; border-inline-start: 3px solid transparent; display: grid; gap: 4px; transition: background-color .2s, border-color .2s; }
.pf__tab strong { font-size: 20px; color: var(--ink); font-weight: 700; }
.pf__tab span { color: var(--muted); font-size: 16px; }
.pf__tab:hover { background: rgba(255,255,255,.6); }
.pf__tab.is-active { background: #fff; border-color: var(--primary); box-shadow: var(--shadow); }
.pf__tab.is-active strong { color: var(--dark); }
.pf__stage { display: grid; justify-items: center; gap: 24px; position: relative; }
.pf__stage::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--teal) 0%, rgba(171,205,208,0) 68%); top: 4%; z-index: 0; }
.pf__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; position: relative; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--dark); color: #fff; padding: 9px 18px 9px 14px; border-radius: 10px; font-weight: 600; line-height: 1.1; transition: background-color .2s; }
.store:hover { background: var(--slate); }
.store small { display: block; font-size: 11px; font-weight: 400; opacity: .8; }

.phone { position: relative; z-index: 1; width: min(300px, 78vw); aspect-ratio: 9 / 18.5; background: #111518; border-radius: 42px; padding: 12px; box-shadow: 0 30px 60px rgba(20,40,50,.22), inset 0 0 0 2px #2a3036; }
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #111518; border-radius: 14px; z-index: 2; }
.phone__screen { background: #fff; border-radius: 31px; height: 100%; overflow: hidden; display: flex; flex-direction: column; padding: 46px 16px 14px; gap: 10px; }
.app-top { display: flex; align-items: center; gap: 8px; }
.app-top__title { font-weight: 700; color: var(--ink); font-size: 17px; }
.app-top__tag { margin-inline-start: auto; font-size: 11px; font-weight: 700; background: var(--primary); color: var(--on-primary); padding: 3px 8px; border-radius: 6px; }
.app-tf { display: flex; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.app-tf span { padding: 3px 8px; border-radius: 6px; }
.app-tf .on { background: var(--slate); color: #fff; }
.app-chart { width: 100%; height: 150px; flex: none; }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; flex: 1; overflow: hidden; }
.app-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink); font-weight: 600; }
.app-list .bar-mini { width: 60px; height: 6px; border-radius: 3px; background: var(--bg-panel); overflow: hidden; }
.app-list .bar-mini i { display: block; height: 100%; background: var(--teal); }
.app-trade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-trade span { text-align: center; color: #fff; font-weight: 700; padding: 10px; border-radius: 10px; font-size: 14px; }
.app-trade .sell { background: var(--down); }
.app-trade .buy { background: var(--up); }
.app-note { font-size: 10px; text-align: center; color: var(--muted); }
.phone__screen > * { transition: opacity .25s; }
.phone.is-switching .phone__screen > * { opacity: 0; }

/* Columns (journey) */
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.col { padding: 32px 28px 8px; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.col:first-child { border-inline-start: 0; padding-inline-start: 0; }
.col h3 { font-size: 22px; line-height: 1.25; font-weight: 700; }
.col p:not(.eyebrow) { color: var(--muted); }
.col .link-arrow { margin-top: auto; padding-top: 8px; }
.col .eyebrow { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset-inline-end: -60px; top: 50%; width: 420px; aspect-ratio: 1; transform: translateY(-50%); background: url("../assets/mark.svg") center / contain no-repeat; opacity: .14; pointer-events: none; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(56px, 7vw, 96px); position: relative; z-index: 1; }
.cta-band .display { color: #fff; margin: 0; max-width: 760px; }
.cta-band__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn--outline:hover { background: rgba(255,255,255,.1); }
.cta-band .btn--primary { background: var(--primary); color: var(--on-primary); }
.cta-band .btn--primary:hover { background: #c3dcdf; }

/* Account forms */
.forms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.form-card { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.form-card > .ico--lg, .ccard > .ico--lg { width: 48px; height: 48px; padding: 10px; border-radius: 12px; background: var(--primary); color: var(--on-primary); }
.form-card strong { display: block; color: var(--ink); font-size: 18px; }
.form-card small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; margin-top: 2px; }
.form-card__dl { margin-inline-start: auto; color: var(--slate); }
.form-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.form-card:hover .form-card__dl { color: var(--dark); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__text > p { font-size: 18px; margin-bottom: 28px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.mv > div { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 22px; }
.mv h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--dark); margin-bottom: 8px; }
html[lang="ar"] .mv h3 { letter-spacing: 0; font-size: 17px; }
.mv p { font-size: 16px; color: var(--text); }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink); }
.badges .ico { color: var(--on-primary); background: var(--primary); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.about__media { position: relative; border-radius: var(--radius); overflow: visible; }
.about__media > img:first-child { border-radius: var(--radius); aspect-ratio: 5 / 6; object-fit: cover; width: 100%; }
.about__mark { position: absolute; width: 112px; height: auto; bottom: -28px; inset-inline-start: -28px; background: #fff; border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccard { background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.ccard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ccard > .ico { margin-bottom: 10px; }
.ccard__k { font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .ccard__k { letter-spacing: 0; }
.ccard__v { font-size: 22px; font-weight: 700; color: var(--ink); }
.ccard__v--sm { font-size: 17px; font-weight: 600; line-height: 1.45; }
.ccard__s { font-size: 15px; color: var(--muted); }
[dir="rtl"] .ccard__v[dir="ltr"] { text-align: end; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: clamp(56px, 6vw, 80px); font-size: 15px; }
.footer__top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 48px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__col h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
html[lang="ar"] .footer__col h4 { letter-spacing: 0; font-size: 15px; }
.footer__col a:not(.btn) { color: var(--ink); font-weight: 500; }
.footer__col a:not(.btn):hover { color: var(--dark); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer__col .btn { margin-bottom: 4px; }
.footer__brand { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; border-block: 1px solid var(--line); }
.footer__brand img { height: 46px; width: auto; }
.footer__brand .brand__logo--ar { display: none; }
[dir="rtl"] .footer__brand .brand__logo--en { display: none; }
[dir="rtl"] .footer__brand .brand__logo--ar { display: block; }
.social { display: flex; gap: 8px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--slate); transition: background-color .2s, color .2s; }
.social a:hover { background: var(--primary); color: var(--on-primary); }
.social .ico { width: 18px; height: 18px; }
.legal { padding-block: 36px; color: var(--muted); font-size: 13.5px; line-height: 1.65; max-width: 1080px; }
.legal h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 18px 0 6px; }
.legal h4:first-child { margin-top: 0; }
html[lang="ar"] .legal h4 { letter-spacing: 0; font-size: 15px; }
html[lang="ar"] .legal { font-size: 14.5px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__bottom a:hover { color: var(--dark); }

/* Notice */
.notice {
  position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px;
  background: #EAF2F4; border: 1px solid #D5E4E7; border-radius: 12px; box-shadow: var(--shadow);
  font-size: 14px; color: var(--ink);
  animation: noticeIn .4s ease-out;
}
.notice a { color: var(--dark); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.notice__close { margin-inline-start: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; flex: none; }
.notice__close:hover { background: rgba(0,0,0,.06); }
@keyframes noticeIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/* Hero: CSS-only entrance so it never depends on JS timing */
.hero .reveal { opacity: 1; transform: none; transition: none; animation: heroIn .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4) { animation-delay: .24s; }
.hero .reveal:nth-child(5) { animation-delay: .36s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .reveal { animation: none; }
  .hero__video { transition: opacity .01s; transform: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .bar__actions { margin-inline-start: auto; }
  .menu-toggle { display: grid; }
  .forms { grid-template-columns: repeat(2, 1fr); }
  .cols4 { grid-template-columns: repeat(2, 1fr); }
  .col:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .col { padding-bottom: 32px; }
  .col:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .bar--sub { display: none; }
  html { scroll-padding-top: 84px; }
  .carousel__track { grid-auto-columns: 72%; }
  .carousel__track--hl { grid-auto-columns: 62%; }
  .why__grid, .about, .pf { grid-template-columns: 1fr; }
  .live-card__body { grid-template-columns: 1fr; }
  .live-overview { height: 520px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .live-chart { height: 460px; }
  .live-card__head { flex-direction: column-reverse; gap: 14px; }
  .pf__stage { order: -1; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .about__mark { inset-inline-start: auto; inset-inline-end: 16px; bottom: -24px; width: 92px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .brand__logo { height: 36px; }
  .hide-sm { display: none; }
  .bar__actions .btn--outline { display: none; }
  .hero { min-height: 82vh; }
  /* text spans the full width on phones, so shade from the bottom instead of the side */
  .hero__shade { background:
    linear-gradient(180deg, rgba(34,39,45,.05) 0%, rgba(34,39,45,.2) 35%, rgba(34,39,45,.68) 100%),
    rgba(34,39,45,.08); }
  .reel-nav { gap: 12px; margin-top: 28px; }
  .reel-nav__segs { gap: 6px; max-width: none; }
  .reel-nav .hero__toggle { display: none; }   /* phones: tap the current scene to pause instead */
  /* small labels on phones: number on top, name below (wraps to 2 lines if needed) */
  .seg { gap: 7px; padding-block: 6px; align-content: start; }
  .reel-nav__segs { align-items: start; }
  .seg__label { flex-direction: column; align-items: flex-start; gap: 1px; font-size: 10.5px; line-height: 1.25; font-weight: 600; }
  .seg__label b { font-size: 11px; letter-spacing: .02em; }
  html[lang="ar"] .seg__label { font-size: 11px; line-height: 1.35; }
  .hero__toggle { width: 36px; height: 36px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .carousel__track, .carousel__track--hl { grid-auto-columns: 86%; gap: 14px; }
  .forms, .cols4, .mv { grid-template-columns: 1fr; }
  .col { border-inline-start: 0 !important; padding-inline: 0 !important; border-top: 1px solid var(--line); }
  .col:first-child { border-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer__brand { flex-direction: column; align-items: flex-start; }
  .cta-band__btns .btn { flex: 1 1 100%; }
  .cta-band__btns { width: 100%; }
  .notice { bottom: 12px; font-size: 13px; }
}

/* =========================================================
   Inner pages
   ========================================================= */
:root { --sticky-top: 126px; }

/* current page in the header */
.primary-nav a[aria-current="page"] { color: var(--dark); }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 3px; background: var(--primary); border-radius: 2px; }
.dd__btn[aria-current="page"], .sub-nav > a[aria-current="page"] { color: var(--dark); box-shadow: inset 0 -3px 0 var(--primary); }

.section-more { margin-top: 28px; }
.section--line { border-top: 1px solid var(--line); }

/* Page header (Swissquote-style: title + intro + CTAs on the left, quotes or photo on the right) */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 88% 30%, rgba(171,205,208,.35), rgba(171,205,208,0) 42%), #fff; }
.page-hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(40px, 6vw, 88px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--dark); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--dark); font-weight: 600; }
.page-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: var(--ink);
  font-size: clamp(46px, 6.6vw, 96px); line-height: .92; letter-spacing: -.01em; margin-bottom: 20px; }
html[lang="ar"] .page-title { text-transform: none; letter-spacing: 0; line-height: 1.15; font-size: clamp(40px, 5.4vw, 76px); }
.page-hero .lead { max-width: 620px; margin-bottom: 30px; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: calc(var(--radius) + 8px); box-shadow: 0 24px 48px rgba(30,40,50,.14); }
.quotes { display: grid; gap: 12px; }
.quote { height: 82px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 6px; }
.quote:empty { background: linear-gradient(90deg, var(--bg-soft) 0%, #fff 50%, var(--bg-soft) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.quote .tradingview-widget-container, .quote .tradingview-widget-container__widget { height: 100%; }

/* Sticky in-page tabs */
html:has(.page-tabs) { scroll-padding-top: calc(var(--sticky-top) + 70px); }
/* Solid background on purpose: backdrop-filter on a sticky bar triggers a Chromium paint bug
   that hides the sticky site header above it while scrolling. */
.page-tabs { position: sticky; top: var(--sticky-top); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px -12px rgba(30,40,50,.25); }
.page-tabs .wrap { display: flex; gap: clamp(18px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; }
.page-tabs .wrap::-webkit-scrollbar { display: none; }
.page-tabs a { flex: none; padding: 17px 2px 14px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.page-tabs a:hover, .page-tabs a.is-active { color: var(--dark); border-color: var(--primary); }

/* Building blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) + 4px); }
.split__text > p { margin-bottom: 18px; }
.split__text .display--md { margin-bottom: 22px; }
.prose p + p { margin-top: 16px; }

.checklist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist .ico { flex: none; width: 24px; height: 24px; padding: 3px; margin-top: 1px; border-radius: 50%; background: var(--primary); color: var(--on-primary); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tile { background: var(--bg-soft); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.tile__k { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: clamp(36px, 3.4vw, 48px); line-height: 1; color: var(--ink); }
.tile__k::after { content: ""; display: block; width: 32px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--primary); }
.tile h3 { font-size: 20px; line-height: 1.3; }
.tile p { color: var(--muted); font-size: 16px; }
.tile .ico--lg { width: 48px; height: 48px; padding: 10px; border-radius: 12px; background: var(--primary); color: var(--on-primary); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.icard { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: clamp(24px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s, transform .2s; }
.icard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.icard .ico--lg { width: 52px; height: 52px; padding: 12px; border-radius: 14px; background: var(--primary); color: var(--on-primary); }
.icard h3 { font-size: 22px; line-height: 1.25; }
.icard p { color: var(--muted); }
.icard__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }

.mv-big { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv-big > div { border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 52px); }
.mv-big > div:first-child { background: var(--primary); color: var(--on-primary); }
.mv-big > div:last-child { background: var(--dark); color: #fff; }
.mv-big h3 { color: inherit; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
html[lang="ar"] .mv-big h3 { letter-spacing: 0; font-size: 17px; }
.mv-big p { font-size: clamp(20px, 2vw, 26px); line-height: 1.45; font-weight: 500; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.person { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .02em; }
.person strong { display: block; color: var(--ink); font-size: 18px; }
.person small { color: var(--muted); font-size: 14px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: #fff; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 44px; line-height: 1; color: var(--primary-hover); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.5px; }

.note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 12px; background: var(--bg-soft); border-inline-start: 4px solid var(--primary); font-size: 15px; }
.note .ico { flex: none; color: var(--dark); margin-top: 2px; }
.note strong { color: var(--ink); }

.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc-col { border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: clamp(24px, 3vw, 36px); background: #fff; }
.doc-col h3 { font-size: 22px; margin-bottom: 4px; }
.doc-col .checklist { margin-top: 18px; }

/* FAQ accordion */
.faq { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__nav { position: sticky; top: calc(var(--sticky-top) + 24px); display: grid; gap: 4px; }
.faq__nav a { padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.faq__nav a:hover { background: var(--primary-soft); color: var(--dark); }
.faq__group + .faq__group { margin-top: 56px; }
.faq__group > h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3vw, 40px); margin-bottom: 8px; }
html[lang="ar"] .faq__group > h2 { text-transform: none; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--primary-soft); color: var(--dark); transition: rotate .3s, background-color .2s; }
.faq details[open] summary .ico { rotate: 45deg; background: var(--primary); }
.faq summary:hover .ico { background: var(--primary); }
.faq__a { padding: 0 0 24px; max-width: 820px; }
.faq__a p + p, .faq__a p + ol, .faq__a p + ul, .faq__a ul + p { margin-top: 12px; }
.faq__a ol, .faq__a ul { margin: 10px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cform { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 3vw, 40px); }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--dark); background: #fff; border: 1px solid #CBD2D6; border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 4px var(--primary-soft); }
.cform__fine { font-size: 13px; color: var(--muted); }
.map { border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: var(--bg-soft); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* Long-form legal text */
.prose-doc { max-width: 860px; }
.prose-doc h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 44px 0 14px; }
.prose-doc h2:first-child { margin-top: 0; }
.prose-doc h3 { font-size: 19px; margin: 26px 0 8px; }
.prose-doc p { margin-bottom: 14px; }

@media (max-width: 960px) {
  :root { --sticky-top: 73px; }
  .page-hero__inner, .split, .mv-big, .doc-cols, .contact-layout, .faq { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .faq__nav { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  :root { --sticky-top: 65px; }
  .steps, .cform__row { grid-template-columns: 1fr; }
  .page-hero__cta .btn { flex: 1 1 100%; }
}

/* Bilingual blocks on inner pages: <p data-lang="en">…</p><p data-lang="ar">…</p> */
html[lang="ar"] [data-lang="en"], html:not([lang="ar"]) [data-lang="ar"] { display: none !important; }
.legal-sec + .legal-sec { margin-top: 44px; }
.legal-sec h2 { margin-top: 0; }

/* Second header row: never wrap labels; tighten at medium widths */
.sub-nav > a, .dd__btn { white-space: nowrap; }
@media (max-width: 1180px) {
  .sub-nav > a, .dd__btn { padding: 0 8px; font-size: 14px; }
  .sub-nav--end { padding-inline-start: 6px; }
}

/* Sections that only wrap a padded panel don't need full bottom spacing */
.section:has(> .wrap > .panel) { padding-bottom: clamp(36px, 4vw, 64px); }

/* =========================================================
   Gold moment — AI-generated film (assets/video/gold-moment.mp4, 10s)
   The gold bar is in the footage; the page adds the "take-profit" notification,
   timed to the clip: toast at 2.0s (gold lands ~3.5s) · fades at 9.4s · restarts on each loop.
   ========================================================= */
.moment { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 12px); overflow: hidden; box-shadow: var(--shadow); }
.moment__stage { position: relative; aspect-ratio: 16 / 9; background: #B9CFD3 url("../assets/video/gold-moment-poster.jpg") center / cover no-repeat; overflow: hidden; }
.moment__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.moment__copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); align-items: end; padding: clamp(24px, 3.4vw, 48px); }
.moment__copy .display--md { margin-bottom: 0; }
.moment__lead { font-size: clamp(16px, 1.35vw, 18px); margin-bottom: 20px; max-width: 520px; }
.moment__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.moment__fine { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* push-style notification — over the empty wall, top-left of the footage (same spot in both languages) */
.moment__toast {
  position: absolute; z-index: 2; top: 5%; left: 3%;
  width: min(330px, 34%); display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: rgba(255,255,255,.95); border-radius: 18px; box-shadow: 0 18px 40px rgba(20,40,60,.22);
  opacity: 0; transform: translateY(-24px) scale(.96);
}
.moment__toast img { flex: none; width: 34px; height: auto; padding: 5px; border-radius: 10px; background: var(--dark); }
.moment__toast strong { display: block; color: var(--dark); font-size: 15px; }
.moment__toast small { display: block; color: var(--muted); font-size: 13px; }
.moment__tick { color: var(--up); }
.moment__time { margin-inline-start: auto; align-self: flex-start; font-size: 12px; color: var(--muted); }

.moment__sound { position: absolute; z-index: 2; right: 16px; bottom: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(30,36,42,.45); border: 1px solid rgba(255,255,255,.5); transition: background-color .2s; }
.moment__sound:hover { background: rgba(30,36,42,.7); }

.moment.is-playing .moment__toast { animation: toastIn .55s cubic-bezier(.2,.9,.3,1.25) 2s both, fadeOut .5s ease 9.4s forwards; }
@keyframes toastIn { to { opacity: 1; transform: none; } }
@keyframes fadeOut { to { opacity: 0; } }

.moment.is-static .moment__toast { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .moment .moment__toast { opacity: 1 !important; transform: none !important; animation: none !important; } }

@media (max-width: 860px) {
  .moment__copy { grid-template-columns: 1fr; }
  .moment__toast { width: min(290px, 70%); padding: 9px 11px; gap: 10px; top: 4%; }
  .moment__toast strong { font-size: 13.5px; } .moment__toast small { font-size: 12px; }
  .moment__toast img { width: 28px; }
}
@media (max-width: 560px) {
  /* compact so it stays on the wall, clear of her hair */
  .moment__toast { width: 47%; padding: 6px 8px; gap: 7px; border-radius: 12px; top: 5%; left: 2.5%; }
  .moment__toast img { width: 22px; padding: 3px; border-radius: 6px; }
  .moment__toast strong { font-size: 11px; line-height: 1.25; } .moment__toast small { font-size: 9.5px; }
  .moment__time { display: none; }
  .moment__sound { width: 36px; height: 36px; right: 10px; bottom: 10px; }
}

/* =========================================================
   Forex sign-up landing page (open-account.html) — CFI-style split screen
   ========================================================= */
.is-landing { background: #fff; }
.lp-risk { background: var(--bg-soft); border-bottom: 1px solid var(--line); text-align: center; padding: 9px 16px; font-size: 13px; color: var(--dark); }
.lp-risk a { text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }

.lp-hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 38px); }

/* brand panel */
.lp-brand { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; color: #fff;
  padding: clamp(24px, 3.6vw, 52px); background: linear-gradient(160deg, #50565D 0%, #3A3F45 55%, #2C3136 100%); }
.lp-brand::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 85% 18%, rgba(171,205,208,.22), rgba(171,205,208,0) 45%); }
.lp-brand__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-logo img { height: 46px; width: auto; }
.lp-lang { color: #fff; }
.lp-lang .ico { color: var(--primary); }
.lp-brand__body { margin-block: auto; max-width: 540px; padding-block: clamp(28px, 6vh, 64px); position: relative; z-index: 1; }
.lp-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: #fff; font-size: clamp(36px, 4.2vw, 60px); line-height: .95; }
html[lang="ar"] .lp-title { text-transform: none; line-height: 1.25; font-size: clamp(32px, 3.6vw, 50px); }
.lp-sub { color: var(--primary); font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; margin: 14px 0 clamp(26px, 4vh, 40px); }
.lp-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.lp-feats li { display: flex; gap: 16px; align-items: flex-start; }
.lp-feats__ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--primary);
  background: rgba(171,205,208,.14); border: 1px solid rgba(171,205,208,.3); }
.lp-feats strong { display: block; color: #fff; font-size: 19px; margin-bottom: 2px; }
.lp-feats div > span { display: block; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.5; }
.lp-chart { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 42%; color: var(--primary); opacity: .32; pointer-events: none; z-index: 0; }

/* form panel */
.lp-form-wrap { display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); background: #fff; }
.lp-form-card { width: min(480px, 100%); }
.lp-form-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: var(--ink); font-size: clamp(30px, 3vw, 40px); line-height: 1; }
html[lang="ar"] .lp-form-title { text-transform: none; line-height: 1.3; }
.lp-form-sub { color: var(--muted); margin: 8px 0 24px; }
.lp-form { display: grid; gap: 14px; }
.lp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-phone { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.lp-err { display: none; color: var(--down); font-size: 12.5px; font-weight: 500; }
.lp-err.is-shown { display: block; }
.field [aria-invalid="true"] { border-color: var(--down); }
.lp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--text); cursor: pointer; }
.lp-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--dark); }
.lp-check a, .lp-alt a { color: var(--dark); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* visually hidden without any offset (a -9999px offset becomes scrollable overflow in RTL) */
.lp-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.lp-submit { width: 100%; margin-top: 4px; }
.lp-submit[disabled] { opacity: .6; cursor: progress; }
.lp-form-error { color: var(--down); font-size: 14px; }
.lp-alt { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }

.lp-done { display: grid; justify-items: center; gap: 12px; text-align: center; }
.lp-done:focus { outline: none; }
.lp-done__ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); margin-bottom: 6px; }
.lp-done__ico .ico { width: 38px; height: 38px; }
.lp-done__next { color: var(--muted); font-size: 15px; }
.lp-done__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

/* below the fold */
.lp-steps-sec .display--md { margin-bottom: 28px; }
.lp-pay-sec { background: var(--bg-soft); }
.lp-pay-title { text-align: center; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
html[lang="ar"] .lp-pay-title { letter-spacing: 0; font-size: 17px; }
.lp-pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.lp-pay__item { width: 210px; height: 92px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; color: var(--dark); }
.lp-pay__item .ico--lg { color: var(--dark); }
.lp-visa { font-family: "Barlow", sans-serif; font-style: italic; font-weight: 800; font-size: 30px; letter-spacing: .04em; color: #1A1F71; }
.lp-mc { display: inline-flex; }
.lp-mc i { width: 26px; height: 26px; border-radius: 50%; display: block; background: #EB001B; }
.lp-mc i + i { background: #F79E1B; margin-inline-start: -10px; opacity: .92; }
.lp-pay-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
.lp-badges { justify-content: center; margin-top: 22px; }

.lp-footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 40px 0 26px; font-size: 13px; line-height: 1.6; }
.lp-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 18px; }
.lp-footer__top img { height: 40px; width: auto; }
.lp-footer__contact { display: grid; gap: 2px; color: #fff; font-size: 14px; }
.lp-footer__contact a:hover { text-decoration: underline; }
.lp-footer .social a { background: rgba(255,255,255,.1); color: #fff; }
.lp-footer .social a:hover { background: var(--primary); color: var(--on-primary); }
.lp-footer__legal { max-width: 1060px; margin-bottom: 10px; }
.lp-footer__legal a { color: #fff; text-decoration: underline; }
.lp-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.lp-footer__bottom a { color: #fff; }

@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; min-height: 0; }
  .lp-brand__body { padding-block: 26px 30px; }
  .lp-feats { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .lp-feats li { flex-direction: column; gap: 8px; }
  .lp-feats div > span { display: none !important; }   /* compact on phones: titles only */
  .lp-feats strong { font-size: 15px; }
  .lp-feats__ico { width: 40px; height: 40px; border-radius: 12px; }
  .lp-chart { height: 30%; }
}
@media (max-width: 560px) {
  .lp-row { grid-template-columns: 1fr; }
  .lp-phone { grid-template-columns: 104px 1fr; }
  .lp-logo img { height: 38px; }
  .lp-pay__item { width: calc(50% - 7px); height: 80px; }
}

