/* PINGALAX Maroc: one-page site, FR / EN / AR (RTL). Logical properties throughout. */

:root {
  --ink: #0a1220;
  --ink-2: #0f1a2e;
  --ink-3: #172540;
  --paper: #f3f6fa;
  --white: #ffffff;
  --text: #0b1324;
  --muted: #5b6678;
  --line: #dfe5ee;
  --blue: #1f5eff;
  --blue-2: #3d76ff;
  --volt: #33e1c3;
  --volt-ink: #062a24;
  --on-dark: #e9eef7;
  --on-dark-muted: #9aa8bf;
  --line-dark: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --head-h: 72px;
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .section--dark :focus-visible, .ma :focus-visible, .site-foot :focus-visible, .site-head:not(.is-solid) :focus-visible, .site-head.menu-open :focus-visible { outline-color: var(--volt); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--volt); color: var(--volt-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; white-space: nowrap; }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 24px -10px rgba(31, 94, 255, .7); }
.btn--primary:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(31, 94, 255, .85); }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.btn--lg { padding: 15px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Eyebrow / chips ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-block-end: 16px; color: var(--blue); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow--volt { color: var(--volt); }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); }
.dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--volt); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.chip { display: inline-block; margin-block-end: 12px; padding: 4px 10px; border-radius: 999px; background: #eef3ff; color: #1748c9; font-size: .74rem; font-weight: 600; direction: ltr; unicode-bidi: isolate; }

/* ---------- Header ---------- */
.site-head { position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--head-h); color: var(--white); transition: background-color .3s, box-shadow .3s, color .3s; }
.site-head.is-solid { background: rgba(255, 255, 255, .92); color: var(--text); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-head__in { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: auto; height: 24px; }
.brand__dark, .site-head.is-solid .brand__light { display: none; }
.site-head.is-solid .brand__dark { display: block; }
.brand__ma { padding-inline-start: 10px; border-inline-start: 1px solid currentColor; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.nav { display: flex; align-items: center; gap: 26px; margin-inline-start: auto; }
.nav > a:not(.btn) { position: relative; font-size: .95rem; font-weight: 500; text-decoration: none; opacity: .82; transition: opacity .2s; }
.nav > a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; background: var(--volt); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav > a:not(.btn):hover { opacity: 1; }
.nav > a:not(.btn):hover::after { transform: scaleX(1); }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid currentColor; border-radius: 10px; border-color: rgba(127, 140, 160, .35); }
.lang a { padding: 4px 9px; border-radius: 7px; font-size: .8rem; font-weight: 600; text-decoration: none; opacity: .7; }
.lang a[aria-current] { background: var(--volt); color: var(--volt-ink); opacity: 1; }
.burger { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.burger__bars, .burger__bars::before, .burger__bars::after { display: block; width: 22px; height: 2px; margin-inline: auto; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger__bars { position: relative; }
.burger__bars::before, .burger__bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.burger__bars::before { top: -7px; }
.burger__bars::after { top: 7px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: calc(var(--head-h) + 56px) 0; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(48% 60% at 72% 38%, rgba(31, 94, 255, .38), transparent 70%),
  radial-gradient(30% 40% at 76% 70%, rgba(51, 225, 195, .16), transparent 70%),
  radial-gradient(40% 50% at 8% 0%, rgba(61, 118, 255, .14), transparent 70%); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent 75%); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__title { font-size: clamp(2.45rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.028em; }
.hero__title .hl { color: var(--volt); }
.hero__lead { max-width: 34rem; margin-block: 22px 32px; color: var(--on-dark-muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { position: relative; padding-block-end: 8px; }
.hero__glow { position: absolute; inset: 8% 6% 30%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(51, 225, 195, .22), transparent); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
.hero__product { position: relative; width: 100%; filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .45)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.grid-flow { display: block; width: 100%; height: auto; margin-block-start: -6px; overflow: visible; }
.grid-flow__base, .grid-flow__drops { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; }
.grid-flow__pulse { fill: none; stroke: var(--volt); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 34 460; stroke-dashoffset: 494; filter: drop-shadow(0 0 6px var(--volt)); animation: flow 2.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: 0; } }
.grid-flow__nodes circle { fill: var(--ink-3); stroke: var(--volt); stroke-width: 2; animation: node 2.6s ease-out infinite; }
.grid-flow__nodes circle:nth-child(6), .grid-flow__nodes circle:nth-child(7) { animation-delay: .7s; }
.grid-flow__nodes circle:nth-child(5), .grid-flow__nodes circle:nth-child(8) { animation-delay: .95s; }
.grid-flow__nodes circle:nth-child(4), .grid-flow__nodes circle:nth-child(9) { animation-delay: 1.2s; }
.grid-flow__nodes circle:nth-child(3), .grid-flow__nodes circle:nth-child(10) { animation-delay: 1.45s; }
.grid-flow__nodes circle:nth-child(2), .grid-flow__nodes circle:nth-child(11) { animation-delay: 1.7s; }
.grid-flow__nodes circle:nth-child(1), .grid-flow__nodes circle:nth-child(12) { animation-delay: 1.95s; }
@keyframes node { 0%, 100% { fill: var(--ink-3); } 12% { fill: var(--volt); } 40% { fill: var(--ink-3); } }
.hero__caption { margin-block-start: 6px; color: var(--on-dark-muted); font-size: .82rem; text-align: center; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-block: 56px 0; border-block-start: 1px solid var(--line-dark); }
.stat { padding: 26px 4px; }
.stat + .stat { border-inline-start: 1px solid var(--line-dark); padding-inline-start: 20px; }
.stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 4px; }
.stat dt { color: var(--on-dark-muted); font-size: .86rem; }
.stat dd { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 0; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 500; letter-spacing: -.02em; direction: ltr; justify-content: flex-start; font-variant-numeric: tabular-nums; }
[dir="rtl"] .stat dd { justify-content: flex-end; }
.stat dd small { color: var(--volt); font-size: .45em; font-weight: 600; letter-spacing: 0; }

.ticker { position: relative; border-block-start: 1px solid var(--line-dark); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker__track li { padding: 18px 26px; color: var(--on-dark-muted); font-size: .82rem; font-weight: 500; letter-spacing: .08em; white-space: nowrap; }
.ticker__track li::before { content: "◆"; margin-inline-end: 26px; color: var(--volt); font-size: .55rem; vertical-align: middle; }
.ticker:hover .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__toggle { position: absolute; inset-inline-end: 12px; top: 50%; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px; border: 1px solid var(--line-dark); border-radius: 50%; background: var(--ink); color: var(--on-dark-muted); cursor: pointer; }
.ticker__toggle span { width: 10px; height: 10px; border-inline: 3px solid currentColor; }
.ticker__toggle[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; }
.ticker__toggle:hover { color: var(--white); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section--tint { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--white); }
.section__head { max-width: 760px; margin-block-end: clamp(36px, 5vw, 56px); }
.section__head h2, .split h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.08; letter-spacing: -.024em; }
.section__lead { margin-block-start: 16px; color: var(--muted); font-size: 1.1rem; }
.section--dark .section__lead, .ma .section__lead { color: var(--on-dark-muted); }

/* Cases */
.cases { display: grid; gap: 20px; }
.case { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.case:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 30px 60px -30px rgba(11, 19, 36, .35); }
.case__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case:hover .case__media img { transform: scale(1.06); }
.case__body { padding: 22px 22px 26px; }
.case h3 { font-size: 1.2rem; line-height: 1.25; }
.case__body p:last-child { margin-block-start: 8px; color: var(--muted); font-size: .96rem; }

/* Ruler (log scale 5 to 1000 kW; positions = ln(kW/5) / ln(200)) */
.ruler { padding: 26px 26px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.ruler__rows { display: grid; gap: 10px; }
.band { display: flex; align-items: center; gap: 8px; height: 46px; padding-inline: 14px; border: 0; border-radius: 10px; color: var(--white); font-size: .86rem; font-weight: 600; text-align: start; white-space: nowrap; overflow: hidden; cursor: pointer; transform-origin: left center; transition: transform 1.1s var(--ease), box-shadow .25s, filter .25s; }
.band em { font-style: normal; font-weight: 400; opacity: .85; }
.band:hover { filter: brightness(1.08); }
.band.is-current { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--blue); }
.band--race { margin-left: 6.35%; width: 21.61%; background: linear-gradient(90deg, #1fb8a3, var(--volt)); color: var(--volt-ink); }
.band--standard { margin-left: 52.33%; width: 33.82%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.band--prime { margin-left: 78.5%; width: 20.73%; background: linear-gradient(90deg, var(--ink-3), #213a68); box-shadow: inset 0 0 0 1px rgba(51, 225, 195, .55); }
.band--prime.is-current { box-shadow: inset 0 0 0 1px rgba(51, 225, 195, .55), 0 0 0 3px var(--white), 0 0 0 5px var(--blue); }
.js .ruler:not(.in) .band { transform: scaleX(0); }
.ruler__axis { position: relative; height: 30px; margin-block-start: 14px; border-block-start: 1px solid var(--line); }
.tick { position: absolute; top: 8px; transform: translateX(-50%); color: var(--muted); font-size: .76rem; font-weight: 500; }
.tick::before { content: ""; position: absolute; top: -13px; left: 50%; width: 1px; height: 8px; background: var(--line); }
.tick--7 { left: 6.35%; } .tick--22 { left: 27.96%; } .tick--80 { left: 52.33%; } .tick--160 { left: 65.41%; }
.tick--240 { left: 73.07%; } .tick--480 { left: 86.15%; } .tick--960 { left: 99.23%; transform: translateX(-90%); }

/* Tabs + panels */
.tabs { margin-block-start: 32px; }
.tabs__list { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.tab { padding: 10px 18px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s; }
.tab small { color: var(--muted); font-size: .7rem; font-weight: 500; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tab[aria-selected="true"] small { color: var(--volt); }
.panel { display: grid; gap: 32px; align-items: center; margin-block-start: 20px; padding: clamp(20px, 4vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.js .panel:not(.is-active) { display: none; }
.js .panel.is-active { animation: panel-in .6s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.panel__media { display: grid; place-items: center; min-height: 280px; padding: 24px; border-radius: 18px; background: radial-gradient(70% 70% at 50% 60%, #ffffff, #e9eff8); }
.panel__media img { max-height: 380px; width: auto; filter: drop-shadow(0 24px 24px rgba(11, 19, 36, .18)); }
.panel__media--tall img { max-height: 440px; }
.panel__kicker { color: var(--blue); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.panel__title { margin-block: 8px 12px; font-size: clamp(2rem, 3.4vw, 2.7rem); letter-spacing: -.02em; }
.panel__title span { display: block; color: var(--blue); font-size: .55em; font-weight: 500; letter-spacing: 0; direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .panel__title span { text-align: end; }
.panel__text { color: var(--muted); font-size: 1.04rem; }
.ticks { display: grid; gap: 10px; margin-block: 20px; }
.ticks li, .checks li { position: relative; padding-inline-start: 32px; }
.ticks li::before, .checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23062a24' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.specs { border-block-start: 1px solid var(--line); }
.specs summary { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.specs summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.specs summary::after, .qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); color: var(--blue); font-size: 1.2rem; font-weight: 400; transition: transform .3s var(--ease); }
.specs[open] summary::after, .qa[open] summary::after { transform: rotate(45deg); }
.specs table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs th, .specs td { padding: 10px 0; border-block-end: 1px solid var(--line); vertical-align: top; text-align: start; }
.specs th { width: 42%; padding-inline-end: 16px; color: var(--muted); font-weight: 400; }
.specs td { font-weight: 500; }
[dir="rtl"] .specs td[dir="ltr"] { text-align: right; }

/* Prime simulator */
.section__head--split { display: grid; gap: 16px; max-width: none; }
.sim { display: grid; gap: 20px; }
.sim__panel { display: grid; gap: 26px; align-content: start; padding: 28px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: linear-gradient(160deg, var(--ink-2), var(--ink)); }
.sim__cab-label, .sim__control label, .sim__cap { color: var(--on-dark-muted); font-size: .86rem; }
.sim__cab-value { margin-block-start: 4px; font-size: 2.8rem; font-weight: 500; line-height: 1; }
.sim__cab-value small, .sim__readout small { color: var(--volt); font-size: .9rem; font-weight: 600; }
[dir="rtl"] .sim__cab-value { text-align: end; }
.sim__range { display: flex; align-items: center; gap: 14px; margin-block-start: 10px; }
.sim__range output { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 12px; background: var(--volt); color: var(--volt-ink); font-size: 1.2rem; font-weight: 700; }
input[type="range"] { flex: 1; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--volt) var(--fill, 27%), rgba(255, 255, 255, .14) var(--fill, 27%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--volt); }
input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -9px; border: 4px solid var(--ink); border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 2px var(--volt); -webkit-appearance: none; appearance: none; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 4px solid var(--ink); border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 2px var(--volt); }
.sim__readout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block-start: 22px; border-block-start: 1px solid var(--line-dark); }
.sim__big { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; line-height: 1; color: var(--volt); font-variant-numeric: tabular-nums; }
.sim__big--soft { color: var(--white); }
.bays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: bay; }
.bay { position: relative; min-height: 116px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 14px; background: var(--ink-2); counter-increment: bay; transition: border-color .4s, box-shadow .4s; }
.bay::before { content: counter(bay, decimal-leading-zero); position: absolute; top: 10px; right: 12px; z-index: 1; color: var(--on-dark-muted); font-size: .7rem; font-weight: 600; }
.bay__fill { position: absolute; inset: auto 0 0; height: calc(var(--h, 0) * 100%); background: linear-gradient(0deg, rgba(31, 94, 255, .55), rgba(51, 225, 195, .9)); transition: height .7s var(--ease); }
.bay__fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, transparent, rgba(255, 255, 255, .35), transparent); background-size: 100% 200%; animation: charge 1.8s linear infinite; }
@keyframes charge { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.bay__kw { position: absolute; bottom: 10px; left: 12px; z-index: 1; color: var(--on-dark-muted); font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bay__kw::after { content: " kW"; font-size: .7rem; font-weight: 500; }
.bay.is-on { border-color: rgba(51, 225, 195, .55); box-shadow: 0 0 24px -8px rgba(51, 225, 195, .6); }
.bay.is-on .bay__kw { color: var(--white); }
.sim__note { grid-column: 1 / -1; color: var(--on-dark-muted); font-size: .82rem; }
.prime__facts { display: grid; gap: 1px; margin-block-start: 48px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--line-dark); overflow: hidden; }
.prime__facts li { display: grid; gap: 6px; padding: 24px; background: var(--ink); }
.prime__facts strong { color: var(--volt); font-size: 1.8rem; font-weight: 500; }
[dir="rtl"] .prime__facts strong { text-align: end; }
.prime__facts span { color: var(--on-dark-muted); }

/* Technology bento */
.bento { display: grid; gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.tile h3 { font-size: 1.18rem; line-height: 1.3; }
.tile p:not(.tile__num) { margin-block-start: 8px; color: var(--muted); font-size: .96rem; }
.tile__num { margin-block-end: auto; padding-block-end: 20px; color: var(--blue); font-size: 3.6rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.tile__num small { font-size: .45em; }
.tile__num--sm { font-size: 2rem; letter-spacing: -.01em; }
[dir="rtl"] .tile__num { text-align: end; }
.tile--dark { border-color: transparent; background: var(--ink); color: var(--white); }
.tile--dark .tile__num { color: var(--volt); }
.tile--dark p:not(.tile__num) { color: var(--on-dark-muted); }
.tile--module { display: grid; gap: 12px; background: linear-gradient(150deg, #ffffff, #e6eefb); }
.tile--module img { width: 100%; max-width: 520px; margin-inline: auto; transition: transform 1s var(--ease); }
.tile--module:hover img { transform: translateY(-6px) scale(1.02); }
.tile--photo { padding: 0; border: 0; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--photo:hover img { transform: scale(1.05); }
.tile__over { position: relative; padding: 110px 28px 28px; background: linear-gradient(180deg, transparent, rgba(10, 18, 32, .78) 35%, rgba(10, 18, 32, .96)); color: var(--white); }
.tile__over p { color: var(--on-dark) !important; }

/* Platform split */
.split { display: grid; gap: 40px; align-items: center; }
.split__media img { width: 100%; filter: drop-shadow(0 30px 40px rgba(11, 19, 36, .18)); }
.checks { display: grid; gap: 12px; margin-block-start: 26px; }

/* Morocco section */
.ma { position: relative; padding-block: clamp(80px, 10vw, 140px); background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.ma__bg { position: absolute; inset: 0; z-index: -1; }
.ma__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.ma__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 32, .78) 0%, rgba(10, 18, 32, .55) 40%, rgba(10, 18, 32, .95) 100%); }
.steps { display: grid; gap: 14px; counter-reset: none; }
.step { padding: 24px; border: 1px solid var(--line-dark); border-radius: 18px; background: rgba(10, 18, 32, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.step__n { display: block; margin-block-end: 22px; color: var(--volt); font-size: .9rem; font-weight: 600; letter-spacing: .1em; }
[dir="rtl"] .step__n { text-align: end; }
.step h3 { font-size: 1.15rem; }
.step p { margin-block-start: 8px; color: var(--on-dark-muted); font-size: .95rem; }

/* More products */
.more { display: grid; gap: 16px; }
.more__card { display: grid; grid-template-columns: minmax(110px, 36%) 1fr; gap: 22px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.more__card img { width: 100%; max-height: 240px; object-fit: contain; }
.more__card h3 { font-size: 1.3rem; }
.more__card > div > p { margin-block-start: 8px; color: var(--muted); font-size: .96rem; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-block-start: 18px; }
.kv li { display: grid; }
.kv strong { font-size: 1.1rem; font-weight: 600; }
.kv span { color: var(--muted); font-size: .8rem; }
[dir="rtl"] .kv { direction: rtl; }
[dir="rtl"] .kv strong { direction: ltr; text-align: right; }

/* FAQ */
.faq { max-width: 900px; }
.qa { border-block-end: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; font-size: 1.1rem; font-weight: 500; cursor: pointer; list-style: none; }
.qa summary::after { background: var(--white); }
.qa p { padding-block-end: 22px; color: var(--muted); max-width: 70ch; }

/* Quote */
.quote { background: radial-gradient(50% 60% at 0% 0%, rgba(31, 94, 255, .25), transparent 70%), var(--ink); }
.quote__grid { display: grid; gap: 40px; }
.contact { display: grid; gap: 10px; margin-block-start: 30px; }
.contact a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-dark); border-radius: 14px; text-decoration: none; transition: border-color .25s, background-color .25s; }
.contact a:hover { border-color: var(--volt); background: rgba(51, 225, 195, .06); }
.contact span { color: var(--on-dark-muted); font-size: .8rem; display: block; }
.contact strong { font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.contact svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--volt); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line-dark); border-radius: 24px; background: rgba(15, 26, 46, .85); }
.form__row { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { color: var(--on-dark-muted); font-size: .84rem; font-weight: 500; }
.field legend { margin-block-end: 7px; padding: 0; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line-dark); border-radius: 12px; background: var(--ink); color: var(--white); transition: border-color .2s, box-shadow .2s; }
.field select { -webkit-appearance: none; appearance: none; padding-inline-end: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%239aa8bf' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 16px; background-position: right 14px center; }
[dir="rtl"] .field select { background-position: left 14px center; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 3px rgba(51, 225, 195, .18); }
.field input[aria-invalid="true"] { border-color: #ff7b7b; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input::placeholder { color: #8391a8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line-dark); border-radius: 999px; font-weight: 600; font-size: .9rem; transition: background-color .2s, color .2s, border-color .2s; }
.chips input:checked + span { border-color: var(--volt); background: var(--volt); color: var(--volt-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--volt); outline-offset: 3px; }
.form__legal { color: var(--on-dark-muted); font-size: .78rem; }
.form__status { min-height: 1.4em; font-weight: 500; }
.form__status.is-ok { color: var(--volt); }
.form__status.is-err { color: #ff9b9b; }
.form.is-sending button[type="submit"] { opacity: .7; }

/* Footer */
.site-foot { padding-block: 56px 28px; background: #070d18; color: var(--on-dark-muted); }
.site-foot__grid { display: grid; gap: 28px; padding-block-end: 32px; border-block-end: 1px solid var(--line-dark); }
.site-foot__logo { height: 26px; width: auto; }
.site-foot__tag { margin-block-start: 14px; max-width: 30rem; font-size: .92rem; }
.site-foot nav, .site-foot__langs { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; }
.site-foot a { text-decoration: none; font-size: .92rem; }
.site-foot a:hover, .site-foot a[aria-current] { color: var(--white); }
.site-foot__legal { padding-block-start: 22px; font-size: .8rem; }

/* Hero entrance: transform only, never hidden, so it does not delay LCP */
.rise { animation: rise .9s var(--ease) both; }
.hero__copy .rise:nth-child(2) { animation-delay: .06s; }
.hero__copy .rise:nth-child(3) { animation-delay: .12s; }
.hero__copy .rise:nth-child(4) { animation-delay: .18s; }
.hero__visual.rise { animation-delay: .1s; }
@keyframes rise { from { transform: translateY(18px); } }
.form__nojs { display: none; padding: 18px; border: 1px solid var(--line-dark); border-radius: 14px; color: var(--on-dark); }
html:not(.js) .form__nojs { display: block; }
html:not(.js) .form { display: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.cases .reveal:nth-child(2), .steps .reveal:nth-child(2), .bento .reveal:nth-child(2), .stats .reveal:nth-child(2), .prime__facts .reveal:nth-child(2), .more .reveal:nth-child(2) { transition-delay: .08s; }
.cases .reveal:nth-child(3), .steps .reveal:nth-child(3), .bento .reveal:nth-child(3), .stats .reveal:nth-child(3), .prime__facts .reveal:nth-child(3) { transition-delay: .16s; }
.cases .reveal:nth-child(4), .steps .reveal:nth-child(4), .bento .reveal:nth-child(4), .stats .reveal:nth-child(4) { transition-delay: .24s; }
.bento .reveal:nth-child(5) { transition-delay: .32s; }

/* ---------- RTL type ---------- */
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] .hero__bg { background:
  radial-gradient(48% 60% at 28% 38%, rgba(31, 94, 255, .38), transparent 70%),
  radial-gradient(30% 40% at 24% 70%, rgba(51, 225, 195, .16), transparent 70%),
  radial-gradient(40% 50% at 92% 0%, rgba(61, 118, 255, .14), transparent 70%); }
[dir="rtl"] .hero__bg::after { -webkit-mask-image: radial-gradient(70% 70% at 40% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 40% 40%, #000, transparent 75%); }
[dir="rtl"] .quote { background: radial-gradient(50% 60% at 100% 0%, rgba(31, 94, 255, .25), transparent 70%), var(--ink); }
[dir="rtl"] .eyebrow, [dir="rtl"] .panel__kicker, [dir="rtl"] .brand__ma { font-size: .9rem; letter-spacing: 0; text-transform: none; }
[dir="rtl"] .hero__title { line-height: 1.25; letter-spacing: 0; }
[dir="rtl"] .section__head h2, [dir="rtl"] .split h2, [dir="rtl"] .panel__title { line-height: 1.3; letter-spacing: 0; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .cases { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bays { grid-template-columns: repeat(6, 1fr); }
  .prime__facts { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--module { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1fr 1.08fr; gap: 56px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(3) { border-inline-start: 1px solid var(--line-dark); padding-inline-start: 20px; }
  .panel { grid-template-columns: 5fr 6fr; gap: 56px; }
  .section__head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 56px; }
  .sim { grid-template-columns: 4fr 8fr; align-items: stretch; }
  .bays { grid-auto-rows: 1fr; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile--module { grid-column: span 2; grid-template-columns: 1fr 1.1fr; align-items: center; }
  .split { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .more { grid-template-columns: 1fr 1fr; }
  .quote__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .site-foot__grid { grid-template-columns: 1.4fr 1.6fr 1fr; }
}
@media (min-width: 1100px) {
  .cases { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 959px) {
  .burger { display: block; }
  .nav { position: fixed; inset: var(--head-h) 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 0; padding: 20px; background: var(--ink); color: var(--white); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; overflow-y: auto; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .nav > a:not(.btn) { padding: 14px 4px; border-block-end: 1px solid var(--line-dark); font-size: 1.2rem; opacity: 1; }
  .nav > a:not(.btn)::after { display: none; }
  .lang { align-self: flex-start; margin-block: 18px; border-color: var(--line-dark); }
  .nav__cta { margin-block-start: 8px; }
  .site-head.menu-open { background: var(--ink); color: var(--white); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-head.menu-open .brand__light { display: block; }
  .site-head.menu-open .brand__dark { display: none; }
  .hero__visual { order: -1; max-width: 560px; margin-inline: auto; }
  .hero { padding-block-start: calc(var(--head-h) + 24px); }
}
@media (max-width: 520px) {
  .band em { display: none; }
  .ruler { padding-inline: 14px; }
  .tick { font-size: .66rem; }
  .tick--22, .tick--160 { display: none; }
  .tabs__list { display: flex; }
  .tab { flex: 1; padding-inline: 8px; }
  .more__card { grid-template-columns: 1fr; }
  .more__card img { max-height: 200px; }
  .brand__ma { display: none; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rise { animation: none; }
  .js .ruler:not(.in) .band { transform: none; }
  .grid-flow__pulse { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .5; }
}
