/* =========================================================
   Procode — informational site
   Tokens follow the Procode Brand System v1.0
   ========================================================= */

:root {
  /* brand palette — never changes */
  --pc-void: #050816;
  --pc-abyss: #0a1a4a;
  --pc-cobalt: #0b3d91;
  --pc-pulse: #0066d6;
  --pc-signal: #00b8e0;
  --pc-frost: #e8f6fb;
  --pc-ink: #071a4a;

  --font-display: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-sans: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Sans Arabic", ui-monospace, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --cut: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* dark (default) */
:root,
[data-theme="dark"] {
  --bg: var(--pc-void);
  --surface: #0a1230;
  --surface-2: #0d1838;
  --border: #1a2550;
  --text: #e6ecf5;
  --muted: #a9b6cc;
  --primary: var(--pc-pulse);
  --primary-hover: #1a78e6;
  --accent: #4fd1f0;
  --success: #16c47f;
  --warning: #f5a524;
  --danger: #ff4d6a;
  --tag-blue-bg: rgba(0, 102, 214, 0.18);
  --tag-blue-fg: #8fc6ff;
  --tag-amber-bg: rgba(245, 165, 36, 0.14);
  --tag-amber-fg: #f5b94e;
  --tag-green-bg: rgba(22, 196, 127, 0.14);
  --tag-green-fg: #4fe0a6;
  --grid-line: rgba(79, 209, 240, 0.06);
  --code-kw: #6aa8ff;
  --code-fn: #4fd1f0;
  --code-str: #f5c26b;
  --code-cm: #5b6a8c;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f7fafd;
  --surface: #ffffff;
  --surface-2: #eef4fa;
  --border: #d5deeb;
  --text: var(--pc-ink);
  --muted: #4a5872;
  --primary: #0057b8;
  --primary-hover: #004a9e;
  --accent: #007a99;
  --success: #0e7a50;
  --warning: #9a5b00;
  --danger: #c21f3b;
  --tag-blue-bg: #e2effb;
  --tag-blue-fg: #0b3d91;
  --tag-amber-bg: #fdf0d9;
  --tag-amber-fg: #8a5100;
  --tag-green-bg: #dcf5ea;
  --tag-green-fg: #0b6b45;
  --grid-line: rgba(11, 61, 145, 0.07);
  --code-kw: #6aa8ff;
  --code-fn: #4fd1f0;
  --code-str: #f5c26b;
  --code-cm: #5b6a8c;
  color-scheme: light;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

body.is-loading { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }

::selection { background: var(--primary); color: #fff; }

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

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip:focus { transform: none; }

/* ---------- type ---------- */
.display,
.h1, .h2, .h3 {
  font-family: var(--font-display);
  color: var(--text);
  text-wrap: balance;
}
.display {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.h3 { font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
.lead, .body-lg { font-size: clamp(1.0625rem, 1.6vw, 1.125rem); line-height: 1.65; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--amber { color: var(--tag-amber-fg); }

/* ---------- buttons, links, tags ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transform: translate(var(--mx), var(--my));
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.35s var(--ease-out), box-shadow 0.2s;
  white-space: nowrap;
}
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--primary); }
.btn:active { transform: translate(var(--mx), var(--my)) scale(0.97); }

.link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
}
.link span { transition: transform 0.25s var(--ease-out); }
.link:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .link .arrow { transform: scaleX(-1); }
[dir="rtl"] .link:hover .arrow { transform: scaleX(-1) translateX(4px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 500 0.75rem/1.4 var(--font-mono);
  white-space: nowrap;
}
.tag--blue { background: var(--tag-blue-bg); color: var(--tag-blue-fg); }
.tag--amber { background: var(--tag-amber-bg); color: var(--tag-amber-fg); }
.tag--green { background: var(--tag-green-bg); color: var(--tag-green-fg); }

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.dot--live { background: var(--success); position: relative; }
.dot--live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--success);
  animation: ping 2s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s;
}
.icon-btn:hover { border-color: var(--primary); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.lang-btn {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font: 600 0.875rem/1 var(--font-sans);
  transition: border-color 0.2s;
}
.lang-btn:hover { border-color: var(--primary); }
.lang-btn:lang(ar) { font-family: "IBM Plex Sans Arabic", var(--font-sans); }

.theme-toggle .i-moon { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* signature 45° cut corner (feature cards & hero panels only) */
.cut {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  background: var(--pc-void);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { position: relative; width: 72px; height: 72px; }
.loader__half { position: absolute; inset: 0; fill: #fff; }
.loader__half--l { animation: lockL 0.9s var(--ease-out) both; }
.loader__half--r { animation: lockR 0.9s var(--ease-out) both; }
.loader__label { font-size: 0.75rem; color: #a9b6cc; letter-spacing: 0.1em; animation: fadeIn 0.6s 0.3s both; }
@keyframes lockL { from { transform: translate(-40px, 20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lockR { from { transform: translate(40px, -20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pc-pulse), var(--pc-signal));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- notice ---------- */
.notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}
.notice .mono { color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 28px; height: 28px; fill: currentColor; color: var(--text); }
.brand__word { font: 700 1.3rem/1 var(--font-display); letter-spacing: -0.02em; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

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

.menu-toggle { display: none; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease-out); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 140px var(--gutter) 40px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu:not(.is-open) { pointer-events: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font: 700 1.75rem/1.2 var(--font-display);
  letter-spacing: -0.02em;
}
.mobile-menu nav a .mono { font-size: 0.8rem; color: var(--accent); font-weight: 400; }
.mobile-menu .btn { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 112px);
  display: flex;
  align-items: center;
  padding: 48px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  z-index: -1;
  left: -28%;
  bottom: -62%;
  width: 85vmax;
  height: 85vmax;
  background: radial-gradient(circle at center,
    rgba(232, 246, 251, 0.85) 0%,
    rgba(0, 184, 224, 0.75) 12%,
    rgba(0, 102, 214, 0.55) 28%,
    rgba(11, 61, 145, 0.25) 45%,
    transparent 65%);
  filter: blur(10px);
  animation: drift 18s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}
[data-theme="light"] .hero__glow { opacity: 0.55; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6%, -4%) scale(1.08); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero__grid::after {
  /* scanning line */
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(79, 209, 240, 0.08), transparent);
  animation: scan 7s linear infinite;
}
@keyframes scan { from { top: -120px; } to { top: 100%; } }

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__copy { display: grid; gap: 24px; }
@media (min-width: 1025px) {
  .hero__inner { grid-template-columns: 0.9fr 1.1fr; }
  .hero__visual { order: -1; }
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.hero__visual { position: relative; }
.is-ready 
/* code window */
.code-window {
  --rx: 0deg; --ry: 0deg;
  background: #050816;
  border: 1px solid #1a2550;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 102, 214, 0.45);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.4s var(--ease-out);
  color: #e6ecf5;
}
.code-window__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #1a2550;
  font-size: 0.8125rem;
  color: #a9b6cc;
}
.code-window__dots { display: flex; gap: 6px; }
.code-window__dots i { width: 10px; height: 10px; border-radius: 50%; background: #1a2550; }
.code-window__body {
  margin: 0;
  padding: 20px;
  min-height: 252px;
  font-size: clamp(0.75rem, 1.4vw, 0.875rem);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.code-window__body .ln { color: #3a4870; user-select: none; display: inline-block; width: 2.2em; }
.tk-kw { color: var(--code-kw); }
.tk-fn { color: var(--code-fn); }
.tk-str { color: var(--code-str); }
.tk-cm { color: var(--code-cm); }
.caret {
  display: inline-block;
  width: 8px; height: 1.1em;
  vertical-align: text-bottom;
  background: var(--pc-signal);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue i {
  width: 1px; height: 36px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* split headline */
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.split .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i) * 80ms + 150ms);
}
.is-ready .split .word > span { transform: none; }

/* ---------- ticker ---------- */
.ticker {
  border-block: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; }
.ticker li {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 18px 20px;
  font: 500 0.875rem var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
}
.ticker li::after {
  content: "";
  width: 8px; height: 8px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  margin-left: 20px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 11vw, 136px) 0; position: relative; }
.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section__head > div { display: grid; gap: 14px; }
.section__head > p { max-width: 46ch; justify-self: end; }

/* concept */
.concept {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px 64px;
  margin-bottom: 56px;
}
.concept__head { display: grid; gap: 14px; align-content: start; }
.concept__body { display: grid; gap: 16px; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 190px;
}
.pillar p { color: var(--muted); font-size: 0.9375rem; }
.num { font-size: 0.8125rem; color: var(--accent); }

/* spotlight hover (cursor-following light) */
.spot {
  --x: 50%; --y: 50%;
  position: relative;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(400px circle at var(--x) var(--y), rgba(0, 184, 224, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }
.spot:hover { border-color: color-mix(in srgb, var(--primary) 60%, var(--border)); transform: translateY(-4px); }

/* services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service {
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 16px;
  align-content: start;
}
.service__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.service__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--tag-blue-bg);
  color: var(--accent);
}
.service--fivem .service__icon { background: var(--tag-amber-bg); color: var(--tag-amber-fg); }
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--muted); }
.service:hover .service__icon svg { animation: nudge 0.6s var(--ease-out); }
@keyframes nudge { 40% { transform: translateY(-3px) rotate(-6deg); } }

.checks { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.checks li { display: flex; gap: 10px; align-items: center; font-size: 0.9375rem; }
.checks li::before {
  content: "";
  width: 7px; height: 7px;
  flex: none;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
}
.service--fivem .checks li::before,
.plan .checks li::before { border-color: var(--tag-amber-fg); }

/* fivem */
.section--fivem {
  background:
    radial-gradient(800px 400px at 100% 0%, color-mix(in srgb, var(--warning) 7%, transparent), transparent 70%),
    var(--bg);
  border-block: 1px solid var(--border);
}

.v4 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
#v4 { border-top: 0; }
.v4__copy { display: grid; gap: 18px; justify-items: start; }
.v4__title { font-size: clamp(2.5rem, 6vw, 4rem); }

.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out), opacity 0.4s; opacity: 0.85; }
.video:hover img { transform: scale(1.04); opacity: 1; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute;
  top: 50%; left: 50%;
  width: 76px; height: 76px;
  margin: -38px 0 0 -38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  transition: transform 0.35s var(--ease-out);
}
.video__play::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: ping 2.2s var(--ease-out) infinite;
}
.video__play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.video:hover .video__play { transform: scale(1.08); }
.video__label {
  position: absolute;
  inset-inline-start: 16px; bottom: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(5, 8, 22, 0.75);
  color: #e6ecf5;
  font-size: 0.75rem;
}

.specs { display: grid; width: 100%; border-top: 1px solid var(--border); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.specs dt { color: var(--muted); font-size: 0.8125rem; }
.specs dd { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-align: end; }

.plans-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 60ch; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 14px;
  align-content: start;
}
.plan p { color: var(--muted); }
.plan--feature { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); }

/* process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: s;
  position: relative;
}
.step {
  position: relative;
  padding-block: 28px;
  padding-inline: 0 24px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  align-content: start;
}
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--pc-pulse), var(--pc-signal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + 0.2s);
}
.step.is-in::before { transform: scaleX(1); }
.step__num { font-size: 0.8125rem; color: var(--accent); }
.step p { color: var(--muted); font-size: 0.9375rem; }

/* launch */
.launch {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(32px, 6vw, 72px);
  background: #050816;
  border: 1px solid #1a2550;
  color: #e6ecf5;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  --cut: 32px;
}
.launch .h1 { color: #fff; }
.launch .body-lg { color: #a9b6cc; }
.launch .eyebrow { color: #4fd1f0; }
.launch .btn--ghost { background: #0a1230; border-color: #1a2550; color: #e6ecf5; }
.launch__copy { display: grid; gap: 20px; }
.launch__glow {
  position: absolute;
  z-index: -1;
  left: -30%;
  bottom: -90%;
  width: 900px; height: 900px;
  background: radial-gradient(circle,
    rgba(232, 246, 251, 0.7) 0%,
    rgba(0, 184, 224, 0.6) 12%,
    rgba(0, 102, 214, 0.45) 28%,
    transparent 60%);
  animation: drift 14s var(--ease-in-out) infinite alternate;
}

.buildlog {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(10, 18, 48, 0.8);
  border: 1px solid #1a2550;
  backdrop-filter: blur(8px);
  display: grid;
  gap: 16px;
}
.buildlog__head { display: flex; justify-content: space-between; font-size: 0.8125rem; color: #a9b6cc; }
.buildlog__pct { color: #4fd1f0; }
.bar { height: 6px; border-radius: 99px; background: #1a2550; overflow: hidden; }
.bar span {
  display: block;
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--pc-pulse), var(--pc-signal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-out) 0.3s;
}
.launch.is-in .bar span { transform: scaleX(1); }
.buildlog__list { display: grid; gap: 10px; font-size: 0.8125rem; }
.buildlog__list li { display: flex; gap: 10px; align-items: center; color: #e6ecf5; }
.buildlog__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.buildlog__list .ok::before { background: #16c47f; }
.buildlog__list .wip::before { background: #f5a524; animation: blink 1.4s steps(1) infinite; }
.buildlog__list .todo { color: #a9b6cc; }
.buildlog__list .todo::before { border: 1px solid #a9b6cc; }
.buildlog__list em { margin-inline-start: auto; font-style: normal; font-size: 0.6875rem; color: #a9b6cc; }
.buildlog__list .ok em { color: #16c47f; }
.buildlog__list .wip em { color: #f5a524; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer__brand { display: grid; gap: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: var(--muted); padding: 6px 0; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__meta { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--border); }

/* ---------- scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: calc(var(--d, 0s) + 0.1s); }

.js .stagger > * {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), border-color 0.3s;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > .spot:hover { transform: translateY(-4px); transition-delay: 0s; }

/* no-JS: show everything */
html:not(.js) .loader { display: none; }

/* ---------- Arabic / RTL ---------- */
/* Brand rules: Arabic line-height +15%, no letter-spacing, never italic */
[lang="ar"] body { line-height: 1.85; }
[lang="ar"] .display { line-height: 1.25; letter-spacing: 0; }
[lang="ar"] .h1 { line-height: 1.35; letter-spacing: 0; }
[lang="ar"] .h2, [lang="ar"] .h3 { line-height: 1.45; letter-spacing: 0; }
[lang="ar"] .eyebrow, [lang="ar"] .scroll-cue { letter-spacing: 0; }
[lang="ar"] .lead, [lang="ar"] .body-lg { line-height: 1.9; }
[lang="ar"] .split .word { padding-bottom: 0.25em; }
[lang="ar"] .mobile-menu nav a { line-height: 1.5; }

/* code, tech names and the mark stay left-to-right */
[dir="rtl"] .code-window,
[dir="rtl"] .ticker,
[dir="rtl"] .brand { direction: ltr; }

[dir="rtl"] .progress span,
[dir="rtl"] .bar span,
[dir="rtl"] .step::before { transform-origin: 100% 50%; }
[dir="rtl"] .step::before { left: auto; right: 0; }

/* keep the light behind the visual, text on the dark side */
[dir="rtl"] .hero__glow { left: auto; right: -28%; animation-name: drift-rtl; }
[dir="rtl"] .hero__grid { mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }
@keyframes drift-rtl {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6%, -4%) scale(1.08); }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__glow { opacity: 0.8; }
  .hero__visual { max-width: 560px; }
  .hero__glow { left: -40%; bottom: -60%; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .menu-toggle { display: flex; }
  .section__head, .concept, .v4, .launch { grid-template-columns: 1fr; }
  .section__head > p { justify-self: start; }
  .services, .plans { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 40px 0 96px; }
}

@media (max-width: 560px) {
  .pillars, .steps { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .notice { font-size: 0.8125rem; justify-content: flex-start; text-align: start; }
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
}
