/* =========================================================================
   Yasin Lafi — Portfolio (TechAI-inspired)
   Palette pulled from the TechAI demo:
   cream #f5f3ef · near-black #161616 · accent #ef4823 · text #666
   Fonts: Anta (display) + DM Sans (body)
   ========================================================================= */

:root {
  --bg:        #f5f3ef;
  --bg-2:      #efeae1;
  --dark:      #161616;
  --dark-2:    #1e1e1e;
  --dark-3:    #262626;

  --ink:       #161616;
  --text:      #666666;
  --muted:     #8d8a84;
  --on-dark:   #d7d4cd;
  --on-dark-2: #9b988f;

  --accent:    #ef4823;
  --accent-2:  #d63d1c;
  --accent-soft:#fbe4dc;

  --line:      #e3ddd2;
  --line-2:    #ece6db;
  --line-dark: rgba(255,255,255,.10);

  --sh-sm: 0 2px 12px rgba(22,22,22,.05);
  --sh-md: 0 16px 40px rgba(22,22,22,.10);
  --sh-lg: 0 30px 70px rgba(22,22,22,.14);

  --f-head: 'Anta', 'Segoe UI', sans-serif;
  --f-body: 'DM Sans', 'Segoe UI', sans-serif;

  --container: 1200px;
  --radius: 12px;
  --radius-lg: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);       /* hover/press/repeatable UI motion */
  --ease-entrance: cubic-bezier(.16, 1, .3, 1); /* one-time entrances: hero, reveals */
  --ease-snap:     cubic-bezier(.5, 0, .1, 1);  /* presses, toggles, binary switches */
  --dur-instant: 120ms;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--f-body); font-size: 16px; line-height: 1.75; color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea, button { font: inherit; }
h1,h2,h3,h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.12; font-weight: 400; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--dark); }

/* Section headings */
.section__head { max-width: 740px; margin: 0 auto 60px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-body); font-size: 12.5px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.eyebrow i { font-style: normal; font-size: 11px; color: var(--accent); }
.section__title { font-size: clamp(28px, 6vw, 46px); font-weight: 400; letter-spacing: -.5px; color: var(--ink); }
.section__title--left { text-align: left; }
.section__title--light { color: #fff; }
.section__title .ac { color: var(--accent); }
.section__title .ast { color: var(--accent); }
.section__lead { margin-top: 20px; font-size: 17px; color: var(--text); line-height: 1.7; }
.section__lead--light { color: var(--on-dark-2); }

/* Buttons (pill + circular icon) */
.btn { display: inline-flex; align-items: center; gap: 11px; font-family: var(--f-body); font-weight: 600; font-size: 14.5px; padding: 11px 12px 11px 24px; border-radius: 50px; transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .15s var(--ease-snap); border: 1.5px solid transparent; white-space: nowrap; }
.btn .btn__ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; transition: transform .3s var(--ease-snap), background .3s var(--ease); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(239,72,35,.35), 0 0 0 1.5px #fff inset; }
.btn .btn__ic svg { width: 16px; height: 16px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--sm { padding: 9px 9px 9px 18px; font-size: 13px; }
.btn--sm .btn__ic { width: 26px; height: 26px; }
.btn--lg { padding: 13px 14px 13px 28px; font-size: 15px; }
.btn--lg .btn__ic { width: 34px; height: 34px; }
.btn--block { width: 100%; justify-content: center; }

.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary .btn__ic { background: #fff; }
.btn--primary .btn__ic svg { stroke: var(--accent); }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(239,72,35,.32); }
.btn--primary:hover .btn__ic { transform: rotate(-45deg); }
.btn--primary:active { transform: translateY(0) scale(.97); box-shadow: 0 6px 16px rgba(239,72,35,.28); transition-duration: var(--dur-instant); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); padding: 13px 24px; }
.btn--ghost .wa { width: 19px; height: 19px; color: #4fce8d; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0) scale(.97); transition-duration: var(--dur-instant); }

/* ===================================================================== */
/* HEADER                                                                */
/* ===================================================================== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background .35s, box-shadow .35s, border-color .35s; border-bottom: 1px solid transparent; }
/* Dark, translucent bar on scroll — not a white one, so the header always
   reads consistently against the dark hero AND the light sections below. */
.header.is-stuck { background: rgba(22,22,22,.75); backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.35); border-color: rgba(255,255,255,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 22px; transition: min-height .3s; }
.header.is-stuck .header__inner { min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px; overflow: hidden; display: block; box-shadow: 0 6px 18px rgba(239,72,35,.22); transition: width .3s var(--ease), height .3s var(--ease); }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__name { font-family: var(--f-head); font-size: 22px; letter-spacing: .5px; color: currentColor; transition: font-size .3s var(--ease); }
.brand__name b { color: var(--accent); font-weight: 400; }
.header.is-stuck .brand__mark { width: 38px; height: 38px; }
.header.is-stuck .brand__name { font-size: 20px; }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link { font-family: var(--f-body); font-weight: 500; font-size: 15px; color: rgba(255,255,255,.82); padding: 9px 15px; border-radius: 8px; position: relative; transition: color .25s; }
.nav__link::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease-snap); }
[dir="rtl"] .nav__link::after { transform-origin: right; }
.nav__link:hover, .nav__link.active { color: #fff; }
.nav__link.active::after, .nav__link:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 42px; height: 42px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border-radius: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__close { display: none; }
.nav__cta { display: none; }

/* Dimmed backdrop behind the mobile drawer — the element itself is created
   by main.js on every load; these styles only matter once the drawer opens.
   z-index must stay BELOW the header's 1000: the drawer lives inside the
   fixed header (its own stacking context), so anything above 1000 would
   dim the drawer itself, not just the page behind it. */
.nav-overlay { position: fixed; inset: 0; z-index: 990; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ===================================================================== */
/* HERO                                                                  */
/* ===================================================================== */
/* Bottom padding grew to give the (recently bigger + lower-translated) robot
   and its contact-shadow room to render before the section's overflow:hidden
   boundary — the shadow was getting clipped off, which read as "floating". */
.hero { position: relative; background: var(--dark); color: #fff; text-align: center; padding: 172px 0 256px; overflow: hidden; }
/* Static background (was an autoplaying video — the continuous decode cost
   was adding to the page's overall weight/lag, so it's now a fixed image). */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--dark) url('../assets/videos/hero-poster.jpg') center/cover no-repeat; filter: brightness(.5) saturate(.9); }
.hero-video__overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  radial-gradient(60% 55% at 50% 46%, rgba(18,18,18,.55), transparent 72%),
  linear-gradient(180deg, rgba(18,18,18,.66) 0%, rgba(18,18,18,.42) 42%, rgba(18,18,18,.64) 100%),
  radial-gradient(130% 120% at 50% 45%, transparent 46%, rgba(0,0,0,.58) 100%); }
.hero__glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; animation: glow-breathe 9s ease-in-out infinite; background:
  radial-gradient(55% 50% at 74% 6%, rgba(239,72,35,.40), transparent 62%),
  radial-gradient(48% 46% at 10% 96%, rgba(239,72,35,.30), transparent 60%),
  radial-gradient(42% 42% at 96% 100%, rgba(239,72,35,.20), transparent 60%); }
@keyframes glow-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .5; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0); background-size: 30px 30px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 78%); }
.hero__inner {
  position: relative; z-index: 3; width: 100%; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.18fr 0.82fr; gap: 0;
  align-items: center; text-align: left;
}
.hero__col { min-width: 0; position: relative; z-index: 3; }

/* ---- Android robot — exact user-tuned placement (shoulder under "Android apps") ----
   z-index 2 keeps it BEHIND the text column (z-index 3) so the headline stays readable.
   Grounding is calibrated to the PNG (848x1264): the feet end ~5.85% above the image
   bottom and are centred at ~58% of the width, so the contact shadow lands under the
   soles instead of floating below the frame — that gap was what read as "طافي في الهوا". */
.hero-visual.hero-android-visual {
  position: relative; z-index: 2; align-self: end; justify-self: start;
  width: 100%; max-width: 430px; pointer-events: none;
  /* translate in % (not px) so the pull scales WITH the box's own size.
     Tuned live via the temp robot tuner (bigger robot, per user request). */
  transform: translate(-53%, 19%) scale(1.55);
}
/* Two separate robot images — one per language, so RTL uses a pre-flipped
   asset instead of a scaleX(-1) mirror (avoids the flip fighting the layout).
   Only the matching one is shown per direction. */
.robot-img { display: block; }
.robot-img--rtl { display: none; }
[dir="rtl"] .robot-img--ltr { display: none; }
[dir="rtl"] .robot-img--rtl { display: block; }
/* lit by the scene's warm upper-right key: directional dark shadow + soft orange rim */
.hero-android-visual img {
  width: 100%; height: auto; display: block; position: relative; z-index: 1;
  filter:
    brightness(.98) contrast(1.03)
    drop-shadow(-9px 18px 24px rgba(0, 0, 0, 0.55))
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.40))
    drop-shadow(7px -5px 30px rgba(239, 72, 35, 0.22));
}
/* POWER CORE — a vertical light column rising behind the robot. Reuses the
   two .hero-android-case divs: --back = a WIDE soft beam, --front = a NARROW
   hot core line. BOTH z-index 0 (behind the img at z-index 1) so the robot
   always occludes the brightest centre — only the soft edges flare past his
   silhouette, which stops it haloing/washing out his outline.
   `bottom` is kept ABOVE the feet (18%/22%) so the column never bleeds onto
   the feet-grounding plinth/shadow — those live on .hero-android-visual's own
   ::before/::after and stay untouched. No frame, pure glow. */
.hero-android-case { position: absolute; pointer-events: none; inset: auto; }
.hero-android-case--back {
  z-index: 0;
  left: 50%; top: 16%; bottom: 9.5%;
  width: 76px; transform: translateX(-50%);
  background:
    linear-gradient(180deg, transparent 0%, rgba(239,72,35,.15) 16%, rgba(239,72,35,.26) 48%, rgba(239,72,35,.16) 80%, transparent 100%),
    radial-gradient(38% 60% at 50% 50%, rgba(255,141,92,.18), transparent 72%);
  filter: blur(24px);
  border-radius: 50%;
  mix-blend-mode: screen;
}
.hero-android-case--front {
  z-index: 0;
  left: 50%; top: 20%; bottom: 15.5%;
  width: 11px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 0%, rgba(255,180,140,.5) 22%, rgba(255,120,80,.8) 50%, rgba(255,180,140,.5) 78%, transparent 100%);
  filter: blur(8px);
  border-radius: 40px;
  mix-blend-mode: screen;
  animation: core-charge 6s ease-in-out infinite;
}
@keyframes core-charge {
  0%, 100% { opacity: .82; }
  50%      { opacity: 1; }
}
/* (Removed: the obsidian plinth disc under the feet — user asked to drop the
   "circle" under him. Only the soft contact shadow below remains so the feet
   still read as grounded rather than floating.) */
/* tightened contact shadow, anchored under the crossed ankles */
.hero-android-visual::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 58%; bottom: 3.6%; transform: translateX(-50%);
  width: 30%; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.72), rgba(0,0,0,.35) 55%, transparent 80%);
  filter: blur(4px);
}
/* Hero entrance — load-once stagger. .hero-android-visual is a SIBLING of
   .hero__col (not a descendant), so this never touches the robot's calibrated
   transform above — only its opacity fades in, on a delay, via JS adding
   .hero-loaded to .hero once (see main.js heroEntrance()). */
.hero__col > * { opacity: 0; transform: translateY(18px); }
.hero-loaded .hero__col > * {
  opacity: 1; transform: translateY(0);
  transition: opacity .6s var(--ease-entrance), transform .6s var(--ease-entrance);
}
.hero-android-visual { opacity: 0; transition: opacity .8s var(--ease-entrance) .32s; }
.hero-loaded .hero-android-visual { opacity: 1; }

.pill-avail { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-body); font-size: 12.5px; font-weight: 500; color: var(--on-dark); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); padding: 7px 16px; border-radius: 30px; margin-bottom: 26px; }
.pill-avail .dot { width: 8px; height: 8px; border-radius: 50%; background: #4fce8d; position: relative; }
.pill-avail .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: rgba(79,206,141,.4); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.eyebrow--light { color: var(--accent); }
.eyebrow--light i { color: var(--accent); }
.hero__title { font-size: clamp(34px, 9vw, 58px); font-weight: 400; line-height: 1.1; letter-spacing: -1px; color: #fff; margin-bottom: 24px; }
.hero__title .ac { color: var(--accent); }
.hero__title .ast { color: var(--accent); }
.hero__text { font-size: 18px; color: rgba(255,255,255,.74); line-height: 1.75; max-width: 540px; margin: 0 0 34px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; }

/* ===================================================================== */
/* STRIP                                                                 */
/* ===================================================================== */
.strip { background: var(--bg); border-bottom: 1px solid var(--line); }
.strip__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 50px; padding: 28px 24px; }
.strip__item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-head); font-size: 17px; color: var(--ink); }
.strip__ck { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.strip__ck svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ===================================================================== */
/* ABOUT                                                                 */
/* ===================================================================== */
.about__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.about__main .eyebrow { margin-bottom: 16px; }
.about__main .section__title { font-size: clamp(26px, 5.4vw, 40px); margin-bottom: 22px; }
.about__text { color: var(--text); font-size: 16.5px; line-height: 1.85; margin-bottom: 16px; }
.about__main .btn { margin-top: 12px; }
.about__card { position: relative; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 40px 36px; overflow: hidden; box-shadow: var(--sh-md); }
.about__card-num { position: absolute; top: 4%; right: 5%; font-family: var(--f-head); font-size: 60px; color: rgba(239,72,35,.28); line-height: 1; }
.about__card-title { color: #fff; font-size: 24px; margin-bottom: 24px; position: relative; z-index: 2; }
.check-list { display: flex; flex-direction: column; gap: 15px; position: relative; z-index: 2; }
.check-list li { display: flex; align-items: center; gap: 13px; font-size: 15.5px; font-weight: 500; color: var(--on-dark); }
.check-list .ck { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); position: relative; }
.check-list .ck::after { content: ""; position: absolute; left: 8px; top: 5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ===================================================================== */
/* SERVICES                                                              */
/* ===================================================================== */
/* flex + wrap + center (not grid) so a 5th/last-row card centers instead of
   leaving an empty gap where a 6th grid column would have been */
.services__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.svc { flex: 0 1 298px; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
/* top accent bar that draws in on hover (RTL-aware origin) */
.svc::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); z-index: 2; }
[dir="rtl"] .svc::after { transform-origin: right; }
.svc:hover::after { transform: scaleX(1); }
/* number is now a solid, readable accent index at the top (was a near-invisible watermark) */
.svc__num { display: block; font-family: var(--f-head); font-size: 22px; letter-spacing: 1px; color: var(--accent); line-height: 1; margin-bottom: 12px; transition: color .35s; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: transparent; }
.svc:active { transform: translateY(-3px); transition-duration: var(--dur-instant); }
.svc:hover .svc__num { color: var(--accent-2); }
/* richer icon: soft accent-tinted tile + accent stroke, fills solid on hover */
.svc__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; transition: all .35s var(--ease); }
.svc__ic svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.svc:hover .svc__ic { background: var(--accent); transform: translateY(-2px); }
.svc:hover .svc__ic svg { stroke: #fff; }
.svc__title { font-size: 18px; margin-bottom: 7px; color: var(--ink); }
.svc__text { color: var(--text); font-size: 13px; line-height: 1.6; }
/* detail chips — a divider then small feature pills */
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.svc__tags li { font-family: var(--f-body); font-size: 11px; font-weight: 500; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 30px; padding: 3px 10px; transition: border-color .3s, color .3s; }
.svc:hover .svc__tags li { border-color: rgba(239,72,35,.35); color: var(--ink); }

/* ===================================================================== */
/* WORK (dark)                                                           */
/* ===================================================================== */
.work__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.work { background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 34px 30px; transition: transform .35s var(--ease), border-color .35s; }
.work:hover { transform: translateY(-8px); border-color: rgba(239,72,35,.5); }
.work:active { transform: translateY(-3px); transition-duration: var(--dur-instant); }
.work__badge { width: 60px; height: 60px; border-radius: var(--radius-lg); display: grid; place-items: center; margin-bottom: 22px; transition: transform .3s var(--ease-snap); }
.work:hover .work__badge { transform: scale(1.06); }
.work__badge svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.work__badge--android { background: linear-gradient(140deg,#2f6e63,#214c45); }
.work__badge--qr { background: linear-gradient(140deg,var(--accent),#b53216); }
.work__badge--web { background: linear-gradient(140deg,#3a5f8a,#27405e); }
.work__type { font-family: var(--f-body); font-size: 11.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.work__title { font-size: 23px; color: #fff; margin: 9px 0 12px; }
.work__text { color: var(--on-dark-2); font-size: 14.5px; line-height: 1.7; margin-bottom: 20px; }
.work__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work__tags li { font-family: var(--f-body); font-size: 12px; font-weight: 500; color: var(--on-dark); background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); border-radius: 30px; padding: 5px 13px; }

/* ===================================================================== */
/* PROCESS                                                               */
/* ===================================================================== */
.process__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 28px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.step::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.step:hover { transform: translateY(-8px); box-shadow: var(--sh-md); border-color: transparent; }
.step:active { transform: translateY(-3px); transition-duration: var(--dur-instant); }
.step:hover::before { transform: scaleY(1); }
.step__no { display: block; font-family: var(--f-head); font-size: 46px; color: transparent; -webkit-text-stroke: 1.5px var(--line); margin-bottom: 16px; transition: -webkit-text-stroke-color .35s, color .35s; }
.step:hover .step__no { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step__title { font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.step__text { color: var(--text); font-size: 14px; line-height: 1.7; }

/* ===================================================================== */
/* WHY                                                                   */
/* ===================================================================== */
.why__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.why-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; transition: transform .3s var(--ease), box-shadow .3s; }
.why-item:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.why-item:active { transform: translateY(-3px); transition-duration: var(--dur-instant); }
.why-ic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.why-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.why-item h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.why-item p { font-size: 13.5px; color: var(--text); line-height: 1.6; }

/* ===================================================================== */
/* FAQ                                                                   */
/* ===================================================================== */
.faq__wrap { max-width: 840px; }
.accordion { display: flex; flex-direction: column; gap: 14px; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.acc.is-open { box-shadow: var(--sh-md); border-color: var(--accent); }
.acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; text-align: left; font-family: var(--f-head); font-weight: 400; font-size: 18px; color: var(--ink); transition: color .3s; }
.acc__head:hover { color: var(--accent); }
.acc__head:hover .acc__ic { transform: scale(1.08); }
.acc__ic { position: relative; width: 22px; height: 22px; flex: 0 0 auto; transition: transform .3s var(--ease-snap); }
.acc__ic::before, .acc__ic::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--accent); border-radius: 2px; transition: transform .35s var(--ease), opacity .35s; }
.acc__ic::before { width: 14px; height: 2px; transform: translate(-50%,-50%); }
.acc__ic::after { width: 2px; height: 14px; transform: translate(-50%,-50%); }
.acc.is-open .acc__ic::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.acc__panel { height: 0; overflow: hidden; transition: height .4s var(--ease); }
.acc__inner { padding: 0 26px 24px; opacity: 0; transition: opacity .25s var(--ease); }
.acc.is-open .acc__inner { opacity: 1; transition-delay: .12s; }
.acc__inner p { color: var(--text); font-size: 15px; line-height: 1.75; }

/* ===================================================================== */
/* CONTACT (dark)                                                        */
/* ===================================================================== */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: stretch; }
.contact__info { background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 42px 36px; }
.contact__info h3 { color: #fff; font-size: 24px; }
.contact__info > p { color: var(--on-dark-2); font-size: 15px; margin: 12px 0 28px; }
.contact__list { display: flex; flex-direction: column; gap: 20px; }
.contact__list li { display: flex; align-items: flex-start; gap: 15px; min-width: 0; }
.contact__ic { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); display: grid; place-items: center; }
.contact__ic svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact__ic svg[stroke="none"] { fill: var(--accent); stroke: none; }
.contact__list b { display: block; font-family: var(--f-body); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.contact__list li > span { font-size: 15px; color: var(--on-dark); overflow-wrap: break-word; word-break: break-word; }
.contact__list a { color: var(--on-dark); transition: color .25s; overflow-wrap: break-word; word-break: break-word; }
.contact__list a:hover { color: var(--accent); }
.contact__social { display: flex; gap: 10px; margin-top: 28px; }
.contact__social a { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); display: grid; place-items: center; transition: all .25s; }
.contact__social svg { width: 18px; height: 18px; fill: var(--on-dark-2); transition: fill .25s; }
.contact__social a:hover { background: var(--accent); border-color: var(--accent); }
.contact__social a:hover svg { fill: #fff; }

.contact__form { background: #fff; border-radius: var(--radius-lg); padding: 38px 36px; box-shadow: var(--sh-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--f-body); font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 8px; }
.form-group label span { color: var(--accent); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); transition: border-color .22s var(--ease), background-color .22s var(--ease), box-shadow .22s var(--ease); font-size: 15px; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(239,72,35,.12); }
.form-group .is-error { border-color: var(--accent); background: #fdf1ee; animation: field-shake .3s var(--ease-snap); }
@keyframes field-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.form-note { margin-top: 14px; font-size: 14.5px; font-weight: 600; text-align: center; }
.form-note.is-ok { color: #2f9e6f; }
.form-note.is-bad { color: var(--accent); }

/* ===================================================================== */
/* FOOTER                                                                */
/* ===================================================================== */
.footer { background: var(--dark); color: var(--on-dark-2); border-top: 1px solid var(--line-dark); }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; padding: 70px 24px 52px; }
.brand--footer { color: #fff; }
.footer__text { font-size: 14.5px; line-height: 1.8; margin: 22px 0 22px; color: var(--on-dark-2); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); display: grid; place-items: center; transition: all .25s; }
.footer__social svg { width: 18px; height: 18px; fill: var(--on-dark-2); transition: fill .25s; }
.footer__social a:hover { background: var(--accent); border-color: var(--accent); }
.footer__social a:hover svg { fill: #fff; }
.footer__title { color: #fff; font-family: var(--f-head); font-size: 16px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--accent); }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 14.5px; color: var(--on-dark-2); transition: all .25s; }
.footer__links a:hover { color: #fff; padding-left: 5px; }
.footer__cl { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.footer__cl li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--on-dark-2); }
.footer__cl svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer__cl svg[stroke="none"] { fill: var(--accent); stroke: none; }
.footer__cl a { transition: color .25s; }
.footer__cl a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid var(--line-dark); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; flex-wrap: wrap; }
.footer__bottom p { font-size: 13.5px; color: #7a766f; }

/* ===================================================================== */
/* BACK TO TOP                                                           */
/* ===================================================================== */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: var(--sh-md); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .35s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--accent-2); transform: translateY(-3px); }
.to-top:active { transform: translateY(-1px) scale(.92); transition-duration: var(--dur-instant); }
.to-top:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(239,72,35,.35), 0 0 0 5px #fff; }

/* ===================================================================== */
/* SCROLL REVEAL                                                         */
/* ===================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .55s var(--ease-entrance), transform .55s var(--ease-entrance); will-change: opacity, transform; }
.reveal--left { transform: translateX(-36px); }
.reveal--right { transform: translateX(36px); }
.reveal.in-view { opacity: 1; transform: translate(0,0); }

/* ===================================================================== */
/* ACCESSIBILITY — reduced motion                                        */
/* ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .pill-avail .dot::after { animation: none; }
}

/* ===================================================================== */
/* LANGUAGE TOGGLE                                                       */
/* ===================================================================== */
.lang-toggle { font-family: var(--f-body); font-weight: 600; font-size: 13px; padding: 8px 15px; border-radius: 50px; border: 1.5px solid rgba(255,255,255,.30); color: #fff; transition: all .25s var(--ease); line-height: 1; }
.lang-toggle:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* language switch crossfade — was an instant innerHTML snap */
body.lang-fading { transition: opacity .15s linear; opacity: 0; }

/* ===================================================================== */
/* ARABIC / RTL                                                          */
/* ===================================================================== */
[dir="rtl"] body, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea, [dir="rtl"] button, [dir="rtl"] .acc__head { font-family: 'Tajawal', sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .hero__title, [dir="rtl"] .section__title, [dir="rtl"] .svc__title,
[dir="rtl"] .work__title, [dir="rtl"] .step__title, [dir="rtl"] .about__card-title,
[dir="rtl"] .footer__title, [dir="rtl"] .contact__info h3 { font-family: 'Tajawal', sans-serif; font-weight: 800; letter-spacing: 0; line-height: 1.3; }
[dir="rtl"] .brand__name { font-family: 'Anta', sans-serif; }
[dir="rtl"] .lang-toggle { font-family: var(--f-body); }
[dir="rtl"] .eyebrow, [dir="rtl"] .work__type, [dir="rtl"] .contact__list b { letter-spacing: 0; }
[dir="rtl"] .section__title--left, [dir="rtl"] .about__main { text-align: right; }
/* the hero grid sets text-align:left as a base rule (not the direction-aware
   "start"), so it never flipped in RTL — the headline/paragraph stayed
   left-aligned in Arabic, which is why both lines shared the same left edge
   instead of hugging the right edge like normal Arabic text. */
[dir="rtl"] .hero__inner { text-align: right; }
[dir="rtl"] .acc__head { text-align: right; }
[dir="rtl"] .about__card-num { right: auto; left: 5%; }
/* hero robot in RTL: uses the PRE-FLIPPED image, so the transform is now a
   plain POSITIVE scale (no scaleX(-1) mirror). Size matches the LTR robot;
   fine-tune position via the temp tuner in Arabic mode. */
[dir="rtl"] .hero-visual.hero-android-visual { transform: translate(53%, 19%) scale(1.55); }
/* form labels are body text, not headings — they only need the Arabic font itself,
   the [dir="rtl"] body rule above doesn't reach them because .form-group label's
   own explicit font-family (line ~326) wins over an inherited value regardless
   of source order. */
[dir="rtl"] .form-group label { font-family: 'Tajawal', sans-serif; }
[dir="rtl"] .step::before { left: auto; right: 0; }
[dir="rtl"] .footer__title::after { left: auto; right: 0; }
[dir="rtl"] .footer__links a:hover { padding-left: 0; padding-right: 5px; }
[dir="rtl"] .btn .btn__ic svg { transform: scaleX(-1); }

/* Instagram outline icon (overrides the fill-based social styling) */
.contact__social svg.ig, .footer__social svg.ig { fill: none !important; stroke: var(--on-dark-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__social a:hover svg.ig, .footer__social a:hover svg.ig { stroke: #fff; }


/* =========================================================================
   SIGNATURE MOTION — additive pass
   1) [removed — broke the calibrated robot position, see below]
   2) Cursor-tracked spotlight glow inside cards (svc/work/why-item)
   3) Magnetic pull + glow on primary hero/CTA buttons
   4) Scroll-linked underline draw under section-title accent words
   5) Robot ambience: hero-hover floor-glow brighten
   All additive. Never touches .hero-visual.hero-android-visual's transform.
   No vw/vh, no viewport breakpoints. Gated by .prefersReduced (JS) +
   prefers-reduced-motion (CSS) below.
   ========================================================================= */

/* ---- 1) Headline word-swing reveal — REMOVED ---- */
/* Wrapping the headline into per-word spans (display:inline-block) and
   switching .hero__title .ac to inline-block subtly changed how the Arabic
   headline line-wraps, shifting which word sits under the robot and
   breaking its pixel-calibrated position (the robot ended up covering "و").
   The hero robot's placement is calibrated against this exact headline's
   exact line-wrap, so nothing that can alter that wrap is safe here — the
   headline now uses the same plain fade-up as the rest of .hero__col. */

/* ---- 2) Cursor-tracked spotlight inside cards ---- */
.svc, .work, .why-item { position: relative; isolation: isolate; }
.svc::before, .work::before, .why-item::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--sx,50%) var(--sy,50%), rgba(239,72,35,.14), transparent 70%);
  transition: opacity .35s var(--ease);
}
.work::before {
  background: radial-gradient(220px circle at var(--sx,50%) var(--sy,50%), rgba(239,72,35,.20), transparent 70%);
}
.svc:hover::before, .work:hover::before, .why-item:hover::before { opacity: 1; }
.svc > *, .work > *, .why-item > * { position: relative; z-index: 1; }

/* ---- 3) Magnetic pull + glow on primary CTAs ---- */
.btn--magnetic {
  --mx: 50%; --my: 50%;
  position: relative;
}
.btn--magnetic::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx) var(--my), rgba(255,255,255,.35), transparent 62%);
  opacity: 0; transition: opacity .25s var(--ease);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.btn--magnetic:hover::before { opacity: 1; }
.btn--ghost.btn--magnetic::before {
  background: radial-gradient(120px circle at var(--mx) var(--my), rgba(239,72,35,.30), transparent 62%);
}
/* keep press-state crisp — a click must never feel muted by a lingering magnetic offset */
.btn--magnetic:active { transform: scale(.97) !important; transition-duration: var(--dur-instant) !important; }

/* ---- 4) Scroll-linked underline draw on section-title accent words ---- */
.section__title .ac { position: relative; }
.section__title .ac::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -.06em;
  height: .07em; border-radius: 2px;
  background: var(--accent);
  transform: scaleX(var(--draw, 0));
  transform-origin: left;
  opacity: .85;
}
[dir="rtl"] .section__title .ac::before { transform-origin: right; }

/* ---- 5) Robot ambience: hover floor-glow brighten ---- */
/* REMOVED: a continuous filter/drop-shadow animation on the robot img was
   here (robot-glow-idle, infinite, forever). Animating drop-shadow is one of
   the heaviest CSS filter operations — running it non-stop for the entire
   page lifetime was the main cause of the reported lag. Dropped in favor of
   the cheap, bounded, hover-only glow below (transition, not a perpetual
   animation). */
/* ---- Reduced-motion fallbacks for the additions above ---- */
@media (prefers-reduced-motion: reduce) {
  .svc::before, .work::before, .why-item::before { display: none !important; }
  .btn--magnetic { transform: none !important; }
  .btn--magnetic::before { display: none !important; }
  .section__title .ac::before { transform: scaleX(1) !important; }
  .hero-android-case--front { animation: none !important; }
}

/* =========================================================================
   RESPONSIVE — tablet & mobile
   Desktop (>1100px) renders exactly as before; below that the layout
   reflows: grids collapse, the hero stacks (robot under the text), and the
   nav becomes a slide-in drawer (main.js already wires #navToggle/#navClose
   and the .nav-overlay — only these styles were missing).
   ========================================================================= */
@media (max-width: 1100px) {
  .about__grid { gap: 40px; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  /* --- mobile nav drawer --- */
  .nav {
    position: fixed; top: 0; bottom: 0; right: 0; z-index: 1200;
    width: min(320px, 86vw);
    background: var(--dark); border-left: 1px solid var(--line-dark); box-shadow: var(--sh-lg);
    display: flex; flex-direction: column; padding: 76px 22px 28px; overflow-y: auto;
    transform: translateX(105%); transition: transform .35s var(--ease);
  }
  [dir="rtl"] .nav { right: auto; left: 0; border-left: none; border-right: 1px solid var(--line-dark); transform: translateX(-105%); }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { display: block; font-size: 16.5px; padding: 13px 16px; border-radius: 10px; }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link.active { background: rgba(239,72,35,.16); color: #fff; }
  .nav__close {
    display: grid; place-items: center; position: absolute; top: 16px; right: 16px;
    width: 42px; height: 42px; font-size: 26px; line-height: 1; color: #fff;
    background: rgba(255,255,255,.07); border-radius: 10px;
  }
  [dir="rtl"] .nav__close { right: auto; left: 16px; }
  .nav__toggle { display: flex; }

  /* drawer-only CTA at the end of the link list */
  .nav__cta { display: block; margin-top: 18px; }
  .nav__cta .btn { width: 100%; justify-content: center; }

  .header__inner { min-height: 72px; }

  /* --- hero: robot sits BEHIND the headline (desktop-like composition),
     the text is overlaid on top with a shadow for legibility. This is what
     ties the robot to the words instead of leaving it floating in an empty
     dark block below the buttons. --- */
  .hero { padding: 88px 0 52px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 0 24px; position: relative; }
  [dir="rtl"] .hero__inner { text-align: center; }
  .hero__col { position: relative; z-index: 3; padding-top: 150px; }
  .hero__title, .hero__text, .hero__buttons, .pill-avail, .eyebrow { text-shadow: 0 2px 20px rgba(0,0,0,.92); }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__buttons { justify-content: center; }
  /* The robot figure is horizontally centered inside BOTH PNGs (the LTR asset
     and the pre-flipped RTL one — measured ~49% / ~51%), so a plain center is
     correct; no per-direction shift. Absolutely placed so the headline lands
     across its torso, exactly like the two-column desktop hero. */
  .hero-visual.hero-android-visual,
  [dir="rtl"] .hero-visual.hero-android-visual {
    position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    margin: 0; width: 300px; max-width: 80%; z-index: 2; opacity: .92;
  }

  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  /* --- compact phone scale: everything steps down one size --- */
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .section__lead { font-size: 15px; margin-top: 14px; }

  .header__cta { display: none; }
  .header__inner { min-height: 60px; }
  .brand__mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand__name { font-size: 18px; }
  .lang-toggle { font-size: 12px; padding: 7px 12px; }
  .nav__toggle { width: 38px; height: 38px; }

  .hero { padding: 100px 0 48px; }
  .hero__title { font-size: clamp(26px, 7.4vw, 40px); margin-bottom: 16px; }
  .hero__text { font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
  .pill-avail { font-size: 11.5px; padding: 6px 13px; margin-bottom: 18px; }
  .eyebrow { font-size: 11px; letter-spacing: 1.8px; margin-bottom: 16px; }
  .section__title { font-size: clamp(22px, 6vw, 34px); }
  .about__main .section__title { font-size: clamp(21px, 5.6vw, 32px); }
  .hero__col { padding-top: 142px; }
  .hero-visual.hero-android-visual,
  [dir="rtl"] .hero-visual.hero-android-visual { width: 280px; }
  .btn--lg { padding: 11px 12px 11px 22px; font-size: 14px; }
  .btn--lg .btn__ic { width: 30px; height: 30px; }

  /* Trust strip → tidy stacked cards (was a ragged row of centered items) */
  .strip__inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 20px 16px; }
  .strip__item { justify-content: center; gap: 10px; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--sh-sm); }
  .strip__ck { width: 22px; height: 22px; }
  .strip__ck svg { width: 12px; height: 12px; }

  .about__text { font-size: 15px; line-height: 1.8; }
  .about__card { padding: 26px 22px; }
  .about__card-title { font-size: 20px; margin-bottom: 18px; }
  .about__card-num { font-size: 44px; }
  .check-list { gap: 12px; }
  .check-list li { font-size: 14px; }
  .check-list .ck { width: 20px; height: 20px; }
  .check-list .ck::after { left: 7px; top: 4px; }

  .svc { padding: 18px; }
  .svc__num { font-size: 18px; margin-bottom: 10px; }
  .svc__ic { width: 40px; height: 40px; border-radius: 10px; }
  .svc__ic svg { width: 22px; height: 22px; }
  .svc__title { font-size: 16px; }
  .svc__text { font-size: 12.5px; }

  .process__grid { grid-template-columns: 1fr; gap: 14px; }
  .work__grid { grid-template-columns: 1fr; gap: 14px; }
  .step { padding: 22px 20px; }
  .step__no { font-size: 30px; margin-bottom: 8px; }
  .step__title { font-size: 17px; }
  .step__text { font-size: 13.5px; }

  .why-item { padding: 20px 18px; gap: 12px; }
  .why-ic { width: 34px; height: 34px; }
  .why-ic svg { width: 17px; height: 17px; }
  .why-item h3 { font-size: 16px; }
  .why-item p { font-size: 13px; }

  .accordion { gap: 10px; }
  .acc__head { font-size: 15px; padding: 16px 18px; }
  .acc__inner { padding: 0 18px 18px; }
  .acc__inner p { font-size: 14px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact__info, .contact__form { padding: 24px 20px; }
  .contact__info h3 { font-size: 19px; }
  .contact__info > p { font-size: 14px; margin: 10px 0 20px; }
  .contact__list { gap: 14px; }
  .contact__list li > span, .contact__list a { font-size: 14px; }
  .contact__ic { width: 40px; height: 40px; }
  .contact__ic svg { width: 19px; height: 19px; }
  .contact__social a { width: 38px; height: 38px; }
  .form-group label { font-size: 13px; }
  .form-group input, .form-group select, .form-group textarea { padding: 11px 14px; font-size: 14px; }
  .form-group textarea { min-height: 100px; }

  .footer__grid { gap: 30px; padding: 48px 18px 36px; }
  .footer__text { font-size: 13.5px; margin: 16px 0; }
  .footer__title { font-size: 14.5px; margin-bottom: 16px; }
  .footer__links { gap: 9px; }
  .footer__links a { font-size: 13.5px; }
  .footer__cl { gap: 10px; margin-bottom: 18px; }
  .footer__cl li { font-size: 13.5px; }
  .footer__social a { width: 38px; height: 38px; }
  .footer__bottom p { font-size: 12px; }

  .to-top { width: 42px; height: 42px; }
  .to-top svg { width: 19px; height: 19px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero__inner { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 30px; }
  .hero { padding: 84px 0 40px; }
  .hero__col { padding-top: 132px; }
  .hero-visual.hero-android-visual,
  [dir="rtl"] .hero-visual.hero-android-visual { width: 260px; }
  .why__grid { grid-template-columns: 1fr; gap: 12px; }
  .services__grid { gap: 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .svc { flex-basis: 100%; }
  .hero__buttons { gap: 10px; }
  .hero__buttons .btn { width: 100%; justify-content: center; }
  .to-top { right: 14px; bottom: 14px; }

  /* one more notch smaller on the cards so they sit comfortably on a phone */
  .svc { padding: 16px; }
  .step { padding: 20px 18px; }
  .why-item { padding: 18px 16px; }
  .about__card { padding: 24px 20px; }
  .contact__info, .contact__form { padding: 22px 18px; }
}
