/* ============================================================
   Active Digit — site.css
   Clean professional digital agency design
   Brand: navy #1B3A6E + lime #C5DA2C (from real logo)
   ============================================================ */

:root {
  /* Brand colors — pulled from the actual logo */
  --navy:       #1B3A6E;
  --navy-dark:  #142C53;
  --navy-soft:  #E8EEF6;
  --lime:       #C5DA2C;
  --lime-dark:  #A8BD22;
  --lime-soft:  #F4F8D5;

  /* Neutrals */
  --black:      #0F1729;
  --gray-900:   #1F2937;
  --gray-700:   #374151;
  --gray-500:   #6B7280;
  --gray-400:   #9CA3AF;
  --gray-200:   #E5E7EB;
  --gray-100:   #F3F4F6;
  --gray-50:    #F9FAFB;
  --white:      #FFFFFF;

  /* WhatsApp */
  --wa:         #25D366;

  /* Typography */
  --font:       'Tajawal', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-num:   'Space Grotesk', ui-monospace, monospace;

  /* Spacing */
  --pad:        clamp(1.25rem, 4vw, 4rem);
  --max:        1280px;
  --gap:        clamp(2.5rem, 7vw, 7rem);

  /* Radii */
  --r-sm:       8px;
  --r-md:       14px;
  --r-lg:       24px;
  --r-pill:     999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(15,23,41,0.06), 0 1px 3px rgba(15,23,41,0.08);
  --sh-2: 0 4px 12px rgba(15,23,41,0.06), 0 2px 4px rgba(15,23,41,0.04);
  --sh-3: 0 18px 40px rgba(15,23,41,0.08), 0 4px 12px rgba(15,23,41,0.05);
  --sh-4: 0 30px 60px -20px rgba(15,23,41,0.25);

  /* Motion */
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:     180ms;
  --t-base:     320ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--lime); color: var(--navy); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: clamp(4rem, 9vw, 7rem); }
.sec-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--black); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.2; }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 700;
  color: var(--navy); text-transform: uppercase; letter-spacing: 0.08em;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--lime); border-radius: 2px;
}

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.8; color: var(--gray-500);
}

.text-num { font-family: var(--font-num); font-feature-settings: 'tnum' 1; }
.text-lime { color: var(--lime-dark); }
.text-navy { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-weight: 700; font-size: 0.95rem;
  border-radius: var(--r-pill);
  transition: transform var(--t-base) var(--ease), background var(--t-base), color var(--t-base), box-shadow var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(27,58,110,0.35); }

.btn--lime { background: var(--lime); color: var(--navy); }
.btn--lime:hover { background: var(--lime-dark); transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(197,218,44,0.5); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--gray-200); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy-soft); }

.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1FA855; transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(37,211,102,0.5); }

.btn--lg { padding: 1.1rem 1.85rem; font-size: 1rem; }
.btn__arr { display: inline-block; transition: transform var(--t-base) var(--ease); }
[dir="rtl"] .btn__arr { transform: scaleX(-1); }
.btn:hover .btn__arr { transform: translateX(-4px); }
[dir="rtl"] .btn:hover .btn__arr { transform: scaleX(-1) translateX(-4px); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.hdr.is-scrolled { border-bottom-color: var(--gray-200); background: rgba(255,255,255,0.95); }
.hdr__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 78px;
}
.hdr__logo { display: inline-flex; align-items: center; }
.hdr__logo img { height: 44px; width: auto; mix-blend-mode: multiply; }
.hdr.is-scrolled .hdr__logo img { mix-blend-mode: normal; }

.hdr__nav { display: flex; align-items: center; gap: 2rem; }
.hdr__nav a {
  font-size: 0.9375rem; font-weight: 500;
  color: var(--gray-700); padding-block: 0.5rem;
  position: relative; transition: color var(--t-fast);
}
.hdr__nav a:hover, .hdr__nav a.is-active { color: var(--navy); }
.hdr__nav a.is-active::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -2px;
  height: 2px; background: var(--lime); border-radius: 2px;
}

.hdr__cta { display: flex; align-items: center; gap: 0.875rem; }
.hdr__lang {
  display: inline-flex; gap: 0.4rem; align-items: center;
  font-family: var(--font-num); font-size: 0.85rem; color: var(--gray-400);
  font-weight: 600;
}
.hdr__lang .on { color: var(--navy); }
.hdr__lang a:hover { color: var(--navy); }

.hdr__burger {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--gray-200); border-radius: 50%;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.hdr__burger span { width: 18px; height: 2px; background: var(--navy); display: block; border-radius: 2px; }

/* Mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 95;
  background: var(--white);
  padding: 100px var(--pad) 2rem;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 600ms var(--ease), visibility 600ms;
}
.sheet.is-open { transform: translateY(0); visibility: visible; }
.sheet a.lg {
  font-size: 1.75rem; font-weight: 800; color: var(--navy);
  padding-block: 1rem; border-bottom: 1px solid var(--gray-200);
  display: block;
}
.sheet__foot { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }

/* ---------- HERO ---------- */
.hero { padding-top: clamp(7.5rem, 12vw, 9.5rem); padding-bottom: clamp(3.5rem, 7vw, 5rem); position: relative; overflow: hidden; }

/* faint navy radial in the background */
.hero::before {
  content: ''; position: absolute; inset-inline-end: -20%; top: -15%;
  width: 80vw; height: 70vh; max-width: 900px; max-height: 700px;
  background: radial-gradient(circle, rgba(27,58,110,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset-inline-start: -10%; bottom: -10%;
  width: 50vw; height: 50vh; max-width: 600px; max-height: 500px;
  background: radial-gradient(circle, rgba(197,218,44,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__in {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
  position: relative; z-index: 2;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--navy-soft); color: var(--navy);
  padding: 0.5rem 1rem; border-radius: var(--r-pill);
  font-size: 0.875rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero__badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(197,218,44,0.5); }
  50%     { box-shadow: 0 0 0 7px rgba(197,218,44,0); }
}

.hero__title { margin-bottom: 1.5rem; }
.hero__title em {
  font-style: normal; color: var(--navy);
  position: relative; white-space: nowrap;
}
.hero__title em::after {
  content: ''; position: absolute; inset-inline: -2px; bottom: 0.05em;
  height: 0.22em; background: var(--lime); z-index: -1; border-radius: 2px;
}

.hero__lead { max-width: 56ch; margin-bottom: 2rem; }

.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero__trust {
  display: flex; align-items: center; gap: 1.25rem;
  padding-top: 1.5rem; border-top: 1px solid var(--gray-200);
}
.hero__trust-stat { display: flex; flex-direction: column; gap: 2px; }
.hero__trust-num { font-family: var(--font-num); font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.hero__trust-label { font-size: 0.8125rem; color: var(--gray-500); }
.hero__trust-divider { width: 1px; height: 36px; background: var(--gray-200); }

/* Hero visual: phone mockup with real app screenshot */
.hero__visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__phone {
  width: clamp(220px, 30vw, 320px);
  aspect-ratio: 9/19.5;
  background: var(--black);
  border-radius: 2.5rem;
  padding: 10px;
  box-shadow: var(--sh-4);
  position: relative;
  rotate: -3deg;
  transition: rotate 0.8s var(--ease);
}
.hero__phone::before {
  content: ''; position: absolute; top: 14px; inset-inline-start: 50%;
  transform: translateX(-50%); width: 30%; height: 24px;
  background: var(--black); border-radius: 14px; z-index: 3;
}
[dir="rtl"] .hero__phone::before { transform: translateX(50%); }
.hero__phone img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 2rem;
}
.hero__phone:hover { rotate: 0deg; }

/* floating chips on the hero phone */
.hero__chip {
  position: absolute; z-index: 4;
  background: var(--white);
  padding: 0.625rem 1rem;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-3);
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600; color: var(--black);
}
.hero__chip--1 { top: 8%; inset-inline-start: -15%; }
.hero__chip--2 { bottom: 12%; inset-inline-end: -15%; background: var(--navy); color: var(--white); }
.hero__chip-icn { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.75rem; }

/* ---------- Trust strip (clients/platforms) ---------- */
.trust-strip {
  background: var(--gray-50); padding-block: 2.25rem;
  border-block: 1px solid var(--gray-200);
}
.trust-strip__row {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.trust-strip__label {
  font-size: 0.8125rem; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.trust-strip__brand {
  font-weight: 800; font-size: 1.0625rem; color: var(--gray-500);
  transition: color var(--t-base);
}
.trust-strip__brand:hover { color: var(--navy); }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  border: 1px solid var(--gray-200);
}
.stat {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  border-inline-end: 1px solid var(--gray-200);
  position: relative;
}
.stat:last-child { border-inline-end: none; }
.stat__num {
  font-family: var(--font-num); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1;
  color: var(--navy); letter-spacing: -0.02em;
}
.stat__num em { color: var(--lime-dark); font-style: normal; }
.stat__label { font-size: 0.9375rem; color: var(--gray-500); margin-top: 0.625rem; }

/* ---------- Sections ---------- */
.sec__head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 720px; }
.sec__head.is-center { text-align: center; margin-inline: auto; align-items: center; }

/* ---------- Services ---------- */
.svc {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.svc__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  position: relative;
  transition: transform var(--t-base) var(--ease), border-color var(--t-base), box-shadow var(--t-base);
  display: flex; flex-direction: column; gap: 0.875rem;
}
.svc__card:hover {
  transform: translateY(-6px);
  border-color: var(--navy);
  box-shadow: var(--sh-3);
}
.svc__icn {
  width: 56px; height: 56px;
  background: var(--navy-soft); color: var(--navy);
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-base), color var(--t-base);
}
.svc__card:hover .svc__icn { background: var(--lime); color: var(--navy); }
.svc__icn svg { width: 28px; height: 28px; }
.svc__title { font-size: 1.1875rem; }
.svc__desc { color: var(--gray-500); font-size: 0.9375rem; line-height: 1.75; flex: 1; }
.svc__more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--navy); font-weight: 700; font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ---------- Work (portfolio) ---------- */
.work {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.work__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: block;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base);
}
.work__card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.work__media {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--gray-100);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.work__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 0.7s var(--ease);
}
.work__card:hover .work__media img { transform: scale(1.05); }

/* Phone composition in work card */
.work__phones {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding: 1.5rem; height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.work__phone {
  width: 38%; aspect-ratio: 9/19;
  background: #000; border-radius: 16px; padding: 5px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
}
.work__phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.work__phone:nth-child(1) { transform: rotate(-5deg) translateY(8px); }
.work__phone:nth-child(2) { transform: rotate(5deg); z-index: 2; }

/* Featured phone showcase — clean neutral backdrop, phone rises from below */
.work__media--phone {
  aspect-ratio: 4/5;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  position: relative;
  background: var(--gray-50);
}
.phone-frame {
  width: clamp(180px, 60%, 260px);
  border-radius: 32px 32px 0 0;
  border: 10px solid #0F1729;
  border-bottom: 0;
  background: #0F1729;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(15,23,41,0.22), 0 12px 24px -10px rgba(15,23,41,0.15);
  position: relative; z-index: 1;
  transition: transform 0.7s var(--ease);
}
.phone-frame img {
  width: 100%; display: block;
  border-radius: 22px 22px 0 0;
}
.work__card:hover .phone-frame { transform: translateY(-14px); }

/* soft floor shadow under the phone */
.work__media--phone::after {
  content: '';
  position: absolute;
  bottom: -8px; inset-inline: 25%;
  height: 32px;
  background: radial-gradient(ellipse at center, rgba(15,23,41,0.18), transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}

.work__body { padding: 1.5rem; }
.work__tag {
  font-size: 0.75rem; font-weight: 700; color: var(--lime-dark);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.work__title { font-size: 1.375rem; margin: 0.5rem 0; }
.work__desc { color: var(--gray-500); font-size: 0.9375rem; line-height: 1.7; }
.work__meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.8125rem; color: var(--gray-500);
}
.work__meta .text-num { font-weight: 600; color: var(--navy); }

/* ---------- Why us ---------- */
.why {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.why__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color var(--t-base), transform var(--t-base);
}
.why__card:hover { border-color: var(--lime); transform: translateY(-4px); }
.why__num {
  font-family: var(--font-num); font-weight: 700;
  color: var(--lime-dark); font-size: 0.875rem; letter-spacing: 0.04em;
}
.why__title { font-size: 1.125rem; }
.why__desc { color: var(--gray-500); font-size: 0.9rem; line-height: 1.7; }

/* ---------- Process ---------- */
.proc {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.proc::before {
  content: ''; position: absolute; top: 32px;
  inset-inline-start: 12%; inset-inline-end: 12%;
  height: 2px;
  background-image: repeating-linear-gradient(to right, var(--gray-200) 0 6px, transparent 6px 12px);
}
.proc__step {
  text-align: center; padding-top: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  position: relative; z-index: 1;
}
.proc__num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--navy); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num); font-weight: 700; font-size: 1.25rem;
  transition: background var(--t-base), color var(--t-base);
}
.proc__step:hover .proc__num { background: var(--lime); border-color: var(--lime); }
.proc__title { font-size: 1.0625rem; font-weight: 700; color: var(--black); }
.proc__desc { font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; max-width: 220px; }

/* ---------- AI band ---------- */
.ai {
  background: var(--navy);
  color: var(--white);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  position: relative; overflow: hidden;
}
.ai::before {
  content: ''; position: absolute;
  inset-inline-end: -10%; top: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(197,218,44,0.15) 0%, transparent 60%);
}
.ai__content { position: relative; z-index: 1; }
.ai__content .eyebrow { color: var(--lime); }
.ai__content .eyebrow::before { background: var(--lime); }
.ai h2 { color: var(--white); margin-block: 1rem; }
.ai h2 em { color: var(--lime); font-style: normal; }
.ai p { color: rgba(255,255,255,0.78); margin-bottom: 1.75rem; }
.ai__chat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  position: relative; z-index: 1;
}
.bub { padding: 0.7rem 1rem; border-radius: 16px; font-size: 0.9375rem; line-height: 1.55; max-width: 85%; }
.bub--bot { background: var(--lime); color: var(--navy); font-weight: 500; border-end-end-radius: 5px; align-self: flex-end; }
.bub--me { background: rgba(255,255,255,0.1); border-end-start-radius: 5px; align-self: flex-start; }
[dir="rtl"] .bub--bot { align-self: flex-end; }
[dir="rtl"] .bub--me { align-self: flex-start; }

/* ---------- CTA Final ---------- */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(197,218,44,0.15), transparent 60%);
}
.cta__in { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }
.cta h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta h2 em { color: var(--lime); font-style: normal; }
.cta p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.cta__row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.ftr { background: var(--gray-50); padding-block: clamp(3rem, 5vw, 4rem) 1.5rem; border-top: 1px solid var(--gray-200); }
.ftr__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem; padding-bottom: 2.5rem;
}
.ftr__logo { margin-bottom: 1rem; display: inline-block; }
.ftr__logo img { height: 44px; mix-blend-mode: multiply; }
.ftr__about { color: var(--gray-500); font-size: 0.9375rem; line-height: 1.75; max-width: 320px; margin-bottom: 1.25rem; }
.ftr__social { display: flex; gap: 0.5rem; }
.ftr__social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gray-200);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gray-700); transition: all var(--t-base);
}
.ftr__social a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }

.ftr h4 { font-size: 0.875rem; font-weight: 700; color: var(--black); margin-bottom: 1rem; }
.ftr ul { display: flex; flex-direction: column; gap: 0.625rem; }
.ftr li a { color: var(--gray-500); font-size: 0.9375rem; transition: color var(--t-fast); }
.ftr li a:hover { color: var(--navy); }

.ftr__bottom {
  padding-top: 1.5rem; border-top: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.8125rem; color: var(--gray-400);
}

/* ---------- Portfolio page ---------- */
.pg-hero {
  padding-top: clamp(7rem, 11vw, 9rem);
  padding-bottom: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.pg-hero__inner {
  max-width: 760px; margin-inline: auto;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.crumb {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--gray-400);
  margin-bottom: 1.25rem;
}
.crumb a:hover { color: var(--navy); }
.crumb__sep { color: var(--gray-200); }
.pg-hero h1 { margin: 0.75rem 0 1rem; }
.pg-hero p.lead { margin-inline: auto; }

.pfo-filters {
  display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.pfo-filter {
  padding: 0.625rem 1.375rem;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-weight: 600; font-size: 0.9375rem; color: var(--gray-500);
  cursor: pointer;
  transition: all var(--t-base);
}
.pfo-filter:hover { color: var(--navy); border-color: var(--navy); }
.pfo-filter.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.pfo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pfo-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: block;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base);
}
.pfo-card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }

.pfo-card__media {
  aspect-ratio: 16/10;
  background: var(--gray-50);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 2.5vw, 1.75rem);
}

/* Laptop (website) mockup — MacBook-style frame */
.laptop {
  width: 100%; max-width: 520px;
  transition: transform 0.7s var(--ease);
}
.laptop__lid {
  background: #1A2330;
  border-radius: 14px 14px 4px 4px;
  padding: 14px 12px 16px;
  box-shadow: 0 22px 44px -14px rgba(15,23,41,0.28), 0 8px 16px -8px rgba(15,23,41,0.14);
  position: relative;
}
.laptop__lid::before {
  /* camera notch dot */
  content: '';
  position: absolute;
  top: 5px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: #3B4452;
  border-radius: 50%;
}
[dir="rtl"] .laptop__lid::before { transform: translateX(50%); }
.laptop__screen {
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16/10;
  display: block;
}
.laptop__screen img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}
.laptop__base {
  height: 10px;
  background: linear-gradient(180deg, #2C3849 0%, #1A2330 100%);
  margin-inline: -3.5%;
  border-radius: 0 0 16px 16px;
  position: relative;
  box-shadow: 0 8px 14px -8px rgba(15,23,41,0.3);
}
.laptop__base::before {
  /* trackpad/hinge notch */
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 16%; height: 4px;
  background: #0F1729;
  border-radius: 0 0 7px 7px;
}
[dir="rtl"] .laptop__base::before { transform: translateX(50%); }
.pfo-card:hover .laptop { transform: translateY(-8px); }

/* Phone (app) mockup for portfolio grid */
.phone-card {
  width: clamp(140px, 34%, 185px);
  border-radius: 24px 24px 0 0;
  border: 9px solid #0F1729;
  border-bottom: 0;
  background: #0F1729;
  overflow: hidden;
  box-shadow: 0 30px 60px -14px rgba(15,23,41,0.22), 0 12px 24px -10px rgba(15,23,41,0.12);
  transition: transform 0.7s var(--ease);
  align-self: flex-end;
}
.phone-card img { width: 100%; display: block; border-radius: 16px 16px 0 0; }
.pfo-card:hover .phone-card { transform: translateY(-12px); }

.pfo-card__media.is-phone {
  align-items: flex-end;
  padding-top: 1.75rem;
}

.pfo-card__body {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.pfo-card__tag {
  font-size: 0.75rem; font-weight: 700;
  color: var(--lime-dark);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pfo-card__title { font-size: 1.375rem; margin: 0.5rem 0 0.75rem; }
.pfo-card__desc { color: var(--gray-500); font-size: 0.9375rem; line-height: 1.7; }
.pfo-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.8125rem; color: var(--gray-500);
}
.pfo-card__meta .text-num { font-weight: 600; color: var(--navy); }

@media (max-width: 1024px) {
  .pfo-grid { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp fab ---------- */
.fab-wa {
  position: fixed; bottom: clamp(1.25rem, 3vw, 1.75rem);
  inset-inline-start: clamp(1.25rem, 3vw, 1.75rem);
  z-index: 60;
  background: var(--wa); color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -6px rgba(37,211,102,0.5);
  transition: transform var(--t-base) var(--ease);
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 28px; height: 28px; }
.fab-wa::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa); opacity: 0.5; z-index: -1;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.is-visible { opacity: 1; transform: none; }
.rv-1 { transition-delay: 60ms; }
.rv-2 { transition-delay: 120ms; }
.rv-3 { transition-delay: 180ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__in { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--gray-200); }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .work { grid-template-columns: 1fr; }
  .why { grid-template-columns: repeat(2, 1fr); }
  .proc { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .proc::before { display: none; }
  .ai { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .hdr__nav { display: none; }
  .hdr__burger { display: inline-flex; }
  .hdr__cta .btn:not(.hdr__burger) { display: none; }
}

@media (max-width: 600px) {
  .svc { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .proc { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .hero__chip--1 { inset-inline-start: 0; top: 4%; }
  .hero__chip--2 { inset-inline-end: 0; bottom: 4%; }
  .ftr__bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rv, .hero__phone, .work__media img, .fab-wa::after { animation: none !important; transition: none !important; opacity: 1; transform: none; }
}
