/* ============================================================
   Trendix — design tokens
   ============================================================ */
:root {
  --bg: #090c14;
  --bg-alt: #0d1220;
  --surface: #121728;
  --surface-2: #1a2138;
  --surface-hover: #202a46;
  --border: #232d48;
  --border-soft: #1a2338;
  --text: #f5f7fc;
  --text-muted: #a6b0cc;
  --text-dim: #6e7893;
  --primary: #3b82f6;
  --primary-2: #8b5cf6;
  --accent-cyan: #22d3ee;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ea952;
  --danger: #f87171;
  --grad-brand: linear-gradient(120deg, var(--accent-cyan) 0%, var(--primary) 48%, var(--primary-2) 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(34,211,238,0.16) 0%, rgba(59,130,246,0.16) 48%, rgba(139,92,246,0.16) 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-elev: 0 20px 60px -20px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,0.04), 0 20px 60px -18px rgba(59,130,246,0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 72px;
  --space-3xl: 112px;
  --container: 1200px;
  --font-en-heading: "Outfit", "Cairo", sans-serif;
  --font-en-body: "Inter", "Cairo", sans-serif;
  --font-ar: "Cairo", "Inter", sans-serif;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); }
h1, h2, h3, h4 { font-family: var(--font-en-heading); margin: 0; line-height: 1.15; font-weight: 700; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-family: var(--font-ar); font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; }

/* Focus visibility — accessibility */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  background: var(--surface);
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease-out);
  border: 1px solid var(--border);
}
.skip-link:focus { top: var(--space-md); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-xl); } }

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--text-muted); font-size: 17px; }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  min-height: 48px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.97); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 46%);
  pointer-events: none;
}
.btn::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -35%;
  width: 30%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-18deg);
  transition: left 0.75s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after { left: 125%; }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #06210f;
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55); transform: translateY(-2px); }
.btn-primary {
  background: var(--grad-brand);
  color: #06101f;
}
.btn-primary:hover { box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--primary); }
.btn-sm { padding: 10px 18px; min-height: 40px; font-size: 14px; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }

/* ============================================================
   Glossy micro-interactions — cursor spotlight + glass edge
   Applied to cards/panels site-wide for a more premium feel
   without adding extra visual content.
   ============================================================ */
.spotlight { position: relative; }
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.10), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.spotlight:hover::after { opacity: 1; }

.glass-edge { position: relative; }
.glass-edge::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);
  pointer-events: none;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 200;
  padding-block: 14px;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), padding 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(9, 12, 20, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
  padding-block: 10px;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; }
.brand-word {
  font-family: var(--font-en-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--text);
}
html[lang="ar"] .brand-word { font-family: var(--font-ar); }

.nav-links { display: none; align-items: center; gap: var(--space-lg); }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease-out);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
@media (min-width: 900px) { .nav-links { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  background: rgba(255,255,255,0.02);
}
.lang-toggle button {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.lang-toggle button.active { background: var(--grad-brand); color: #06101f; }

.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.menu-toggle svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .menu-toggle { display: none; } }

.mobile-nav {
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(6, 9, 16, 0.6);
  backdrop-filter: blur(6px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav-panel {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  bottom: 0;
  width: min(84vw, 360px);
  background: var(--bg-alt);
  border-inline-start: 1px solid var(--border);
  padding: 90px var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
}
html[dir="rtl"] .mobile-nav-panel { transform: translateX(-100%); }
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-panel a { font-size: 18px; font-weight: 600; padding-block: 10px; border-bottom: 1px solid var(--border-soft); }
.mobile-nav-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ============================================================
   Hero — cosmos 3D scene (desktop) with CSS fallback (mobile / no-webgl)
   ============================================================ */
.cosmos-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  padding-block: 140px var(--space-2xl);
}

.cosmos-visual { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cosmos-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.cosmos-canvas.is-active { opacity: 1; }

.cosmos-fallback { position: absolute; inset: 0; }
.cosmos-fallback .hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.cosmos-fallback .hero-blob.b1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(59,130,246,0.55), transparent 70%); top: -140px; inset-inline-start: -120px; }
.cosmos-fallback .hero-blob.b2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(139,92,246,0.5), transparent 70%); top: 40px; inset-inline-end: -140px; }
.cosmos-fallback .hero-blob.b3 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(34,211,238,0.4), transparent 70%); bottom: -160px; inset-inline-start: 30%; }
.cosmos-fallback .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 90%);
}
/* once the WebGL canvas takes over, hide the CSS fallback */
.cosmos-hero[data-cosmos-mode="webgl"] .cosmos-fallback { display: none; }

/* Mobile/fallback hero visual — the video IS the environment, full-bleed behind the
   content, same structural pattern as the desktop WebGL scene (backdrop + overlaid
   text + scroll-driven push), not a small boxed icon. Desktop keeps the canvas. */
.cosmos-fallback-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
@media (min-width: 900px) { .cosmos-fallback-video { display: none; } }

.cosmos-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,12,20,0.15) 0%, rgba(9,12,20,0.35) 55%, var(--bg) 100%);
}

.cosmos-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  max-width: 900px;
}

.cosmos-title {
  position: relative;
  z-index: 1;
  font-size: clamp(48px, 12vw, 128px);
  letter-spacing: 0.01em;
  line-height: 1;
}
.cosmos-title .title-chars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  direction: ltr; /* brand wordmark must read T-R-E-N-D-I-X even when the page is RTL */
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(59,130,246,0.35));
}
.cosmos-title .title-char { display: inline-block; will-change: transform, opacity; }

.cosmos-subtitle { display: flex; flex-direction: column; gap: 6px; max-width: 56ch; }
.cosmos-subtitle .subtitle-line { color: var(--text-muted); font-size: clamp(16px, 2vw, 19px); }
.cosmos-subtitle .subtitle-line:first-child { color: var(--text); font-weight: 500; }

.cosmos-actions { justify-content: center; margin-top: var(--space-xs); }
.cosmos-meta { justify-content: center; border-top: none; padding-top: 0; }

/* Mobile hero — designed tighter, not just a shrunk desktop: less top clearance,
   denser rhythm, stacked full-width CTAs, and the trust row dropped (it's covered
   again, in more depth, by the Why Trendix section further down the page). */
@media (max-width: 899px) {
  .cosmos-hero { padding-block: 108px var(--space-lg); }
  .cosmos-content { gap: var(--space-sm); }
  .cosmos-actions { flex-direction: column; align-items: stretch; width: 100%; margin-top: 2px; }
  .cosmos-actions .btn { width: 100%; }
  .cosmos-hero .cosmos-meta { display: none; }
  /* the full-bleed video is far busier/brighter than the desktop scene the shared
     scrim was tuned for — punch up contrast here so text stays legible over it */
  .cosmos-hero .cosmos-scrim {
    background: linear-gradient(180deg, rgba(9,12,20,0.5) 0%, rgba(9,12,20,0.7) 45%, var(--bg) 92%);
  }
}

.cosmos-scroll-cue {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(18,23,40,0.6);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  animation: cosmosBounce 2.2s ease-in-out infinite;
}
.cosmos-scroll-cue svg { width: 18px; height: 18px; }
@keyframes cosmosBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) { .cosmos-scroll-cue { animation: none; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-xs);
  width: 100%;
}
.hero-meta-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; }
.hero-meta-item svg { width: 20px; height: 20px; color: var(--accent-cyan); flex-shrink: 0; }

/* ============================================================
   Marquee trust bar
   ============================================================ */
.trust-bar { padding-block: var(--space-lg); border-block: 1px solid var(--border-soft); background: var(--bg-alt); }
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { inset-inline-start: 0; background: linear-gradient(to right, var(--bg-alt), transparent); }
.marquee::after { inset-inline-end: 0; background: linear-gradient(to left, var(--bg-alt), transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; }
.marquee-track .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.marquee-track .pill:hover { border-color: rgba(59,130,246,0.4); color: var(--text); transform: translateY(-2px); }
.marquee-track .pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-brand); transition: box-shadow 0.3s var(--ease-out); }
.marquee-track .pill:hover .dot { box-shadow: 0 0 10px 2px rgba(59,130,246,0.7); }

/* ============================================================
   How it works
   ============================================================ */
.steps {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: step;
  position: relative;
}
.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.step-card:hover { transform: translateY(-6px); border-color: rgba(139,92,246,0.4); box-shadow: var(--shadow-elev); }
.step-num {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand-soft);
  color: var(--accent-cyan);
  font-weight: 700;
  font-family: var(--font-en-heading);
  border: 1px solid rgba(139,92,246,0.3);
  transition: transform 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.step-card:hover .step-num { transform: scale(1.08) rotate(-4deg); border-color: rgba(139,92,246,0.6); }
.step-card h3 { font-size: 18px; }
.step-card p { color: var(--text-muted); font-size: 14.5px; }

/* ============================================================
   Catalog
   ============================================================ */
.catalog-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.catalog-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.catalog-card:hover { border-color: rgba(59,130,246,0.45); box-shadow: var(--shadow-glow); }
.catalog-card .glow {
  position: absolute;
  width: 220px; height: 220px;
  background: var(--grad-brand);
  filter: blur(60px);
  opacity: 0.18;
  top: -60px;
  inset-inline-end: -60px;
  border-radius: 50%;
  pointer-events: none;
}
.catalog-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand);
  margin-bottom: var(--space-md);
  box-shadow: 0 10px 30px -10px rgba(59,130,246,0.6);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.catalog-card:hover .catalog-icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 14px 34px -8px rgba(59,130,246,0.75); }
.catalog-icon svg { width: 26px; height: 26px; color: #06101f; }
.catalog-card h3 { font-size: 20px; margin-bottom: 6px; }
.catalog-card > p.desc { color: var(--text-muted); font-size: 14.5px; margin-bottom: var(--space-md); }
.catalog-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-lg); }
.catalog-examples span {
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  color: var(--text-dim);
}
.catalog-card .btn { position: relative; z-index: 1; }

/* ============================================================
   Why us
   ============================================================ */
.why-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.why-item {
  position: relative;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: rgba(255,255,255,0.015);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.why-item:hover { transform: translateY(-4px); border-color: var(--border-soft); background: var(--surface); }
.why-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.why-item:hover .why-icon { transform: scale(1.1) rotate(-4deg); background: var(--grad-brand); color: #06101f; border-color: transparent; }
.why-icon svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 16.5px; margin-bottom: 4px; }
.why-item p { color: var(--text-muted); font-size: 14.5px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.faq-item.open { border-color: rgba(59,130,246,0.4); box-shadow: 0 0 0 1px rgba(59,130,246,0.12), 0 20px 50px -24px rgba(59,130,246,0.5); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 18px 22px;
  text-align: start;
  font-weight: 600;
  font-size: 15.5px;
}
.faq-q .icon-plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.icon-plus::before, .icon-plus::after {
  content: "";
  position: absolute;
  background: var(--text-muted);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.icon-plus::before { width: 12px; height: 2px; }
.icon-plus::after { width: 2px; height: 12px; }
.faq-item.open .icon-plus { background: var(--grad-brand); border-color: transparent; }
.faq-item.open .icon-plus::before, .faq-item.open .icon-plus::after { background: #06101f; }
.faq-item.open .icon-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a {
  height: 0;
  overflow: hidden;
  padding-inline: 22px;
}
.faq-a-inner { padding-bottom: 20px; color: var(--text-muted); font-size: 14.5px; max-width: 62ch; }

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
  position: relative;
  border-radius: var(--radius-lg);
  margin-inline: var(--space-md);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(59,130,246,0.16), rgba(139,92,246,0.14));
  border: 1px solid rgba(139,92,246,0.3);
}
@media (min-width: 768px) { .final-cta { margin-inline: var(--space-xl); padding: var(--space-3xl); } }
.final-cta h2 { font-size: clamp(28px, 4.5vw, 44px); margin-bottom: var(--space-sm); }
.final-cta p { color: var(--text-muted); max-width: 52ch; margin-inline: auto; margin-bottom: var(--space-lg); font-size: 16px; }
.final-cta .btn { margin-inline: auto; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { padding-block: var(--space-2xl) var(--space-lg); border-top: 1px solid var(--border-soft); margin-top: var(--space-3xl); background: var(--bg-alt); }
.footer-top {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1.3fr repeat(2, 1fr);
  margin-bottom: var(--space-xl);
}
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: 14.5px; margin-top: var(--space-sm); max-width: 34ch; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: var(--space-md); }
html[lang="ar"] .footer-col h4 { text-transform: none; letter-spacing: 0; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 14.5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-soft);
  color: var(--text-dim);
  font-size: 13px;
}
.footer-disclaimer { max-width: 780px; color: var(--text-dim); font-size: 12.5px; line-height: 1.7; margin-bottom: var(--space-lg); }

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #06210f;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.6);
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-float .pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: var(--whatsapp);
  animation: waPulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
.wa-float-label { display: none; }
@media (min-width: 640px) { .wa-float-label { display: inline; } }

/* Reveal-on-scroll base state (GSAP overrides via inline styles when active) */
[data-reveal] { opacity: 0; }
.no-js [data-reveal] { opacity: 1; }

/* Cosmos hero intro base state (GSAP overrides via inline styles when active) */
[data-cosmos-reveal], .cosmos-title .title-char { opacity: 0; }
.no-js [data-cosmos-reveal], .no-js .cosmos-title .title-char { opacity: 1; }

/* Utility */
.mt-lg { margin-top: var(--space-lg); }
.hidden { display: none !important; }
