/* ==========================================================================
   RAQAM — Design system
   Brand colour taken from the logo: orange #FF7A01.
   Neutrals are warm so the orange sits naturally. Logical properties are used
   throughout so RTL (Arabic) and LTR (English) mirror correctly.
   ========================================================================== */

:root {
  --orange: #FF7900;
  --orange-600: #E86D00;
  --orange-ink: #B35100;      /* brand orange darkened for text on light backgrounds (AA) */
  --orange-50: #FFF6EE;
  --orange-100: #FFE7D2;

  --ink: #1A1613;
  --ink-2: #4A433D;
  --muted: #6F6862;
  --line: #EFE7DF;
  --bg: #FFFFFF;
  --warm: #FFFAF5;           /* near-white tint of the brand orange */

  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Inter", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font: var(--font-ar);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(23,19,16,.05), 0 4px 14px rgba(23,19,16,.04);
  --shadow: 0 2px 4px rgba(23,19,16,.04), 0 18px 48px rgba(23,19,16,.10);
  --shadow-lg: 0 30px 80px rgba(23,19,16,.18);
  --ease: cubic-bezier(.22,.7,.2,1);
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --nav-h: 72px;
}
:root[lang="en"] { --font: var(--font-en); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.75;
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:root[lang="en"] body { line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* Language-switch fade */
body { transition: opacity .18s ease; }
body.is-switching { opacity: 0; }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
:root[lang="en"] h1, :root[lang="en"] h2 { letter-spacing: -0.03em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.9rem); line-height: 1.18; }
:root[lang="en"] h1 { line-height: 1.04; font-weight: 700; }
h1 em, h2 em { font-style: normal; color: var(--orange); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.25; }
:root[lang="en"] h2 { line-height: 1.1; }
h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.3; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.kicker, .eyebrow, .tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 600; color: var(--orange-ink);
}
.kicker::before, .eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.kicker--light { color: var(--orange); }
.tag { color: var(--muted); font-family: var(--font-en); font-weight: 500; letter-spacing: .02em; direction: ltr; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a231e; box-shadow: 0 10px 26px rgba(23,19,16,.25); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #D9D0C5; }
.btn--ghost:hover { border-color: var(--ink); background: #fff; }
.btn--accent { background: var(--orange); color: #1b1109; }
.btn--accent:hover { background: #ff8a1f; box-shadow: 0 10px 28px rgba(255,122,1,.35); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.arrow { display: inline-flex; width: 18px; height: 18px; transition: transform .25s var(--ease); }
.arrow svg { width: 100%; height: 100%; }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .arrow svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-stuck { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 40px; width: auto; transition: transform .3s var(--ease); }
.nav__logo:hover img { transform: scale(1.05) rotate(-2deg); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; padding: 8px 14px; font-size: .95rem; font-weight: 500; color: var(--ink-2); border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(23,19,16,.05); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; background: var(--orange); border-radius: 2px;
}
.nav__tools { display: flex; align-items: center; gap: 10px; }
.lang {
  min-width: 52px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #D9D0C5; background: #fff;
  font-weight: 600; font-size: .9rem; cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.lang:hover { border-color: var(--ink); transform: translateY(-1px); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #D9D0C5; background: #fff; cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 12px auto 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top;
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav__links a.is-active::after { display: none; }
  .nav__links a.is-active { background: var(--orange-50); color: var(--orange-ink); }
  .nav { background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--warm { background: var(--warm); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); display: grid; gap: 16px; justify-items: start; }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }
.head--center .lede { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(32px, 6vw, 80px)) 0 clamp(56px, 8vw, 110px); overflow: clip; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 26px; justify-items: start; }
.hero__copy .lede { max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Device mockups */
.stage { position: relative; width: 100%; aspect-ratio: 1 / .94; }
.laptop { position: absolute; }
.laptop__lid { border: 7px solid #1d1814; border-bottom-width: 9px; border-radius: 14px 14px 3px 3px; overflow: hidden; background: #000; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.laptop__lid img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.laptop__base { height: 11px; margin-inline: -4%; border-radius: 0 0 14px 14px; background: linear-gradient(#dcd5cc, #bdb5aa); position: relative; box-shadow: 0 18px 30px rgba(23,19,16,.16); }
.laptop__base::after { content: ""; position: absolute; inset-inline: 40%; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: #a39b90; }
.phone {
  position: absolute; aspect-ratio: 9 / 19; background: #1d1814; padding: 4.5%; border-radius: 17% / 8%;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #3a322b; overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 13% / 6.2%; }
.phone::before { content: ""; position: absolute; z-index: 2; top: 2.4%; inset-inline: 38%; height: 1.6%; border-radius: 99px; background: #0c0a08; }

.stage__laptop { top: 7%; inset-inline-start: 0; width: 86%; }
.stage__phone--a { width: 25%; inset-inline-end: 1%; bottom: 0; z-index: 3; }
.stage__phone--b { width: 21%; inset-inline-end: 23%; bottom: -5%; z-index: 2; transform: rotate(-6deg); }
[dir="rtl"] .stage__phone--b { transform: rotate(6deg); }
.chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px;
  background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  font-size: .82rem; font-weight: 600; white-space: nowrap; 
}
.chip i { width: 18px; height: 18px; color: var(--orange); display: inline-flex; }
.chip i svg { width: 100%; height: 100%; }
.chip--1 { top: 0; inset-inline-start: 6%; }
.chip--2 { top: 30%; inset-inline-end: -1%; animation-delay: -2s; }
.chip--3 { bottom: 12%; inset-inline-start: 0; animation-delay: -4s; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 620px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) {
  .chip { font-size: .72rem; padding: 7px 11px 7px 9px; }
  .chip i { width: 15px; height: 15px; }
  .chip--2 { inset-inline-end: 0; }
  .hero__cta .btn { flex: 1 1 100%; }
  .stage { aspect-ratio: 1 / 1; }
  .stage__laptop { width: 92%; }
}

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__head { display: grid; gap: 20px; justify-items: start; }
.quote { margin-top: 10px; padding-inline-start: 22px; border-inline-start: 3px solid var(--orange); font-size: 1.15rem; font-weight: 500; color: var(--ink); max-width: 40ch; }
.pillars { display: grid; gap: 16px; }
.pillar {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange-100); }
.pillar__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-600); }
.pillar__ico svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.25rem; margin-bottom: 4px; }
.pillar p { color: var(--muted); font-size: .98rem; line-height: 1.7; }
@media (max-width: 880px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.service {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 80px); align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: clamp(24px, 4.5vw, 64px);
  box-shadow: var(--shadow-sm);
}
.service + .service { margin-top: 28px; }
.service--flip .service__visual { order: -1; }
.service__copy { display: grid; gap: 18px; justify-items: start; }
.service__idx { font-family: var(--font-en); font-size: .85rem; font-weight: 600; color: var(--orange-ink); background: var(--orange-50); padding: 4px 12px; border-radius: 999px; }
.service__text { color: var(--ink-2); max-width: 54ch; }
.ticks { display: grid; gap: 10px; margin-block: 4px; }
.ticks--2 { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.ticks li { position: relative; padding-inline-start: 30px; font-weight: 500; line-height: 1.55; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .22em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231A1613' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5'/%3E%3C/svg%3E") center/100% no-repeat;
}
.note { font-size: .92rem; color: var(--muted); padding: 12px 16px; background: var(--warm); border-radius: 12px; border: 1px dashed #E3D6C8; }
.note--accent { background: var(--orange-50); border-color: var(--orange-100); color: var(--orange-ink); font-weight: 600; }
.service__visual { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: clamp(18px, 4vw, 44px) clamp(18px, 4vw, 40px) clamp(18px, 4vw, 40px); border-radius: 24px; background: var(--warm); border: 1px solid var(--line); overflow: hidden; }

/* Laptop + phone pair, used in services and portfolio */
.devices { position: relative; width: 100%; aspect-ratio: 1.5 / 1; }
.devices .laptop { top: 0; inset-inline-start: 0; width: 85%; }
.devices .phone { width: 24%; inset-inline-end: 0; bottom: 0; }

/* Illustrative store UI inside the devices (generic layout drawing) */
.laptop__lid, .phone__ui { container-type: inline-size; }
.phone__ui { width: 100%; height: 100%; border-radius: 13% / 6.2%; overflow: hidden; background: #fff; }
.ui { --u: 1cqw; height: 100%; display: flex; flex-direction: column; gap: calc(2 * var(--u)); padding: calc(2.2 * var(--u)); background: #fff; }
.ui--2 { --u: 1.9cqw; padding-top: calc(5 * var(--u)); }
.ui i, .ui b { display: block; }
.ui-top { display: flex; align-items: center; justify-content: space-between; gap: calc(2 * var(--u)); }
.ui-logo { width: calc(8 * var(--u)); height: calc(2.6 * var(--u)); background: var(--orange); border-radius: calc(.7 * var(--u)); }
.ui-nav { display: flex; gap: calc(1.8 * var(--u)); margin-inline-end: auto; margin-inline-start: calc(4 * var(--u)); }
.ui-nav i { width: calc(5 * var(--u)); height: calc(1 * var(--u)); background: #e6ddd3; border-radius: 99px; }
.ui--2 .ui-nav { display: none; }
.ui-cart { width: calc(2.8 * var(--u)); height: calc(2.8 * var(--u)); border-radius: 50%; background: var(--ink); }
.ui-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: calc(2 * var(--u)); align-items: center; padding: calc(3 * var(--u)); background: var(--orange-50); border-radius: calc(1.6 * var(--u)); }
.ui--2 .ui-hero { grid-template-columns: 1fr; }
.ui--2 .ui-art { display: none; }
.ui-l { height: calc(1.2 * var(--u)); width: 70%; margin-bottom: calc(1 * var(--u)); background: #e0d6cb; border-radius: 99px; }
.ui-l--w { height: calc(2.2 * var(--u)); width: 90%; background: var(--ink); }
.ui-l--s { width: 55%; }
.ui-btn { width: calc(9 * var(--u)); height: calc(2.6 * var(--u)); margin-top: calc(1.6 * var(--u)); background: var(--orange); border-radius: 99px; }
.ui-art { aspect-ratio: 1.5; background: #fff; border: 1px solid var(--orange-100); border-radius: calc(1.4 * var(--u)); position: relative; }
.ui-art::after { content: ""; position: absolute; inset: 22% 30%; border-radius: 50%; background: var(--orange-100); }
.ui-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--c), 1fr); gap: calc(1.8 * var(--u)); }
.ui-card { display: flex; flex-direction: column; gap: calc(.9 * var(--u)); min-height: 0; padding: calc(1.2 * var(--u)); border: 1px solid #eee5dc; border-radius: calc(1.4 * var(--u)); background: #fff; }
.ui-img { flex: 1; min-height: 0; background: var(--warm); border-radius: calc(1 * var(--u)); border: 1px solid #f3ebe3; }
.ui-p { width: 42%; height: calc(1.5 * var(--u)); background: var(--orange); border-radius: 99px; }
@media (max-width: 960px) {
  .service { grid-template-columns: 1fr; }
  .service--flip .service__visual { order: 0; }
}
@media (max-width: 560px) {
  .ticks--2 { grid-template-columns: 1fr; }
  .service { border-radius: 24px; }
}

/* ---------- Pricing ---------- */
.pricing__note { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 16px; border-radius: 999px; background: var(--orange-50); color: var(--orange-ink); font-weight: 600; font-size: .92rem; }
.pricing__note i { width: 18px; height: 18px; display: inline-flex; }
.pricing__note svg { width: 100%; height: 100%; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: 34px 30px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d9d0c5; }
.plan__name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan__name h3 { font-size: 1.5rem; }
.plan__sub { font-family: var(--font-en); font-size: .85rem; color: var(--muted); font-weight: 500; }
.plan__desc { color: var(--muted); font-size: .98rem; margin-top: -10px; min-height: 3.2em; }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-block: 18px; border-block: 1px dashed #d9d0c5; }
.plan__amount { font: 800 clamp(2.6rem, 4vw, 3.3rem)/1 var(--font-en); letter-spacing: -.03em; }
.plan__cur { font: 700 1rem var(--font-en); color: var(--orange-ink); }
.plan__per { font-size: .95rem; color: var(--muted); font-family: var(--font); }
.plan__list { display: grid; gap: 14px; flex: 1; }
.plan__list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .98rem; line-height: 1.55; }
.plan__list i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-600); margin-top: 1px; }
.plan__list i svg { width: 13px; height: 13px; }
.plan .btn { width: 100%; }
.plan--featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.plan--featured:hover { transform: translateY(-16px); border-color: var(--ink); }
.plan--featured .plan__sub, .plan--featured .plan__desc, .plan--featured .plan__per { color: #b9aea3; }
.plan--featured .plan__price { border-color: #3a322b; }
.plan--featured .plan__cur { color: var(--orange); }
.plan--featured .plan__list i { background: rgba(255,122,1,.16); color: var(--orange); }
.plan__badge {
  position: absolute; top: -14px; inset-inline-start: 28px; padding: 6px 14px; border-radius: 999px; background: var(--orange); color: #1b1109;
  font-size: .8rem; font-weight: 700;
}
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan--featured { transform: none; order: -1; }
  .plan--featured:hover { transform: translateY(-6px); }
  .plan__desc { min-height: 0; }
}

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.why .head { position: sticky; top: calc(var(--nav-h) + 24px); margin-bottom: 0; }
.why__list { display: grid; counter-reset: why; }
.why__item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); counter-increment: why; transition: padding .3s var(--ease); }
.why__item:first-child { padding-top: 0; }
.why__item:last-child { border-bottom: 0; }
.why__item::before { content: counter(why, decimal-leading-zero); font: 600 .95rem var(--font-en); color: var(--orange-ink); padding-top: 6px; }
.why__item h3 { font-size: 1.3rem; margin-bottom: 4px; }
.why__item p { color: var(--muted); }
@media (max-width: 880px) { .why { grid-template-columns: 1fr; } .why .head { position: static; margin-bottom: 20px; } }

/* ---------- How ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 28px; inset-inline: 10%; height: 2px; background: repeating-linear-gradient(90deg, #d9d0c5 0 8px, transparent 8px 16px); }
.step { position: relative; display: grid; gap: 14px; justify-items: center; text-align: center; }
.step__n {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff;
  border: 2px solid var(--ink); font: 700 1rem var(--font-en); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.step:hover .step__n, .step.is-in .step__n { background: var(--orange); border-color: var(--orange); color: #1b1109; }
.step:hover .step__n { transform: scale(1.08); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .95rem; line-height: 1.65; max-width: 24ch; }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin-inline: auto; }
  .steps::before { top: 28px; bottom: 28px; inset-inline: auto; inset-inline-start: 27px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #d9d0c5 0 8px, transparent 8px 16px); }
  .step { grid-template-columns: 56px 1fr; justify-items: start; text-align: start; column-gap: 20px; padding-bottom: 28px; }
  .step__n { grid-row: span 2; }
  .step h3 { align-self: end; }
  .step p { align-self: start; margin-top: -10px; max-width: none; }
}

/* ---------- Work ---------- */
.works { display: grid; gap: 28px; }
.work { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(22px, 4vw, 56px); align-items: center; padding: clamp(18px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 30px; transition: box-shadow .4s; }
.work:hover { box-shadow: var(--shadow); }
.work--flip { grid-template-columns: .7fr 1.3fr; }
.work--flip .work__media { order: 2; }
.work__media { padding: clamp(18px, 4vw, 44px) clamp(18px, 4vw, 40px) clamp(18px, 4vw, 40px); background: var(--warm); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.work__body { display: grid; gap: 14px; align-content: center; justify-items: start; }
.work__type { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: var(--orange-50); color: var(--orange-ink); font-size: .82rem; font-weight: 600; }
.work__body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.work__body p { color: var(--muted); }
.vtabs { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--warm); }
.vtab { border: 0; background: none; padding: 8px 20px; border-radius: 999px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.vtab:hover { color: var(--ink); }
.vtab.is-on { background: var(--ink); color: #fff; }
.work__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 960px) {
  .work, .work--flip { grid-template-columns: 1fr; }
  .work--flip .work__media { order: 0; }
}

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin-inline: auto; }
.client { display: block; border: 1px solid var(--line); border-radius: 26px; background: #fff; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.client:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d9d0c5; }
.client__logo { height: 190px; display: grid; place-items: center; padding: 28px; background: #fff; }
.client__logo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transition: transform .45s var(--ease); }
.client__logo img[data-blend] { mix-blend-mode: multiply; }
.client:hover .client__logo img { transform: scale(1.05); }
.client__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-top: 1px solid var(--line); }
.client__meta strong { font-weight: 600; font-size: 1rem; }
.client__meta span { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-ink); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.client__meta svg { width: 14px; height: 14px; }
[dir="rtl"] .client__meta svg { transform: scaleX(-1); }
@media (max-width: 820px) { .clients { grid-template-columns: 1fr; max-width: 460px; } .client__logo { height: 160px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .head { position: sticky; top: calc(var(--nav-h) + 24px); margin-bottom: 0; }
.faq__list { display: grid; gap: 12px; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: border-color .3s, box-shadow .3s; }
.acc.is-open { border-color: #d9d0c5; box-shadow: var(--shadow-sm); }
.acc__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: start; font-weight: 600; font-size: 1.05rem; line-height: 1.5; border-radius: 20px; }
.acc__ico { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--warm); transition: background .3s, transform .35s var(--ease); }
.acc__ico::before, .acc__ico::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease); }
.acc__ico::after { transform: rotate(90deg); }
.acc.is-open .acc__ico { background: var(--orange); }
.acc.is-open .acc__ico::after { transform: rotate(0); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 24px 22px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 880px) { .faq { grid-template-columns: 1fr; } .faq .head { position: static; margin-bottom: 20px; } }

/* ---------- Contact ---------- */
.contact { background: var(--warm); }
.cbox { display: grid; grid-template-columns: .85fr 1.15fr; max-width: 1040px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); overflow: hidden; }
.cinfo { display: grid; gap: 24px; align-content: start; padding: clamp(24px, 4vw, 44px); background: var(--orange-50); border-inline-end: 1px solid var(--line); }
.cinfo h3, .form h3 { font-size: 1.35rem; }
.channels { display: grid; }
.channels li + li { border-top: 1px solid #F1DFCB; }
.channel { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 0; text-align: start; font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer; transition: color .2s; }
.channel:hover .channel__txt strong { color: var(--orange-ink); }
.channel__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--orange-600); border: 1px solid #F1DFCB; }
.channel__ico svg { width: 22px; height: 22px; }
.channel__txt { display: grid; gap: 2px; min-width: 0; }
.channel__txt small { font-size: .88rem; font-weight: 600; color: var(--muted); }
.channel__txt strong { font-size: 1.08rem; font-weight: 700; text-align: start; overflow-wrap: anywhere; transition: color .2s; }
.channel__act { margin-inline-start: auto; font-size: .85rem; font-weight: 700; color: var(--orange-ink); }
.follow { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid #F1DFCB; }
.follow h4 { font-size: .95rem; color: var(--muted); font-weight: 600; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #F1DFCB; background: #fff; color: var(--ink); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.social svg { width: 20px; height: 20px; }
.social:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); transform: translateY(-3px); }

.form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 44px); align-content: start; }
.form__hint { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-top: -8px; }
.form label { display: grid; gap: 8px; font-size: .95rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; padding: 13px 15px; border: 1.5px solid #E3D6C8; border-radius: 10px; background: #fff; font-weight: 400; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,121,0,.16); }
.form textarea { resize: vertical; min-height: 110px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.form__alt { font-size: .95rem; font-weight: 600; color: var(--orange-ink); border-bottom: 1.5px solid currentColor; padding-bottom: 1px; cursor: pointer; }
@media (max-width: 860px) { .cbox { grid-template-columns: 1fr; } .cinfo { border-inline-end: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } .form__actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { padding-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.5fr .8fr .9fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__brand img { height: 48px; width: auto; }
.footer__brand p { color: var(--muted); max-width: 36ch; font-size: .95rem; line-height: 1.7; }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: .96rem; }
.footer__col h4 { font-size: .85rem; letter-spacing: .04em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.footer__col a { color: var(--ink-2); width: fit-content; transition: color .2s; cursor: pointer; }
.footer__col a:hover { color: var(--orange-ink); }
.footer__col .socials { margin-top: 6px; }
.footer__col .social { width: 40px; height: 40px; color: var(--ink); border-color: var(--line); }
.footer__col .social svg { width: 18px; height: 18px; }
.footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.totop { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.totop i { width: 16px; height: 16px; display: inline-flex; transition: transform .25s var(--ease); }
.totop:hover i { transform: translateY(-3px); }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@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; }
}

/* Clear separation between sections */
main > section + section { border-top: 1px solid var(--line); }
.chip { animation: none; }

/* IT solutions panel */
.it-panel { width: min(100%, 420px); display: grid; gap: 14px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.it-top { display: flex; align-items: center; gap: 16px; padding-bottom: 8px; }
.it-ico { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--orange); color: var(--ink); }
.it-ico svg { width: 28px; height: 28px; }
.it-lines { flex: 1; }
.it-lines i, .it-row i { display: block; height: 10px; border-radius: 99px; background: #E9DFD4; }
.it-lines i + i { margin-top: 10px; }
.it-lines .w1 { width: 70%; background: var(--ink); height: 12px; }
.it-lines .w2, .it-row .w2 { width: 50%; }
.it-row .w3 { width: 72%; } .it-row .w4 { width: 60%; }
.it-row { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.it-row span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-600); }
.it-row span svg { width: 14px; height: 14px; }

/* Intro video */
.player { position: relative; max-width: 1040px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #0d1117; box-shadow: var(--shadow-lg); }
.player video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.player__big { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--orange); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease), opacity .3s; }
.player__big:hover { transform: scale(1.08); }
.player__big svg { width: 30px; height: 30px; margin-inline-start: 3px; }
.player__big.is-hidden { opacity: 0; pointer-events: none; transform: scale(.8); }
.player__bar { position: absolute; inset-inline: 0; bottom: 0; display: flex; gap: 10px; padding: 16px; justify-content: flex-start; }
.pbtn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(13,17,23,.72); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.pbtn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); transform: translateY(-2px); }
.pbtn svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .player { border-radius: 20px; } .player__big { width: 68px; height: 68px; } .pbtn { width: 42px; height: 42px; } }

/* Contact form states */
.form__status { min-height: 1.5em; font-weight: 600; font-size: .95rem; margin: 0; }
.form__status.is-ok { color: #1D7A3B; }
.form__status.is-err { color: #B3261E; }
