/* ============================================================
   Hard4Tech — component & section styles
   ============================================================ */

/* ---------- Nav ---------- */
.nav { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.nav--scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.logo { display: inline-flex; align-items: center; }
.logo__img { height: 40px; width: auto; }
.logo__img--color { display: none; }
html[data-theme="light"] .logo__img--color { display: block; }
html[data-theme="light"] .logo__img--white { display: none; }
.footer__logo--color { display: none; }
html[data-theme="light"] .footer__logo--color { display: block; }
html[data-theme="light"] .footer__logo--white { display: none; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative; padding: 9px 12px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  color: var(--text-muted); transition: color .2s, background .2s; cursor: pointer;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; background: var(--grad); border-radius: 2px; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__lang {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: var(--text);
  transition: border-color .2s, color .2s, background .2s;
}
.nav__lang:hover { border-color: var(--accent); color: var(--accent); }
.nav__burger { display: none; color: var(--text); }
.nav__mobile { display: none; }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: grid; place-items: center; width: 42px; height: 42px; }
  .nav__mobile {
    display: flex; flex-direction: column; gap: 4px; padding: 16px 28px 28px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; padding-block: 0;
  }
  .nav__mobile.is-open { max-height: 80vh; padding-block: 16px 28px; }
  .nav__mlink {
    display: flex; align-items: center; justify-content: space-between; padding: 15px 4px;
    font-size: 1.1rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border);
  }
  .nav__mlink.is-active { color: var(--accent); }
  .nav__mlink svg { opacity: .4; }
  html[dir="rtl"] .nav__mlink svg { transform: scaleX(-1); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 168px 90px; overflow: hidden; }
.hero .grid-bg { opacity: .7; }
.hero__orb1 { width: 540px; height: 540px; background: var(--accent); top: -160px; inset-inline-end: -120px; opacity: .22; }
.hero__orb2 { width: 460px; height: 460px; background: var(--accent-2); bottom: -200px; inset-inline-start: -140px; opacity: .2; }
.hero__inner { position: relative; z-index: 2; max-width: 920px; }
.hero__badge { margin-bottom: 26px; }
.hero__title { margin-bottom: 26px; }
.hero__rotate { display: inline-block; position: relative; }
.hero__rotate-word { display: inline-block; }
.hero__sub { margin-bottom: 38px; font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px 56px; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat b { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1; }
.hero__stat span { font-size: .9rem; color: var(--text-muted); margin-top: 6px; }
.hero__stat + .hero__stat { padding-inline-start: 56px; border-inline-start: 1px solid var(--border); }
@media (max-width: 620px){ .hero__stat + .hero__stat { padding-inline-start: 0; border-inline-start: none; } .hero__stats{ gap:22px 40px;} }

/* ---------- Hero slider ---------- */
.hero--slider .hero__inner { min-height: 460px; display: flex; flex-direction: column; }
.hero__kicker { margin-bottom: 18px; }
.hero__slides { animation: heroIn .7s cubic-bezier(.2,.7,.2,1); }
.hero__slides .hero__title { margin-bottom: 24px; max-width: 16ch; }
.hero__slides .hero__sub { margin-bottom: 36px; }
.hero__slides .hero__actions { margin-bottom: 56px; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.hero__nav { display: flex; align-items: center; gap: 22px; margin-bottom: 56px; }
.hero__dots { display: flex; gap: 12px; }
.hero__dot {
  position: relative; width: 46px; height: 5px; border-radius: 4px;
  background: var(--border-strong); overflow: hidden; transition: width .3s;
}
.hero__dot.is-active { width: 76px; background: rgba(255,255,255,0.22); }
.hero__dot-fill {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.hero__dot.is-active .hero__dot-fill { animation: dotfill linear forwards; }
@keyframes dotfill { from { width: 0; } to { width: 100%; } }
html[dir="rtl"] .hero__dot-fill { inset-inline-start: auto; inset-inline-end: 0; }
.hero__count { font-family: var(--font-display); font-size: .9rem; color: var(--text-muted); letter-spacing: .06em; }
@media (prefers-reduced-motion: reduce) { .hero__slides { animation: none; } .hero__dot-fill { animation: none !important; } }

/* circuit accent line in hero */
/* circuit brand-mark watermark in hero */
.hero__deco { position: absolute; inset-inline-end: 4%; top: 18%; width: 380px; height: 380px; z-index: 0; opacity: .5; pointer-events: none; }
.hero__deco--mark {
  width: clamp(300px, 32vw, 500px); height: auto; top: 50%; inset-inline-end: 1%;
  transform: translateY(-50%); opacity: .16; z-index: 0;
  filter: drop-shadow(0 0 34px rgba(47,200,230,.22));
}
html[dir="rtl"] .hero__deco--mark { transform: translateY(-50%) scaleX(-1); }
@media (max-width: 1100px){ .hero__deco { display: none; } }

/* ---------- Trust bar ---------- */
.trustbar { border-block: 1px solid var(--border); background: var(--bg-2); }
.trustbar__inner { padding-block: 22px; text-align: center; color: var(--text-faint); font-size: .92rem; letter-spacing: .02em; }

/* ---------- Services ---------- */
.svc-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px){ .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .svc-grid { grid-template-columns: 1fr; } }
.svc {
  padding: 34px; position: relative; overflow: hidden; isolation: isolate;
}
.svc::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .35s; z-index: -1; }
.svc:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.svc__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; transition: background .35s, color .35s;
}
.svc:hover .svc__icon { background: var(--grad); color: #04101f; }
.svc__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 12px; }
.svc__desc { color: var(--text-muted); font-size: .98rem; margin-bottom: 18px; }
.svc__points { display: flex; flex-direction: column; gap: 9px; }
.svc__points li { display: flex; align-items: flex-start; gap: 9px; font-size: .92rem; color: var(--text-muted); }
.svc__points svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.svc__num { position: absolute; inset-block-start: 26px; inset-inline-end: 30px; font-family: var(--font-display); font-size: .85rem; color: var(--text-faint); font-weight: 600; }

/* ---------- About (centered, no photo) ---------- */
.about { position: relative; overflow: hidden; }
.about--center { text-align: center; }
.about__center { display: flex; flex-direction: column; align-items: center; gap: 38px; }
.about__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.about__pills li {
  display: inline-flex; align-items: center; gap: 11px; font-weight: 500; font-size: .98rem;
  padding: 11px 20px 11px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
html[dir="rtl"] .about__pills li { padding: 11px 14px 11px 20px; }
.about__pills .ck { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Stats band ---------- */
.statband { background: var(--bg-2); border-block: 1px solid var(--border); position: relative; overflow: hidden; }
.statband .glow-orb { width: 500px; height: 500px; background: var(--accent); top: -260px; left: 30%; opacity: .12; }
.stat-grid { grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
@media (max-width: 760px){ .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; } }
.stat { text-align: center; }
.stat__val { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; }
.stat__label { color: var(--text-muted); margin-top: 12px; font-size: .98rem; }

/* ---------- Why / feature grid ---------- */
.why-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .why-grid { grid-template-columns: 1fr; } }
.why { padding: 30px; }
.why__icon { width: 50px; height: 50px; border-radius: 13px; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--accent); margin-bottom: 20px; }
.why__title { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; margin-bottom: 10px; }
.why__desc { color: var(--text-muted); font-size: .95rem; }

/* ---------- Process ---------- */
.proc-grid { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
@media (max-width: 900px){ .proc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .proc-grid { grid-template-columns: 1fr; } }
.proc { position: relative; padding-top: 30px; }
.proc__step { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--border-strong); margin-bottom: 16px; }
.proc__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: 10px; }
.proc__desc { color: var(--text-muted); font-size: .95rem; }
.proc::before { content: ""; position: absolute; inset-block-start: 12px; inset-inline-start: 0; width: 38px; height: 3px; background: var(--grad); border-radius: 3px; }

/* ---------- Solutions ---------- */
.sol-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){ .sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .sol-grid { grid-template-columns: 1fr; } }
.sol { padding: 32px; display: flex; flex-direction: column; gap: 16px; min-height: 230px; }
.sol:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.sol__tag { align-self: flex-start; }
.sol__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.sol__desc { color: var(--text-muted); font-size: .96rem; flex: 1; }
.sol__more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: .92rem; }
html[dir="rtl"] .sol__more svg { transform: scaleX(-1); }

/* ---------- Partners marquee ---------- */
.partner { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--text-faint); white-space: nowrap; transition: color .25s; letter-spacing: .01em; }
.partner:hover { color: var(--text); }

/* ---------- Testimonials ---------- */
.testi-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){ .testi-grid { grid-template-columns: 1fr; } }
.testi { padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.testi__quote { font-size: 1.08rem; line-height: 1.6; }
.testi__quote::before { content: "“"; font-family: var(--font-display); font-size: 3rem; color: var(--accent); line-height: 0; display: block; height: 22px; }
.testi__who { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.testi__who b { font-weight: 600; }
.testi__who span { font-size: .88rem; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.ctaband { position: relative; overflow: hidden; }
.ctaband__box {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 72px 56px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border);
}
.ctaband__box .grid-bg { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 75%); opacity: .6; }
.ctaband__glow { width: 420px; height: 420px; background: var(--accent-2); bottom: -240px; inset-inline-end: 10%; opacity: .25; }
.ctaband__box > * { position: relative; z-index: 1; }
.ctaband h2 { margin-bottom: 16px; max-width: 18ch; margin-inline: auto; }
.ctaband p { max-width: 52ch; margin-inline: auto; margin-bottom: 32px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 880px){ .contact__grid { grid-template-columns: 1fr; gap: 40px; } }
.contact__info { display: flex; flex-direction: column; gap: 22px; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; }
.contact__item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.contact__item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 3px; }
.contact__item p { color: var(--text-muted); font-size: .95rem; }
.contact__form { padding: 34px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 480px){ .contact__row { grid-template-columns: 1fr; } }
.contact__form .field { margin-bottom: 18px; }
.contact__success { display: flex; align-items: center; gap: 12px; color: var(--accent); font-weight: 600; padding: 16px; background: var(--accent-soft); border-radius: var(--radius-sm); margin-top: 8px; }

/* ---------- Page hero (inner pages) ---------- */
.pagehero { position: relative; overflow: hidden; padding-block: 170px 70px; border-bottom: 1px solid var(--border); }
.pagehero .grid-bg { opacity: .55; }
.pagehero__orb { width: 460px; height: 460px; background: var(--accent); top: -200px; inset-inline-end: -100px; opacity: .16; }
.pagehero__inner { position: relative; z-index: 1; max-width: 760px; }
.pagehero h1 { margin: 20px 0 18px; }
.crumbs { display: flex; align-items: center; gap: 10px; color: var(--text-faint); font-size: .9rem; }
.crumbs button { color: var(--text-muted); }
.crumbs button:hover { color: var(--accent); }
.crumbs svg { width: 14px; height: 14px; }
html[dir="rtl"] .crumbs svg { transform: scaleX(-1); }

/* ---------- Service detail rows ---------- */
.svc-row { display: grid; grid-template-columns: 64px 1fr; gap: 26px; padding: 38px 0; border-bottom: 1px solid var(--border); align-items: start; }
.svc-row:last-child { border-bottom: none; }
.svc-row__ic { width: 64px; height: 64px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.svc-row h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin-bottom: 12px; }
.svc-row p { color: var(--text-muted); max-width: 60ch; margin-bottom: 16px; }
.svc-row__tags { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px){ .svc-row { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- About page values ---------- */
.val-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px){ .val-grid { grid-template-columns: 1fr; } }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px){ .mv-grid { grid-template-columns: 1fr; } }
.mv { padding: 38px; }
.mv h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 14px; }
.mv p { color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-block: 72px 48px; }
@media (max-width: 900px){ .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 540px){ .footer__inner { grid-template-columns: 1fr; } }
.footer__logo { height: 42px; width: auto; margin-bottom: 20px; }
.footer__blurb { font-size: .95rem; max-width: 38ch; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__soc { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; font-weight: 600; font-size: .85rem; color: var(--text-muted); transition: all .2s; }
.footer__soc:hover { border-color: var(--accent); color: var(--accent); }
.footer__col h4 { font-size: 1rem; font-weight: 600; margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col button { color: var(--text-muted); font-size: .93rem; transition: color .2s; text-align: start; }
.footer__col button:hover { color: var(--accent); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: .93rem; }
.footer__contact svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 26px; border-top: 1px solid var(--border); font-size: .88rem; flex-wrap: wrap; gap: 10px; }
.footer__made { color: var(--text-faint); }

/* ---------- Page transition ---------- */
.page { animation: pagein .5s cubic-bezier(.2,.7,.2,1); }
@keyframes pagein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* spinning-logo overlay shown while navigating between pages */
#leave {
  position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center;
  background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
#leave.show { opacity: 1; pointer-events: all; }
#leave .boot-spin { animation: spin 1.15s cubic-bezier(.6,.18,.4,.82) infinite; }
#leave .boot-mark { width: 78px; height: auto; display: block; filter: drop-shadow(0 0 18px rgba(47,200,230,.55)); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #leave .boot-spin { animation: none; } }

/* ============================================================
   ERP PAGE
   ============================================================ */
.erp-intro { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 920px){ .erp-intro { grid-template-columns: 1fr; gap: 40px; } }
.erp-mock { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.erp-mock__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.erp-mock__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.erp-mock__title { margin-inline-start: 12px; font-size: .82rem; color: var(--text-muted); font-family: var(--font-display); }
.erp-mock__body { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.erp-mock__kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.erp-mock__kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.erp-mock__klabel { font-size: .76rem; color: var(--text-muted); }
.erp-mock__kval { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; }
.erp-mock__chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.erp-mock__chart span { flex: 1; background: var(--grad); border-radius: 4px 4px 0 0; opacity: .85; animation: barGrow .9s cubic-bezier(.2,.7,.2,1) backwards; }
.erp-mock__chart span:nth-child(odd){ animation-delay: .1s; } .erp-mock__chart span:nth-child(even){ animation-delay: .2s; }
@keyframes barGrow { from { transform: scaleY(0); transform-origin: bottom; } }
.erp-mock__rows { display: flex; flex-direction: column; gap: 10px; }
.erp-mock__row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.erp-mock__row span { height: 10px; border-radius: 5px; background: var(--surface-3); }
.erp-mock__row span:first-child { background: var(--border-strong); }

.erp-mods { grid-template-columns: repeat(4,1fr); }
@media (max-width: 1000px){ .erp-mods { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px){ .erp-mods { grid-template-columns: 1fr; } }
.erp-mod { padding: 26px; }
.erp-mod:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.erp-mod__ic { width: 50px; height: 50px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.erp-mod h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 9px; }
.erp-mod p { color: var(--text-muted); font-size: .92rem; }

.erp-feats { grid-template-columns: repeat(3,1fr); }
@media (max-width: 900px){ .erp-feats { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .erp-feats { grid-template-columns: 1fr; } }
.erp-feat { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.erp-feat__ic { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--border-strong); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.erp-feat h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.erp-feat p { color: var(--text-muted); font-size: .9rem; }

.erp-inds { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 760px; margin-inline: auto; }
.erp-ind { font-size: .92rem; padding: 10px 18px; }

/* ============================================================
   PARTNERS PAGE
   ============================================================ */
.client-grid { grid-template-columns: repeat(4,1fr); }
@media (max-width: 860px){ .client-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .client-grid { grid-template-columns: 1fr; } }
.client { display: flex; align-items: center; gap: 16px; padding: 22px 24px; }
.client:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.client__mark { width: 50px; height: 50px; border-radius: 12px; background: var(--grad); color: #04101f; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.client__name { font-weight: 600; font-size: 1rem; }
.client-note { text-align: center; margin-top: 28px; font-size: .9rem; }

/* real client logo tiles (white monochrome logos, transparent — no white box) */
.logo-grid { grid-template-columns: repeat(3,1fr); }
@media (max-width: 820px){ .logo-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .logo-grid { grid-template-columns: 1fr; } }
.logo-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  display: grid; place-items: center; padding: 30px 34px; aspect-ratio: 16 / 9;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.logo-tile img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  opacity: .82; transition: opacity .3s;
}
.logo-tile:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.logo-tile:hover img { opacity: 1; }

/* home "trusted by" client strip */
.client-strip { border-block: 1px solid var(--border); background: var(--bg-2); }
.client-strip__head { text-align: center; color: var(--text-faint); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; padding-block: 30px 0; }
html[lang="ar"] .client-strip__head { letter-spacing: .04em; }
.client-strip .marquee { padding-block: 28px 32px; }
.client-strip__logo {
  display: flex; align-items: center; justify-content: center; padding: 0 30px; flex-shrink: 0;
}
.client-strip__logo img { height: 44px; width: auto; max-width: 190px; object-fit: contain; opacity: .72; transition: opacity .3s; }
.client-strip__logo:hover img { opacity: 1; }

.tech-grid { grid-template-columns: repeat(6,1fr); }
@media (max-width: 900px){ .tech-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 540px){ .tech-grid { grid-template-columns: repeat(2,1fr); } }
.tech { display: grid; place-items: center; padding: 26px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: all .25s; }
.tech:hover { border-color: var(--accent); transform: translateY(-4px); }
.tech__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text-muted); transition: color .25s; }
.tech:hover .tech__name { color: var(--text); }

/* ============================================================
   VIVID THEME — ITS-style living gradient + particle motion
   ============================================================ */
.site-bg {
  position: fixed; inset: -8%; z-index: -3; pointer-events: none;
  background: radial-gradient(135% 135% at 0% 0%,
    #63b7e8 0%, #5179e8 18%, #4a34e3 42%, #5c1cb2 70%, #3a0a6e 100%);
  background-size: 150% 150%;
  animation: bgshift 26s ease-in-out infinite alternate;
}
.site-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(42% 50% at 88% 92%, rgba(126,28,206,0.55), transparent 62%),
    radial-gradient(46% 46% at 8% 6%, rgba(110,212,255,0.45), transparent 60%);
  mix-blend-mode: screen;
  animation: bgblob 22s ease-in-out infinite alternate;
}
@keyframes bgshift { 0% { background-position: 0% 0%; } 100% { background-position: 42% 36%; } }
@keyframes bgblob { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-3.5%,-2.5%,0); } }
.bg-canvas { position: fixed; inset: 0; z-index: -2; pointer-events: none; }

/* gradient layer + particles: vivid (bright) and dark (deep) */
html[data-theme="light"] .site-bg { display: none; }
/* DARK theme — deep navy backdrop with subtle ITS-style glows; particles stay on */
html[data-theme="dark"] .site-bg {
  background: radial-gradient(125% 125% at 0% 0%,
    #0e1d3f 0%, #0b1530 32%, #080d1c 64%, #060912 100%);
}
html[data-theme="dark"] .site-bg::after {
  background:
    radial-gradient(40% 46% at 86% 90%, rgba(124,92,255,0.22), transparent 62%),
    radial-gradient(42% 42% at 8% 8%, rgba(47,200,230,0.18), transparent 60%);
}
@media (prefers-reduced-motion: reduce) { .site-bg, .site-bg::after { animation: none; } }

/* glass surfaces over the moving gradient */
html[data-theme="vivid"] .card,
html[data-theme="vivid"] .panel,
html[data-theme="vivid"] .trustbar,
html[data-theme="vivid"] .statband,
html[data-theme="vivid"] .footer,
html[data-theme="vivid"] .ctaband__box,
html[data-theme="vivid"] .pill,
html[data-theme="vivid"] .nav__lang,
html[data-theme="vivid"] .field input,
html[data-theme="vivid"] .field textarea,
html[data-theme="vivid"] .about__badge {
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
html[data-theme="vivid"] .nav--scrolled {
  background: rgba(28, 20, 78, 0.55); border-bottom-color: rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
/* hide the dark-theme decorative orbs (gradient handles glow) */
html[data-theme="vivid"] .hero__orb1,
html[data-theme="vivid"] .hero__orb2,
html[data-theme="vivid"] .hero__deco,
html[data-theme="vivid"] .statband .glow-orb,
html[data-theme="vivid"] .ctaband__glow { display: none; }
html[data-theme="vivid"] .hero .grid-bg { opacity: .22; }
html[data-theme="vivid"] .ctaband__box .grid-bg { opacity: .3; }
/* keep the hero gradient text crisp white in vivid */
html[data-theme="vivid"] .hero__rotate-word {
  background: none; -webkit-text-fill-color: #fff; color: #fff;
}
html[data-theme="vivid"] .ph {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 14px, rgba(255,255,255,0.09) 14px 28px);
}

/* ---------- Hero underline accent (sits cleanly BELOW the text, clear of descenders) ---------- */
.hero__ul { position: relative; display: inline-block; padding-bottom: .30em; }
.hero__ul::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: .02em;
  width: 62%; min-width: 120px; height: 4px; border-radius: 4px;
  background: var(--grad); box-shadow: 0 0 16px var(--accent);
}
html[lang="ar"] .hero__ul { padding-bottom: .18em; }
