/* SOFTRUN portfolio. Logical properties only (ms/me/ps/pe/inset-inline) so RTL mirrors itself. */
:root {
  --navy-900: #0a0f1e; --navy-800: #101733; --navy-700: #172043; --navy-600: #1f2a54;
  --teal-300: #5ee3e9; --teal-500: #00c2cb; --teal-700: #00858c;
  --blue-glow: #1b3bff; --white: #f4f7fb; --gray: #8a93a6; --line: rgba(255, 255, 255, 0.09);
  --font-head: "Space Grotesk", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --lh: 1.6; --ls-head: -0.02em;
  --pad: clamp(1.1rem, 4vw, 3.5rem); --max: 1240px; --radius: 22px;
  --header-h: 68px;
}
html[lang="ar"] { --font-head: "IBM Plex Sans Arabic", system-ui, sans-serif; --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif; --lh: 1.85; --ls-head: 0; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--navy-900); color-scheme: dark; scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--navy-900); color: var(--white); font: 400 1.0625rem/var(--lh) var(--font-body); overflow-x: clip; }
img, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: var(--ls-head); line-height: 1.12; margin: 0; font-weight: 600; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.4; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; inset-block-start: -80px; inset-inline-start: 1rem; z-index: 100; background: var(--teal-500); color: var(--navy-900); padding: 0.6rem 1rem; border-radius: 10px; font-weight: 600; transition: inset-block-start 0.2s; }
.skip-link:focus { inset-block-start: 1rem; }

/* film grain at ~3% */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.03; transform: translateZ(0);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* header */
.site-header { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 60; height: var(--header-h); display: flex; align-items: center; gap: 1.25rem; padding-inline: var(--pad);
  background: linear-gradient(to bottom, rgba(10, 15, 30, 0.92), rgba(10, 15, 30, 0)); }
.site-header.solid { background: rgba(10, 15, 30, 0.96); border-block-end: 1px solid var(--line); }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 1.6rem; margin-inline-start: auto; font-size: 0.95rem; }
.nav a { text-decoration: none; color: #cbd2e0; padding: 0.4rem 0; border-block-end: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav a:hover { color: var(--white); border-color: var(--teal-500); }
.lang-toggle { display: inline-flex; gap: 0.5rem; align-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.9rem; color: var(--gray); background: rgba(16, 23, 51, 0.6); min-height: 40px; }
.lang-toggle .on { color: var(--teal-300); font-weight: 600; }
.lang-toggle:hover { border-color: var(--teal-500); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 50px; padding: 0.8rem 1.5rem; border-radius: 999px; font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s; }
.btn-primary { background: var(--teal-500); color: var(--navy-900); box-shadow: 0 0 0 0 rgba(0, 194, 203, 0.5), 0 10px 30px -10px rgba(0, 194, 203, 0.55); }
.btn-primary:hover { background: var(--teal-300); transform: translateY(-2px); }
.btn-primary:active { background: var(--teal-700); color: var(--white); transform: none; }
.btn-ghost { background: rgba(16, 23, 51, 0.55); border-color: rgba(255, 255, 255, 0.18); color: var(--white); }
.btn-ghost:hover { border-color: var(--teal-500); background: rgba(0, 194, 203, 0.08); }
.dir-icon { flex: none; }
[dir="rtl"] .dir-icon { transform: scaleX(-1); }

/* hero */
.hero { position: relative; height: 100svh; min-height: 620px; }
html.scene .hero { height: 330vh; }
.hero-stage { position: sticky; inset-block-start: 0; height: 100svh; min-height: 620px; overflow: hidden; display: grid; align-items: end; padding: calc(var(--header-h) + 1rem) var(--pad) clamp(2.5rem, 7vh, 5rem); isolation: isolate; }
.hero-visual { contain: strict; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 60% at 70% 45%, rgba(27, 59, 255, 0.18), transparent 70%), radial-gradient(50% 50% at 30% 70%, rgba(0, 194, 203, 0.12), transparent 70%), var(--navy-900); }
.hero-visual .still, .hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-visual canvas { opacity: 0; transition: opacity 0.6s; }
.hero-visual.live canvas { opacity: 1; }
.hero-visual.live .still { opacity: 0; transition: opacity 0.6s 0.2s; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(10, 15, 30, 0.92) 0%, rgba(10, 15, 30, 0.55) 38%, rgba(10, 15, 30, 0) 65%); }
[dir="rtl"] .hero-scrim { background: linear-gradient(to top, rgba(10, 15, 30, 0.92) 0%, rgba(10, 15, 30, 0.55) 38%, rgba(10, 15, 30, 0) 65%); }
.hero-copy { max-width: min(60rem, 100%); }
.eyebrow { color: var(--teal-300); font: 500 0.85rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; margin-block-end: 1rem; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 0.95rem; text-transform: none; }
.hero h1 { font-size: clamp(2.6rem, 8.2vw, 7rem); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; }
html[lang="ar"] .hero h1 { font-size: clamp(2.4rem, 7.2vw, 6rem); line-height: 1.25; letter-spacing: 0; }
.hero .lead { max-width: 40rem; margin-block-start: 1.4rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d3d9e6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-block-start: 2rem; }
.hero-caption { position: absolute; inset-inline: var(--pad); inset-block-end: clamp(2.5rem, 7vh, 5rem); text-align: center; font: 600 clamp(1.4rem, 4vw, 2.6rem)/1.2 var(--font-head); pointer-events: none; }
.hero-caption .cap { position: absolute; inset-inline: 0; inset-block-end: 0; opacity: 0; }
.hero-caption .cap-system { color: var(--teal-300); }
.hero-caption .cap-chaos { color: var(--gray); font-size: clamp(1rem, 2.2vw, 1.4rem); }
.scroll-hint { position: absolute; inset-block-start: calc(var(--header-h) + 0.6rem); inset-inline-end: var(--pad); color: var(--gray); font-size: 0.85rem; display: none; }
html.scene .scroll-hint { display: block; }

/* sections */
.section { padding: clamp(4.5rem, 11vw, 9rem) var(--pad); max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; position: relative; }
.section-head { max-width: 46rem; margin-block-end: clamp(2rem, 5vw, 3.5rem); }
.section-title { font-size: clamp(2rem, 5vw, 3.6rem); }
.section-intro { margin-block-start: 1rem; color: var(--gray); font-size: 1.15rem; }

/* impact */
.stats { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(16, 23, 51, 0.7); padding: clamp(1.6rem, 4vw, 2.6rem); display: flex; flex-direction: column; gap: 0.5rem; }
.num { font: 700 clamp(3rem, 7vw, 5.4rem)/1 var(--font-head); color: var(--teal-300); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; unicode-bidi: isolate; }
html[lang="ar"] .num { letter-spacing: 0; }
.stat-label { color: #cbd2e0; font-size: 1.05rem; }
.method { margin-block-start: 1.2rem; color: var(--gray); font-size: 0.92rem; max-width: 44rem; }

/* case grid */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(1rem, 2.4vw, 1.6rem); }
.case { position: relative; min-height: 440px; }
.case-shell { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: linear-gradient(160deg, #172043, #101733); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 60px -40px rgba(0, 0, 0, 0.8); transition: border-color 0.3s, box-shadow 0.3s; }
.case-shell:hover, .case-shell:focus-within { border-color: rgba(0, 194, 203, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(0, 194, 203, 0.25), 0 30px 70px -35px rgba(0, 194, 203, 0.4); }
.case-visual { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(70% 80% at 50% 55%, rgba(0, 194, 203, 0.2), transparent 70%); flex: none; }
.case-visual .still, .case-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.case-visual canvas { opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.case-visual.live canvas { opacity: 1; }
.case-visual.live .still { opacity: 0; }
.case-body { padding: 0.4rem clamp(1.2rem, 3vw, 1.8rem) clamp(1.3rem, 3vw, 1.8rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.tag { color: var(--teal-300); font: 600 0.78rem/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; }
html[lang="ar"] .tag { letter-spacing: 0; font-size: 0.9rem; text-transform: none; }
.tag .powered { color: var(--white); }
.client { color: var(--gray); font-size: 0.95rem; }
.case h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.25; }
html[lang="ar"] .case h3 { line-height: 1.55; }
.case-open { all: unset; cursor: pointer; display: block; }
.case-open::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.case-open:focus-visible::after { outline: 3px solid var(--teal-300); outline-offset: 3px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font-size: 0.85rem; line-height: 1.35; padding: 0.4rem 0.8rem; border-radius: 999px; background: rgba(0, 194, 203, 0.1); border: 1px solid rgba(0, 194, 203, 0.28); color: #dffcfd; }
.chip strong { color: var(--teal-300); font-variant-numeric: tabular-nums; }
.open-hint { margin-block-start: auto; padding-block-start: 0.6rem; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--teal-300); font-weight: 600; font-size: 0.95rem; }
.case-shell:hover .open-hint .dir-icon { transform: translateX(4px); }
[dir="rtl"] .case-shell:hover .open-hint .dir-icon { transform: scaleX(-1) translateX(4px); }
.open-hint .dir-icon { transition: transform 0.25s; }

/* case detail (hidden in the card, shown when expanded or when JS is off) */
.case-detail { display: none; padding: 0 clamp(1.2rem, 3vw, 1.8rem) 1.8rem; flex-direction: column; gap: 1.2rem; }
html:not(.js) .case-detail { display: flex; }
html:not(.js) .open-hint, html:not(.js) .case-close { display: none; }
.case-close { position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 15, 30, 0.8); color: var(--white); cursor: pointer; display: none; place-items: center; }
.case-close:hover { border-color: var(--teal-500); }
.detail-title { font-size: clamp(1.5rem, 3vw, 2.4rem); max-width: 40rem; }
.detail-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.6rem; }
.case-detail h4 { color: var(--teal-300); font: 600 0.85rem/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; margin-block-end: 0.5rem; }
html[lang="ar"] .case-detail h4 { letter-spacing: 0; font-size: 1rem; text-transform: none; }
.case-detail p { color: #dde3ef; }
.case-detail blockquote { margin: 0; padding-inline-start: 1.2rem; border-inline-start: 3px solid var(--teal-500); font-size: 1.2rem; }
.case-detail blockquote footer { color: var(--gray); font-size: 0.95rem; margin-block-start: 0.5rem; }
.anon { color: var(--gray); font-size: 0.85rem; }
.case-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(5, 8, 18, 0.9); }
.case-shell.is-open { position: fixed; z-index: 80; inset: clamp(0.5rem, 4vh, 3rem) clamp(0.5rem, 5vw, 4rem); height: auto; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(160deg, #172043, #0e1430); border-color: rgba(0, 194, 203, 0.4); max-width: 1100px; margin-inline: auto; }
.case-shell.is-open .case-visual { aspect-ratio: auto; height: clamp(190px, 34vh, 340px); }
.case-shell.is-open .case-body { display: none; }
.case-shell.is-open .case-detail { display: flex; }
.case-shell.is-open .case-close { display: grid; }
.case-shell.is-open .case-open::after { display: none; }

/* products */
.product-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.product { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.4rem, 4vw, 3rem); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(135deg, #172043, #111836); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); overflow: hidden; }
.product:nth-child(even) .product-mock { order: -1; }
.product-copy { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.product-logo { height: 52px; width: auto; max-width: 180px; object-fit: contain; border-radius: 10px; background: rgba(255, 255, 255, 0.95); padding: 6px 10px; }
.product h3 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.product p { color: #cbd2e0; font-size: 1.1rem; }
.product-mock { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; border: 1px solid rgba(0, 194, 203, 0.3); background: radial-gradient(80% 80% at 50% 0%, rgba(0, 194, 203, 0.14), transparent 70%), var(--navy-800); overflow: hidden; display: flex; box-shadow: 0 30px 60px -30px rgba(0, 194, 203, 0.35); direction: ltr; }
.mock-softops .m-side { width: 16%; background: rgba(0, 0, 0, 0.25); padding: 8% 4%; display: flex; flex-direction: column; gap: 14%; border-inline-end: 1px solid var(--line); }
.m-side i { display: block; height: 7%; min-height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); } .m-side i:first-child { background: var(--teal-500); }
.m-main { flex: 1; padding: 4%; display: flex; flex-direction: column; gap: 6%; position: relative; }
.m-top { display: flex; gap: 3%; } .m-top b { flex: 1; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); }
.m-rows { display: flex; flex-direction: column; gap: 9%; flex: 1; }
.m-row { display: flex; align-items: center; gap: 4%; } .m-row span { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-300); flex: none; }
.m-row em { flex: 1; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.m-row u { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--teal-700), var(--teal-300)); border-radius: 6px; transform-origin: left; animation: fill 5s ease-in-out infinite; animation-delay: var(--d); }
@keyframes fill { 0%, 8% { transform: scaleX(0.05); } 45%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0.05); } }
.m-chat { position: absolute; inset-inline-end: 4%; inset-block-end: 6%; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.m-bubble { display: block; height: 20px; border-radius: 12px; background: var(--teal-500); } .m-bubble.b1 { width: 90px; animation: pop 5s infinite; } .m-bubble.b2 { width: 60px; background: var(--navy-600); border: 1px solid var(--line); animation: pop 5s 0.6s infinite; }
@keyframes pop { 0%, 30% { opacity: 0; transform: translateY(8px) scale(0.9); } 45%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.mock-nashir { flex-direction: column; padding: 5%; gap: 5%; justify-content: center; align-items: center; }
.m-post { width: 46%; aspect-ratio: 1; border-radius: 14px; background: var(--navy-700); border: 1px solid var(--line); padding: 5%; display: flex; flex-direction: column; gap: 6%; animation: float 6s ease-in-out infinite; }
.m-art { flex: 1; border-radius: 10px; background: linear-gradient(135deg, var(--teal-700), var(--blue-glow)); position: relative; overflow: hidden; } .m-art i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.22); } .m-art i:nth-child(1) { width: 40%; aspect-ratio: 1; inset-block-start: 14%; inset-inline-start: 12%; } .m-art i:nth-child(2) { width: 22%; aspect-ratio: 1; inset-block-end: 12%; inset-inline-end: 14%; }
.m-lines b { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); margin-block-end: 6px; } .m-lines b:last-child { width: 60%; }
@keyframes float { 50% { transform: translateY(-8px); } }
.m-sched { display: flex; gap: 3%; width: 70%; } .m-sched span { flex: 1; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); animation: lit 5s infinite; animation-delay: var(--d); }
@keyframes lit { 0%, 20% { background: rgba(255, 255, 255, 0.08); } 30%, 70% { background: var(--teal-500); border-color: var(--teal-300); } 100% { background: rgba(255, 255, 255, 0.08); } }
.m-meta { position: absolute; inset-block-start: 6%; inset-inline-end: 5%; display: flex; gap: 6px; } .m-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-300); }

/* how we work */
.steps { list-style: none; margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); position: relative; counter-reset: s; }
.steps-line { position: absolute; inset-block-start: 29px; inset-inline: 29px; height: 2px; background: var(--line); display: block; }
.steps-line i { display: block; height: 100%; background: var(--teal-500); box-shadow: 0 0 14px var(--teal-500); transform-origin: left center; transform: scaleX(1); }
[dir="rtl"] .steps-line i { transform-origin: right center; }
.step { position: relative; padding-block-start: 4.2rem; }
.step-n { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 700 1.3rem var(--font-head); background: var(--navy-900); border: 2px solid var(--teal-500); color: var(--teal-300); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.step.on .step-n { background: var(--teal-500); color: var(--navy-900); box-shadow: 0 0 24px rgba(0, 194, 203, 0.6); }
.step h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }

/* final CTA */
.final { text-align: center; }
.final-title { font-size: clamp(2.2rem, 6vw, 4.6rem); max-width: 52rem; margin-inline: auto; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-block-start: 2.2rem; }
.contact-form { margin: clamp(2.5rem, 6vw, 4rem) auto 0; max-width: 760px; text-align: start; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: var(--radius); border: 1px solid var(--line); background: rgba(16, 23, 51, 0.65); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.contact-form h3 { grid-column: 1 / -1; font-size: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; } .field.wide { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; color: #cbd2e0; }
.field input, .field textarea { font: inherit; color: var(--white); background: rgba(10, 15, 30, 0.8); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; padding: 0.8rem 1rem; min-height: 50px; width: 100%; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--teal-300); outline-offset: 1px; border-color: var(--teal-500); }
.field [aria-invalid="true"] { border-color: #ff8a8a; }
.err { color: #ffb3b3; font-size: 0.88rem; min-height: 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; }
.form-status { grid-column: 1 / -1; min-height: 1.4em; color: var(--teal-300); }
.form-status.bad { color: #ffb3b3; }
.site-footer { padding: 2rem var(--pad) 3rem; color: var(--gray); text-align: center; font-size: 0.9rem; border-block-start: 1px solid var(--line); }

/* reveal (set up by JS only) */
html.anim .reveal:not(.in) { opacity: 0; transform: translateY(26px); }

/* responsive */
@media (max-width: 900px) {
  .nav { display: none; } .lang-toggle { margin-inline-start: auto; }
  .product { grid-template-columns: 1fr; } .product:nth-child(even) .product-mock { order: 0; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps-line { inset-block: 29px 29px; inset-inline-start: 28px; inset-inline-end: auto; width: 2px; height: auto; }
  .steps-line i { transform-origin: top center; } [dir="rtl"] .steps-line i { transform-origin: top center; }
  .step { padding-block-start: 0; padding-inline-start: 5rem; min-height: 58px; display: flex; align-items: center; }
  .contact-form { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .case { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.anim .reveal:not(.in) { opacity: 1; transform: none; }
}

/* ───────────────────────── print / PDF (A4 landscape, one page per sheet) ───────────────────────── */
@page { size: A4 landscape; margin: 0; }
body.print { background: var(--navy-900); font-size: 13.5pt; line-height: 1.5; }
html[lang="ar"] body.print { line-height: 1.75; }
.print .sheet { width: 297mm; height: 210mm; padding: 16mm 18mm; page-break-after: always; break-after: page; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8mm; background: radial-gradient(60% 70% at 85% 15%, rgba(27, 59, 255, 0.16), transparent 70%), radial-gradient(50% 60% at 10% 90%, rgba(0, 194, 203, 0.1), transparent 70%), var(--navy-900); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print .sheet:last-child { page-break-after: auto; break-after: auto; }
.print h1 { font-size: 46pt; line-height: 1; letter-spacing: -0.03em; font-weight: 700; } html[lang="ar"] .print h1 { font-size: 40pt; line-height: 1.3; letter-spacing: 0; }
.print h2 { font-size: 26pt; } .print h3 { font-size: 10.5pt; color: var(--teal-300); text-transform: uppercase; letter-spacing: 0.12em; margin-block: 4mm 1mm; font-weight: 600; } html[lang="ar"] .print h3 { letter-spacing: 0; text-transform: none; font-size: 12.5pt; }
.print .lead { font-size: 15pt; color: #d3d9e6; max-width: 150mm; }
.print .sheet-cover { flex-direction: row; align-items: center; justify-content: space-between; }
.cover-copy { flex: 1; display: flex; flex-direction: column; gap: 6mm; max-width: 125mm; } .cover-logo { height: 13mm; width: auto; align-self: flex-start; margin-block-end: 8mm; }
.cover-art { position: absolute; inset-block: 0; inset-inline-end: 0; width: 52%; height: 100%; object-fit: cover; mask-image: linear-gradient(to left, #000 70%, transparent); } [dir="rtl"] .cover-art { mask-image: linear-gradient(to right, #000 70%, transparent); }
.sheet-cover .cover-copy { position: relative; z-index: 1; }
.print .stats { margin: 0; grid-template-columns: repeat(auto-fit, minmax(60mm, 1fr)); } .print .num { font-size: 46pt; }
.industries { list-style: none; display: flex; gap: 4mm; padding: 0; margin: 0; flex-wrap: wrap; } .industries li { padding: 2.5mm 6mm; border: 1px solid rgba(0, 194, 203, 0.4); border-radius: 99px; color: var(--teal-300); font-size: 12pt; }
.print .sheet-case { flex-direction: row; align-items: center; gap: 12mm; } .sheet-visual { flex: 0 0 38%; aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(0, 194, 203, 0.22), transparent 68%); } .sheet-visual img { width: 100%; }
.sheet-text { flex: 1; } .sheet-text h2 { font-size: 21pt; margin-block: 2mm 3mm; } .sheet-text p { font-size: 12pt; color: #dde3ef; } .sheet-text .client { color: var(--gray); font-size: 11pt; } .print .tag { font-size: 9.5pt; }
.print .chip { font-size: 10pt; }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; } .p-grid article { padding: 9mm; border: 1px solid var(--line); border-radius: 6mm; background: rgba(23, 32, 67, 0.6); display: flex; flex-direction: column; gap: 3mm; } .p-grid h3 { font: 600 22pt var(--font-head); text-transform: none; letter-spacing: 0; color: var(--white); margin: 0; } .p-grid p { font-size: 12pt; color: #dde3ef; } .p-url { color: var(--teal-300) !important; font-weight: 600; } .p-logo { height: 14mm; width: auto; align-self: flex-start; background: #fff; padding: 2mm 3mm; border-radius: 2.5mm; }
.print .sheet-contact { flex-direction: row; align-items: center; justify-content: space-between; } .contact-list { list-style: none; padding: 0; margin: 8mm 0 0; font: 600 19pt var(--font-head); display: grid; gap: 3mm; } .contact-list li { color: var(--teal-300); }
.qr { margin: 0; text-align: center; } .qr-box { width: 62mm; height: 62mm; background: #fff; padding: 4mm; border-radius: 4mm; } .qr-box svg { width: 100%; height: 100%; } .qr figcaption { margin-block-start: 4mm; font-size: 11pt; color: #cbd2e0; max-width: 62mm; }
@media screen { body.print { display: grid; justify-content: center; gap: 12px; padding: 12px; background: #05080f; } .print .sheet { zoom: 0.5; } }
