/* ==========================================================================
   TransEnergy Corporation — shared stylesheet (all languages)
   Plain CSS, no framework, no web fonts (system stacks → instant, low-bandwidth).
   Written with CSS logical properties (margin-inline, padding-inline, inset-inline…)
   so the Arabic version (dir="rtl") mirrors automatically.
   1 Tokens · 2 Base · 3 Layout · 4 Header, dropdowns, language switcher
   5 Buttons · 6 Heroes · 7 Components · 8 Page modules · 9 Forms
   10 Footer · 11 Language-selector page · 12 Motion · 13 RTL · 14 Responsive
   ========================================================================== */

/* 1. Tokens — brand colours taken from the logo (navy + orange/amber) ---- */
:root {
  --navy-950: #050E1F;
  --navy-900: #081A38;
  --navy-850: #0B2147;
  --navy-800: #0F2A57;
  --brand-navy: #0B2A55;      /* logo wordmark */
  --brand-blue: #0D3A7E;      /* logo T highlight */
  --slate-700: #2A3B55;
  --slate-600: #3D4E69;
  --slate-500: #5B6B82;
  --slate-400: #8392A8;
  --slate-300: #AAB6C7;
  --slate-200: #D2DAE5;
  --slate-100: #E9EDF3;
  --surface: #F4F6F9;
  --white: #FFFFFF;

  --orange: #F7931E;          /* logo bolt (mid) */
  --orange-600: #E07B00;
  --amber: #FFB51F;           /* logo bolt (light end) */
  --amber-soft: rgba(247, 147, 30, .14);
  --sky: #4D9BE8;             /* secondary data colour (storage, controls) */
  --sky-soft: rgba(77, 155, 232, .14);

  --line-dark: rgba(255, 255, 255, .09);
  --line-light: #DFE4EB;

  --font: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-ar: "Noto Kufi Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", "Arial", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --radius: 4px;
  --radius-lg: 10px;
  --container: 1240px;
  --header-h: 78px;
  --shadow: 0 18px 50px -24px rgba(5, 14, 31, .45);
  --shadow-sm: 0 8px 24px -12px rgba(5, 14, 31, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--navy-900); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:lang(ar) body, body:lang(ar) { font-family: var(--font-ar); line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
svg { direction: ltr; } /* diagrams keep their drawn orientation in RTL */
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.14; letter-spacing: -.02em; font-weight: 700; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.4rem, 4.8vw, 4.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.8rem); letter-spacing: -.03em; }
h3 { font-size: 1.28rem; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.skip-link { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 300; background: var(--orange); color: var(--navy-950); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { inset-inline-start: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.placeholder-note { display: inline-block; font: 600 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--orange-600); background: var(--amber-soft); padding: 4px 9px; border-radius: 3px; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: clamp(72px, 10vw, 124px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section--dark { background: var(--navy-900); color: var(--slate-200); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--surface { background: var(--surface); }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-inline-start: 1.3em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange-600); margin-bottom: 18px;
}
:lang(ar) .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--amber); }
.lead { font-size: clamp(1.06rem, 1.45vw, 1.22rem); color: var(--slate-500); max-width: 64ch; }
.section--dark .lead, .page-hero .lead, .hero .lead { color: var(--slate-300); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.text-orange { color: var(--orange); }

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .97); border-block-end: 1px solid var(--line-light);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; flex: none; margin-inline-end: auto; }
.brand img { width: 196px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav__item { position: relative; }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; background: none;
  font: 600 .95rem/1 var(--font); color: var(--navy-900); cursor: pointer; border-radius: var(--radius);
  transition: color .2s, background .2s;
}
:lang(ar) .nav__link, :lang(ar) .nav__trigger { font-family: var(--font-ar); }
.nav__link:hover, .nav__trigger:hover, .nav__item:focus-within > .nav__trigger { color: var(--orange-600); }
.nav__link[aria-current="page"], .nav__item.is-current > .nav__trigger { color: var(--orange-600); }
.nav__trigger .chev { width: 10px; height: 10px; transition: transform .25s var(--ease); }
.nav__trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; inset-block-start: calc(100% + 10px); inset-inline-start: -8px; min-width: 280px;
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 10px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dropdown::before { /* hover bridge so the menu does not close in the gap */
  content: ""; position: absolute; inset-inline: 0; inset-block-start: -12px; height: 12px;
}
.dropdown a { display: block; padding: 10px 14px; border-radius: 6px; font-size: .93rem; color: var(--navy-900); line-height: 1.35; }
.dropdown a small { display: block; color: var(--slate-500); font-size: .8rem; margin-top: 2px; }
.dropdown a:hover, .dropdown a:focus-visible, .dropdown a[aria-current="page"] { background: var(--surface); color: var(--orange-600); }
.dropdown .dropdown__all { border-block-start: 1px solid var(--line-light); margin-top: 6px; padding-top: 6px; }
.dropdown--wide { min-width: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dropdown--wide .dropdown__all { grid-column: 1 / -1; }
@media (hover: hover) and (min-width: 1081px) {
  .nav__item:hover > .dropdown { opacity: 1; visibility: visible; transform: none; }
}
.nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }

.header-cta { margin-inline-start: 10px; }

/* Language switcher (top-right; top-left in RTL) */
.lang { position: relative; margin-inline-start: 8px; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line-light); border-radius: var(--radius); background: var(--white);
  font: 700 .82rem/1 var(--font); letter-spacing: .08em; color: var(--navy-900); cursor: pointer;
}
.lang__btn:hover { border-color: var(--slate-300); }
.lang__btn svg { width: 16px; height: 16px; }
.lang__btn .chev { width: 10px; height: 10px; }
.lang__menu {
  position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; list-style: none;
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 6px; font-size: .93rem; }
.lang__menu a span { font: 700 .75rem var(--font); color: var(--slate-400); letter-spacing: .08em; }
.lang__menu a:hover, .lang__menu a[aria-current="true"] { background: var(--surface); color: var(--orange-600); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-light); background: var(--white); border-radius: var(--radius); cursor: pointer; position: relative; flex: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; inset-inline-start: 11px; width: 20px; height: 2px; background: var(--navy-900); content: ""; transition: transform .3s var(--ease), background .2s; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { inset-inline-start: 0; top: -6px; }
.nav-toggle span::after { inset-inline-start: 0; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.nav__mobile-lang { display: none; }

/* 5. Buttons ------------------------------------------------------------------ */
.btn {
  --bg: var(--orange); --fg: var(--navy-950);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--radius); border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font: 700 .95rem/1 var(--font); letter-spacing: .01em;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .25s, border-color .2s;
}
:lang(ar) .btn { font-family: var(--font-ar); }
.btn:hover { background: var(--amber); transform: translateY(-1px); box-shadow: 0 12px 30px -12px rgba(247, 147, 30, .75); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--white); border-color: rgba(255, 255, 255, .3); }
.btn--ghost:hover { background: rgba(255, 255, 255, .07); border-color: var(--white); box-shadow: none; }
.btn--dark { --bg: var(--brand-navy); --fg: var(--white); }
.btn--dark:hover { background: var(--brand-blue); box-shadow: var(--shadow); }
.btn--sm { padding: 11px 16px; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange-600); }
.link-arrow svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--amber); }

/* 6. Heroes --------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block-start: calc(var(--header-h) + 40px);
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(13, 58, 126, .55), transparent 62%),
    radial-gradient(700px 480px at 12% 92%, rgba(247, 147, 30, .12), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 62%, var(--navy-850) 100%);
  color: var(--slate-200);
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em, .page-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--orange), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 36px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tag {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: 7px 12px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--slate-300); background: rgba(255, 255, 255, .03);
}
:lang(ar) .tag { letter-spacing: 0; font-size: .82rem; }
.tag i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-inline-end: 8px; vertical-align: 1px; }
.hero__visual { position: relative; }
.hero__visual svg { width: 100%; height: auto; }
.hero__readout {
  position: absolute; inset-inline-start: 50%; inset-block-end: 1%; transform: translateX(-50%); min-width: 200px;
  background: rgba(8, 26, 56, .88); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: 13px 18px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .78rem; color: var(--slate-300); box-shadow: var(--shadow);
}
[dir="rtl"] .hero__readout { transform: translateX(50%); }
.hero__readout strong { display: block; color: var(--white); font-size: 1.15rem; letter-spacing: -.01em; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-inline-end: 8px; animation: pulse 2s infinite; }
.hero__strip { margin-top: clamp(40px, 6vh, 80px); border-block-start: 1px solid var(--line-dark); background: rgba(5, 14, 31, .45); }
.hero__strip ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__strip li { padding: 22px 24px; border-inline-start: 1px solid var(--line-dark); font-size: .88rem; color: var(--slate-300); }
.hero__strip li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hero__strip b { display: block; color: var(--white); font-size: .95rem; margin-bottom: 2px; }

.sys-label { font: 700 10px var(--font); letter-spacing: .16em; fill: var(--slate-300); text-transform: uppercase; }
.sys-value { font: 700 13px var(--font); fill: var(--white); }
.chart-axis { font: 500 10px var(--font); fill: var(--slate-400); }
.flow { fill: none; stroke-width: 2; stroke-dasharray: 4 12; stroke-linecap: round; animation: flow 1.4s linear infinite; }
.flow--rev { animation-direction: reverse; }
.flow-base { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 6; stroke-linecap: round; }
.ring-spin { transform-origin: 280px 260px; animation: spin 40s linear infinite; }

.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--slate-300);
  padding-block: calc(var(--header-h) + clamp(56px, 8vw, 104px)) clamp(56px, 7vw, 96px);
  background: radial-gradient(700px 400px at 85% 10%, rgba(13, 58, 126, .55), transparent 62%), linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
[dir="rtl"] .page-hero { background: radial-gradient(700px 400px at 15% 10%, rgba(13, 58, 126, .55), transparent 62%), linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.7rem); max-width: 20ch; }
.page-hero .page-hero__icon { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); color: var(--amber); margin-bottom: 26px; }
.page-hero .page-hero__icon svg { width: 34px; height: 34px; }
.breadcrumb { font-size: .84rem; color: var(--slate-400); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin-inline: 8px; opacity: .5; }

/* 7. Components ----------------------------------------------------------------- */
.facts { background: var(--navy-950); color: var(--slate-300); border-block-start: 1px solid var(--line-dark); }
.facts .grid-4 { gap: 0; }
.fact { padding: 40px 28px; border-inline-start: 1px solid var(--line-dark); }
.fact:first-child { border-inline-start: 0; }
.fact__value { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 800; color: var(--white); letter-spacing: -.03em; line-height: 1; }
.fact__value small { font-size: .45em; color: var(--orange); margin-inline-start: 6px; letter-spacing: 0; font-weight: 700; }
.fact__label { margin-top: 12px; font-size: .9rem; }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius-lg);
  padding: 34px 30px 30px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column;
}
a.card { color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card::before { content: ""; position: absolute; inset-inline: 30px; top: 0; height: 3px; background: var(--accent, var(--orange)); transform: scaleX(.2); transform-origin: left; transition: transform .45s var(--ease); }
[dir="rtl"] .card::before { transform-origin: right; }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); margin-bottom: 24px; color: var(--brand-navy); }
.card__icon svg { width: 30px; height: 30px; }
.card__num { position: absolute; inset-inline-end: 26px; top: 28px; font: 600 .78rem var(--mono); color: var(--slate-400); }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--slate-500); font-size: .96rem; }
.card ul { list-style: none; margin: 4px 0 24px; }
.card li { padding: 8px 0; padding-inline-start: 22px; position: relative; font-size: .93rem; border-block-start: 1px solid var(--slate-100); color: var(--slate-600); }
.card li::before { content: ""; position: absolute; inset-inline-start: 0; top: 17px; width: 8px; height: 8px; border: 2px solid var(--accent, var(--orange)); transform: rotate(45deg); }
.card .link-arrow { margin-top: auto; }

.feature-list { list-style: none; display: grid; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.feature-list .fi { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--amber-soft); color: var(--orange); }
.feature-list .fi svg { width: 20px; height: 20px; }
.feature-list b { display: block; color: var(--navy-900); margin-bottom: 2px; }
.section--dark .feature-list b, .panel .feature-list b { color: var(--white); }
.feature-list span { font-size: .95rem; }

.panel { background: var(--navy-850); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 36px); color: var(--slate-300); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-block-start: 1px solid var(--line-light); border-inline-start: 1px solid var(--line-light); }
.tile { padding: 32px 28px; border-inline-end: 1px solid var(--line-light); border-block-end: 1px solid var(--line-light); transition: background .3s; display: block; }
a.tile:hover { background: var(--surface); }
.tile h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 12px; }
.tile h3 svg { width: 22px; height: 22px; color: var(--orange-600); flex: none; }
.tile p { color: var(--slate-500); font-size: .95rem; margin: 0; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding-inline-end: 28px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step); display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px;
  border: 1px solid var(--slate-600); border-radius: 50%; font: 600 .9rem var(--mono); color: var(--amber); background: var(--navy-900); position: relative; z-index: 1;
}
.step::after { content: ""; position: absolute; top: 26px; inset-inline: 52px 0; height: 1px; background: var(--slate-600); opacity: .7; }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.12rem; }
.step p { font-size: .95rem; color: var(--slate-300); }

.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-900), var(--brand-navy)); color: var(--slate-300); }
.cta-band::after { content: ""; position: absolute; inset-inline-end: -80px; top: 50%; width: 460px; height: 380px; transform: translateY(-50%); background: url("../img/logo-mark.svg") center/contain no-repeat; opacity: .07; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 10px; font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.cta-band p { margin: 0; max-width: 58ch; }

.disclaimer { font-size: .82rem; color: var(--slate-400); margin-top: 22px; }
.notice { border: 1px dashed var(--orange); background: var(--amber-soft); color: var(--navy-900); border-radius: var(--radius-lg); padding: 18px 22px; font-size: .93rem; }

/* 8. Page modules ------------------------------------------------------------------ */
.solution-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.solution-row__media { position: sticky; top: calc(var(--header-h) + 32px); }
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius-lg); overflow: hidden; margin: 28px 0; }
.cap { background: var(--white); padding: 22px; }
.cap h4 { font-size: 1rem; margin-bottom: 6px; }
.cap p { font-size: .92rem; color: var(--slate-500); margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-light); border-radius: var(--radius-lg); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table caption { text-align: start; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--slate-500); padding: 0 0 12px; }
.spec-table th, .spec-table td { text-align: start; padding: 12px 14px; border-block-end: 1px solid var(--line-light); vertical-align: top; }
.spec-table thead th { background: var(--brand-navy); color: var(--white); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.spec-table tbody th { font-weight: 600; color: var(--navy-900); background: var(--surface); }
.spec-table td { color: var(--slate-600); }
.spec-table tbody tr:last-child > * { border-block-end: 0; }
.spec-table--kv th { width: 40%; }

.dispatch { list-style: none; counter-reset: d; display: grid; gap: 14px; }
.dispatch li { counter-increment: d; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .02); }
.dispatch li::before { content: counter(d); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--amber-soft); color: var(--amber); font: 700 .95rem var(--mono); }
.dispatch b { color: var(--white); display: block; margin-bottom: 2px; }
.dispatch span { font-size: .94rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .82rem; color: var(--slate-300); margin-top: 16px; }
.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-inline-end: 8px; vertical-align: -1px; }

.faq { border-block-start: 1px solid var(--line-light); }
.faq details { border-block-end: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; padding-block: 22px; padding-inline-end: 48px; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 8px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--slate-500); padding-inline-end: 48px; }

.industry { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 72px); padding-block: 56px; border-block-start: 1px solid var(--line-light); }
.industry:first-of-type { border-block-start: 0; padding-block-start: 0; }
.industry h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); display: flex; align-items: center; gap: 14px; }
.industry h2 svg { width: 30px; height: 30px; color: var(--orange-600); flex: none; }
.industry p { color: var(--slate-500); }
.mix { display: grid; gap: 10px; list-style: none; }
.mix li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; font-size: .93rem; }
.mix .bar { height: 8px; border-radius: 4px; background: var(--slate-100); overflow: hidden; }
.mix .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--orange), var(--amber)); }
.mix .bar i.secondary { background: var(--sky); }
.mix-legend { font-size: .8rem; color: var(--slate-400); margin-top: 12px; }

.project-card { border: 2px dashed var(--slate-200); border-radius: var(--radius-lg); padding: 28px; background: var(--white); display: flex; flex-direction: column; gap: 10px; }
.project-card__media { aspect-ratio: 16 / 9; border-radius: 8px; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 10px, var(--slate-100) 10px, var(--slate-100) 20px); display: grid; place-items: center; color: var(--slate-400); font: 600 .8rem var(--mono); margin-bottom: 8px; }
.project-card h3 { font-size: 1.08rem; margin: 0; }
.project-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 6px 0 0; font-size: .88rem; }
.project-card dt { color: var(--slate-400); }
.project-card dd { margin: 0; color: var(--slate-600); }

.pillars .pillar { padding-block: 26px; border-block-start: 1px solid var(--line-light); display: grid; grid-template-columns: 72px 1fr; gap: 18px; counter-increment: p; }
.pillars { counter-reset: p; }
.pillar::before { content: "0" counter(p); font: 600 .9rem var(--mono); color: var(--orange-600); padding-top: 4px; }
.pillar h3 { font-size: 1.12rem; }
.pillar p { color: var(--slate-500); margin: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.contact-card { border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 26px; background: var(--white); transition: border-color .3s, box-shadow .3s; }
.contact-card:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.contact-card h3 { font-size: 1.04rem; margin-bottom: 4px; }
.contact-card p { color: var(--slate-500); font-size: .92rem; margin-bottom: 14px; }
.contact-card a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-blue); word-break: break-all; direction: ltr; }
.contact-card a svg { width: 16px; height: 16px; flex: none; }
.contact-card .phone { display: block; margin-top: 8px; color: var(--navy-900); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* 9. Forms ----------------------------------------------------------------------- */
.form { background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 46px); box-shadow: var(--shadow); }
.form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .85rem; font-weight: 600; color: var(--navy-900); }
.req { color: var(--orange-600); }
.field input, .field select, .field textarea {
  font: 400 1rem var(--font); color: var(--navy-900); background: var(--surface);
  border: 1px solid var(--line-light); border-radius: var(--radius); padding: 13px 15px; width: 100%;
  transition: border-color .2s, background .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
:lang(ar) .field input, :lang(ar) .field select, :lang(ar) .field textarea { font-family: var(--font-ar); }
.field input[type="email"], .field input[type="tel"] { direction: ltr; text-align: start; }
[dir="rtl"] .field input[type="email"], [dir="rtl"] .field input[type="tel"] { text-align: right; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--slate-500) 50%), linear-gradient(135deg, var(--slate-500) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px;
}
[dir="rtl"] .field select { background-position: 15px 50%, 20px 50%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-blue); background: var(--white); box-shadow: 0 0 0 4px var(--sky-soft); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #D2543F; background: #FFF7F5; }
.field__error { font-size: .8rem; color: #B5412E; display: none; }
.field.is-invalid .field__error { display: block; }
.field__hint { font-size: .8rem; color: var(--slate-400); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--slate-500); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand-navy); flex: none; }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; }
.form__status { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); font-size: .94rem; display: none; }
.form__status.is-visible { display: block; }
.form__status--ok { background: #EAF6EE; color: #1D5E33; border: 1px solid #BFE2CB; }
.form__status--err { background: #FFF4EC; color: #8A4A12; border: 1px solid #F3D2B3; }
.form__status a { text-decoration: underline; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* 10. Footer -------------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: var(--slate-400); font-size: .92rem; padding-block-start: 76px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.25fr; gap: 40px; padding-block-end: 52px; }
.footer__brand img { width: 220px; height: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 36ch; }
.site-footer h4 { color: var(--white); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
:lang(ar) .site-footer h4 { letter-spacing: 0; font-size: .92rem; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a:hover { color: var(--white); }
.footer__legal { border-block-start: 1px solid var(--line-dark); padding-block: 18px; font-size: .8rem; color: var(--slate-500); }
.footer__bottom { border-block-start: 1px solid var(--line-dark); padding-block: 22px 30px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .82rem; }
.footer__bottom .note { flex-basis: 100%; color: var(--slate-500); font-size: .78rem; }

/* 11. Root language-selector page ------------------------------------------------ */
.langpick { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: linear-gradient(180deg, var(--surface), var(--white)); }
.langpick__box { width: 100%; max-width: 520px; text-align: center; }
.langpick__box img { width: 260px; margin: 0 auto 36px; }
.langpick__box h1 { font-size: 1.3rem; letter-spacing: -.01em; margin-bottom: 6px; }
.langpick__box p { color: var(--slate-500); font-size: .95rem; }
.langpick__list { list-style: none; display: grid; gap: 10px; margin-top: 28px; }
.langpick__list a { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border: 1px solid var(--line-light); border-radius: var(--radius-lg); background: var(--white); font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.langpick__list a:hover, .langpick__list a.is-suggested { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.langpick__list a span { font: 700 .78rem var(--font); color: var(--slate-400); letter-spacing: .1em; }
.langpick__list a .badge { color: var(--orange-600); letter-spacing: 0; font-size: .74rem; }

/* 12. Motion --------------------------------------------------------------------- */
@keyframes flow { to { stroke-dashoffset: -32; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 181, 31, .55); } 70% { box-shadow: 0 0 0 10px rgba(255, 181, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 181, 31, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes glow { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
.glow { animation: glow 3.2s ease-in-out infinite; }
.hero__copy > * { animation: rise .9s var(--ease) both; }
.hero__copy > *:nth-child(2) { animation-delay: .08s; }
.hero__copy > *:nth-child(3) { animation-delay: .16s; }
.hero__copy > *:nth-child(4) { animation-delay: .24s; }
.hero__visual { animation: rise 1.2s .2s var(--ease) both; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 13. RTL details (most mirroring comes from logical properties) ----------------- */
[dir="rtl"] .btn svg, [dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .card::before { transform-origin: right; }
[dir="rtl"] .faq summary::after { border-right: 0; border-left: 2px solid var(--orange); transform: translateY(-70%) rotate(-45deg); }
[dir="rtl"] .faq details[open] summary::after { transform: translateY(-30%) rotate(135deg); }
[dir="rtl"] .mix .bar i { background: linear-gradient(270deg, var(--orange), var(--amber)); }

/* 14. Responsive ------------------------------------------------------------------ */
@media (max-width: 1240px) { .header-cta { display: none; } }
@media (max-width: 1080px) {
  .hero__inner, .split, .solution-row, .industry { grid-template-columns: 1fr; }
  .solution-row__media { position: static; }
  .hero__visual { max-width: 640px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-inline-start: 0; }
  .fact { border-block-start: 1px solid var(--line-dark); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__strip ul { grid-template-columns: repeat(2, 1fr); }
  .hero__strip li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .tiles, .grid-3 { grid-template-columns: repeat(2, 1fr); }

  /* Mobile / tablet navigation */
  :root { --header-h: 68px; }
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); }
  .brand img { width: 168px; }
  .nav-toggle { display: block; }
  .site-header .container > .lang { display: none; }
  .nav {
    position: fixed; inset-block: var(--header-h) 0; inset-inline: 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
  }
  [dir="rtl"] .nav { transform: translateX(-100%); }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link, .nav__trigger { width: 100%; justify-content: space-between; font-size: 1.15rem; padding: 18px 4px; border-block-end: 1px solid var(--line-light); border-radius: 0; }
  .dropdown, .dropdown--wide {
    position: static; min-width: 0; display: none; grid-template-columns: 1fr; box-shadow: none; border: 0; border-radius: 0;
    padding: 6px 0 12px; opacity: 1; visibility: visible; transform: none; background: var(--surface);
  }
  .dropdown::before { display: none; }
  .nav__item.is-open > .dropdown { display: block; }
  .dropdown a { padding: 12px 16px; }
  .header-cta { display: inline-flex; margin: 24px 0 0; }
  .nav__mobile-lang { display: block; margin-top: 28px; }
  .nav__mobile-lang h4 { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 10px; }
  .nav__mobile-lang ul { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .nav__mobile-lang a { display: grid; place-items: center; height: 44px; border: 1px solid var(--line-light); border-radius: var(--radius); font-weight: 700; font-size: .85rem; }
  .nav__mobile-lang a[aria-current="true"] { border-color: var(--orange); color: var(--orange-600); background: var(--amber-soft); }
}
@media (max-width: 760px) {
  .grid-3, .grid-2, .tiles, .cap-grid, .form__grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .hero__readout { position: static; transform: none !important; margin: 16px auto 0; width: max-content; }
  .mix li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .grid-4, .steps, .footer__grid, .hero__strip ul { grid-template-columns: 1fr; }
  .fact { border-inline-start: 0; padding: 28px 0; }
  .hero__strip li { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--line-dark); }
  .step::after { display: none; }
  .pillars .pillar { grid-template-columns: 1fr; gap: 6px; }
}
