/* ==========================================================================
   WebDevTemplates — base.css
   Reset, design tokens, type scale, layout primitives, utilities.
   Every template copies this file into its own style.css (section 1 + 2).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS — the rebrand contract. Change these, change the brand.
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours */
  --color-primary: #c6f135;
  --color-primary-hover: #d7ff4a;
  --color-primary-contrast: #000000;
  --color-accent: #c6f135;

  /* Surfaces & text */
  --color-bg: #000000;
  --color-surface: #0c0c0c;
  --color-surface-2: #161616;
  --color-text: #f5f5f5;
  --color-text-muted: #8a8a8a;
  --color-border: #222222;

  /* Semantic */
  --color-success: #c6f135;
  --color-error: #ff5c5c;

  /* Typography */
  --font-heading: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* Arabic: used for both headings and body when <html lang="ar">. Swap per template
     (Cairo, Tajawal, Almarai, IBM Plex Sans Arabic, Noto Kufi Arabic…). */
  --font-arabic: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --weight-heading: 700;
  --leading-tight: 1.1;
  --leading-body: 1.6;

  /* Shape & depth */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7);

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.25rem;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --nav-height: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.25s;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1, .h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem); letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(1.9rem, 3vw + 0.5rem, 2.9rem); letter-spacing: -0.02em; }
h3, .h3 { font-size: clamp(1.3rem, 1.5vw + 0.5rem, 1.6rem); }
h4, .h4 { font-size: 1.15rem; }

p { max-width: 65ch; }

.lead {
  font-size: clamp(1.1rem, 1vw + 0.7rem, 1.3rem);
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}

.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow { max-width: 820px; }
.container--wide { max-width: 1400px; }

.section {
  padding-block: var(--section-pad);
}

.section--tight { padding-block: calc(var(--section-pad) * 0.6); }
.section--surface { background: var(--color-surface); }
.section--primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.section--primary :is(h1, h2, h3, h4, .eyebrow, .lead) { color: inherit; }

.section__header {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__header--center {
  margin-inline: auto;
  text-align: center;
}
.section__header .lead { margin-top: 1rem; }

/* Grid */
.grid {
  display: grid;
  gap: var(--grid-gap, 1.5rem);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min, 280px)), 1fr)); }

@media (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Split (two columns, text + media) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 859px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

/* Flex helpers */
.flex { display: flex; gap: 1rem; }
.flex--center { align-items: center; }
.flex--between { justify-content: space-between; align-items: center; }
.flex--wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: var(--stack, 1rem); }

/* Blowout guard: grid/flex children default to min-width:auto, so one long
   unbreakable string (an email, a URL, a nowrap cell) can widen the page. */
.grid > *, .split > *, .flex > * { min-width: 0; }
.grid, .split { overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   5. UTILITIES
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mt-1 { margin-top: 0.5rem; }  .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }  .mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; }

.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: initial; }
}

/* --------------------------------------------------------------------------
   6. i18n / RTL — <html lang="ar" dir="rtl"> is set by the language toggle
   -------------------------------------------------------------------------- */
html[lang="ar"] {
  --font-heading: var(--font-arabic);
  --font-body: var(--font-arabic);
  --leading-body: 1.8;
  --leading-tight: 1.35;
}
html[lang="ar"] :is(h1, h2, h3, h4, .eyebrow, .badge, .btn, .nav__brand, .stat__value, .price-card__amount) {
  letter-spacing: 0;
}
html[lang="ar"] :is(.eyebrow, .badge, .btn, .logos__label, .tabs__btn) {
  text-transform: none;
}
html[lang="ar"] h1 { font-size: clamp(2.2rem, 4.5vw + 1rem, 3.9rem); }
/* English-only artefacts that should hide in Arabic and vice-versa */
html[lang="ar"] [data-only="en"],
html[lang="en"] [data-only="ar"] { display: none !important; }
/* Icons that point a direction (arrows) flip in RTL */
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
/* Keep digits, prices and code in LTR even inside Arabic text */
.ltr, [dir="rtl"] :is(.price-card__amount, .stat__value, code, pre, .countdown__value, [type="tel"], [type="email"]) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Language toggle button (in nav__actions) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--dur), border-color var(--dur);
}
.lang-toggle:hover { color: var(--color-text); border-color: var(--color-text); }
html[lang="en"] .lang-toggle { font-family: var(--font-arabic); }

/* Scroll reveal (paired with main.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }


/* ==========================================================================
   WebDevTemplates — components.css
   Shared UI components + the standard section vocabulary.
   Every template copies this into style.css (section 3) and overrides below.
   ========================================================================== */

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition: background var(--dur), color var(--dur), border-color var(--dur),
              transform var(--dur), box-shadow var(--dur);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.btn--primary:hover { background: var(--color-primary-hover); box-shadow: var(--shadow); }

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--secondary:hover { border-color: var(--color-text); }

.btn--ghost { padding-inline: 0.5rem; color: var(--color-text); }
.btn--ghost:hover { color: var(--color-primary); }

.btn--accent { background: var(--color-accent); color: var(--color-text); }

.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.08rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn__icon { width: 1.1em; height: 1.1em; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.btn-group--center { justify-content: center; }

/* --------------------------------------------------------------------------
   ICONS (SVG sprite)
   -------------------------------------------------------------------------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}
.icon-box .icon { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   CARD
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--surface { background: var(--color-surface); border-color: transparent; }
.card__title { margin-bottom: 0.6rem; }
.card__text { color: var(--color-text-muted); }
.card__media {
  margin: -2rem -2rem 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   BADGE / PILL
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}
.badge--primary {
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   NAV
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.nav.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
/* Blur lives on a pseudo-element: backdrop-filter on .nav itself would make
   it the containing block for the fixed .nav__menu and break the mobile menu. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.nav__brand .icon { width: 28px; height: 28px; color: var(--color-primary); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--dur);
}
.nav__links a:hover { color: var(--color-text); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.nav__toggle .icon { width: 26px; height: 26px; }
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 899px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--color-bg);
    padding: 2rem var(--container-pad);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }
  [dir="rtl"] .nav__menu { transform: translateX(-100%); }
  .nav__menu.is-open { transform: none; }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .nav__links a { font-size: 1.25rem; color: var(--color-text); }
  .nav__actions { flex-direction: column; align-items: stretch; }
  .nav__actions .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 900px) {
  .nav__menu { display: contents; }
}

/* --------------------------------------------------------------------------
   HERO (variants: --center, --split, --fullscreen)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
}
.hero--center { text-align: center; }
.hero--center .hero__content { max-width: 760px; margin-inline: auto; }
.hero--center p { margin-inline: auto; }
.hero--center .btn-group { justify-content: center; }
.hero--fullscreen { min-height: calc(100vh - var(--nav-height)); display: flex; align-items: center; }

.hero__content > * + * { margin-top: 1.5rem; }
.hero__title { margin-top: 0 !important; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.hero__meta li { display: flex; align-items: center; gap: 0.4rem; }
.hero__meta .icon { color: var(--color-success); }

/* decorative background blob (optional) */
.hero__glow {
  position: absolute;
  inset: auto;
  width: 60vw;
  max-width: 800px;
  aspect-ratio: 1;
  top: -20%;
  inset-inline-end: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 25%, transparent), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   LOGOS STRIP
   -------------------------------------------------------------------------- */
.logos { padding-block: 2.5rem; border-block: 1px solid var(--color-border); }
.logos__label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}
.logos__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 4rem;
}
.logos__list li {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-text-muted);
  opacity: 0.6;
  transition: opacity var(--dur);
}
.logos__list li:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   FEATURES
   -------------------------------------------------------------------------- */
.feature { padding: 0.5rem 0; }
.feature__title { margin-bottom: 0.5rem; }
.feature__text { color: var(--color-text-muted); }

.feature-row { margin-top: clamp(3rem, 7vw, 6rem); }
.feature-row:first-of-type { margin-top: 0; }
.feature-row img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.check-list { margin-top: 1.5rem; }
.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.check-list .icon { color: var(--color-success); margin-top: 0.2rem; }

/* --------------------------------------------------------------------------
   HOW IT WORKS / STEPS
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; }
.step { position: relative; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.step__title { margin-bottom: 0.5rem; }
.step__text { color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   STATS
   -------------------------------------------------------------------------- */
.stats { text-align: center; }
.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}
.section--primary .stat__value { color: inherit; }
.stat__label { margin-top: 0.5rem; color: var(--color-text-muted); }
.section--primary .stat__label { color: inherit; opacity: 0.85; }

/* --------------------------------------------------------------------------
   PRICING
   -------------------------------------------------------------------------- */
.pricing-grid { align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}
.price-card__badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
}
.price-card__name { font-size: 1.1rem; }
.price-card__desc { color: var(--color-text-muted); font-size: 0.95rem; margin-top: 0.25rem; }
.price-card__price {
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.price-card__amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-card__period { color: var(--color-text-muted); }
.price-card__features { flex: 1; margin-bottom: 1.75rem; }
.price-card__features li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  font-size: 0.95rem;
}
.price-card__features .icon { color: var(--color-success); margin-top: 0.15rem; }

/* --------------------------------------------------------------------------
   TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonial { display: flex; flex-direction: column; }
.testimonial__stars { display: flex; gap: 0.15rem; color: var(--color-accent); margin-bottom: 1rem; }
.testimonial__stars .icon { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.testimonial__quote { flex: 1; font-size: 1.05rem; }
.testimonial__author { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.5rem; }
.testimonial__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial__name { font-weight: 600; }
.testimonial__role { font-size: 0.875rem; color: var(--color-text-muted); }

/* Slider variant */
.slider { position: relative; }
.slider__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * {
  flex: 0 0 min(100%, 380px);
  scroll-snap-align: start;
}
.slider__controls { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }
.slider__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur), color var(--dur);
}
.slider__btn:hover { background: var(--color-primary); color: var(--color-primary-contrast); border-color: var(--color-primary); }

/* --------------------------------------------------------------------------
   TEAM
   -------------------------------------------------------------------------- */
.member { text-align: center; }
.member__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}
.member__name { font-size: 1.1rem; }
.member__role { color: var(--color-text-muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   GALLERY / SHOWCASE
   -------------------------------------------------------------------------- */
.gallery-grid { --grid-gap: 1rem; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease);
}
.gallery-grid a:hover img { transform: scale(1.03); }

/* --------------------------------------------------------------------------
   FAQ (accordion)
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  text-align: start;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq__q .icon { transition: transform var(--dur); color: var(--color-text-muted); }
.faq__q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq__a > div { overflow: hidden; }
.faq__a.is-open { grid-template-rows: 1fr; }
.faq__a p { color: var(--color-text-muted); padding-bottom: 1.35rem; }

/* --------------------------------------------------------------------------
   CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: inherit; }
.cta-band p { margin: 1rem auto 2rem; opacity: 0.9; }
.cta-band .btn--primary { background: var(--color-bg); color: var(--color-primary); }
.cta-band .btn--primary:hover { background: var(--color-surface); }

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.form--inline { grid-template-columns: 1fr auto; align-items: start; }
@media (max-width: 539px) { .form--inline { grid-template-columns: 1fr; } }
.form__row { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 639px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--color-error); }
.field__error { font-size: 0.85rem; color: var(--color-error); display: none; }
.field.is-invalid .field__error { display: block; }
.form__status { font-size: 0.95rem; display: none; }
.form__status.is-success { display: block; color: var(--color-success); }
.form__status.is-error { display: block; color: var(--color-error); }

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */
.contact-info { display: grid; gap: 1.5rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__item .icon-box { margin: 0; width: 44px; height: 44px; }
.contact-info__item strong { display: block; margin-bottom: 0.15rem; }
.contact-info__item span { color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: 4rem 2rem;
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
}
@media (max-width: 859px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 539px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { margin-top: 1rem; color: var(--color-text-muted); max-width: 32ch; }
.footer__col h4 { margin-bottom: 1.1rem; font-size: 0.95rem; }
.footer__col li { margin-bottom: 0.65rem; }
.footer__col a { color: var(--color-text-muted); transition: color var(--dur); }
.footer__col a:hover { color: var(--color-text); }
.footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}
.footer__social { display: flex; gap: 0.75rem; }
.footer__social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--dur);
}
.footer__social a:hover { background: var(--color-primary); color: var(--color-primary-contrast); border-color: var(--color-primary); }

/* --------------------------------------------------------------------------
   MISC
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--dur), transform var(--dur);
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

.countdown { display: flex; gap: 1rem; justify-content: center; }
.countdown__unit { text-align: center; min-width: 72px; }
.countdown__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}
.countdown__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }

.tabs__list { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--color-border); margin-bottom: 2rem; overflow-x: auto; }
.tabs__btn {
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs__btn[aria-selected="true"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tabs__panel[hidden] { display: none; }

/* ==========================================================================
   CREATIVE SCROLL — paired with main.js (section 11+). All opt-in by class.
   ========================================================================== */

/* Scroll progress bar: <div class="scroll-progress"></div> right after <body> */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 200;
  pointer-events: none;
}
[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }

/* Parallax: any element with data-parallax="0.15" (fraction of scroll delta) */
[data-parallax] { will-change: transform; }

/* Marquee: <div class="marquee"><div class="marquee__track">…items…</div></div>
   main.js duplicates the track content once so the loop is seamless. */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  gap: var(--marquee-gap, 3rem);
  width: max-content;
  animation: marquee var(--marquee-speed, 30s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
/* In RTL the track overflows to the LEFT of the box, so it must travel rightwards. */
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--color-text-muted);
}
.marquee__item .dot {
  width: 0.4em; height: 0.4em; border-radius: 50%;
  background: var(--color-primary);
}
@keyframes marquee {
  to { transform: translateX(calc(-50% - var(--marquee-gap, 3rem) / 2)); }
}
@keyframes marquee-rtl {
  to { transform: translateX(calc(50% + var(--marquee-gap, 3rem) / 2)); }
}

/* Horizontal scroll section: the page scrolls vertically, the track moves sideways.
   <section class="hscroll"><div class="hscroll__sticky"><div class="hscroll__track">
     <div class="hscroll__panel">…</div> ×N </div></div></section>
   main.js sets the section height from the panel count. */
.hscroll { position: relative; }
.hscroll__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hscroll__track {
  display: flex;
  gap: var(--hscroll-gap, 2rem);
  padding-inline: var(--container-pad);
  will-change: transform;
}
.hscroll__panel {
  flex: 0 0 min(80vw, 640px);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.hscroll__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hscroll__panel > :not(img) { position: relative; z-index: 1; }
.hscroll__panel--intro { flex-basis: min(60vw, 420px); background: transparent; border: 0; justify-content: center; }
.hscroll__index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
@media (max-width: 767px) {
  /* On phones horizontal scroll feels hostile: fall back to a swipeable row */
  .hscroll { height: auto !important; }
  .hscroll__sticky { position: static; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 2rem; }
  .hscroll__track { transform: none !important; }
  .hscroll__panel { scroll-snap-align: start; flex-basis: 85vw; min-height: 50vh; }
}

/* Stacking cards: each card sticks under the previous one and scales back.
   <div class="stack-cards"><article class="stack-card">…</article> ×N </div> */
.stack-cards { display: grid; gap: var(--stack-gap, 1.5rem); }
.stack-card {
  position: sticky;
  top: calc(var(--nav-height) + var(--stack-offset, 1rem));
  min-height: min(70vh, 560px);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transform-origin: 50% 0;
  will-change: transform;
  overflow: hidden;
}
.stack-card:nth-child(2) { top: calc(var(--nav-height) + var(--stack-offset, 1rem) + 1.5rem); }
.stack-card:nth-child(3) { top: calc(var(--nav-height) + var(--stack-offset, 1rem) + 3rem); }
.stack-card:nth-child(4) { top: calc(var(--nav-height) + var(--stack-offset, 1rem) + 4.5rem); }
.stack-card:nth-child(5) { top: calc(var(--nav-height) + var(--stack-offset, 1rem) + 6rem); }

/* Split-text reveal: words animate in one by one.
   <h2 class="split-text">Any heading</h2> — main.js wraps each word. */
.split-text .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.split-text .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.8s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
.split-text.is-visible .word > span { transform: none; }

/* Image clip reveal: <div class="img-reveal"><img …></div> */
.img-reveal { overflow: hidden; }
.img-reveal img {
  clip-path: inset(0 100% 0 0);
  transform: scale(1.15);
  transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease);
}
[dir="rtl"] .img-reveal img { clip-path: inset(0 0 0 100%); }
.img-reveal.is-visible img { clip-path: inset(0 0 0 0); transform: none; }

/* Big statement: oversized text that fades in by line while you scroll.
   <p class="statement"><span>Line one.</span><span>Line two.</span></p> */
.statement {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.statement > span {
  display: block;
  opacity: 0.18;
  transition: opacity 0.5s var(--ease);
}
.statement > span.is-active { opacity: 1; }

/* Tilt on hover: data-tilt on a .card */
[data-tilt] { transition: transform 0.15s ease-out; transform-style: preserve-3d; }

/* Sticky side label + scrolling content (editorial layout)
   <div class="sticky-split"><aside class="sticky-split__aside">…</aside><div>…</div></div> */
.sticky-split { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sticky-split__aside { position: sticky; top: calc(var(--nav-height) + 2rem); }
@media (max-width: 859px) { .sticky-split { grid-template-columns: 1fr; } .sticky-split__aside { position: static; } }

/* Floating cursor-follow glow (desktop only): <div class="cursor-glow"></div> */
.cursor-glow {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 18%, transparent), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow.is-on { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .split-text .word > span, .img-reveal img { transform: none; clip-path: none; transition: none; }
  .stack-card { position: static; }
  [data-parallax] { transform: none !important; }
}

/* ==========================================================================
   4. TEMPLATE-SPECIFIC — everything unique to this template goes below.
   Override tokens in :root above first; only add rules here when a token
   cannot express the change.
   ========================================================================== */

/* --- Synth: global monochrome tuning ------------------------------------ */
h1, h2, h3 { font-weight: 700; }
.h4, h4 { font-weight: 600; }
.accent { color: var(--color-primary); }
.nav__brand { font-weight: 700; }
.nav.is-scrolled { box-shadow: none; }

.btn--primary:hover { box-shadow: 0 0 0 1px var(--color-primary), 0 8px 28px rgba(198, 241, 53, 0.28); }
.btn--secondary { border-color: #333333; }
.btn--secondary:hover { border-color: var(--color-text); background: rgba(255, 255, 255, 0.04); }

.badge--primary {
  background: rgba(198, 241, 53, 0.1);
  border: 1px solid rgba(198, 241, 53, 0.35);
  color: var(--color-primary);
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(198, 241, 53, 0.25);
  animation: synth-pulse 2s ease-in-out infinite;
}
@keyframes synth-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(198, 241, 53, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(198, 241, 53, 0.08); }
}

.card { background: var(--color-surface); }
.card:hover { border-color: #333333; box-shadow: var(--shadow); }
.section--surface { border-block: 1px solid var(--color-border); }
.section--surface .card { background: var(--color-bg); }

.icon-box {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
}
.feature {
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: border-color var(--dur);
}
.feature:hover { border-color: #333333; }

.logos__list li { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; opacity: 0.5; }

.step__num { font-family: var(--font-mono); font-weight: 500; }

.price-card--featured { box-shadow: 0 0 0 1px var(--color-primary), 0 24px 60px rgba(198, 241, 53, 0.08); }

.testimonial__stars { color: var(--color-primary); }
.slider__btn { border-color: #333333; }
.faq__q:hover { color: var(--color-primary); }
.footer { background: var(--color-bg); }
.footer__social a { border-color: #333333; }


/* --- Synth: full-bleed typographic hero ----------------------------------- */
body { --demo-overlap: clamp(4rem, 9vw, 8rem); } /* how far the demo box hangs below the hero */
.hero--type {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
  overflow: visible;            /* the demo box hangs over the bottom edge */
  text-align: start;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__glow {
  top: -35%;
  inset-inline: 0;
  margin-inline: auto;
  transform: none;
  width: 90vw;
  max-width: 1000px;
  filter: blur(30px);
  background: radial-gradient(circle, rgba(198, 241, 53, 0.22), transparent 62%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 100%);
}
.hero--type > .container { position: relative; z-index: 1; }
.hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
/* The h1 ignores the container: it runs edge to edge in one huge block of type */
.hero--type .hero__title {
  position: relative;
  z-index: 1;
  max-width: none;
  padding-inline: var(--container-pad);
  font-size: clamp(2.9rem, 10.6vw, 10.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero--type .hero__title .accent {
  color: var(--color-primary);
  text-shadow: 0 0 40px rgba(198, 241, 53, 0.35);
}
html[lang="ar"] .hero--type .hero__title {
  font-size: clamp(2.6rem, 8.6vw, 8.4rem);
  line-height: 1.2;
  letter-spacing: 0;
}
.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-top: clamp(1.75rem, 4vw, 3rem);
}
.hero__row .lead { max-width: 44ch; margin: 0; }
.hero__cta { display: grid; gap: 1.25rem; }
.hero__meta { justify-content: flex-start; }
.hero__meta .icon { color: var(--color-primary); }
@media (min-width: 900px) {
  .hero__row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero__cta { justify-items: end; }
  .hero__cta .btn-group, .hero__meta { justify-content: flex-end; }
  .hero__meta { text-align: end; }
}

/* Chat demo: pulled down over the hero bottom edge, sits on top of the next section */
.hero__demo {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: calc(-1 * var(--demo-overlap));
  z-index: 2;
}
.marquee-section { padding-top: calc(var(--demo-overlap) + clamp(2rem, 5vw, 3.5rem)); padding-bottom: clamp(2rem, 5vw, 3.5rem); }

.demo {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding: 1px; /* border thickness */
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(198, 241, 53, 0.1);
}
.demo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(198, 241, 53, 0.1) 60deg,
    var(--color-primary) 110deg,
    transparent 160deg,
    transparent 360deg
  );
  animation: synth-rotate 6s linear infinite;
}
@keyframes synth-rotate { to { transform: rotate(360deg); } }
.demo__inner {
  position: relative;
  background: var(--color-surface);
  border-radius: calc(var(--radius-lg) - 1px);
  padding: 1.5rem;
  text-align: start;
  font-family: var(--font-arabic);   /* the demo is Arabic in both languages */
  font-size: 1rem;
  line-height: 1.9;
}
.demo__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: -0.25rem 0 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.demo__bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2a; }
.demo__bar em { margin-inline-start: auto; font-style: normal; font-size: 0.8rem; color: var(--color-text-muted); }
.demo__line { display: grid; grid-template-columns: 4.25rem 1fr; gap: 1rem; align-items: start; }
.demo__line > * { min-width: 0; }
.demo__line + .demo__line { margin-top: 1.25rem; }
.demo__line p { max-width: none; margin: 0; color: var(--color-text-muted); }
.demo__line--response p { color: var(--color-text); }
.demo__who {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
  text-align: center;
}
.demo__who--ai { color: var(--color-primary-contrast); background: var(--color-primary); border-color: var(--color-primary); }
.demo__typing { animation: synth-fade 1.2s var(--ease) both; }
@keyframes synth-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.demo__cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-inline-start: 0.15em;
  vertical-align: -0.15em;
  background: var(--color-primary);
  animation: synth-blink 1s steps(1, end) infinite;
}
@keyframes synth-blink { 50% { opacity: 0; } }
.demo__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}
.demo__footer { direction: ltr; }              /* chips are UI, not product text */
html[dir="rtl"] .demo__footer { direction: rtl; }
.demo__chip {
  unicode-bidi: isolate;
  font-family: var(--font-body);
  font-size: 0.76rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}
@media (max-width: 539px) {
  .demo__inner { padding: 1.1rem; font-size: 0.92rem; }
  .demo__line { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* --- Synth: languages marquee ---------------------------------------------- */
.marquee-section .logos__label { margin-bottom: 1.25rem; }
.marquee-section .marquee { --marquee-speed: 38s; --marquee-gap: 3.5rem; }
.marquee__item { color: var(--color-text); }
.marquee__item--ar { color: var(--color-text-muted); }
.marquee__item [lang="ar"] { font-family: var(--font-arabic); font-weight: 600; letter-spacing: 0; }

/* --- Synth: use-case panels (hscroll) -------------------------------------- */
.usecases { background: var(--color-bg); }
.usecases .hscroll__panel { flex-basis: min(82vw, 600px); min-height: 62vh; justify-content: flex-start; padding: 2.25rem; }
.usecases .hscroll__panel--intro { justify-content: center; }
.usecases .hscroll__panel--intro h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 0.75rem; }
.usecases .hscroll__panel:not(.hscroll__panel--intro) { transition: border-color var(--dur); }
.usecases .hscroll__panel:not(.hscroll__panel--intro):hover { border-color: rgba(198, 241, 53, 0.5); }
.usecase__num {
  position: absolute;
  inset-block-start: -0.35em;
  inset-inline-end: 0.15em;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(198, 241, 53, 0.35);
  pointer-events: none;
  z-index: 0;
}
.usecase .hscroll__index { color: var(--color-primary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
html[lang="ar"] .usecase .hscroll__index { font-family: var(--font-arabic); letter-spacing: 0; text-transform: none; }
.usecase h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); max-width: 18ch; }
.usecase > p { margin-top: 0.75rem; max-width: 46ch; }
.sample {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 1.02rem;
  line-height: 1.8;
}
.sample p { max-width: none; margin-top: 0.75rem; color: var(--color-text); }
.sample[lang="ar"] { font-family: var(--font-arabic); }
.sample__chip {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(198, 241, 53, 0.1);
  border: 1px solid rgba(198, 241, 53, 0.3);
  color: var(--color-primary);
}
.sample__chip + p { margin-top: 0.85rem; }
/* The chip is English on an RTL card in EN mode: keep it readable either way */
html[lang="en"] .sample[dir="rtl"] .sample__chip { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 767px) {
  .usecases .hscroll__panel { padding: 1.5rem; min-height: 0; }
  .usecase__num { font-size: 5.5rem; }
  .usecases .hscroll__panel--intro { flex-basis: 85vw; }
}

/* --- Synth: manifesto (statement + sticky Riyadh photo) -------------------- */
.manifesto__img { margin-top: 1rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.manifesto__img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.statement > span.is-active { color: var(--color-text); }
.statement > span:nth-child(3).is-active { color: var(--color-primary); }

/* --- Synth: stats band ------------------------------------------------------ */
.stats { border-block: 1px solid var(--color-border); padding-block: clamp(3rem, 6vw, 4.5rem); }
.stats .grid--4 { gap: 2rem; }
.stat__value { color: var(--color-text); }
@media (min-width: 640px) {
  .stat + .stat { border-inline-start: 1px solid var(--color-border); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .stat:nth-child(3) { border-inline-start: 0; }
}

/* --- Synth: pricing extras --------------------------------------------------- */
.price-card__amount small { font-size: 0.45em; font-weight: 600; color: var(--color-text-muted); }
.pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 2.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.pay__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pay__item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  background: var(--color-bg);
}

/* --- Synth: footer address -------------------------------------------------- */
.footer__address {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.footer__address > span { display: flex; align-items: flex-start; gap: 0.4rem; }
.footer__address .icon { flex: none; width: 16px; height: 16px; margin-top: 0.2rem; color: var(--color-primary); }
.footer__reg { display: inline-block; margin-inline-start: 0.5rem; opacity: 0.7; }

/* --- Synth: lime CTA band --------------------------------------------------- */
.cta-band .lead { color: inherit; opacity: 0.8; }
.cta-band .btn--primary { background: #000000; color: var(--color-text); }
.cta-band .btn--primary:hover { background: #161616; box-shadow: none; }
.cta-band .btn--secondary:hover { background: rgba(0, 0, 0, 0.08); }

/* --- Synth: motion fallbacks ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .demo::before, .demo__cursor, .badge__dot { animation: none; }
  .demo__typing { animation: none; opacity: 1; }
}
