/* PROTECH — bilingual (RTL/LTR), dark & light themes */
:root {
  --red: #e1262d;
  --red-2: #ff4d4f;
  --blue: #2f7dff;
  --cyan: #22d3ee;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-ar: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-en: 'Space Grotesk', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --top-h: 74px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: #0f1729;
  --surface-2: #142038;
  --line: rgba(148, 163, 184, .14);
  --text: #e8edf6;
  --muted: #94a3b8;
  --head: #ffffff;
  --glass: rgba(10, 16, 30, .72);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --grid: rgba(148, 163, 184, .06);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fc;
  --bg-2: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f2f5fb;
  --line: rgba(15, 23, 42, .1);
  --text: #1e293b;
  --muted: #5b6b82;
  --head: #0b1324;
  --glass: rgba(255, 255, 255, .8);
  --shadow: 0 20px 50px -24px rgba(15, 23, 42, .25);
  --grid: rgba(15, 23, 42, .05);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-ar); font-size: 16.5px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s, color .4s;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
h1, h2, h3, h4 { color: var(--head); line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1220px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 8px; }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); transition: opacity .6s, visibility .6s; }
.loader img { animation: spin 1.4s var(--ease) infinite; filter: drop-shadow(0 0 24px rgba(225, 38, 45, .6)); }
.loader.done { opacity: 0; visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 90; background: linear-gradient(90deg, var(--red), var(--cyan)); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .progress { transform-origin: right; }

.cursor-glow { position: fixed; z-index: 0; width: 520px; height: 520px; left: -260px; top: -260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(225, 38, 45, .09), transparent 60%); transform: translate3d(var(--mx, -999px), var(--my, -999px), 0); transition: opacity .3s; }
:root[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(47, 125, 255, .08), transparent 60%); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--red); color: #fff; font-weight: 600; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s; }
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn--glow { background: linear-gradient(135deg, var(--red), #b3121a); box-shadow: 0 10px 30px -10px rgba(225, 38, 45, .8); }
.btn--glow::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35), transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn--glow:hover::after { transform: translateX(120%); }
.btn--outline { background: transparent; color: var(--head); border-color: var(--line); backdrop-filter: blur(6px); }
.btn--outline:hover { border-color: var(--red); color: var(--red-2); }
.hero .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--light { background: #fff; color: #0b1324; }
.btn--wa { background: #1fae5b; }
.btn--li { background: #0a66c2; }
.btn--block { width: 100%; }
.btn-ghost { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .88rem; color: var(--head); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--head); transition: background .25s, border-color .25s, transform .25s; }
.icon-btn:hover { border-color: var(--red); transform: rotate(-8deg); }
.icon-btn svg { width: 20px; height: 20px; }
.lang { min-width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--head); font-weight: 700; font-family: var(--font-en); padding: 0 12px; }
html[lang="en"] .lang { font-family: var(--font-ar); }
.lang:hover { border-color: var(--red); }

/* Theme icon swap */
:root[data-theme="dark"] .i-moon, :root[data-theme="light"] .i-sun { display: none; }
#themeBtn svg { animation: pop .5s var(--ease); }
@keyframes pop { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }
.logo--light { display: none; }
:root[data-theme="light"] .logo--dark { display: none; }
:root[data-theme="light"] .logo--light { display: block; }

/* Top bar */
.topbar { position: fixed; top: 0; inset-inline: 0; z-index: 80; height: var(--top-h); transition: background .35s, box-shadow .35s, transform .4s var(--ease); }
.topbar__in { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand .logo { width: 158px; height: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; color: #e8edf6; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: #fff; }
.topbar__actions { display: flex; gap: 8px; align-items: center; }
.topbar .icon-btn, .topbar .lang, .topbar .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.topbar .logo--light { display: none !important; }
.topbar .logo--dark { display: block !important; }
.topbar.scrolled { background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.topbar.scrolled .nav a, .topbar.scrolled .icon-btn, .topbar.scrolled .lang, .topbar.scrolled .btn-ghost { color: var(--head); border-color: var(--line); }
.topbar.scrolled .nav a.active { color: var(--red-2); }
:root[data-theme="light"] .topbar.scrolled .logo--dark { display: none !important; }
:root[data-theme="light"] .topbar.scrolled .logo--light { display: block !important; }
.topbar.hide { transform: translateY(-100%); }
.burger { display: none; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger { gap: 4px; align-content: center; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff; background: #04070e; }
.hero__slides, .hero__slide, .hero__shade, .hero__net { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: opacity 1.4s ease, transform 7s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__net { width: 100%; height: 100%; z-index: 1; }
.hero__shade { z-index: 1; background:
  radial-gradient(ellipse at 20% 50%, rgba(4, 7, 14, .25), rgba(4, 7, 14, .85) 75%),
  linear-gradient(180deg, rgba(4, 7, 14, .55), transparent 30%, rgba(4, 7, 14, .3) 70%, var(--bg)); }
.hero__in { position: relative; z-index: 2; padding: calc(var(--top-h) + 40px) 0 90px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); font-size: .9rem; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 0 rgba(255, 77, 79, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 77, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0); } }
.hero__copy { min-height: 15.5rem; margin: 22px 0 8px; }
.hero__title { color: #fff; font-size: clamp(2.3rem, 6.4vw, 5rem); font-weight: 700; letter-spacing: -.02em; max-width: 15ch; margin: 0 0 .35em; }
html[lang="ar"] .hero__title { line-height: 1.3; max-width: 17ch; }
.hero__title .w { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(4deg); filter: blur(8px); animation: word .9s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms); }
.hero__title .hl { background: linear-gradient(90deg, #fff, var(--red-2) 60%, #ff8a8c); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
.hero__lead { font-size: clamp(1.02rem, 1.7vw, 1.25rem); color: rgba(232, 237, 246, .85); max-width: 56ch; opacity: 0; animation: fadeUp .9s var(--ease) .5s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__dots { display: flex; gap: 8px; margin-top: 46px; }
.hero__dots button { width: 34px; height: 4px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .25); padding: 0; overflow: hidden; position: relative; }
.hero__dots button::after { content: ""; position: absolute; inset: 0; background: var(--red-2); transform: scaleX(0); transform-origin: inline-start; }
[dir="ltr"] .hero__dots button::after { transform-origin: left; }
[dir="rtl"] .hero__dots button::after { transform-origin: right; }
.hero__dots button.on::after { animation: fill var(--dur, 7s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.scroll-cue { position: absolute; z-index: 2; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Sections */
.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; z-index: 1; }
.section--alt { background: var(--bg-2); }
.section--alt::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head p:last-child { color: var(--muted); font-size: 1.06rem; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--red-2); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }

/* About */
.about { padding: clamp(70px, 9vw, 120px) 0 40px; position: relative; z-index: 1; }
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about__text p { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 34px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(225, 38, 45, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff4d4f' d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 6.6-6.6 1.4 1.4z'/%3E%3C/svg%3E") center/16px no-repeat; }
.orbit { position: relative; aspect-ratio: 1; max-width: 440px; margin-inline: auto; display: grid; place-items: center; }
.orbit__mark { width: 34%; filter: drop-shadow(0 0 40px rgba(225, 38, 45, .55)); animation: spin 26s linear infinite; }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line); }
.r1 { inset: 22%; animation: spin 18s linear infinite; border-color: rgba(225, 38, 45, .35); }
.r2 { inset: 10%; animation: spin 30s linear infinite reverse; }
.r3 { inset: 0; border-style: solid; border-color: var(--line); }
.r1::after, .r2::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 14px var(--red-2); }
.r2::after { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.orbit__chip { position: absolute; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font: 600 .85rem var(--font-en); color: var(--head); animation: float 6s ease-in-out infinite; }
.c1 { top: 8%; left: 12%; } .c2 { top: 18%; right: 2%; animation-delay: -1.5s; } .c3 { bottom: 14%; left: 2%; animation-delay: -3s; } .c4 { bottom: 6%; right: 16%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(50px, 7vw, 90px); }
.stat { padding: 26px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--cyan)); transform: scaleX(0); transition: transform 1.2s var(--ease) .3s; }
.stat.in::before { transform: scaleX(1); }
.stat b { font: 700 clamp(2rem, 4vw, 3rem) / 1 var(--font-en); color: var(--head); }
.stat i { font: 700 1.8rem var(--font-en); color: var(--red-2); font-style: normal; }
.stat span { display: block; margin-top: 8px; color: var(--muted); }

/* Solution cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { position: relative; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-align: start; padding: 0; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s, border-color .5s; transform-style: preserve-3d; }
.card::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(225, 38, 45, .16), transparent 45%); }
.card:hover { border-color: rgba(225, 38, 45, .5); box-shadow: 0 30px 60px -30px rgba(225, 38, 45, .45); }
.card:hover::before { opacity: 1; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--surface)); }
.card__icon { position: absolute; z-index: 1; bottom: -6px; inset-inline-start: 20px; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--red), #9e0f16); box-shadow: 0 10px 24px -8px rgba(225, 38, 45, .8); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--red-2); font-weight: 600; font-size: .93rem; }
.more svg { width: 18px; height: 18px; transition: transform .3s; }
[dir="rtl"] .more svg { transform: scaleX(-1); }
.card:hover .more svg { transform: translateX(5px); }
[dir="rtl"] .card:hover .more svg { transform: scaleX(-1) translateX(5px); }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service { position: relative; display: grid; grid-template-columns: 200px 1fr; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-align: start; padding: 0;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .4s; }
.service:hover { border-color: rgba(225, 38, 45, .5); transform: translateY(-6px); box-shadow: var(--shadow); }
.service img { width: 100%; height: 100%; object-fit: cover; }
.service__body { padding: 26px; }
.service h3 { font-size: 1.3rem; }
.service ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { font-size: .82rem; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 34px; inset-inline: 12%; height: 2px; background: linear-gradient(90deg, var(--red), var(--cyan)); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 1.6s var(--ease); }
[dir="rtl"] .steps::before { transform-origin: right; }
.steps.in::before { --p: 1; }
.step { text-align: center; position: relative; }
.step__n { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font: 700 1.4rem var(--font-en); color: #fff; position: relative;
  background: linear-gradient(135deg, var(--red), #8f0d14); box-shadow: 0 0 0 8px var(--bg), 0 0 0 9px var(--line), 0 14px 30px -10px rgba(225, 38, 45, .7); }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* Partners */
.marquee { display: grid; gap: 18px; overflow: hidden; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); direction: ltr; }
.marquee__row { display: flex; gap: 18px; width: max-content; animation: scroll var(--speed, 60s) linear infinite; }
.marquee__row.rev { animation-direction: reverse; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.logo-tile { width: 180px; height: 92px; flex: none; display: grid; place-items: center; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.logo-tile img { max-width: 100%; max-height: 52px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .75; transition: filter .35s, opacity .35s; }
.logo-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(225, 38, 45, .6); }
.logo-tile:hover img { filter: none; opacity: 1; }
#allPartnersBtn { margin-top: 36px; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 30px; }
.partner-grid .logo-tile { width: auto; }
.partner-grid .logo-tile img { filter: none; opacity: 1; }
.partner-grid .logo-tile { animation: fadeUp .5s var(--ease) backwards; animation-delay: calc(var(--i) * 18ms); }

/* Testimonials */
.quotes { max-width: 860px; margin-inline: auto; position: relative; }
.quotes__track { display: grid; }
.quote { grid-area: 1 / 1; padding: clamp(28px, 4vw, 46px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; transform: translateX(40px) scale(.97); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; position: relative; }
[dir="rtl"] .quote { transform: translateX(-40px) scale(.97); }
.quote.on { opacity: 1; transform: none !important; pointer-events: auto; }
.quote::before { content: "\201C"; position: absolute; top: -10px; inset-inline-end: 30px; font: 700 8rem/1 Georgia, serif; color: var(--red); opacity: .18; }
.quote blockquote { margin: 0 0 24px; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--head); }
.quote footer { display: flex; align-items: center; gap: 14px; }
.quote footer img { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; }
.quote footer b { display: block; color: var(--head); }
.quote footer span { color: var(--muted); font-size: .92rem; }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: 1rem; margin-bottom: 12px; }
.quotes__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.quotes__nav svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .quotes__nav svg { transform: scaleX(-1); }
.quotes__dots { display: flex; gap: 8px; }
.quotes__dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; padding: 0; background: var(--line); transition: width .4s var(--ease), background .4s; }
.quotes__dots button.on { width: 28px; background: var(--red); }

/* CSR */
.csr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.csr-card { padding: 28px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .4s; }
.csr-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .45); }
.csr-card .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; color: var(--cyan); background: rgba(34, 211, 238, .1); }
.csr-card h3 { font-size: 1.1rem; }
.csr-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* News */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post:hover .post__media img { transform: scale(1.07); }
.post__tag { position: absolute; top: 14px; inset-inline-start: 14px; padding: 4px 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: .8rem; font-weight: 600; }
.post__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post h3 { font-size: 1.05rem; line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* CTA band */
.cta-band { position: relative; z-index: 1; padding: 0 0 clamp(60px, 8vw, 100px); }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(30px, 5vw, 54px); border-radius: 28px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #b3121a, var(--red) 45%, #ff5a4f); }
.cta-band__in::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; inset-inline-end: -120px; top: -200px; border: 60px solid rgba(255, 255, 255, .08); animation: spin 30s linear infinite; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; opacity: .9; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: start; transition: border-color .3s, transform .3s var(--ease); }
.contact-card:hover { border-color: var(--red); transform: translateY(-3px); }
.contact-card svg { width: 44px; height: 44px; padding: 11px; border-radius: 13px; color: var(--red-2); background: rgba(225, 38, 45, .12); }
.contact-card b { display: block; color: var(--head); font-size: .95rem; }
.contact-card small { color: var(--muted); font-size: .88rem; }
.form { padding: clamp(24px, 4vw, 38px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form h3 { font-size: 1.35rem; margin: 0 0 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; display: block; }
.field input, .field textarea, .field select { width: 100%; padding: 22px 16px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--head); font: inherit; resize: vertical; transition: border-color .25s, box-shadow .25s; }
.field select { appearance: none; padding-top: 24px; }
.field span { position: absolute; inset-inline-start: 16px; top: 15px; color: var(--muted); pointer-events: none; transition: transform .25s var(--ease), font-size .25s, top .25s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(225, 38, 45, .14); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span, .field select + span { top: 6px; font-size: .75rem; color: var(--red-2); }
.field.bad input, .field.bad textarea { border-color: #f43f5e; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.form__note { color: var(--muted); font-size: .84rem; margin: 0; text-align: center; }

/* Footer */
.footer { position: relative; z-index: 1; background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer .logo { width: 180px; height: auto; margin-bottom: 16px; }
.footer p { color: var(--muted); font-size: .95rem; }
.footer h4 { font-size: 1rem; margin-bottom: 14px; }
.footer__grid > div > a { display: block; color: var(--muted); padding: 4px 0; font-size: .94rem; transition: color .2s, transform .2s; }
.footer__grid > div > a:hover { color: var(--red-2); transform: translateX(4px); }
[dir="rtl"] .footer__grid > div > a:hover { transform: translateX(-4px); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--head); transition: background .3s, color .3s, transform .3s; }
.socials a:hover { background: var(--red); color: #fff; transform: translateY(-3px); border-color: var(--red); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer__bottom p { margin: 0; font-size: .9rem; }
.credit a { color: var(--red-2); font-weight: 700; transition: color .2s; }
.credit a:hover { color: var(--head); }

/* Back to top */
.to-top { position: fixed; z-index: 70; bottom: 24px; inset-inline-end: 24px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 26px -10px rgba(225, 38, 45, .8); opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Dialog sheets */
.sheet { border: 0; padding: 0; width: min(640px, 100% - 24px); max-height: 92vh; border-radius: 26px; background: var(--surface); color: var(--text); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); overflow: auto; }
.sheet[open] { animation: sheetIn .45s var(--ease); }
.sheet::backdrop { background: rgba(3, 6, 12, .65); backdrop-filter: blur(6px); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.sheet__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 1rem; backdrop-filter: blur(6px); }
.sheet__media { aspect-ratio: 16 / 8; overflow: hidden; }
.sheet__media img { width: 100%; height: 100%; object-fit: cover; }
.sheet__body { padding: 26px 28px 30px; }
.sheet__body > p { color: var(--muted); }
.sheet__body h4 { margin-top: 20px; }
.sheet__body .btn { margin-top: 24px; }
.share { width: min(460px, 100% - 24px); }
.share .sheet__close { background: var(--surface-2); color: var(--head); }
.share__body { padding: 34px 26px 28px; text-align: center; }
.share__body > p { color: var(--muted); }
.share__qr { position: relative; width: 240px; margin: 18px auto 14px; padding: 12px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -20px rgba(225, 38, 45, .5); overflow: hidden; }
.share__scan { position: absolute; inset-inline: 0; top: 0; height: 40px; z-index: 1; background: linear-gradient(180deg, transparent, rgba(225, 38, 45, .28), transparent); animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 50% { transform: translateY(220px); } }
.share__url { border: 1px dashed var(--line); background: var(--surface-2); padding: 8px 16px; border-radius: 999px; color: var(--head); font: 600 .95rem var(--font-en); }
.share__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.share__actions .btn { padding: 11px 14px; font-size: .92rem; }
.share__actions .btn--outline { color: var(--head); }

.toast { position: fixed; z-index: 300; left: 50%; bottom: 90px; translate: -50% 0; width: max-content; max-width: calc(100vw - 32px); text-align: center; padding: 12px 22px; border-radius: 999px; background: var(--head); color: var(--bg); font-weight: 600; box-shadow: var(--shadow); animation: fadeUp .35s var(--ease); }
.sheet .toast { position: sticky; display: block; width: fit-content; margin: 0 auto 16px; bottom: 16px; translate: none; }

.tabbar { display: none; }

/* Responsive */
@media (max-width: 1100px) {
  .nav { position: fixed; top: var(--top-h); inset-inline: 12px; flex-direction: column; padding: 12px; border-radius: 20px; background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a, .topbar .nav a { color: var(--head); padding: 12px 14px; }
  .topbar__actions { margin-inline-start: auto; }
  .burger { display: grid; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .csr { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .about__grid, .contact, .services { grid-template-columns: 1fr; }
  .about__visual { max-width: 340px; margin-inline: auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before { display: none; }
  .news { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --top-h: 64px; }
  body { font-size: 15.5px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .brand .logo { width: 124px; }
  .topbar__actions { gap: 6px; }
  .icon-btn, .lang { width: 38px; height: 38px; min-width: 38px; }
  .topbar [data-share], #installBtn { display: none; }
  .hero__copy { min-height: 15rem; }
  .cards, .csr, .news, .contact-cards, .form__row { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .service img { aspect-ratio: 16 / 8; }
  .steps { grid-template-columns: 1fr; }
  .logo-tile { width: 140px; height: 76px; padding: 14px; }
  .footer__grid { grid-template-columns: 1fr; }
  .to-top { bottom: calc(84px + env(safe-area-inset-bottom)); inset-inline-end: 16px; width: 44px; height: 44px; }
  .scroll-cue { display: none; }
  .tabbar { display: flex; position: fixed; z-index: 75; bottom: 0; inset-inline: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .tabbar a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: .7rem; color: var(--muted); border-radius: 12px; transition: color .2s; }
  .tabbar a.active { color: var(--red-2); }
  .tabbar a.active svg { transform: translateY(-2px); }
  .tabbar svg { transition: transform .3s var(--ease); }
  .share__actions { grid-template-columns: 1fr; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* Installed app (standalone): no browser chrome, so leave room for the notch */
@media (display-mode: standalone) {
  .topbar { padding-top: env(safe-area-inset-top); height: calc(var(--top-h) + env(safe-area-inset-top)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__net, .cursor-glow { display: none; }
}
