/* Magic Sort landing page
   Layout uses logical properties throughout, so the same rules serve Arabic (RTL) and English (LTR). */

/* ---------- fonts (self-hosted) ---------- */
@font-face {
  font-family: "Alexandria";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/alexandria-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Alexandria";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/alexandria-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-arabic-500.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plex-arabic-600.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plex-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  /* brand colours, sampled from the machine livery */
  --navy-950: #071230;
  --navy-900: #0b1b3f;
  --navy-800: #12285a;
  --navy-700: #1b3a7c;
  --blue-600: #1f4bb4;
  --blue-500: #2f63d8;
  --blue-100: #dfe8fb;
  --blue-50: #f1f5fd;
  --green-600: #2a9a3d;
  --green-500: #3fbf52;
  --teal-500: #22b3d3;

  --ink: #0d1a33;
  --body: #3d4a63;
  --muted: #65718a;
  --line: #dde4ef;
  --soft: #f4f7fb;
  --white: #fff;

  --wa: #25d366;
  --wa-hover: #1fbe5b;
  --wa-ink: #062b17;

  --font-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 63, .06), 0 4px 14px -6px rgba(11, 27, 63, .12);
  --shadow-md: 0 2px 4px rgba(11, 27, 63, .05), 0 18px 40px -18px rgba(11, 27, 63, .28);
  --hdr-h: 72px;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.65; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
}
html[lang="en"] :is(h1, h2, h3, h4) { line-height: 1.16; letter-spacing: -.02em; }

p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--navy-900);
  color: #fff;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.i { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .i--dir,
[dir="ltr"] .i--back { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: .45rem .95rem; font-size: .9rem; border-radius: 10px; }
.btn--lg { min-height: 56px; padding: .9rem 1.7rem; font-size: 1.05rem; border-radius: 14px; }
.btn--block { width: 100%; }

.btn--wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 10px 24px -12px rgba(18, 140, 70, .8); }
.btn--wa:hover { background: var(--wa-hover); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); background: rgba(255, 255, 255, .7); color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }

/* ---------- distributor bar ---------- */
.topbar { background: var(--navy-900); color: #c9d6f2; font-size: .86rem; line-height: 1.6; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; min-height: 40px; padding-block: .4rem; }
.topbar strong { font-weight: 600; color: #fff; }
.topbar__tel { display: flex; gap: 1.25rem; flex: none; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.topbar a:hover { color: #9be3ad; }
.topbar .i { width: 15px; height: 15px; color: #7fe391; }
@media (max-width: 860px) {
  .topbar__in { justify-content: center; text-align: center; }
  .topbar__tel { display: none; }
}

/* ---------- header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.hdr.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(11, 27, 63, .5); }
.hdr__in { display: flex; align-items: center; gap: 1rem; height: var(--hdr-h); }

.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex: none; }
.logo__mark { width: 38px; height: 38px; }
.logo__img { height: 40px; width: auto; }
.logo__txt { display: grid; line-height: 1; }
.logo__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--teal-500);
  transform: skewX(-8deg);
  transform-origin: left bottom;
  white-space: nowrap;
}
.logo__name b { font-weight: 800; color: var(--navy-900); }
.logo__tag { margin-top: .32rem; font-size: .5rem; font-weight: 600; letter-spacing: .2em; color: var(--muted); white-space: nowrap; }
.logo--light .logo__name b { color: #fff; }
.logo--light .logo__tag { color: #9fb0d4; }
.logo--light .logo__mark rect { fill: var(--blue-600); }

.nav { display: flex; align-items: center; gap: .15rem; margin-inline: auto; }
.nav a {
  padding: .45rem .75rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.nav a:hover { background: var(--blue-50); color: var(--blue-600); }

.hdr__act { display: flex; align-items: center; gap: .5rem; flex: none; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .35rem .7rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.lang:hover { background: var(--blue-50); color: var(--blue-600); }
.lang[lang="en"] { font-family: var(--font-display); letter-spacing: .01em; }

.burger {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.burger .i { width: 22px; height: 22px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

@media (max-width: 1080px) {
  .burger { display: grid; }
  .hdr__act { margin-inline-start: auto; }
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: .5rem 1.25rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(11, 27, 63, .5);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--soft); border-radius: 0; }
}
@media (max-width: 560px) {
  .logo__tag { display: none; }
  .lang span { display: none; }
  .lang { padding-inline: .55rem; }
  .hdr .btn--wa span { display: none; }
  .hdr .btn--wa { padding-inline: .7rem; }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(4rem, 8vw, 7rem); }
.sec--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.sec--soft { background: var(--soft); }
.sec--dark { background: var(--navy-900); color: #c3cfe8; }
.sec--dark :is(h2, h3, h4) { color: #fff; }

.sec__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec__title { font-size: clamp(1.65rem, 1.1rem + 2.2vw, 2.6rem); }
.sec__lead { margin-top: .9rem; font-size: 1.12rem; color: var(--muted); }
.sec--dark .sec__lead { color: #a9b7d6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .9rem;
  font-family: var(--font-display);
  font-size: .86rem;
  font-weight: 600;
  color: var(--blue-600);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green-500) 0 33.3%, var(--blue-600) 33.3% 66.6%, var(--teal-500) 66.6%);
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.sec--dark .eyebrow { color: #8fb4ff; }

.chip {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--blue-50);
  color: var(--blue-600);
  flex: none;
}
.chip .i { width: 24px; height: 24px; }
.chip--lg { width: 56px; height: 56px; border-radius: 16px; background: var(--navy-900); color: #fff; }
.chip--lg .i { width: 28px; height: 28px; }
.chip--dark { background: rgba(255, 255, 255, .1); color: #9be3ad; }

/* reveal on scroll (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .2s, border-color .2s;
  transition-delay: calc(var(--d, 0) * 80ms), calc(var(--d, 0) * 80ms), 0s, 0s;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(34, 179, 211, .13), transparent 60%),
    radial-gradient(50rem 28rem at 0% 110%, rgba(63, 191, 82, .1), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f1f5fd 100%);
}
[dir="rtl"] .hero {
  background:
    radial-gradient(60rem 30rem at 15% -10%, rgba(34, 179, 211, .13), transparent 60%),
    radial-gradient(50rem 28rem at 100% 110%, rgba(63, 191, 82, .1), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f1f5fd 100%);
}
.hero__swoosh {
  position: absolute;
  inset-inline: 0;
  bottom: 6.25rem;
  width: 100%;
  height: clamp(180px, 26vw, 340px);
  opacity: .5;
  pointer-events: none;
}
[dir="rtl"] .hero__swoosh { transform: scaleX(-1); }

.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.hero__title { font-size: clamp(2.05rem, 1.1rem + 3.4vw, 3.55rem); font-weight: 800; line-height: 1.32; }
html[lang="en"] .hero__title { line-height: 1.08; letter-spacing: -.03em; }
.hero__title em {
  display: block;
  font-style: normal;
  background: linear-gradient(90deg, var(--blue-600), var(--teal-500) 55%, var(--green-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-block-end: .12em;
}
[dir="rtl"] .hero__title em { background-image: linear-gradient(270deg, var(--blue-600), var(--teal-500) 55%, var(--green-600)); }
.hero__lead { margin-top: 1.25rem; max-width: 36rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--body); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero__cta .btn { padding-inline: 1.3rem; font-size: 1rem; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; font-size: .95rem; font-weight: 500; color: var(--ink); }
.hero__ticks li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__ticks .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--green-500); color: #fff; stroke-width: 3; }

.hero__media { position: relative; }
/* The studio photos have a pure-white backdrop, so "multiply" drops it and leaves the machine on the page colour. */
.hero__media img { position: relative; width: 100%; mix-blend-mode: multiply; }
.hero__shadow {
  position: absolute;
  inset-inline: 8%;
  bottom: 2%;
  height: 11%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 27, 63, .3), transparent);
  filter: blur(10px);
}
.hero__tag {
  position: absolute;
  inset-inline-end: 4%;
  top: 2%;
  padding: .35rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-800);
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.stat { display: flex; flex-direction: column-reverse; gap: .2rem; padding: 1.35rem 1.5rem; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat dt { font-size: .93rem; color: var(--muted); }
.stat dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem; }
.stat__v { font-family: var(--font-display); font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.6rem); font-weight: 800; line-height: 1.15; color: var(--navy-900); letter-spacing: -.02em; }
.stat__u { font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--blue-600); }
.hero__note { position: relative; margin-top: .9rem; font-size: .84rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 560px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero__swoosh { bottom: 14rem; }
}
@media (max-width: 480px) {
  .hero__cta .btn { width: 100%; }
  .stat { padding: 1rem 1.1rem; }
}

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.why__card { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.why__card h3 { margin-top: 1.2rem; font-size: 1.22rem; }
.why__card p { margin-top: .6rem; color: var(--body); }
.why__card:nth-child(1) .chip { background: var(--blue-600); }
.why__card:nth-child(2) .chip { background: var(--green-600); }
.why__card:nth-child(3) .chip { background: var(--navy-900); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feat__card {
  position: relative;
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.feat__card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--blue-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
[dir="rtl"] .feat__card::before { transform-origin: right; }
.feat__card:nth-child(3n + 1)::before { background: var(--green-500); }
.feat__card:nth-child(3n + 3)::before { background: var(--teal-500); }
.feat__card:hover { box-shadow: var(--shadow-md); border-color: #c9d5ea; }
.feat__card:hover::before { transform: scaleX(1); }
.feat__card h3 { margin-top: 1.1rem; font-size: 1.06rem; }
.feat__card p { margin-top: .5rem; font-size: .96rem; color: var(--body); }
@media (max-width: 900px) { .feat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .feat { grid-template-columns: 1fr; gap: .75rem; }
  /* compact rows on phones: icon beside the text */
  :is(.feat__card, .req__card, .why__card) { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.15rem; }
  :is(.feat__card, .req__card, .why__card) .chip { grid-row: span 2; }
  :is(.feat__card, .req__card, .why__card) h3 { margin-top: 0; align-self: center; }
  :is(.feat__card, .req__card, .why__card) p { grid-column: 2; }
}

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.stage {
  position: relative;
  aspect-ratio: 26 / 27;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 26px 100%,
    radial-gradient(120% 90% at 30% 0%, #17347a 0%, #0d2150 55%, #0a1a40 100%);
  overflow: hidden;
  direction: ltr; /* the diagram is drawn in fixed coordinates */
}
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__lbl,
.stage__bin {
  position: absolute;
  font-size: clamp(.68rem, .55rem + .5vw, .82rem);
  font-weight: 500;
  line-height: 1.3;
  color: #c9d8f7;
  white-space: nowrap;
  pointer-events: none;
}
[dir="rtl"] :is(.stage__lbl, .stage__bin) { direction: rtl; }
.stage__bin { transform: translateX(-50%); font-family: var(--font-display); font-weight: 600; }
.stage__bin--ok { color: #7fe391; }
.stage__bin--no { color: #ff9c85; }
.stage__bin bdi { font-variant-numeric: tabular-nums; }

.steps { display: grid; gap: 1.6rem; }
.steps__item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; }
.steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 21px;
  top: 50px;
  bottom: -1.4rem;
  width: 2px;
  background: linear-gradient(rgba(143, 180, 255, .5), rgba(143, 180, 255, .08));
}
.steps__n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(143, 180, 255, .5);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: rgba(47, 99, 216, .28);
}
.steps__item h3 { font-size: 1.15rem; padding-top: .35rem; }
.steps__item p { margin-top: .35rem; color: #b4c2e0; }
.how__note {
  display: flex;
  gap: .75rem;
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(127, 227, 145, .3);
  border-radius: var(--r-md);
  background: rgba(63, 191, 82, .1);
  font-size: .96rem;
  color: #d5f2db;
}
.how__note .i { margin-top: .3rem; color: #7fe391; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }

/* ---------- applications ---------- */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.app { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.app__swatch { width: 100%; aspect-ratio: 5 / 3; background: var(--soft); }
.app__rings { stroke: var(--blue-600); }
.app__name { display: block; padding: .85rem 1.1rem 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.5; }
.ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: 1.25rem;
  padding: 1.5rem 1.75rem;
  border: 1.5px dashed #b8c7e6;
  border-radius: var(--r-lg);
  background: var(--blue-50);
}
.ask h3 { font-size: 1.2rem; }
.ask p { margin-top: .3rem; max-width: 40rem; color: var(--body); }
@media (max-width: 900px) { .apps { grid-template-columns: repeat(2, 1fr); } }

/* ---------- models ---------- */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.model {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.model__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(80% 60% at 50% 100%, rgba(31, 75, 180, .1), transparent 70%),
    linear-gradient(180deg, #fbfcfe, #edf2fb);
}
/* studio photos have a white backdrop; multiply lets the tinted panel show through */
.model__media img {
  position: absolute;
  inset: 1.25rem 1.5rem .75rem;
  width: calc(100% - 3rem);
  height: calc(100% - 2rem);
  object-fit: contain;
  mix-blend-mode: multiply;
}
.model__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.5rem; }
.model__name { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem); font-weight: 800; line-height: 1.2; color: var(--navy-900); letter-spacing: -.01em; }
.model__sub { font-weight: 500; color: var(--blue-600); }

.cap { margin-top: 1.1rem; padding: .9rem 1rem .75rem; border-radius: var(--r-md); background: var(--blue-50); }
.cap__l { font-size: .86rem; color: var(--muted); }
.cap__v { display: flex; align-items: baseline; gap: .45rem; font-family: var(--font-display); font-weight: 600; color: var(--blue-600); }
.cap__v bdi { font-size: 1.85rem; font-weight: 800; line-height: 1.3; color: var(--navy-900); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cap__bar { position: relative; height: 8px; margin-top: .45rem; border-radius: 4px; background: #d3def5; }
.cap__fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(var(--a) * 100%);
  width: calc((var(--b) - var(--a)) * 100%);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--teal-500));
}
[dir="rtl"] .cap__fill { background: linear-gradient(270deg, var(--blue-600), var(--teal-500)); }
.cap__scale { display: flex; justify-content: space-between; margin-top: .25rem; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.model__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; margin-block: .9rem 1.4rem; }
.model__specs > div { padding-block: .65rem; border-bottom: 1px solid var(--line); }
.model__specs > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
.model__specs dt { font-size: .84rem; line-height: 1.5; color: var(--muted); }
.model__specs dd { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.model__specs dd b { font-weight: 700; }
.model__specs dd span { font-family: var(--font-body); font-weight: 500; font-size: .88rem; color: var(--muted); }
.model .btn { margin-top: auto; }

.shared { margin-top: 1.25rem; padding: 1.3rem 1.5rem; border-radius: var(--r-lg); background: var(--navy-900); color: #b4c2e0; }
.shared__t { font-family: var(--font-display); font-size: .86rem; font-weight: 600; color: #8fb4ff; }
.shared__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem 1.5rem; margin-top: .8rem; }
.shared dt { font-size: .84rem; line-height: 1.5; }
.shared dd { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: #fff; }
.shared dd span { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: #b4c2e0; }

.notes { margin-top: 1rem; display: grid; gap: .25rem; font-size: .88rem; color: var(--muted); }
.notes li { position: relative; padding-inline-start: 1rem; }
.notes li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: #b3bfd3; }
@media (max-width: 960px) {
  .models { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .shared__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- requirements + service ---------- */
.req { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.req__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.req__card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.req__card h3 { margin-top: 1rem; font-size: 1.08rem; }
.req__card p { margin-top: .45rem; font-size: .97rem; }
.svc {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: radial-gradient(120% 80% at 100% 0%, #1b3a7c, var(--navy-900) 60%);
  color: #b4c2e0;
}
.svc__t { color: #fff; font-size: 1.3rem; }
.svc__list { display: grid; gap: 1.2rem; margin-block: 1.4rem 1.75rem; }
.svc__list li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; }
.svc__list h4 { color: #fff; font-size: 1.02rem; line-height: 1.5; }
.svc__list p { font-size: .95rem; }
.svc .btn { margin-top: auto; }
@media (max-width: 980px) { .req { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .req__grid { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gal__item { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; background: #dfe5ee; aspect-ratio: 3 / 2; }
.gal__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.gal__item:hover img { transform: scale(1.04); }
.gal__cap {
  position: absolute;
  inset-inline-start: .75rem;
  bottom: .75rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: rgba(11, 27, 63, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
}
@media (max-width: 760px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal__item:first-child { grid-row: auto; aspect-ratio: 3 / 2; }
}
@media (max-width: 480px) { .gal { grid-template-columns: 1fr; } .gal__item:first-child { grid-column: auto; } }

.lb { width: min(96vw, 1200px); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lb::backdrop { background: rgba(7, 18, 48, .88); }
.lb__fig { margin: 0; }
.lb__fig img { width: auto; max-width: 100%; max-height: 82vh; margin-inline: auto; border-radius: var(--r-md); }
.lb__fig figcaption { margin-top: .75rem; text-align: center; font-family: var(--font-display); font-weight: 600; color: #fff; }
.lb__btn {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--navy-900);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.lb__x { top: .75rem; inset-inline-end: .75rem; }
.lb__prev, .lb__next { top: calc(50% - 46px); }
.lb__prev { inset-inline-start: .75rem; }
.lb__next { inset-inline-end: .75rem; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq__head { position: sticky; top: calc(var(--hdr-h) + 2rem); }
.faq__head .btn { margin-top: 1.5rem; }
.faq__list { display: grid; gap: .75rem; }
.qa { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .2s, box-shadow .2s; }
.qa[open] { border-color: #c2d0ea; box-shadow: var(--shadow-sm); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { width: 22px; height: 22px; color: var(--blue-600); transition: transform .25s; }
.qa[open] summary .i { transform: rotate(180deg); }
.qa__a { padding: 0 1.3rem 1.25rem; }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* ---------- contact ---------- */
.contact { background: radial-gradient(70rem 40rem at 100% 0%, #183574 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
[dir="rtl"] .contact { background: radial-gradient(70rem 40rem at 0% 0%, #183574 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.contact__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__st { margin-top: 2rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: #8fb4ff; }
.contact__steps { display: grid; gap: .6rem; margin-top: .8rem; }
.contact__steps li { display: flex; align-items: center; gap: .75rem; color: #dbe5fb; }
.contact__steps li span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  flex: none;
}
.dist {
  margin-top: 1.75rem;
  padding: 1.4rem 1.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .06);
  font-style: normal;
}
.dist__role { font-family: var(--font-display); font-size: .86rem; font-weight: 600; color: #7fe391; }
.dist__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.5; color: #fff; }
.dist__list { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start; gap: .55rem 2rem; margin-block: .9rem 1.25rem; color: #dbe5fb; }
.dist__list li, .dist__list a { display: inline-flex; align-items: center; gap: .55rem; }
.dist__list a { color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.dist__list a:hover { text-decoration: underline; }
.dist__list .i { width: 18px; height: 18px; color: #8fb4ff; }
@media (max-width: 420px) { .dist__list { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: #fff; color: var(--body); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field__l { font-size: .92rem; font-weight: 600; color: var(--ink); }
.form__opt { font-weight: 400; font-size: .82rem; color: var(--muted); }
.field :is(input, select, textarea) {
  width: 100%;
  min-height: 50px;
  padding: .65rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365718a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: right .8rem center;
}
[dir="rtl"] .field select { background-position: left .8rem center; }
.field :is(input, select, textarea):hover { border-color: #b9c6dc; }
.field :is(input, select, textarea):focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 99, 216, .16); }
.field ::placeholder { color: #94a0b6; }
.form__note { display: flex; align-items: center; justify-content: center; gap: .45rem; font-size: .84rem; color: var(--muted); text-align: center; }
.form__note .i { width: 18px; height: 18px; color: var(--green-600); }
@media (max-width: 900px) { .contact__in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.ftr { background: var(--navy-950); color: #9fb0d4; font-size: .96rem; }
.ftr__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.ftr__brand p { margin-top: 1.1rem; max-width: 24rem; }
.ftr__brand .ftr__dist { margin-top: .9rem; }
.ftr__dist strong { font-family: var(--font-display); font-weight: 600; color: #fff; }
.ftr__col { display: grid; gap: .5rem; align-content: start; justify-items: start; }
.ftr__t { margin-bottom: .35rem; font-family: var(--font-display); font-weight: 600; color: #fff; }
.ftr__col a { text-decoration: none; transition: color .15s; }
.ftr__col a:hover { color: #fff; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem 5.5rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
@media (max-width: 760px) { .ftr__in { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }

/* ---------- floating WhatsApp button ---------- */
.fab {
  position: fixed;
  inset-inline-end: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  height: 58px;
  min-width: 58px;
  padding: 0 16px;
  border-radius: 29px;
  background: var(--wa);
  color: var(--wa-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(18, 140, 70, .75), 0 2px 6px rgba(0, 0, 0, .15);
  transition: transform .25s, background-color .2s, opacity .25s, visibility .25s;
}
.fab:hover { background: var(--wa-hover); transform: translateY(-2px); }
.fab.is-away { opacity: 0; visibility: hidden; transform: translateY(12px); }
.fab .i { width: 26px; height: 26px; }
.fab__lbl { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .35s ease, margin .35s ease, opacity .25s; }
@media (hover: hover) {
  .fab:hover .fab__lbl,
  .fab:focus-visible .fab__lbl { max-width: 16rem; margin-inline-start: .6rem; opacity: 1; }
}
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: fab-pulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes fab-pulse { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.5); } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .hdr, .fab, .stage, .form, .burger { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
