/* ══════════════════════════════════════════════════════════════════════════
   PRAGMATECH — Design System
   Dark institutional. Serif display + geometric sans + mono index labels.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --void:       #06070A;
  --base:       #0A0C11;
  --surface:    #0E1118;
  --surface-2:  #131824;
  --surface-3:  #19202F;

  /* Hairlines */
  --line:       rgba(255,255,255,0.07);
  --line-2:     rgba(255,255,255,0.13);
  --line-3:     rgba(255,255,255,0.22);

  /* Type colour */
  --text:       #E9EDF4;
  --text-2:     #8D97AA;
  --text-3:     #525C70;

  /* Brand */
  --indigo:     #635BFF;
  --indigo-2:   #8B85FF;
  --indigo-dim: rgba(99,91,255,0.11);
  --indigo-line:rgba(99,91,255,0.28);
  --lime:       #B6FF3C;
  --lime-dim:   rgba(182,255,60,0.12);

  /* Geometry */
  --r-sm:  8px;
  --r:     14px;
  --r-lg:  22px;
  --nav-h: 72px;
  --maxw:  1180px;
  --pad:   40px;

  /* Type */
  --f-sans:    'Inter', system-ui, sans-serif;
  --f-display: 'Instrument Serif', 'Times New Roman', serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--base);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--indigo); color: #fff; }

/* Arabic */
html[lang="ar"] { direction: rtl; }
html[lang="ar"] body { font-family: 'Tajawal', sans-serif; }
html[lang="ar"] .display,
html[lang="ar"] .hero h1 { font-family: 'Tajawal', sans-serif; font-weight: 700; letter-spacing: 0; }

/* ══ LAYOUT ═════════════════════════════════════════════════════════════ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 128px 0; position: relative; }
.section-sm { padding: 88px 0; }

.page { display: none; padding-top: var(--nav-h); }
.page.active { display: block; }
.page.entering { animation: pageIn 0.5s var(--ease) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* Hairline grid backdrop — the structural motif */
.gridlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  opacity: 0.7;
}

/* Film grain */
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 3; opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-2%, 3%); }
  40% { transform: translate(3%, -2%); }
  60% { transform: translate(-3%, -3%); }
  80% { transform: translate(2%, 2%); }
}

/* ══ TYPE PRIMITIVES ════════════════════════════════════════════════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--indigo); margin-bottom: 22px;
}
.eyebrow.lime { color: var(--lime); }

.display {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04; letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 20px;
}
.display em { font-style: italic; color: var(--indigo-2); }
.display .dim { color: var(--text-3); }

.lede {
  font-size: 18px; line-height: 1.68; color: var(--text-2);
  max-width: 560px; margin-bottom: 64px;
}
.lede:last-child { margin-bottom: 0; }

.sec-head { max-width: 720px; margin-bottom: 64px; }
.sec-head .lede { margin-bottom: 0; }

/* ══ REVEAL ANIMATIONS ══════════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(26px); filter: blur(10px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  will-change: opacity, transform, filter;
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* Word-by-word hero reveal.
   The mask that hides each word before it slides up also clips descenders —
   the g in "Intelligence" loses its tail. Extend the box below the baseline
   and pull the same amount back off the margin so the line box is unchanged,
   then start the word far enough down that the taller box still hides it. */
.word {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: 0.2em; margin-bottom: -0.2em;
}
.word > span {
  display: inline-block;
  transform: translateY(130%) rotate(3deg);
  opacity: 0;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.words-in .word > span { transform: none; opacity: 1; }

/* ══ BUTTONS ════════════════════════════════════════════════════════════ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s, color 0.3s;
  overflow: hidden; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
html[lang="ar"] .btn:hover .arr { transform: translateX(-4px); }
html[lang="ar"] .btn .arr { transform: scaleX(-1); }
html[lang="ar"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
/* ↗ marks "opens elsewhere", not direction of travel — never mirror it in RTL. */
.btn:hover .arr-ext,
html[lang="ar"] .btn:hover .arr-ext { transform: translateY(-2px); }
html[lang="ar"] .btn .arr-ext { transform: none; }

.btn-primary { background: var(--text); color: var(--void); font-weight: 600; }
.btn-primary:hover { background: #fff; box-shadow: 0 10px 40px rgba(233,237,244,0.16); }

.btn-accent {
  background: var(--indigo); color: #fff; font-weight: 600;
  box-shadow: 0 6px 28px rgba(99,91,255,0.28);
}
.btn-accent:hover { background: var(--indigo-2); box-shadow: 0 12px 44px rgba(99,91,255,0.42); }

.btn-ghost { border: 1px solid var(--line-2); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--line-3); color: var(--text); background: rgba(255,255,255,0.03); }

.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Icon chip used inside "learn more" links */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: gap 0.35s var(--ease);
}
.link-arrow i {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: var(--indigo); font-style: normal; font-size: 12px; color: #fff;
  transition: transform 0.35s var(--ease), background 0.3s;
}
.link-arrow:hover { gap: 14px; }
.link-arrow:hover i { background: var(--indigo-2); transform: translateX(2px); }

/* ══ SCROLL RAIL ════════════════════════════════════════════════════════ */
.rail {
  position: fixed; top: 0; inset-inline-start: 0; width: 2px; height: 100%;
  background: var(--line); z-index: 90;
}
.rail-fill {
  width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--indigo), var(--lime));
  transition: height 0.1s linear;
}

/* ══ ANNOUNCEMENT BAR ═══════════════════════════════════════════════════ */
.announce {
  position: fixed; inset: 0 0 auto 0; z-index: 120; height: 40px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--void); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text-2); padding: 0 16px;
  transition: transform 0.45s var(--ease);
}
.announce.hide { transform: translateY(-100%); }
.announce b { color: var(--text); font-weight: 600; }
.announce .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 rgba(182,255,60,0.6); animation: ping 2.4s infinite;
  flex-shrink: 0;
}
@keyframes ping {
  0%,100% { box-shadow: 0 0 0 0 rgba(182,255,60,0.55); }
  50%     { box-shadow: 0 0 0 7px rgba(182,255,60,0); }
}
.announce a { color: var(--indigo-2); font-weight: 500; }
.announce a:hover { text-decoration: underline; }

/* ══ NAV — floating pills ═══════════════════════════════════════════════ */
.nav {
  position: fixed; inset-inline: 0; top: 40px; z-index: 110;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px var(--pad);
  max-width: calc(var(--maxw) + var(--pad) * 2); margin: 0 auto;
  transition: top 0.45s var(--ease);
}
.nav.top-0 { top: 0; }

.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--void); border: 1px solid var(--line);
  padding: 12px 20px; border-radius: var(--r);
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em;
  backdrop-filter: blur(20px);
  transition: border-color 0.3s;
}
.nav-logo:hover { border-color: var(--line-2); }
.wordmark { white-space: nowrap; }
.wordmark span { color: var(--indigo); }
.nav-mark {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(from 0deg, var(--indigo), var(--lime), var(--indigo));
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.nav-cluster {
  display: flex; align-items: center; gap: 4px;
  background: var(--void); border: 1px solid var(--line);
  padding: 6px; border-radius: var(--r);
  backdrop-filter: blur(20px);
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: 9px 15px; border-radius: 9px;
  font-size: 14px; color: var(--text-2);
  transition: color 0.25s, background 0.25s;
}
.nav-links a::before {
  content: '↗'; font-size: 9px; margin-inline-end: 5px; color: var(--indigo);
  opacity: 0; transition: opacity 0.25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a:hover::before { opacity: 1; }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active::before { opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 6px; padding-inline-start: 6px; }
.lang-toggle {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.05em;
  color: var(--text-2); padding: 9px 12px; border-radius: 9px;
  white-space: nowrap; line-height: 1;
  border: 1px solid transparent; transition: color 0.25s, background 0.25s;
}
.lang-toggle:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* Burger */
.burger {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  place-items: center; gap: 5px;
}
.burger span {
  display: block; width: 18px; height: 1.5px; background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
/* Rows are 1.5px tall with a 5px gap, so each arm travels 6.5px to meet
   the middle — anything less and the X pulls apart. */
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 105; background: var(--void);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
  opacity: 0; pointer-events: none; transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.sheet.open { opacity: 1; pointer-events: auto; transform: none; }
.sheet a {
  font-family: var(--f-display); font-size: 34px; line-height: 1.5;
  color: var(--text-2); display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--line); padding: 14px 0;
  transition: color 0.25s;
}
.sheet a:hover, .sheet a.active { color: var(--text); }
.sheet a i {
  font-family: var(--f-mono); font-style: normal; font-size: 11px; color: var(--indigo);
}

/* ══ HERO ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: 140px 0 90px; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.aurora {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.aurora-1 {
  width: 780px; height: 620px; top: -240px; inset-inline-start: 46%;
  background: radial-gradient(circle, rgba(99,91,255,0.30), transparent 68%);
  animation: drift1 16s ease-in-out infinite;
}
.aurora-2 {
  width: 560px; height: 460px; bottom: -220px; inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(139,133,255,0.16), transparent 70%);
  animation: drift2 20s ease-in-out infinite;
}
.aurora-3 {
  width: 420px; height: 340px; top: 40%; inset-inline-end: -140px;
  background: radial-gradient(circle, rgba(182,255,60,0.08), transparent 70%);
  animation: drift1 24s ease-in-out infinite reverse;
}
@keyframes drift1 {
  0%,100% { transform: translate(0,0) scale(1); opacity: 0.9; }
  50%     { transform: translate(-6%, 5%) scale(1.12); opacity: 1; }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0) scale(1.06); }
  50%     { transform: translate(8%, -6%) scale(1); }
}

.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 940px; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--text-2);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 34px;
  backdrop-filter: blur(10px);
}
.hero-pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  animation: ping 2.4s infinite;
}

.hero h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(46px, 8.2vw, 104px);
  line-height: 0.97; letter-spacing: -0.032em;
  margin-bottom: 32px; color: var(--text);
}
.hero h1 .dim { color: var(--text-3); }
.hero h1 em { font-style: italic; color: var(--indigo-2); }
.hero h1 .line { display: block; }

.hero-body {
  font-size: 19px; line-height: 1.68; color: var(--text-2);
  max-width: 560px; margin-bottom: 44px;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero-foot {
  position: relative; z-index: 2; margin-top: 88px;
  display: flex; align-items: center; gap: 18px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3);
}
.hero-foot .bar { flex: 1; height: 1px; background: var(--line); }

/* ══ STATS ══════════════════════════════════════════════════════════════ */
.stats { border-bottom: 1px solid var(--line); background: var(--void); }
.stats-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 44px 32px; border-inline-end: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: background 0.4s;
}
.stat:first-child { padding-inline-start: 0; }
.stat:last-child { border-inline-end: none; }
.stat:hover { background: rgba(255,255,255,0.015); }
.stat-idx {
  font-family: var(--f-mono); font-size: 10px; color: var(--text-3);
  letter-spacing: 0.1em; margin-bottom: 16px;
}
.stat-num {
  font-family: var(--f-display); font-size: clamp(38px, 4.4vw, 54px);
  line-height: 1; letter-spacing: -0.03em; color: var(--text); margin-bottom: 8px;
}
.stat-num span { color: var(--indigo); }
.stat-num.lime { color: var(--lime); }
.stat-label { font-size: 13.5px; color: var(--text-2); }

/* ══ MARQUEE ════════════════════════════════════════════════════════════ */
.marquee {
  border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 56px; width: max-content;
  animation: slide 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3); white-space: nowrap;
  transition: color 0.3s;
}
.marquee-item:hover { color: var(--text-2); }
.marquee-sep { color: var(--indigo); opacity: 0.5; }

/* ══ PRODUCTS — the platform showcase ═══════════════════════════════════ */
.products { background: var(--void); border-bottom: 1px solid var(--line); position: relative; }

.prod-shell {
  display: grid; grid-template-columns: 320px 1fr;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface);
}

/* Left rail of tabs */
.prod-tabs {
  position: relative; display: flex; flex-direction: column;
  border-inline-end: 1px solid var(--line); background: var(--void);
}
.prod-tab {
  position: relative; text-align: start; padding: 26px 28px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease);
  display: flex; flex-direction: column; gap: 5px; z-index: 1;
}
.prod-tab:last-of-type { border-bottom: none; }
.prod-tab:hover { background: rgba(255,255,255,0.025); }
.prod-tab-idx {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--text-3); transition: color 0.35s;
}
.prod-tab.active .prod-tab-idx { color: var(--indigo); }
.prod-tab-name {
  font-family: var(--f-display); font-size: 21px; line-height: 1.2;
  color: var(--text-2); transition: color 0.35s;
}
.prod-tab.active .prod-tab-name { color: var(--text); }
.prod-tab-cat { font-size: 12.5px; color: var(--text-3); }
.prod-marker {
  position: absolute; inset-inline-start: 0; width: 2px; top: 0; height: 0;
  background: linear-gradient(180deg, var(--indigo), var(--lime));
  transition: transform 0.55s var(--ease), height 0.55s var(--ease);
  z-index: 2;
}

/* Panels */
.prod-panels { position: relative; }
.prod-panel { display: none; padding: 44px; }
.prod-panel.active { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 44px; align-items: start; }
.prod-panel.active .prod-copy,
.prod-panel.active .prod-visual { animation: panelIn 0.6s var(--ease) both; }
.prod-panel.active .prod-visual { animation-delay: 0.08s; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.prod-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--lime);
  background: var(--lime-dim); border: 1px solid rgba(182,255,60,0.22);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 20px;
}
.prod-status .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); animation: ping 2.4s infinite; }
.prod-status.build { color: var(--indigo-2); background: var(--indigo-dim); border-color: var(--indigo-line); }
.prod-status.build .dot { background: var(--indigo-2); }

.prod-copy h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 34px; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 14px;
}
.prod-copy > p { font-size: 15.5px; line-height: 1.7; color: var(--text-2); margin-bottom: 26px; }

/* Block layout with an absolutely-placed marker: a flex row would make a
   leading <b> its own column and crush the sentence into a narrow strip. */
.prod-feats { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.prod-feats li {
  position: relative; padding-inline-start: 18px;
  font-size: 14px; color: var(--text-2); line-height: 1.6;
}
.prod-feats li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 1px;
  background: var(--indigo); transform: rotate(45deg);
}
.prod-feats li b { color: var(--text); font-weight: 600; }

.prod-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 30px; }
.tag {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.05em;
  color: var(--text-2); border: 1px solid var(--line-2);
  padding: 5px 10px; border-radius: 6px;
  transition: border-color 0.3s, color 0.3s;
}
.tag:hover { border-color: var(--indigo-line); color: var(--text); }

.prod-cta { display: flex; align-items: center; gap: 12px 10px; flex-wrap: wrap; }
.prod-domain {
  flex-basis: 100%;                 /* own line, so the two buttons can share one */
  font-family: var(--f-mono); font-size: 12px; color: var(--text-3);
  transition: color 0.3s;
}
.prod-domain:hover { color: var(--indigo-2); }

/* ── Product mock visuals ───────────────────────────────────────────── */
.prod-visual {
  background: var(--void); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px; position: relative; overflow: hidden;
}
.prod-visual::after {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo-line), transparent);
}
.mock-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.mock-title { font-family: var(--f-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.05em; }
.mock-badge {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 5px;
  color: var(--lime); background: var(--lime-dim); border: 1px solid rgba(182,255,60,0.2);
}
.mock-badge.indigo { color: var(--indigo-2); background: var(--indigo-dim); border-color: var(--indigo-line); }
.mock-badge.amber { color: #F3B23A; background: rgba(243,178,58,0.1); border-color: rgba(243,178,58,0.22); }

.mock-row {
  display: grid; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 12.5px; color: var(--text-2);
}
.mock-row:last-of-type { border-bottom: none; }
.mock-row .num { font-family: var(--f-mono); font-size: 12px; color: var(--text); text-align: end; }
.mock-row .muted { font-family: var(--f-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.mock-ledger .mock-row { grid-template-columns: 1fr 78px 78px; }
.mock-cart  .mock-row { grid-template-columns: 1fr 34px 82px; }

.mock-total {
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line-2);
  font-size: 13px;
}
.mock-total .k { color: var(--text-2); }
.mock-total .v { font-family: var(--f-mono); color: var(--text); }
.mock-total.big .v { font-size: 17px; color: var(--lime); }
.mock-total.big .k { color: var(--text); font-weight: 600; }

.mock-hash {
  margin-top: 16px; padding: 10px 12px; border-radius: 8px;
  background: rgba(99,91,255,0.06); border: 1px solid var(--indigo-line);
  font-family: var(--f-mono); font-size: 10px; color: var(--text-3); line-height: 1.7;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  word-break: break-word;
}
.mock-hash b { color: var(--indigo-2); font-weight: 500; }

/* Note pinned under the product tab rail so the column doesn't read as empty. */
.prod-tabs-note {
  margin-top: auto; padding: 24px 28px; border-top: 1px solid var(--line);
  display: flex; gap: 12px; align-items: flex-start;
}
.prod-tabs-note i {
  font-style: normal; font-family: var(--f-mono); font-size: 12px;
  color: var(--indigo); line-height: 1.5;
}
.prod-tabs-note p { font-size: 12.5px; line-height: 1.6; color: var(--text-3); }

/* Support mock */
.mock-ticket {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.mock-ticket:last-of-type { border-bottom: none; }
.mock-pri { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mock-pri.hi  { background: #FF5C5C; box-shadow: 0 0 8px rgba(255,92,92,0.5); }
.mock-pri.med { background: #F3B23A; }
.mock-pri.low { background: var(--text-3); }
.mock-ticket-body { flex: 1; min-width: 0; }
.mock-ticket-t { display: block; font-size: 12.5px; color: var(--text); margin-bottom: 7px; line-height: 1.4; }
.mock-sla { display: block; height: 3px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.mock-sla i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--indigo), var(--lime)); }
.mock-ticket-m { font-family: var(--f-mono); font-size: 10px; color: var(--text-3); flex-shrink: 0; }

.mock-ai {
  margin-top: 16px; padding: 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.mock-ai-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--indigo-2);
}
.mock-ai p { font-size: 12.5px; line-height: 1.6; color: var(--text-2); margin-bottom: 10px; }
.mock-cites { display: flex; gap: 6px; flex-wrap: wrap; }
.mock-cite {
  font-family: var(--f-mono); font-size: 9.5px; color: var(--text-3);
  border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 5px;
}

/* Typing caret for AI mock */
.caret {
  display: inline-block; width: 6px; height: 12px; background: var(--indigo-2);
  vertical-align: -1px; animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

/* ══ SPOTLIGHT CARD GRID ════════════════════════════════════════════════ */
.spot-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.spot-grid-3 { grid-template-columns: repeat(3, 1fr); }
.spot {
  position: relative; padding: 40px; background: var(--surface);
  border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background 0.4s;
  overflow: hidden;
  /* Column so .spot-links can be pushed to the bottom — descriptions differ in
     length, and without this the trial links sit at three different heights. */
  display: flex; flex-direction: column;
}
.spot::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(99,91,255,0.14), transparent 62%);
  transition: opacity 0.4s;
}
.spot:hover::before { opacity: 1; }
.spot:hover { background: var(--surface-2); }
.spot > * { position: relative; z-index: 1; }
.spot-idx {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--indigo); margin-bottom: 20px; display: block;
}
.spot-ico {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--indigo-dim); border: 1px solid var(--indigo-line); margin-bottom: 20px;
}
.spot-ico svg { width: 18px; height: 18px; stroke: var(--indigo-2); fill: none; stroke-width: 1.6; }
.spot h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--text); }
.spot p { font-size: 14px; line-height: 1.65; color: var(--text-2); }

/* ── Card artwork ───────────────────────────────────────────────────────
   Inline SVG rather than images: it inherits the tokens below, costs no
   request, stays sharp at any DPI, and mirrors cleanly for RTL.
   margin-top:auto drops it to the foot of the card so it absorbs the
   leftover height instead of leaving a void.
   ────────────────────────────────────────────────────────────────────── */
.spot-art { margin-top: auto; padding-top: 32px; }
.spot-art svg { display: block; width: 100%; height: auto; }

/* Split card: art sits beside the copy, not under it. Stacking them doubled
   the section's height; side by side it fills the horizontal gap instead and
   the row stays about as tall as the text alone. */
.spot-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 205px;
  column-gap: 28px;
  align-items: center;
  padding: 34px 36px;
}
.spot-split .spot-idx  { grid-column: 1 / -1; margin-bottom: 14px; }
.spot-split .spot-head { grid-column: 1; }
.spot-split p          { grid-column: 1; }
.spot-split .spot-art  { grid-column: 2; grid-row: 2 / span 2; margin: 0; padding: 0; }

.spot-head { display: flex; align-items: center; gap: 14px; margin-bottom: 11px; }
.spot-head .spot-ico { width: 34px; height: 34px; margin-bottom: 0; border-radius: 9px; }
.spot-head .spot-ico svg { width: 16px; height: 16px; }
.spot-head h3 { margin-bottom: 0; }

.spot-art .a-rule  { stroke: var(--line); }
.spot-art .a-rail  { stroke: var(--line-2); }
.spot-art .a-mute  { stroke: var(--line-3); stroke-dasharray: 4 4; }
.spot-art .a-block { fill: var(--surface-2); stroke: var(--line-2); }
.spot-art .a-slot  { fill: none; stroke: var(--line-2); stroke-dasharray: 3 3; }
.spot-art .a-key   { fill: rgba(99,91,255,0.22); stroke: var(--indigo); }
.spot-art .a-path  { stroke: var(--indigo); stroke-width: 1.5; }
.spot-art .a-node  { fill: var(--indigo); }
.spot-art .a-live  { fill: var(--lime); }
.spot-art .a-x     { stroke: var(--text-3); stroke-width: 1.4; stroke-linecap: round; }
.spot-art .a-card  { fill: var(--surface-2); stroke: var(--line-2); }
.spot-art .a-card-b{ fill: var(--surface); stroke: var(--line); }

/* Motion is a nudge on hover, nothing that competes with the copy. */
.spot-art .art-drop, .spot-art .art-lift, .spot-art .art-pulse {
  transition: transform 0.55s var(--ease);
  transform-box: fill-box; transform-origin: center;
}
.spot:hover .art-drop  { transform: translateY(8px); }
.spot:hover .art-lift  { transform: translateY(-5px); }
.spot:hover .art-pulse { transform: scale(1.4); }

/* The flow diagrams read left-to-right; flip them with the text. */
html[lang="ar"] .spot-art svg { transform: scaleX(-1); }

/* Card footer: a direct trial link plus a route into the detail page. */
.spot-links {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
}
.spot-trial {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--lime);
  transition: gap 0.3s var(--ease);
}
.spot-trial:hover { gap: 11px; }
.spot-more { font-size: 13.5px; color: var(--text-2); transition: color 0.25s; }
.spot-more:hover { color: var(--text); }

/* ══ WORK CARDS ═════════════════════════════════════════════════════════ */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 32px; overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.work-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(300px circle at var(--mx,50%) var(--my,50%), rgba(99,91,255,0.13), transparent 62%);
  transition: opacity 0.4s;
}
.work-card:hover::before { opacity: 1; }
.work-card:hover { border-color: var(--indigo-line); transform: translateY(-4px); }
.work-card > * { position: relative; z-index: 1; }
.work-metric {
  font-family: var(--f-display); font-size: 30px; letter-spacing: -0.02em;
  color: var(--lime); margin-bottom: 16px; line-height: 1;
}
.work-tag {
  display: inline-block; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--indigo-2);
  background: var(--indigo-dim); border: 1px solid var(--indigo-line);
  padding: 4px 9px; border-radius: 5px; margin-bottom: 16px;
}
.work-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 9px; }
.work-card p { font-size: 14px; line-height: 1.65; color: var(--text-2); }
.work-card-footer {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 10.5px; color: var(--text-3); letter-spacing: 0.03em;
}

/* ══ PROCESS ════════════════════════════════════════════════════════════ */
.process { background: var(--void); border-block: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.process-step {
  padding: 0 28px; border-inline-end: 1px solid var(--line);
  transition: background 0.4s;
}
.process-step:first-child { padding-inline-start: 0; }
.process-step:last-child { border-inline-end: none; }
.process-num {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--indigo); margin-bottom: 18px;
}
.process-line { height: 1px; background: var(--line); margin-bottom: 26px; position: relative; }
.process-line i {
  position: absolute; inset-inline-start: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--indigo), var(--lime));
  transition: width 1.1s var(--ease);
}
.reveal.in .process-line i, .process-step.in .process-line i { width: 100%; }
.process-step h3 { font-family: var(--f-display); font-size: 26px; margin-bottom: 12px; letter-spacing: -0.015em; }
.process-step p { font-size: 14px; line-height: 1.65; color: var(--text-2); }

/* ══ FAQ ════════════════════════════════════════════════════════════════ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 72px; align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; width: 100%; text-align: start;
  transition: color 0.3s;
}
.faq-q:hover { color: var(--indigo-2); }
.faq-q h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.faq-ico {
  position: relative; width: 14px; height: 14px; flex-shrink: 0;
  transition: transform 0.45s var(--ease);
}
.faq-ico::before, .faq-ico::after {
  content: ''; position: absolute; background: var(--indigo);
  inset-inline-start: 50%; top: 50%; border-radius: 1px;
}
.faq-ico::before { width: 12px; height: 1.5px; transform: translate(-50%,-50%); }
.faq-ico::after  { width: 1.5px; height: 12px; transform: translate(-50%,-50%); transition: opacity 0.35s; }
.faq-item.open .faq-ico { transform: rotate(180deg); }
.faq-item.open .faq-ico::after { opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { font-size: 15px; line-height: 1.72; color: var(--text-2); padding-bottom: 24px; }

/* ══ CTA BAND ═══════════════════════════════════════════════════════════ */
.cta-band {
  position: relative; background: var(--void);
  border-block: 1px solid var(--line);
  padding: 110px 0; text-align: center; overflow: hidden;
}
.cta-band .aurora-1 { inset-inline-start: 50%; transform: translateX(-50%); top: -300px; opacity: 0.6; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(32px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.cta-band p { font-size: 17px; color: var(--text-2); max-width: 500px; margin: 0 auto 36px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ══ SERVICES PAGE ══════════════════════════════════════════════════════ */
.service-block {
  display: grid; grid-template-columns: 1fr 1.7fr; gap: 72px; align-items: start;
  padding: 64px 0; border-top: 1px solid var(--line);
}
.service-block-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--indigo); margin-bottom: 12px; }
.service-block h2 { font-family: var(--f-display); font-weight: 400; font-size: 40px; letter-spacing: -0.025em; line-height: 1.05; }
.service-block-desc { font-size: 16.5px; line-height: 1.72; color: var(--text-2); margin-bottom: 30px; }
.when-label {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 16px;
}
.when-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.when-list li {
  position: relative; padding-inline-start: 18px;
  font-size: 14.5px; color: var(--text-2); line-height: 1.6;
}
.when-list li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 1px;
  background: var(--indigo); transform: rotate(45deg);
}

.product-chip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 24px; margin-bottom: 12px;
  transition: border-color 0.3s;
}
.product-chip:hover { border-color: var(--line-2); }
.chip-tag {
  display: inline-block; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime);
  background: var(--lime-dim); border: 1px solid rgba(182,255,60,0.2);
  padding: 3px 9px; border-radius: 5px; margin-bottom: 10px;
}
.product-chip h4 { font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.product-chip p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ══ WORK PAGE ══════════════════════════════════════════════════════════ */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-chip {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.05em;
  color: var(--text-2); border: 1px solid var(--line-2);
  padding: 8px 16px; border-radius: 999px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.filter-chip:hover { color: var(--text); border-color: var(--line-3); }
.filter-chip.active { color: var(--text); border-color: var(--indigo); background: var(--indigo-dim); }

.case-study {
  display: grid; grid-template-columns: 1fr 1.7fr; gap: 72px; align-items: start;
  padding: 64px 0; border-top: 1px solid var(--line);
}
.cs-tag {
  display: inline-block; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--indigo-2);
  background: var(--indigo-dim); border: 1px solid var(--indigo-line);
  padding: 4px 9px; border-radius: 5px; margin-bottom: 16px;
}
.cs-left h2 { font-family: var(--f-display); font-weight: 400; font-size: 34px; letter-spacing: -0.02em; }
.cs-body { font-size: 16.5px; line-height: 1.75; color: var(--text-2); margin-bottom: 30px; }
.cs-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cs-detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.cs-detail-label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 8px;
}
.cs-detail-value { font-size: 14px; color: var(--text); line-height: 1.5; }

/* ══ ABOUT PAGE ═════════════════════════════════════════════════════════ */
.about-hero { max-width: 820px; margin-bottom: 104px; }
.about-hero h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(36px, 5.6vw, 66px); line-height: 1.03; letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.about-hero h1 em { font-style: italic; color: var(--indigo-2); }
.about-hero p { font-size: 18px; line-height: 1.72; color: var(--text-2); }

.belief-list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.belief {
  background: var(--surface); padding: 36px 40px;
  display: grid; grid-template-columns: 48px 1fr; gap: 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s;
}
.belief:last-child { border-bottom: none; }
.belief:hover { background: var(--surface-2); }
.belief-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--indigo); padding-top: 5px; }
.belief h3 { font-family: var(--f-display); font-size: 24px; letter-spacing: -0.015em; margin-bottom: 12px; }
.belief p { font-size: 15px; line-height: 1.72; color: var(--text-2); }

.founder-section { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding: 72px 0; border-top: 1px solid var(--line); }
.founder-left h2 { font-family: var(--f-display); font-weight: 400; font-size: 32px; letter-spacing: -0.02em; }
.founder-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 40px; position: relative; overflow: hidden;
}
.founder-card::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo-line), transparent);
}
.founder-name { font-family: var(--f-display); font-size: 30px; letter-spacing: -0.02em; margin-bottom: 6px; }
.founder-title { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); margin-bottom: 22px; }
.founder-bio { font-size: 15px; line-height: 1.78; color: var(--text-2); }

.company-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; padding-top: 64px; border-top: 1px solid var(--line); }
.cs-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: border-color 0.3s; }
.cs-stat:hover { border-color: var(--line-2); }
.cs-stat-num { font-family: var(--f-display); font-size: 38px; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.cs-stat-num span { color: var(--indigo); }
.cs-stat-label { font-size: 13px; color: var(--text-2); }

/* ══ CONTACT ════════════════════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; }
.contact-left h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.contact-left > p { font-size: 16.5px; line-height: 1.72; color: var(--text-2); margin-bottom: 36px; }
.contact-info { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.contact-info-item {
  display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-2);
  padding: 18px 20px; background: var(--surface); transition: background 0.3s, color 0.3s;
}
.contact-info-item:hover { background: var(--surface-2); color: var(--text); }
.contact-info-item svg { width: 16px; height: 16px; stroke: var(--indigo); fill: none; stroke-width: 1.6; flex-shrink: 0; }

form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 9px; }
.form-group label {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3);
}
.form-group input, .form-group textarea, .form-group select {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--text);
  font-family: inherit; font-size: 15px; padding: 14px 16px;
  outline: none; resize: none;
  transition: border-color 0.3s, background 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--indigo); background: var(--surface-2);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-3); }
.form-group select option { background: var(--surface); color: var(--text); }
.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; background: var(--indigo); color: #fff;
  font-size: 15px; font-weight: 600; border-radius: 999px; width: 100%;
  transition: background 0.3s, transform 0.35s var(--ease), box-shadow 0.3s;
  box-shadow: 0 6px 28px rgba(99,91,255,0.26);
}
.btn-submit:hover { background: var(--indigo-2); transform: translateY(-2px); box-shadow: 0 12px 44px rgba(99,91,255,0.4); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.form-note { font-size: 12.5px; color: var(--text-3); line-height: 1.55; }

/* ══ FOOTER ═════════════════════════════════════════════════════════════ */
footer { border-top: 1px solid var(--line); padding: 72px 0 32px; background: var(--void); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 14px;
}
.footer-logo .wordmark span { color: var(--indigo); }
.footer-brand > p { font-family: var(--f-display); font-size: 17px; color: var(--text-2); font-style: italic; margin-bottom: 22px; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px;
}
.footer-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: ping 2.4s infinite; }
.footer-col h4 {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 18px;
}
.footer-col a { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 11px; transition: color 0.25s, padding 0.3s; }
.footer-col a:hover { color: var(--text); padding-inline-start: 5px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.footer-copy { font-size: 13px; color: var(--text-3); }
.footer-ver { font-family: var(--f-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.1em; }

/* ══ RTL BIDI ISOLATION ═════════════════════════════════════════════════
   Latin/technical strings (index labels, hashes, currency rows, stack tags)
   get reordered by the RTL base direction — "//01" renders as "01//".
   Force an LTR run for them, then re-align to the visual start of the line.
   ══════════════════════════════════════════════════════════════════════ */
html[lang="ar"] .prod-tab-idx,
html[lang="ar"] .stat-idx,
html[lang="ar"] .spot-idx,
html[lang="ar"] .belief-num,
html[lang="ar"] .process-num,
html[lang="ar"] .service-block-num,
html[lang="ar"] .sheet a i,
html[lang="ar"] .mock-title,
html[lang="ar"] .mock-hash,
html[lang="ar"] .mock-ticket-m,
html[lang="ar"] .mock-cite,
html[lang="ar"] .mock-row .num,
html[lang="ar"] .mock-row .muted,
html[lang="ar"] .mock-total .v,
html[lang="ar"] .prod-domain,
html[lang="ar"] .footer-ver,
html[lang="ar"] .footer-copy {
  direction: ltr; unicode-bidi: isolate; text-align: right;
}
/* Right-aligned numeric columns stay right-aligned; tag rows read L→R. */
html[lang="ar"] .mock-row .num,
html[lang="ar"] .mock-total .v { text-align: left; }
html[lang="ar"] .prod-tags,
html[lang="ar"] .mock-cites { direction: ltr; justify-content: flex-end; }

/* ══ RESPONSIVE ═════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --pad: 28px; }
  .prod-shell { grid-template-columns: 1fr; }
  .prod-tabs { flex-direction: row; border-inline-end: none; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .prod-tab { border-bottom: none; border-inline-end: 1px solid var(--line); min-width: 210px; padding: 20px 22px; }
  .prod-tabs-note { display: none; }
  .prod-marker { inset-inline-start: 0; top: auto; bottom: 0; width: 0; height: 2px;
    background: linear-gradient(90deg, var(--indigo), var(--lime)); }
  .prod-panel.active { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .faq-grid, .service-block, .case-study, .founder-section, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process-step:nth-child(2) { border-inline-end: none; }
  .process-step:nth-child(3) { padding-inline-start: 0; }
}

@media (max-width: 860px) {
  .section { padding: 88px 0; }
  /* One column: the art goes back under the copy, but capped so it stays small. */
  .spot-split { grid-template-columns: 1fr; padding: 30px 24px; }
  .spot-split .spot-art { grid-column: 1; grid-row: auto; margin-top: 22px; max-width: 300px; }
  .nav-links { display: none; }
  .burger { display: grid; }
  /* The CTA lives in the sheet and the hero on small screens — keeping it in
     the bar pushes the burger off the edge. */
  .nav-actions .btn-primary { display: none; }
  .nav { padding: 12px var(--pad); }
  .nav-logo { padding: 10px 16px; font-size: 14px; }
  .work-grid { grid-template-columns: 1fr; }
  .spot-grid, .spot-grid-3 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); padding: 30px 24px; }
  .stat:nth-child(2n) { border-inline-end: none; }
  .stat:nth-child(2n+1) { padding-inline-start: 0; }
  .company-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .hero { min-height: auto; padding: 130px 0 72px; }
  .hero-foot { margin-top: 56px; }
}

@media (max-width: 560px) {
  :root { --pad: 20px; }
  .cs-details, .form-row { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { padding: 0; border-inline-end: none; }
  .company-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .belief { grid-template-columns: 1fr; gap: 12px; padding: 28px 24px; }
  .spot { padding: 30px 24px; }
  .prod-panel.active { padding: 24px; }
  .announce { font-size: 11.5px; }
  .announce .hide-sm { display: none; }
}

/* ══ REDUCED MOTION ═════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .word > span { transform: none; opacity: 1; }
  .grain { display: none; }
}
