/* ── Hero spacing fix — overrides per-page 90svh min-height ── */
.cs-hero {
  min-height: 0 !important;
  padding-top: clamp(7rem, 13vh, 9rem) !important;
  padding-bottom: clamp(3rem, 6vh, 5rem) !important;
  align-items: flex-start !important;
}

/* ── Theme toggle button ── */
.theme-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  flex-shrink: 0;
}
.theme-btn:hover { border-color: var(--orange); color: var(--orange); transform: rotate(40deg); }
html[data-theme="light"] .theme-btn { border-color: rgba(21,21,46,.18); }

/* ── Ghost CTA button in light mode ── */
html[data-theme="light"] .cta.ghost {
  color: var(--orange);
  border-color: color-mix(in srgb, var(--orange) 45%, transparent);
}
html[data-theme="light"] .cta.ghost:hover {
  background: color-mix(in srgb, var(--orange) 8%, transparent);
  color: var(--orange);
}

/* ── Light theme variables ── */
html[data-theme="light"] {
  --bg: #F4F4FB;
  --bg2: #EAEAF6;
  --panel: #FFFFFF;
  --ink: #15152E;
  --muted: #5C6078;
  --line: rgba(109,93,246,.28);
}
html[data-theme="light"] nav.is-scrolled {
  background: rgba(244,244,251,.82);
  border-bottom: 1px solid rgba(21,21,46,.07);
}
html[data-theme="light"] .svc-card {
  background: #fff;
  border-color: rgba(21,21,46,.08);
  box-shadow: 0 20px 55px -22px rgba(21,21,46,.18);
}
html[data-theme="light"] .svc-card:hover { border-color: rgba(109,93,246,.4); }
html[data-theme="light"] .svc-chip {
  background: rgba(109,93,246,.07);
  border-color: rgba(21,21,46,.14);
  color: var(--ink);
}
html[data-theme="light"] .svc-cta-banner {
  background: #fff;
  border-color: rgba(21,21,46,.1);
  box-shadow: 0 28px 70px -32px rgba(21,21,46,.2);
}
html[data-theme="light"] .svc-section.alt { background: var(--bg2); }
html[data-theme="light"] footer { border-top-color: rgba(21,21,46,.08); }
html[data-theme="light"] footer .foot-links { border-bottom-color: rgba(21,21,46,.08); }
html[data-theme="light"] footer .foot-tagline,
html[data-theme="light"] footer .foot-list a,
html[data-theme="light"] footer .foot-contact-item,
html[data-theme="light"] footer .foot-contact-item a,
html[data-theme="light"] footer .foot-trust-label,
html[data-theme="light"] footer .foot-market,
html[data-theme="light"] footer .foot-copy,
html[data-theme="light"] footer .foot-legal-links a,
html[data-theme="light"] footer .foot-links a { color: #3A3D55; }
html[data-theme="light"] footer .foot-soc { color: #3A3D55; border-color: rgba(21,21,46,.18); }
html[data-theme="light"] footer .foot-market { border-color: rgba(21,21,46,.2); }
html[data-theme="light"] footer .foot-hr { background: rgba(21,21,46,.1); }

/* ── Scroll-reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ── Hero visual container ── */
.hero-visual {
  position: absolute;
  top: 50%;
  inset-inline-end: clamp(1rem, 5vw, 5rem);
  transform: translateY(-50%);
  pointer-events: none;
  animation: hv-float 7s ease-in-out infinite;
  opacity: .75;
}
@keyframes hv-float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 18px)); }
}
@media (max-width: 960px) { .hero-visual { display: none; } }
html[data-theme="light"] .hero-visual { opacity: .55; }
html[dir="rtl"] .hero-visual { inset-inline-end: auto; inset-inline-start: clamp(1rem,5vw,5rem); }

/* ── Subtle grid overlay on hero ── */
.cs-hero { position: relative; }
.cs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(109,93,246,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,93,246,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 80% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 80% 50%, black 0%, transparent 100%);
  pointer-events: none;
}
html[dir="rtl"] .cs-hero::after {
  mask-image: radial-gradient(ellipse 70% 70% at 20% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 20% 50%, black 0%, transparent 100%);
}

/* ── Glow orb behind visual ── */
.hero-glow {
  position: absolute;
  top: 50%;
  inset-inline-end: clamp(1rem, 5vw, 5rem);
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,93,246,.22) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(30px);
}
@media (max-width: 960px) { .hero-glow { display: none; } }

/* ── Stat counter strip ── */
.svc-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.8rem;
  flex-wrap: wrap;
}
.svc-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--orange2);
  line-height: 1;
}
.svc-stat-lbl {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .3rem;
}
html[lang="ar"] .svc-stat-lbl { font-family: var(--font-body); letter-spacing: 0; }

/* ═══ HERO — ANIMATED GLOW ORBS ═══ */
.hero-glow {
  animation: heroGlowPulse 9s ease-in-out infinite;
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: .8; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(calc(-50% - 18px)) scale(1.14); }
}
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }

.cs-hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,140,255,.14) 0%, transparent 68%);
  inset-inline-start: clamp(2rem, 6vw, 6rem);
  bottom: -60px;
  pointer-events: none;
  filter: blur(48px);
  animation: heroOrbB 17s ease-in-out infinite;
  z-index: 0;
}
@keyframes heroOrbB {
  0%, 100% { transform: translate(0, 0); }
  38% { transform: translate(18px, -24px); }
  70% { transform: translate(-12px, 10px); }
}
html[data-theme="light"] .cs-hero::before {
  background: radial-gradient(circle, rgba(109,93,246,.09) 0%, transparent 68%);
}
html[dir="rtl"] .cs-hero::before {
  inset-inline-start: auto;
  inset-inline-end: clamp(2rem, 6vw, 6rem);
}
@media (prefers-reduced-motion: reduce) { .cs-hero::before { animation: none; } }

/* ═══ SECTION DOT GRID ON ALT SECTIONS ═══ */
.svc-section.alt { position: relative; }
.svc-section.alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(109,93,246,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}
.svc-section.alt > * { position: relative; z-index: 1; }
html[data-theme="light"] .svc-section.alt::before {
  background-image: radial-gradient(rgba(109,93,246,.075) 1px, transparent 1px);
}

/* ═══ ENHANCED SVC CARD HOVER GLOW ═══ */
.svc-card {
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s, border-color .35s !important;
}
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(62% 72% at 50% 110%, color-mix(in srgb, var(--orange) 15%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .45s;
  pointer-events: none;
  z-index: -1;
}
.svc-card:hover::after { opacity: 1; }
html[data-theme="light"] .svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 56px -20px rgba(109,93,246,.2), 0 4px 18px rgba(21,21,46,.06) !important;
}

/* ═══ STAT NUM — GRADIENT TEXT ═══ */
.svc-stat-num {
  background: linear-gradient(135deg, var(--orange2) 0%, color-mix(in srgb, var(--orange) 60%, #b8afff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ═══ CTA BANNER AMBIENT GLOW ═══ */
.svc-cta-banner {
  position: relative;
  overflow: hidden;
}
.svc-cta-banner::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,93,246,.13) 0%, transparent 70%);
  inset-inline-end: -160px;
  top: -160px;
  pointer-events: none;
  filter: blur(55px);
  z-index: 0;
  animation: ctaOrbDrift 14s ease-in-out infinite;
}
.svc-cta-banner > * { position: relative; z-index: 1; }
@keyframes ctaOrbDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}
html[data-theme="light"] .svc-cta-banner::after {
  background: radial-gradient(circle, rgba(109,93,246,.1) 0%, transparent 70%);
}
@media (prefers-reduced-motion: reduce) { .svc-cta-banner::after { animation: none; } }

/* ═══ MARQUEE TICKER STRIP ═══ */
.ticker-strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
  background: rgba(109,93,246,.03);
}
.ticker-inner {
  display: flex;
  gap: 0;
  width: max-content;
  animation: tickerScroll 28s linear infinite;
}
.ticker-strip:hover .ticker-inner { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 0 2.4rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-right: 1px solid var(--line);
}
html[lang="ar"] .ticker-item { font-family: var(--font-body); letter-spacing: 0; font-size: .85rem; }
.ticker-item strong { color: var(--orange2); font-weight: 700; }
.ticker-item::before { content: '◆'; font-size: .45rem; color: var(--orange); opacity: .7; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .ticker-inner { animation: none; } }

/* ═══ REGIONAL MARKET SPLIT ═══ */
.mkt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: 3rem;
}
@media (max-width: 700px) { .mkt-split { grid-template-columns: 1fr; } }
.mkt-col {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.02);
  transition: border-color .35s, transform .35s;
}
.mkt-col:hover { border-color: color-mix(in srgb,var(--orange) 45%,transparent); transform: translateY(-3px); }
html[data-theme="light"] .mkt-col { background: #fff; border-color: rgba(21,21,46,.08); box-shadow: 0 2px 18px rgba(21,21,46,.04); }
html[data-theme="light"] .mkt-col:hover { box-shadow: 0 18px 50px -18px rgba(109,93,246,.18); }
.mkt-col::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb,var(--orange) 10%,transparent) 0%, transparent 70%);
  inset-inline-end: -80px;
  top: -80px;
  pointer-events: none;
  z-index: 0;
}
.mkt-col > * { position: relative; z-index: 1; }
.mkt-flag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
  background: color-mix(in srgb,var(--orange) 10%,transparent);
  padding: .38rem .9rem;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb,var(--orange) 28%,transparent);
}
html[lang="ar"] .mkt-flag { font-family: var(--font-body); letter-spacing: 0; font-size: .82rem; }
.mkt-col h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
html[lang="ar"] .mkt-col h3 { text-transform: none; font-weight: 800; line-height: 1.25; font-size: clamp(1.4rem, 3vw, 2rem); }
.mkt-col p { color: var(--muted); font-size: .92rem; line-height: 1.8; font-weight: 300; margin-bottom: 1.4rem; }
html[lang="ar"] .mkt-col p { font-size: .96rem; }
.mkt-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.mkt-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .35rem .8rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(109,93,246,.04);
  transition: border-color .25s, color .25s;
}
html[lang="ar"] .mkt-tag { font-family: var(--font-body); font-size: .82rem; letter-spacing: 0; }
.mkt-col:hover .mkt-tag { border-color: color-mix(in srgb,var(--orange) 35%,transparent); }

/* ═══ FAQ ACCORDION ═══ */
.faq-list { margin-top: 2.4rem; display: flex; flex-direction: column; gap: .6rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .3s;
  background: rgba(255,255,255,.02);
}
html[data-theme="light"] .faq-item { background: #fff; border-color: rgba(21,21,46,.08); }
.faq-item.open { border-color: color-mix(in srgb,var(--orange) 45%,transparent); }
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: .9rem;
  transition: transform .3s, background .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: color-mix(in srgb,var(--orange) 12%,transparent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s;
  padding: 0 1.5rem;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.4rem; }
.faq-a p { color: var(--muted); font-size: .92rem; line-height: 1.8; font-weight: 300; }
html[lang="ar"] .faq-a p { font-size: .96rem; }

/* ═══ REVEAL VARIANTS ═══ */
.reveal-scale {
  opacity: 0;
  transform: scale(.96);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-left {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
