/* ==========================================================================
   3DTCI LANDING  -  layout & components
   Colors / fonts / radii come from tokens.css. Logical properties
   (inline-start/end) are used everywhere so the Arabic RTL page works free.
   Sections are numbered to match the banners in index.html.
   ========================================================================== */

/* ---- 0. Base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--color-accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-display);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[role="list"], .steps { list-style: none; }
:focus-visible { outline: 3px solid var(--fuse-500); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.accent { color: var(--color-dark-accent); }
.icon { width: 1.1em; height: 1.1em; flex: none; }
[dir="rtl"] .icon:has(use[href$="#i-arrow"]),
[dir="rtl"] .icon:has(use[href$="#i-external"]) { transform: scaleX(-1); }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--fuse-500); color: var(--ink-950); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Eyebrow labels (mono, tracked) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--color-accent-text);
  margin-block-end: 16px;
}
.eyebrow-dark { color: var(--fuse-400); }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--fuse-500);
  box-shadow: 0 0 0 4px rgb(61 126 255 / 0.2);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(61 126 255 / 0); } }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --btn-pad: 12px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--btn-pad);
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm);
  line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out),
              background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { --btn-pad: 9px 16px; }
.btn-lg { --btn-pad: 16px 26px; font-size: var(--text-md); }
.btn-primary { background: var(--fuse-500); color: var(--color-on-accent); }
.btn-primary:hover { box-shadow: var(--shadow-glow); }
.btn-dark { background: var(--ink-950); color: var(--white); }
.btn-dark:hover { background: var(--ink-800); box-shadow: 4px 4px 0 var(--fuse-500); }
[dir="rtl"] .btn-dark:hover { box-shadow: -4px 4px 0 var(--fuse-500); }
.btn-ghost-dark { color: var(--white); border-color: rgb(255 255 255 / 0.28); }
.btn-ghost-dark:hover { border-color: var(--white); background: rgb(255 255 255 / 0.06); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none; color: var(--color-accent-text);
}
.text-link .icon { transition: transform var(--dur-fast) var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }
[dir="rtl"] .text-link:hover .icon { transform: scaleX(-1) translateX(4px); }
.text-link-dark { color: var(--fuse-400); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink-950);               /* solid on purpose (no grey band) */
  border-block-end: 1px solid var(--ink-800);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { height: 48px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; }
.site-nav ul a {
  color: var(--ink-300); text-decoration: none; font-weight: 600; font-size: var(--text-sm);
  transition: color var(--dur-fast);
}
.site-nav ul a:hover { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  color: var(--white); text-decoration: none; font-weight: 600; font-size: var(--text-sm);
  padding: 6px 12px; border: 1px solid var(--ink-700); border-radius: var(--radius-pill);
}
.lang-switch:hover { border-color: var(--ink-400); }
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font-body); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 11px 10px;
  background: transparent; border: 1px solid var(--ink-700); border-radius: 10px; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 960px) {
  .js .nav-toggle { display: flex; }
  .js .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px var(--gutter) 24px;
    background: var(--ink-950); border-block-end: 1px solid var(--ink-800);
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: var(--text-md); border-block-end: 1px solid var(--ink-800); }
  .nav-actions { justify-content: space-between; padding-block-start: 12px; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 12px; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  html:not(.js) .site-nav ul a { border: 0; padding: 4px 0; }
}

/* ---- 1. Hero ------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 45%, rgb(61 126 255 / 0.20), transparent 70%),
    radial-gradient(40% 50% at 95% 90%, rgb(75 227 251 / 0.12), transparent 70%),
    var(--ink-950);
  color: var(--white);
}
[dir="rtl"] .hero {
  background:
    radial-gradient(60% 70% at 22% 45%, rgb(61 126 255 / 0.20), transparent 70%),
    radial-gradient(40% 50% at 5% 90%, rgb(75 227 251 / 0.12), transparent 70%),
    var(--ink-950);
}
/* 3D perspective floor grid */
.hero-grid-bg {
  position: absolute; inset-inline: -50%; bottom: -10%; height: 70%;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: grid-move 6s linear infinite;
  pointer-events: none;
}
@keyframes grid-move { to { background-position: 0 56px; } }

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  min-height: min(calc(100svh - 72px), 860px);
  padding-block: clamp(48px, 7vw, 96px);
}
.hero-title { font-size: var(--text-hero); line-height: var(--leading-tight); }
.hero-title .accent {
  display: block;
  background: linear-gradient(100deg, var(--fuse-500) 10%, var(--fuse-300) 60%, var(--ion-300) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin-block-start: 24px; max-width: 34em; font-size: var(--text-lg); color: var(--ink-300); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-block-start: 36px; list-style: none; }
.hero-points li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-300);
  letter-spacing: 0.04em;
}
.hero-points li::before { content: ""; width: 10px; height: 10px; background: var(--fuse-500); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

.hero-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 640px; margin-inline: auto; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms var(--ease-out); }
.has-webgl .hero-canvas { opacity: 1; }
.hero-fallback {
  position: absolute; inset: 0; margin: auto; height: 56%; width: auto;
  filter: drop-shadow(0 30px 50px rgb(61 126 255 / 0.35));
  animation: float 6s ease-in-out infinite;
}
.has-webgl .hero-fallback { display: none; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* HUD readout */
.hud {
  position: absolute; inset-inline-start: 0; bottom: 4%;
  min-width: 250px;
  padding: 14px 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-300);
  background: rgb(18 20 27 / 0.72);
  border: 1px solid var(--ink-700); border-radius: var(--radius-md);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  direction: ltr;   /* coordinates always read left-to-right */
}
.hud b { color: var(--white); font-weight: 500; }
.hud-row { display: flex; align-items: center; gap: 10px; }
.hud-row + .hud-row { margin-block-start: 6px; }
.hud-coords { gap: 16px; font-size: 13px; }
.hud-coords span:nth-child(1) { color: var(--fuse-400); }
.hud-coords span:nth-child(2) { color: var(--ion-400); }
.hud-small { justify-content: space-between; font-size: 11px; }
.hud-sep { color: var(--ink-600); }
.hud-live { width: 7px; height: 7px; border-radius: 50%; background: var(--fuse-500); box-shadow: 0 0 10px var(--fuse-500); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.hud-bar { height: 3px; margin-block: 10px 8px; background: var(--ink-700); border-radius: 3px; overflow: hidden; }
.hud-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--fuse-500), var(--ion-400)); }
html:not(.has-webgl) .hud { display: none; }

/* ---- 2. Brands marquee ------------------------------------------------- */
.brands { background: var(--ink-950); color: var(--ink-400); border-block-start: 1px solid var(--ink-800); }
.brands-inner { display: flex; align-items: center; gap: 32px; padding-block: 26px; }
.brands-label {
  flex: none; font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: var(--ink-400);
}
.marquee {
  display: flex; overflow: hidden; flex: 1;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; flex: none; gap: 56px; padding-inline-end: 56px; list-style: none;
  animation: marquee 28s linear infinite;
}
.marquee-track li { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); white-space: nowrap; color: var(--ink-300); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(100%); } }

/* ---- Sections ---------------------------------------------------------- */
.section { padding-block: var(--section-pad); }
.section-soft { background: var(--ink-100); }
.section-dark { background: var(--ink-950); color: var(--white); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { font-size: var(--text-3xl); }
.section-head p:not(.eyebrow) { margin-block-start: 18px; font-size: var(--text-lg); color: var(--color-text-muted); }
.section-dark .section-head p:not(.eyebrow) { color: var(--ink-300); }
.section-head-left { text-align: start; margin-inline: 0; }

/* ---- 3. Category cards (3D tilt) --------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; perspective: 1200px; }
.cat-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  color: var(--color-text); text-decoration: none;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out), box-shadow var(--dur-med), border-color var(--dur-med);
}
.cat-card:hover { border-color: var(--fuse-300); box-shadow: var(--shadow-md); }
.tilt.is-tilting { transition: transform 80ms linear, box-shadow var(--dur-med), border-color var(--dur-med); }
.cat-icon {
  width: 76px; height: 76px; margin-block-end: 18px;
  display: grid; place-items: center;
  background: var(--ink-950); color: var(--white);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--fuse-500);
  transform: translateZ(40px);
  transition: box-shadow var(--dur-med) var(--ease-out);
}
[dir="rtl"] .cat-icon { box-shadow: -6px 6px 0 var(--fuse-500); }
.cat-card:hover .cat-icon { box-shadow: 10px 10px 0 var(--fuse-500); }
[dir="rtl"] .cat-card:hover .cat-icon { box-shadow: -10px 10px 0 var(--fuse-500); }
.cat-icon svg { width: 40px; height: 40px; }
.cat-name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); transform: translateZ(24px); }
.cat-desc { color: var(--color-text-muted); flex: 1; transform: translateZ(12px); }
.cat-go { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 8px; font-weight: 700; color: var(--color-accent-text); transform: translateZ(20px); }
.cat-go .icon { transition: transform var(--dur-fast) var(--ease-out); }
.cat-card:hover .cat-go .icon { transform: translateX(4px); }
[dir="rtl"] .cat-card:hover .cat-go .icon { transform: scaleX(-1) translateX(4px); }

/* ---- 4. Spotlight ------------------------------------------------------ */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%;
  background: radial-gradient(50% 60% at 50% 100%, rgb(61 126 255 / 0.18), transparent 70%);
  pointer-events: none;
}
.spot-grid {
  position: relative;
  display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 20px;
  perspective: 1400px;
}
.spot-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 3vw, 36px);
  min-height: 240px;
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--ink-700); border-radius: var(--radius-xl);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out), border-color var(--dur-med);
}
.spot-card:hover { border-color: var(--ink-500); }
.spot-card-lg { grid-row: span 2; min-height: 520px; }
.spot-card-soon { border-style: dashed; border-color: rgb(75 227 251 / 0.45); }
.spot-body { position: relative; transform: translateZ(30px); }
.spot-body h3 { font-size: var(--text-2xl); margin-block: 6px 12px; }
.spot-body p:not(.spot-tag) { color: var(--ink-300); max-width: 32em; margin-block-end: 18px; }
.spot-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--fuse-400);
}
.spot-tag-ion { color: var(--ion-400); }
.spot-visual { position: absolute; inset: 16% 0 40% 0; display: grid; place-items: center; transform: translateZ(60px); }

/* Exploded print layers (pure CSS 3D) */
.iso-stack {
  position: relative; width: 190px; height: 190px;
  transform: rotateX(60deg) rotateZ(45deg);
  transform-style: preserve-3d;
}
.iso-stack span {
  position: absolute; inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.10), rgb(255 255 255 / 0.02));
  border: 1.5px solid rgb(255 255 255 / 0.25);
  transform: translateZ(calc(var(--i) * 34px));
  animation: explode 5s var(--ease-out) infinite;
  animation-delay: calc(var(--i) * -0.15s);
}
.iso-stack span:nth-child(4) {
  background: linear-gradient(135deg, var(--fuse-400), var(--fuse-600));
  border-color: var(--fuse-300);
  box-shadow: 0 0 60px rgb(61 126 255 / 0.55);
}
.iso-stack span:nth-child(3) { border-color: rgb(75 227 251 / 0.6); }
@keyframes explode {
  0%, 100% { transform: translateZ(calc(var(--i) * 34px)); }
  50% { transform: translateZ(calc(var(--i) * 46px)); }
}
.spot-card-lg:hover .iso-stack span { animation-duration: 2.2s; }

/* ---- 5. Services ------------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.svc-card::after {  /* layer-line texture in the corner */
  content: ""; position: absolute; inset-block-start: 0; inset-inline-end: 0; width: 120px; height: 120px;
  background: repeating-linear-gradient(0deg, var(--ink-100) 0 2px, transparent 2px 7px);
  border-start-end-radius: var(--radius-lg);
  mask-image: radial-gradient(circle at 100% 0, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000, transparent 70%);
  pointer-events: none;
}
[dir="rtl"] .svc-card::after { mask-image: radial-gradient(circle at 0 0, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 0 0, #000, transparent 70%); }
.svc-icon { color: var(--fuse-600); }
.svc-icon svg { width: 48px; height: 48px; }
.svc-card h3 { font-size: var(--text-xl); }
.svc-card p { color: var(--color-text-muted); flex: 1; margin-block-end: 8px; }

/* ---- 6. Process (3D build plate) --------------------------------------- */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.process-visual {
  position: sticky; top: 120px;
  display: grid; place-items: center;
  aspect-ratio: 1 / 1; max-height: 520px;
}
.build {
  position: relative; width: min(62%, 280px); aspect-ratio: 1;
  transform: rotateX(58deg) rotateZ(-42deg);
  transform-style: preserve-3d;
}
[dir="rtl"] .build { transform: rotateX(58deg) rotateZ(42deg); }
.build-plate {
  position: absolute; inset: -18%;
  background:
    linear-gradient(var(--ink-300) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, var(--ink-300) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--ink-200);
  border-radius: 18px;
  box-shadow: 0 0 0 10px var(--ink-950), 30px 30px 60px rgb(10 11 16 / 0.25);
}
.build-layer {
  --z: calc(var(--n) * 34px);
  position: absolute; inset: 0;
  background: var(--white);
  border: 1px solid var(--ink-200);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--z) + 160px));
  opacity: 0;
  transition: transform 900ms var(--ease-out), opacity 500ms;
}
.build-layer[data-step="1"] { --n: 1; }
.build-layer[data-step="2"] { --n: 2; }
.build-layer[data-step="3"] { --n: 3; }
.build-layer[data-step="4"] { --n: 4; background: var(--fuse-500); border-color: var(--fuse-400); }
.build-layer.is-on, html:not(.js) .build-layer { transform: translateZ(var(--z)); opacity: 1; }
/* side faces: hang down 24px from the near edges (10px gap = visible layers) */
.build-layer i { position: absolute; display: block; }
.build-layer i:nth-child(1) {   /* front face */
  inset-inline: 0; top: 100%; height: 24px;
  background: var(--ink-300); transform-origin: top; transform: rotateX(-90deg);
}
.build-layer i:nth-child(2) {   /* right face */
  top: 0; bottom: 0; left: 100%; width: 24px;
  background: var(--ink-500); transform-origin: left; transform: rotateY(90deg);
}
[dir="rtl"] .build-layer i:nth-child(2) { left: auto; right: 100%; transform-origin: right; transform: rotateY(-90deg); }
.build-layer i:nth-child(3) {   /* layer lines on the top face */
  inset: 0; background: repeating-linear-gradient(45deg, transparent 0 6px, rgb(10 11 16 / 0.05) 6px 7px);
}
.build-layer[data-step="4"] i:nth-child(1) { background: var(--fuse-700); }
.build-layer[data-step="4"] i:nth-child(2) { background: var(--fuse-800); }

.steps { display: grid; gap: 12px; }
.step {
  position: relative;
  padding: 24px 28px;
  padding-inline-start: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  transition: border-color var(--dur-med), box-shadow var(--dur-med), transform var(--dur-med) var(--ease-out);
}
.step::before {
  content: ""; position: absolute; inset-block: 20px; inset-inline-start: 0; width: 4px;
  border-radius: 4px; background: var(--ink-200); transition: background var(--dur-med);
}
.step.is-current { border-color: var(--fuse-300); box-shadow: var(--shadow-md); transform: translateX(6px); }
[dir="rtl"] .step.is-current { transform: translateX(-6px); }
.step.is-current::before, .step.is-done::before { background: var(--fuse-500); }
.step-z { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-accent-text); letter-spacing: 0.08em; }
.step h3 { font-size: var(--text-lg); margin-block: 6px 6px; }
.step p { color: var(--color-text-muted); }

/* ---- 7. Pillars + audiences -------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pillar { padding: 28px 24px; border-block-start: 2px solid var(--ink-950); }
.pillar-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-block-end: 18px; border-radius: 14px; background: var(--fuse-50); color: var(--fuse-600); }
.pillar-icon svg { width: 32px; height: 32px; }
.pillar h3 { font-size: var(--text-lg); margin-block-end: 10px; }
.pillar p { color: var(--color-text-muted); }
.audiences { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-block-start: clamp(40px, 5vw, 64px); }
.audiences-label { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--color-text-muted); }
.audiences ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.audiences li { padding: 8px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface); font-weight: 600; font-size: var(--text-sm); }

/* ---- 8. FAQ ------------------------------------------------------------ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--text-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--ink-950), var(--ink-950)) center / 100% 2px no-repeat,
              linear-gradient(var(--ink-950), var(--ink-950)) center / 2px 100% no-repeat;
  transition: transform var(--dur-med) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: var(--fuse-300); }
.faq details p { padding: 0 24px 22px; color: var(--color-text-muted); }

/* ---- 9. CTA ------------------------------------------------------------ */
.cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(50% 120% at 100% 0%, rgb(61 126 255 / 0.35), transparent 60%),
    radial-gradient(40% 90% at 0% 100%, rgb(75 227 251 / 0.14), transparent 60%),
    var(--ink-950);
  color: var(--white);
  padding-block: clamp(64px, 8vw, 112px);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: var(--text-3xl); }
.cta p:not(.eyebrow) { margin-block-start: 14px; color: var(--ink-300); font-size: var(--text-lg); max-width: 34em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink-950); color: var(--ink-300); border-block-start: 1px solid var(--ink-800); padding-block: 72px 32px; font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand img { height: 52px; width: auto; }
.footer-name { margin-block: 14px 0; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-400); text-align: start; }
.footer-ar { margin-block: 6px 14px; font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif; font-size: 1.35rem; font-weight: 600; color: var(--white); text-align: start; }
.footer-brand > p:not(.footer-ar, .footer-name) { max-width: 30em; }
.social { display: flex; gap: 10px; margin-block-start: 22px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink-700); border-radius: 50%; color: var(--white); transition: border-color var(--dur-fast), background var(--dur-fast); }
.social a:hover { border-color: var(--fuse-500); background: rgb(61 126 255 / 0.12); }
.social svg { width: 18px; height: 18px; }
.footer-col h2 { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--white); margin-block-end: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--ink-300); text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; flex: none; margin-block-start: 2px; color: var(--fuse-400); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-block-start: 56px; padding-block-start: 24px; border-block-start: 1px solid var(--ink-800); color: var(--ink-400); font-size: var(--text-xs); }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom a { color: var(--ink-400); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ---- Scroll reveal (only with JS) ------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
  .cat-grid, .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 40px 56px; }
  .hero-stage { max-width: 460px; order: -1; margin-block-end: -24px; }
  .hud { inset-inline-start: 50%; transform: translateX(-50%); bottom: 2%; min-width: 230px; }
  [dir="rtl"] .hud { transform: translateX(50%); }
  .spot-grid { grid-template-columns: 1fr; }
  .spot-card-lg { grid-row: auto; min-height: 460px; }
  .process { grid-template-columns: 1fr; }
  .process-visual { position: relative; top: 0; max-height: 340px; }
  .faq-wrap { grid-template-columns: 1fr; }
  .brands-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .brands-label { text-align: center; }
}
@media (max-width: 600px) {
  .cat-grid, .svc-grid, .pillars { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .step.is-current { transform: none; }
  .iso-stack { width: 150px; height: 150px; }
  .build { width: min(50%, 190px); }
  .process-visual { max-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
  .hud { font-size: 11px; padding: 10px 12px; min-width: 0; width: max-content; }
  .hud-coords { font-size: 12px; gap: 12px; }
}

/* ---- Reduced motion ---------------------------------------------------- */
@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; }
  .marquee { overflow-x: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- Arabic tweaks ----------------------------------------------------- */
[dir="rtl"] .eyebrow, [dir="rtl"] .brands-label, [dir="rtl"] .audiences-label,
[dir="rtl"] .footer-col h2, [dir="rtl"] .spot-tag, [dir="rtl"] .hero-points li, [dir="rtl"] .step-z {
  font-family: var(--font-body); letter-spacing: 0; text-transform: none;
}
[dir="rtl"] .eyebrow { font-size: var(--text-sm); font-weight: 600; }
:lang(ar) .hero-title { font-family: "Readex Pro", var(--font-display); }
:lang(ar) h2, :lang(ar) h3, :lang(ar) .cat-name { font-family: "Readex Pro", var(--font-display); }
