/* ============================================================
   JOSEQUAL — Homepage
   Deep navy + electric blue · Space Grotesk / Manrope
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --navy-950: #081027;
  --navy-900: #0a1430;
  --navy-850: #0c193a;
  --navy-800: #0f1f47;
  --navy-700: #142654;
  --card: #112049;
  --card-2: #14275a;

  /* Light section surfaces */
  --surface: #f6f9ff;
  --tint: #e6eeff;
  --ink: #0c1838;
  --ink-dim: #51618a;
  --ink-faint: #8593b8;

  /* Accent */
  --blue: #2f6bff;
  --blue-bright: #5a8dff;
  --blue-deep: #1a3fb8;
  --blue-glow: rgba(47, 107, 255, 0.45);

  /* Text */
  --text: #eaf0ff;
  --text-dim: #9aa7c7;
  --text-faint: #5d6a8c;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.13);

  /* Type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --maxw: 1480px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--navy-950);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.section { padding-block: clamp(80px, 11vw, 160px); position: relative; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: 12px;
  transition: transform .35s var(--ease), background .3s, box-shadow .4s, border-color .3s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 30px -10px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -12px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
  padding-block: 22px;
}
.nav.scrolled {
  background: rgba(7, 13, 34, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  padding-block: 14px;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: min(1520px, calc(100% - 32px)); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; flex-shrink: 0; }
.brand .brand-logo {
  height: 30px; width: auto; max-width: none; display: block;
  flex-shrink: 0; object-fit: contain;
}
.nav-links { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: center; min-width: 0; }
.nav-links a { font-size: 15px; color: var(--text-dim); font-weight: 500; transition: color .25s; position: relative; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }
.nav-cta .nav-client-auth { padding: 11px 16px; white-space: nowrap; }
.mobile-menu .nav-client-auth { width: 100%; justify-content: center; margin-top: 8px; }

/* ---- Nav dropdown (Services) ---- */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd-trigger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-dd-trigger .chev { width: 13px; height: 13px; transition: transform .25s var(--ease); opacity: .8; }
.nav-dd:hover .nav-dd-trigger .chev { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 320px; padding: 10px;
  background: rgba(10, 16, 38, 0.97);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 70px -24px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 120;
}
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(14px);
}
.nav-dd-menu a {
  display: block; font-size: 14px; color: var(--text-dim); font-weight: 500;
  padding: 10px 14px; border-radius: 10px; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), padding-left .18s var(--ease);
}
.nav-dd-menu a::after { display: none; }
.nav-dd-menu a:hover { background: rgba(90,141,255,.12); color: var(--text); padding-left: 18px; }

/* ---- Language switch ---- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); }
.lang-switch .lang-opt { font-size: 12.5px; font-weight: 600; line-height: 1; color: var(--text-dim); padding: 6px 11px; border-radius: 999px; transition: color .2s var(--ease), background .2s var(--ease); }
.lang-switch .lang-opt::after { display: none; }
.lang-switch .lang-opt:hover { color: var(--text); }
.lang-switch .lang-opt.is-active { background: var(--blue); color: #fff; }

/* ---- WhatsApp button ---- */
.wa-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: #25d366; border: 1px solid var(--line); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); flex-shrink: 0; }
.wa-link::after { display: none; }
.wa-link svg { width: 20px; height: 20px; }
.wa-link:hover { background: #25d366; color: #fff; border-color: #25d366; }

/* ---- Mobile menu extra actions ---- */
.mm-actions { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.mobile-menu .mm-actions a { font-size: 13px; padding: 0; border-bottom: 0; }
.mobile-menu .mm-actions a:hover { padding-left: 0; }
.mobile-menu .mm-actions .lang-switch .lang-opt { padding: 8px 14px; }

.burger { display: none; width: 26px; height: 18px; position: relative; }
.burger span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--text); transition: .3s var(--ease); }
.burger span:nth-child(1){ top: 0; } .burger span:nth-child(2){ top: 8px; } .burger span:nth-child(3){ top: 16px; }

/* ============================================================
   HERO (shared)
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(140px, 18vh, 220px);
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-bg .glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5;
}
.hero-bg .g1 { width: 620px; height: 620px; top: -200px; right: -120px; background: radial-gradient(circle, var(--blue) 0%, transparent 65%); }
.hero-bg .g2 { width: 520px; height: 520px; bottom: -260px; left: -160px; background: radial-gradient(circle, #6d3bff 0%, transparent 65%); opacity: .25; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 0%, transparent 75%);
  opacity: .5;
}

.hero-variant { display: none; position: relative; z-index: 2; }
.hero-variant.active { display: block; }

.hero h1 { letter-spacing: -0.035em; }
.hero .lead { color: var(--text-dim); font-size: clamp(17px, 1.6vw, 21px); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Hero — Editorial */
.heroC { position: relative; }
.heroC-media {
  position: absolute; left: 50%; top: -220px; transform: translateX(-50%);
  width: 100vw; height: calc(100% + 320px); z-index: 0; overflow: hidden;
}
.heroC-media image-slot { width: 100%; height: 100%; display: block; }
.heroC-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,16,39,0.92) 0%, rgba(8,16,39,0.60) 38%, rgba(8,16,39,0.12) 100%),
    linear-gradient(0deg, var(--navy-950) 0%, rgba(8,16,39,0) 32%);
}
.heroC .eyebrow, .heroC h1, .heroC .row { position: relative; z-index: 1; }
.heroC h1 { font-size: clamp(46px, 9.5vw, 138px); line-height: 0.92; }
.heroC h1 .out { color: transparent; -webkit-text-stroke: 1.4px rgba(234,240,255,0.6); }
.heroC h1 .accent { color: var(--blue-bright); }
.heroC .row { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 50px; align-items: end; margin-top: 40px; }
.heroC .lead { max-width: 42ch; }
.heroC .stat-rail { border-left: 1px solid var(--line-2); padding-left: 26px; display: flex; flex-direction: column; gap: 22px; }
.heroC .stat-rail .m-num { font-family: var(--display); font-size: 34px; font-weight: 700; }
.heroC .stat-rail .m-num span { color: var(--blue-bright); }
.heroC .stat-rail .m-lab { font-size: 13px; color: var(--text-faint); }

/* ============================================================
   LOGO STRIP
   ============================================================ */
.logos { padding-block: 46px; border-block: 1px solid var(--line); }
.logos.theme-light { background: var(--tint); }
.logos .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.logos .lab { font-size: 13px; color: var(--text-faint); letter-spacing: .04em; white-space: nowrap; }
.logos .row {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  align-items: center;
  flex: 1;
  min-width: 0;                 /* allow flex item to shrink below content size */
  gap: clamp(6px, 1vw, 20px);
  overflow: hidden;             /* hide shadow-DOM ghost overflow */
}
.logos .client-logo {
  width: auto;
  max-width: clamp(88px, 11vw, 140px);
  height: clamp(28px, 3.5vw, 38px);
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
}
.logos.theme-light .client-logo {
  /* Blend out baked-in white/light boxes on raster logos against the tint strip */
  mix-blend-mode: multiply;
}

/* ============================================================
   SERVICES
   ============================================================ */
.sec-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-bottom: 60px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 56px); margin-top: 18px; max-width: 16ch; }
.sec-head p { color: var(--text-dim); max-width: 40ch; }

.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.svc {
  position: relative;
  background: linear-gradient(180deg, var(--card) 0%, var(--navy-850) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
  cursor: pointer;
  min-height: 280px;
  display: flex; flex-direction: column;
}
a.svc { text-decoration: none; color: inherit; }
.svc::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(47,107,255,0.14), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.svc:hover { transform: translateY(-6px); border-color: rgba(90,141,255,0.45); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8); }
.svc:hover::before { opacity: 1; }
/* span: 2 cards take 3 cols, rest layout below */
.svc.feat { grid-column: span 3; min-height: 320px; }
.svc.std { grid-column: span 3; }
@media (min-width: 901px){
  .svc-grid { grid-template-columns: repeat(6, 1fr); }
  /* two rows of three equal cards */
  .svc:nth-child(n){ grid-column: span 2; }
}
.svc .ico {
  width: 52px; height: 52px; border-radius: 13px;
  background: rgba(47,107,255,0.12); border: 1px solid rgba(90,141,255,0.3);
  display: grid; place-items: center; color: var(--blue-bright);
  margin-bottom: auto;
}
.svc .ico svg { width: 26px; height: 26px; }
.svc h3 { font-size: 23px; margin-top: 24px; }
.svc .num { position: absolute; top: 26px; right: 28px; font-family: var(--display); font-size: 14px; color: var(--text-faint); }
.svc .desc { color: var(--text-dim); font-size: 15.5px; margin-top: 12px; }
.svc .more {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s var(--ease), opacity .4s, margin .4s;
}
.svc:hover .more { max-height: 140px; opacity: 1; margin-top: 16px; }
.svc .more ul { display: flex; flex-direction: column; gap: 9px; }
.svc .more li { font-size: 14px; color: var(--text-dim); display: flex; gap: 10px; align-items: flex-start; }
.svc .more li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-top: 7px; flex: none; }
.svc .link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-bright); font-family: var(--display); font-weight: 600; font-size: 14.5px; margin-top: 18px; }

/* ---- Featured service card (AI Business Transformation) ---- */
.svc-feature {
  position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, rgba(47,107,255,0.16), rgba(47,107,255,0.04) 55%, var(--card));
  border: 1px solid rgba(90,141,255,0.35); border-radius: 24px; padding: 44px;
  overflow: hidden; margin-bottom: 22px; text-decoration: none;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.svc-feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px circle at 88% 0%, rgba(47,107,255,0.22), transparent 60%);
}
.svc-feature:hover { transform: translateY(-4px); border-color: rgba(90,141,255,0.6); box-shadow: 0 40px 80px -42px rgba(18,38,86,0.5); }
.svc-feature > * { position: relative; z-index: 1; }
.svf-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--blue-bright); }
.svf-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 0 4px rgba(47,107,255,0.18); }
.svf-ico { width: 58px; height: 58px; border-radius: 15px; background: rgba(47,107,255,0.14); border: 1px solid rgba(90,141,255,0.4); display: grid; place-items: center; color: var(--blue-bright); margin: 18px 0 4px; }
.svf-ico svg { width: 30px; height: 30px; }
.svc-feature h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; margin-top: 14px; color: var(--text); }
.svc-feature p { color: var(--text-dim); font-size: 16px; line-height: 1.6; margin-top: 14px; max-width: 52ch; }
.svf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.svf-tags span { font-size: 12.5px; font-weight: 500; color: var(--text-dim); background: var(--navy-850); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.svf-cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.svc-feature .btn { white-space: nowrap; }
.svf-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-bright); font-family: var(--display); font-weight: 600; font-size: 15px; }
@media (max-width: 860px) {
  .svc-feature { grid-template-columns: 1fr; gap: 26px; padding: 32px; }
}
@media (max-width: 520px) {
  .svc-feature { padding: 26px; }
  .svf-cta, .svc-feature .btn { width: 100%; }
}

/* ============================================================
   WHY / DIFFERENTIATORS + STATS
   ============================================================ */
.why { background: var(--tint); }
.why .grid2 { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.why h2 { font-size: clamp(30px, 4.2vw, 52px); margin-top: 18px; }
.why .sub { color: var(--text-dim); margin-top: 22px; max-width: 44ch; }
.feat-list { margin-top: 34px; display: flex; flex-direction: column; gap: 4px; }
.feat-item { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.feat-item:last-child { border-bottom: 1px solid var(--line); }
.feat-item .fi-ico { width: 44px; height: 44px; border-radius: 11px; flex: none; background: rgba(47,107,255,0.1); border: 1px solid rgba(90,141,255,0.28); display: grid; place-items: center; color: var(--blue-bright); }
.feat-item .fi-ico svg { width: 22px; height: 22px; }
.feat-item h4 { font-family: var(--display); font-size: 18px; font-weight: 600; }
.feat-item p { color: var(--text-dim); font-size: 15px; margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat {
  background: linear-gradient(160deg, var(--card-2), var(--navy-850));
  border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px;
  position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; top: 0; right: 0; width: 120px; height: 120px; background: radial-gradient(circle at top right, rgba(47,107,255,0.18), transparent 70%); }
.stat .s-num { font-family: var(--display); font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat .s-num .suf { color: var(--blue-bright); }
.stat .s-lab { color: var(--text-dim); margin-top: 12px; font-size: 15px; }

/* ============================================================
   PROCESS
   ============================================================ */
.proc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.proc {
  padding: 34px 26px 30px; border-right: 1px solid var(--line);
  position: relative; transition: background .4s;
}
.proc:last-child { border-right: none; }
.proc:hover { background: rgba(47,107,255,0.05); }
.proc .pn { font-family: var(--display); font-size: 14px; color: var(--blue-bright); font-weight: 600; }
.proc .bar { height: 2px; background: var(--line-2); margin: 18px 0 22px; position: relative; }
.proc .bar::after { content: ""; position: absolute; inset: 0 100% 0 0; background: var(--blue); transition: inset .6s var(--ease); }
.proc:hover .bar::after { inset: 0 0 0 0; }
.proc h4 { font-family: var(--display); font-size: 20px; font-weight: 600; }
.proc p { color: var(--text-dim); font-size: 14.5px; margin-top: 10px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tst { background: var(--surface); }
.tst-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.tst-main {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--blue-deep) 0%, #0c1c52 55%, var(--card) 100%);
  border: 1px solid rgba(90,141,255,0.35);
  border-radius: 22px; padding: 46px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.tst-main, .tst-main .a-name { color: #fff; }
.tst-main .a-role { color: rgba(255,255,255,0.72); }
.tst-main .quote-mark { font-family: var(--display); font-size: 120px; line-height: .6; color: rgba(255,255,255,0.14); }
.tst-main blockquote { font-family: var(--display); font-size: clamp(22px, 2.5vw, 30px); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; margin: 18px 0 32px; }
.tst-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  transition: transform .4s var(--ease), border-color .4s;
}
.tst-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tst-card p { font-size: 16px; color: var(--text); line-height: 1.55; }
.stars { display: flex; gap: 3px; color: #ffc24b; margin-bottom: 14px; }
.stars svg { width: 16px; height: 16px; }
.author { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.author .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep)); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 16px; flex: none; }
.author .a-name { font-family: var(--display); font-weight: 600; font-size: 15px; }
.author .a-role { font-size: 13px; color: var(--text-faint); }

/* ============================================================
   CTA
   ============================================================ */
.cta { position: relative; }
.cta-box {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0c1b54 0%, var(--blue-deep) 50%, #0c1b54 100%);
  border: 1px solid rgba(90,141,255,0.4);
  border-radius: 28px;
  padding: clamp(48px, 7vw, 88px);
  text-align: center;
}
.cta-box .glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, var(--blue) 0%, transparent 60%); filter: blur(60px); opacity: .4; top: -200px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.cta-box .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 70%);
}
.cta-box .inner { position: relative; z-index: 2; }
.cta-box, .cta-box h2 { color: #fff; }
.cta-box h2 { font-size: clamp(34px, 5.4vw, 68px); max-width: 18ch; margin: 0 auto; }
.cta-box p { color: rgba(234,240,255,0.78); font-size: clamp(16px,1.7vw,20px); max-width: 46ch; margin: 24px auto 38px; }
.cta-box .hero-actions { justify-content: center; }
.cta-box .btn-ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-top: 80px; padding-bottom: 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--text-dim); margin-top: 20px; max-width: 32ch; font-size: 15px; }
.foot-soc { display: flex; gap: 12px; margin-top: 26px; }
.foot-soc a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-dim); transition: .3s var(--ease); }
.foot-soc a:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.foot-soc svg { width: 18px; height: 18px; }
.foot-col h5 { font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 15px; padding: 7px 0; transition: color .25s, padding-left .25s; }
.foot-col a:hover { color: var(--text); padding-left: 6px; }
.foot-bot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot-bot p { color: var(--text-faint); font-size: 14px; }
.foot-bot .links { display: flex; gap: 26px; }
.foot-bot .links a { color: var(--text-faint); font-size: 14px; transition: color .25s; }
.foot-bot .links a:hover { color: var(--text); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 6, 18, 0.78);
  backdrop-filter: blur(12px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-wrap { position: relative; width: min(620px, 100%); }
.modal {
  position: relative; width: 100%; overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 0% 0%, rgba(47, 107, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
    linear-gradient(180deg, #121a3a 0%, #0b1230 55%, #091028 100%);
  border: 1px solid rgba(120, 150, 255, 0.18);
  border-radius: 26px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 40px 100px -36px rgba(0, 0, 0, 0.85),
    0 18px 40px -24px rgba(47, 107, 255, 0.35);
  transform: translateY(22px) scale(0.97);
  transition: transform .45s var(--ease);
  max-height: 92vh; overflow-y: auto;
}
.modal::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #5ba6ff, #7c9cff, transparent);
  opacity: .9; pointer-events: none;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal .m-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(148, 170, 255, 0.18);
  display: grid; place-items: center; color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03); transition: .22s var(--ease);
}
.modal .m-close svg { width: 16px; height: 16px; }
.modal .m-close:hover {
  color: #fff; background: rgba(47, 107, 255, 0.18);
  border-color: rgba(90, 141, 255, 0.4);
}
.modal-head { padding-right: 44px; }
.modal-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue-bright);
  margin-bottom: 12px;
}
.modal-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #36d399; box-shadow: 0 0 0 4px rgba(54, 211, 153, 0.16);
}
.modal h3 { font-size: clamp(26px, 3.4vw, 32px); letter-spacing: -0.02em; line-height: 1.15; }
.modal .m-sub {
  color: var(--text-dim); margin-top: 10px; font-size: 15px; line-height: 1.6; max-width: 46ch;
}
.form { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.modal-form { margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  font-family: var(--display); font-size: 12.5px; color: var(--text-dim);
  font-weight: 700; letter-spacing: .02em;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 15px; color: var(--text);
  background: rgba(4, 8, 24, 0.45); border: 1px solid rgba(148, 170, 255, 0.16);
  border-radius: 13px; padding: 13px 15px;
  transition: border-color .22s, box-shadow .22s, background .22s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(91, 166, 255, 0.7);
  background: rgba(8, 14, 36, 0.72);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
}
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: #ff5a72; box-shadow: 0 0 0 3px rgba(255, 90, 114, 0.18);
}
.field .err { font-size: 12.5px; color: #ff8095; height: 0; overflow: hidden; transition: height .25s; }
.field.invalid .err { height: 16px; }
.form .btn-primary { margin-top: 4px; width: 100%; }
.modal-note {
  margin: 0; text-align: center; color: var(--text-faint); font-size: 12.5px; line-height: 1.45;
}
.modal-meeting-hint {
  display: flex; align-items: flex-start; gap: 10px; margin: -2px 0 2px;
  padding: 12px 14px; border-radius: 13px;
  background: rgba(47, 107, 255, 0.1); border: 1px solid rgba(90, 141, 255, 0.22);
  color: var(--text-dim); font-size: 13.5px; line-height: 1.45; font-weight: 600;
}
.modal-meeting-hint svg {
  width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--blue-bright);
}
.field-label {
  font-family: var(--display); font-size: 12.5px; color: var(--text-dim);
  font-weight: 700; letter-spacing: .02em;
}
.field-optional {
  font-weight: 500; color: var(--text-faint); text-transform: none; letter-spacing: 0;
}
.date-chips,
.time-chips {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px;
}
.date-chip,
.time-chip {
  display: grid; gap: 2px; text-align: start; cursor: pointer;
  padding: 12px 14px; border-radius: 14px; font: inherit;
  color: var(--text); background: rgba(4, 8, 24, 0.45);
  border: 1px solid rgba(148, 170, 255, 0.16);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s var(--ease);
}
.time-chip { place-items: center; text-align: center; }
.date-chip:hover,
.time-chip:hover {
  border-color: rgba(90, 141, 255, 0.4); background: rgba(8, 14, 36, 0.7);
  transform: translateY(-1px);
}
.date-chip:focus-visible,
.time-chip:focus-visible {
  outline: none; border-color: rgba(91, 166, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.22);
}
.date-chip.is-selected,
.time-chip.is-selected {
  border-color: rgba(91, 166, 255, 0.75);
  background: linear-gradient(160deg, rgba(47, 107, 255, 0.28), rgba(14, 165, 233, 0.12));
  box-shadow: 0 10px 24px -18px rgba(47, 107, 255, 0.7);
}
.date-chip-day {
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--blue-bright);
}
.date-chip-date { font-size: 15px; font-weight: 700; line-height: 1.25; }
.time-chip-label { font-size: 15px; font-weight: 700; line-height: 1.25; }
.field-hint,
.field-help { font-size: 12.5px; color: var(--text-faint); line-height: 1.4; }
.time-input,
.modal-time-input,
.modal-date-input {
  max-width: 100%;
  color-scheme: dark;
}
.date-chips-empty { margin: 0; color: var(--text-faint); font-size: 13.5px; }
.field.invalid .date-chips,
.field.invalid .time-chips { box-shadow: 0 0 0 3px rgba(255, 90, 114, 0.14); border-radius: 16px; }
.form-success { text-align: center; padding: 18px 8px 6px; }
.form-success .check {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(54, 211, 153, 0.12); border: 1px solid rgba(54, 211, 153, 0.45);
  display: grid; place-items: center; margin: 0 auto 22px; color: #36d399;
}
.form-success .check svg { width: 34px; height: 34px; }
.form-success h3 { font-size: 26px; }
.form-success p { color: var(--text-dim); margin-top: 10px; line-height: 1.6; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
/* Frozen-timeline / no-JS safety: force everything visible instantly */
.anim-frozen .reveal,
.no-js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.anim-frozen .hero-bg .glow { animation: none !important; }
.anim-frozen .modal-overlay,
.anim-frozen .modal,
.anim-frozen .mobile-menu { transition: none !important; }

/* ============================================================
   SECTION THEMES — light (white) & tint (light-blue)
   Remap the dark tokens so existing components adapt automatically.
   ============================================================ */
.theme-light, .theme-tint {
  --text: var(--ink);
  --text-dim: var(--ink-dim);
  --text-faint: var(--ink-faint);
  --line: rgba(12, 24, 56, 0.10);
  --line-2: rgba(12, 24, 56, 0.16);
  --card: #ffffff;
  --card-2: #ffffff;
  --navy-850: #eef3ff;
  --navy-800: #eef3ff;
  --navy-700: #e6edfd;
  --blue-bright: var(--blue);
  color: var(--ink);
}
.theme-light { background: var(--surface); }
.theme-tint  { background: var(--tint); }

/* Justified body copy. hyphens:auto keeps word spacing tight (it relies on the
   lang attribute on <html>, which is set per locale) and works for RTL too. */
.text-justify {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Ghost buttons in light sections.
   The base .btn-ghost hover hardcodes white (rgba(255,255,255,.28) border and
   .09 background) for the dark theme — on a light surface that renders
   white-on-white, so the button's border appears to vanish on hover.
   Light sections use the dark-on-light tokens instead. */
.theme-light .btn-ghost,
.theme-tint .btn-ghost {
  background: rgba(12, 24, 56, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.theme-light .btn-ghost:hover,
.theme-tint .btn-ghost:hover {
  background: rgba(47, 107, 255, 0.07);
  border-color: rgba(47, 107, 255, 0.45);
  color: var(--blue);
}
/* The dark CTA box keeps its own light-on-dark treatment. */
.theme-light .cta-box .btn-ghost,
.theme-tint .cta-box .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.theme-light .cta-box .btn-ghost:hover,
.theme-tint .cta-box .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

/* Form fields inside light sections.
   The base .field rule fills inputs with translucent black (rgba(0,0,0,.25)),
   which is correct inside the dark modal but renders as a grey box on a white
   card. Light sections therefore get clean white fields with a visible border.
   Scoped to .theme-light/.theme-tint so the dark modal keeps its own styling. */
.theme-light .field input,
.theme-light .field select,
.theme-light .field textarea,
.theme-tint .field input,
.theme-tint .field select,
.theme-tint .field textarea {
  background: #fff;
  border-color: var(--line-2);
  color: var(--text);
}
.theme-light .field input:focus,
.theme-light .field select:focus,
.theme-light .field textarea:focus,
.theme-tint .field input:focus,
.theme-tint .field select:focus,
.theme-tint .field textarea:focus { background: #fff; }

/* Chrome repaints autofilled inputs with its own background — keep them white. */
.theme-light .field input:-webkit-autofill,
.theme-tint .field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-in-out 0s;
}
.theme-light .field input:-webkit-autofill:focus,
.theme-tint .field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 3px rgba(47, 107, 255, 0.2);
}

/* Soft, light-friendly card shadows */
.theme-light .svc, .theme-tint .svc { box-shadow: 0 2px 4px rgba(18, 38, 86, 0.05); }
.theme-light .svc:hover, .theme-tint .svc:hover {
  border-color: rgba(47, 107, 255, 0.55);
  box-shadow: 0 26px 50px -26px rgba(18, 38, 86, 0.32);
}
.theme-light .work:hover, .theme-tint .work:hover { box-shadow: 0 34px 64px -32px rgba(18, 38, 86, 0.42); }
.theme-light .tst-card:hover, .theme-tint .tst-card:hover { box-shadow: 0 22px 44px -24px rgba(18, 38, 86, 0.28); }

/* Service icon chips a touch stronger on white */
.theme-light .svc .ico, .theme-tint .svc .ico,
.theme-light .feat-item .fi-ico, .theme-tint .feat-item .fi-ico {
  background: rgba(47, 107, 255, 0.10);
  border-color: rgba(47, 107, 255, 0.28);
}

/* Logos: full color on light background */

/* Keep STAT tiles dark navy for contrast against the light section */
.theme-light .stat, .theme-tint .stat {
  background: linear-gradient(160deg, #14275a, #0c193a);
  border-color: rgba(255, 255, 255, 0.08);
  color: #eaf0ff;
  box-shadow: 0 20px 44px -26px rgba(18, 38, 86, 0.45);
}
.theme-light .stat .s-lab, .theme-tint .stat .s-lab { color: #9fb0d6; }
.theme-light .stat .suf, .theme-tint .stat .suf { color: #5a8dff; }

/* Process hover tint stays subtle on light */
.theme-light .proc:hover, .theme-tint .proc:hover { background: rgba(47, 107, 255, 0.06); }

/* Light section eyebrow/divider reads with the accent */
.theme-light .eyebrow, .theme-tint .eyebrow { color: var(--blue); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
.mobile-menu { display: none; }

@media (max-width: 1080px) {
  .why .grid2 { gap: 40px; }
}
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-text { display: none; }
  .nav-cta .lang-switch, .nav-cta .wa-link, .nav-cta .nav-client-auth { display: none; }
  .burger { display: block; }
  .heroC .row { grid-template-columns: 1fr; gap: 36px; }
  .heroC .stat-rail { flex-direction: row; flex-wrap: wrap; gap: 30px 44px; border-left: none; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 26px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(n) { grid-column: auto; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .why .grid2 { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr 1fr; }
  .proc { border-bottom: 1px solid var(--line); }
  .tst-grid { grid-template-columns: 1fr; }
  .tst-main { grid-row: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-cta .btn-primary { display: none; }
  .sec-head { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work.tall { grid-row: auto; }
  .work.tall .shot { aspect-ratio: 16/10; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc { border-right: none; }
  .stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .field.row2 { grid-template-columns: 1fr; }
  .modal { padding: 24px 20px; }
  .modal-head { padding-right: 40px; }
  .date-chips,
  .time-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
[dir="rtl"] .modal-head { padding-right: 0; padding-left: 44px; }
[dir="rtl"] .modal .m-close { right: auto; left: 18px; }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(5,9,26,0.97); backdrop-filter: blur(12px);
  flex-direction: column; justify-content: center; gap: 8px;
  padding: var(--gutter);
  opacity: 0; visibility: hidden; transition: .4s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; display: flex; }
.mobile-menu a { font-family: var(--display); font-size: 30px; font-weight: 600; padding: 12px 0; color: var(--text); border-bottom: 1px solid var(--line); transition: color .25s, padding-left .25s; }
.mobile-menu a:hover { color: var(--blue-bright); padding-left: 10px; }
.mobile-menu .btn { margin-top: 28px; }
.mm-close { position: absolute; top: 26px; right: var(--gutter); width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; }
