/* Nova Solutions — ستايل الموقع. خصائص منطقية (inline-start/end) عشان العربي والإنجليزي من نفس الملف. */

:root {
  --violet: #6935e7;
  --violet-2: #9c7bff;
  --violet-d: #4f22c4;
  --ink: #0e1030;
  --ink-2: #161943;
  --ink-3: #22265c;
  --lav: #ede6ff;
  --paper: #fbfaff;
  --line: #e2def3;
  --amber: #f5b731;
  --teal: #12a4b6;
  --wa: #0f7f43;
  --text: #1c1e45;
  --muted: #5b5e86;
  --on-ink: #f1efff;
  --on-ink-2: #b4b6dc;
  --r-s: 12px;
  --r: 20px;
  --r-l: 28px;
  --wrap: 1180px;
  --gut: clamp(18px, 4vw, 40px);
  --fd: "Readex Pro", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fb: "IBM Plex Sans Arabic", "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sh: 0 1px 2px rgba(14, 16, 48, 0.05), 0 14px 34px -14px rgba(14, 16, 48, 0.2);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.8 var(--fb);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="en"] body {
  line-height: 1.65;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--fd);
  line-height: 1.3;
  text-wrap: balance;
}

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

.wrap {
  width: min(100% - 2 * var(--gut), var(--wrap));
  margin-inline: auto;
}

.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

[dir="rtl"] .ico--dir {
  transform: scaleX(-1);
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 100;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* ─────────── أزرار ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.82em 1.45em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.3 var(--fd);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: none;
}

.btn--sm {
  padding: 0.55em 1.1em;
  font-size: 0.92rem;
}

.btn--block {
  width: 100%;
}

.btn--amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(245, 183, 49, 0.75);
}

.btn--amber:hover {
  background: #ffc94d;
}

.btn--line {
  background: transparent;
  color: var(--on-ink);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--line:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn--wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(15, 127, 67, 0.9);
}

.btn--wa:hover {
  background: #13924e;
}

/* ─────────── الهيدر ─────────── */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--on-ink);
  transition: background-color 0.25s, box-shadow 0.25s;
}

.hdr.is-stuck {
  background: rgba(14, 16, 48, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hdr__in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand-link {
  display: inline-flex;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand img {
  width: 44px;
  height: 32px;
}

.brand__t {
  display: grid;
  line-height: 1;
  font-family: var(--fd);
}

.brand__t b {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.14em;
}

.brand__t i {
  font-style: normal;
  font-weight: 500;
  font-size: 0.56rem;
  letter-spacing: 0.42em;
  color: var(--violet-2);
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font: 500 0.95rem var(--fd);
  color: var(--on-ink-2);
  transition: color 0.2s, background-color 0.2s;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hdr__act {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  padding: 8px 12px;
  border-radius: 999px;
  font: 500 0.9rem var(--fd);
  color: var(--on-ink-2);
}

.lang:hover {
  color: #fff;
}

/* ─────────── الهيرو ─────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(120px, 15vw, 168px) clamp(120px, 14vw, 168px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(156, 123, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 123, 255, 0.11) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 76%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 76%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: -10% 0 0;
  z-index: -1;
  background: radial-gradient(36% 46% at 78% 34%, rgba(105, 53, 231, 0.6), transparent 70%),
    radial-gradient(28% 36% at 10% 78%, rgba(18, 164, 182, 0.22), transparent 70%);
}

[dir="rtl"] .hero::after {
  transform: scaleX(-1);
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 0.82rem/1.4 var(--fd);
  color: var(--violet);
  background: var(--lav);
  padding: 6px 14px;
  border-radius: 999px;
}

.eyebrow--ink {
  color: #d9ccff;
  background: rgba(156, 123, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(156, 123, 255, 0.3);
}

.hero h1 {
  margin-top: 20px;
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1.22;
  color: #fff;
}

html[lang="en"] .hero h1 {
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero h1 span {
  display: block;
}

.hero h1 .hl {
  padding-block: 0.08em 0.16em;
  background: linear-gradient(90deg, #b9a2ff, #e6dcff 55%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[dir="rtl"] .hero h1 .hl {
  background-image: linear-gradient(270deg, #b9a2ff, #e6dcff 55%, var(--amber));
}

.hero__lead {
  margin-top: 18px;
  max-width: 34em;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--on-ink-2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  font-size: 0.93rem;
  color: var(--on-ink-2);
}

.hero__ticks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__ticks .ico {
  color: var(--amber);
  width: 1.05em;
  height: 1.05em;
  stroke-width: 2.6;
}

/* المشهد: نافذة لوحة تحكم + موبايل */
.stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 10 / 9;
  margin-inline-start: auto;
}

.win {
  position: absolute;
  inset-block-start: 3%;
  inset-inline-end: 0;
  width: 90%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.win__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 14px;
  background: #f1eefb;
  direction: ltr;
}

.win__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6cff0;
}

.win__bar i:first-child {
  background: #ff8f8f;
}

.win__bar i:nth-child(2) {
  background: var(--amber);
}

.win__url {
  margin-inline-start: 12px;
  padding: 2px 14px;
  border-radius: 999px;
  background: #fff;
  font: 500 0.68rem/1.6 var(--fd);
  color: var(--muted);
}

.win__body {
  display: grid;
  grid-template-columns: 1fr 54px;
}

.win__side {
  order: 2;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding-block: 16px;
  background: var(--ink-2);
}

.win__side b {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  margin-bottom: 6px;
}

.win__side span {
  width: 22px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
}

.win__side span.on {
  background: var(--amber);
}

.win__main {
  display: grid;
  gap: 14px;
  padding: 16px;
  padding-inline-start: 34%;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.kpi {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  min-width: 0;
}

.kpi small {
  font-size: 0.6rem;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi strong {
  font: 700 1.02rem/1.2 var(--fd);
  text-align: start;
}

[dir="rtl"] .kpi strong {
  text-align: right;
}

.kpi:last-child strong {
  color: var(--wa);
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 132px;
  padding: 12px 12px 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--paper), #fff);
  border: 1px solid var(--line);
  direction: ltr;
}

.chart i {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--violet-2), var(--violet));
  height: 40%;
}

.chart i:nth-child(2) { height: 55%; }
.chart i:nth-child(3) { height: 46%; }
.chart i:nth-child(4) { height: 68%; }
.chart i:nth-child(5) { height: 58%; }
.chart i:nth-child(6) { height: 80%; }
.chart i:nth-child(7) { height: 70%; }
.chart i:nth-child(8) { height: 92%; background: linear-gradient(180deg, #ffd676, var(--amber)); }
.chart i:nth-child(9) { height: 84%; }

.rows {
  display: grid;
  gap: 8px;
  padding-bottom: 6px;
}

.rows span {
  height: 9px;
  border-radius: 9px;
  background: #eeebfa;
}

.rows span:nth-child(2) { width: 82%; }
.rows span:nth-child(3) { width: 58%; }
.rows span:nth-child(4) { width: 74%; }

.device {
  border: 7px solid #07081c;
  border-radius: 30px;
  overflow: hidden;
  background: #07081c;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.device img {
  width: 100%;
  border-radius: 23px;
}

.stage .device {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 36%;
}

.toast {
  position: absolute;
  inset-block-end: 9%;
  inset-inline-end: 4%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: 600 0.8rem/1.4 var(--fd);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  animation: bob 5s ease-in-out infinite;
}

[dir="rtl"] .toast {
  padding: 9px 10px 9px 16px;
}

.toast .ico {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  stroke-width: 3;
}

@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}

/* ─────────── الأرقام ─────────── */
.facts {
  position: relative;
  z-index: 2;
  margin-top: -72px;
}

.facts__card {
  padding: 22px clamp(18px, 3vw, 36px) 26px;
  border-radius: var(--r-l);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}

.facts__cap {
  font: 600 0.8rem var(--fd);
  color: var(--violet);
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 10px;
}

.fact {
  padding-inline: clamp(12px, 2vw, 28px);
  border-inline-start: 1px solid var(--line);
}

.fact:first-child {
  border: 0;
  padding-inline-start: 0;
}

.fact dt {
  font: 700 clamp(1.7rem, 3.4vw, 2.6rem)/1.25 var(--fd);
  color: var(--ink);
  text-align: start;
}

[dir="rtl"] .fact dt {
  text-align: right;
}

.fact dd {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ─────────── مين إحنا ─────────── */
.about {
  padding-top: clamp(36px, 6vw, 64px);
}

.about__card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  padding: clamp(22px, 3.6vw, 40px);
  border-radius: var(--r-l);
  background: linear-gradient(180deg, #f3eeff, var(--lav));
}

.about__head .eyebrow {
  background: #fff;
}

.about__head h2 {
  margin-top: 14px;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.45;
  color: var(--ink);
}

html[lang="en"] .about__head h2 {
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.about__head h2 + p {
  margin-top: 8px;
  font-size: 0.97rem;
  color: #474a73;
}

.about__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.about__list li {
  padding: 20px;
  border-radius: var(--r);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(105, 53, 231, 0.12);
}

.about__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--lav);
  color: var(--violet);
}

.about__list h3 {
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.5;
  color: var(--ink);
}

.about__list p {
  margin-top: 4px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ─────────── أقسام ─────────── */
.sec {
  padding-block: clamp(72px, 10vw, 124px);
}

.sec__head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.sec__head h2 {
  margin-top: 16px;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  color: var(--ink);
}

html[lang="en"] .sec__head h2 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sec__lead {
  margin-top: 12px;
  font-size: 1.06rem;
  color: var(--muted);
}

/* ─────────── الخدمات ─────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--violet-2);
  box-shadow: var(--sh);
}

.card__ico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--lav);
  color: var(--violet);
}

.card__ico .ico {
  width: 25px;
  height: 25px;
}

.card h3 {
  margin-top: 18px;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
}

.card > p {
  margin-top: 8px;
  font-size: 0.97rem;
  color: var(--muted);
}

.ticks {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.93rem;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ticks .ico {
  margin-top: 0.42em;
  width: 1em;
  height: 1em;
  color: var(--teal);
  stroke-width: 2.6;
}

.card__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  font: 600 0.93rem var(--fd);
  color: var(--violet);
}

.card__go .ico {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.25s var(--ease);
}

.card__go:hover .ico {
  transform: translateX(4px);
}

[dir="rtl"] .card__go:hover .ico {
  transform: scaleX(-1) translateX(4px);
}

/* ─────────── ليه إحنا ─────────── */
.why {
  background: linear-gradient(180deg, #f3eeff, var(--lav));
}

.why__in {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.sec__head--side {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}

.sec__head--side .eyebrow {
  background: #fff;
}

.why__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding-block: 24px;
  border-top: 1px solid rgba(105, 53, 231, 0.18);
}

.why__list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.why__ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--violet);
  box-shadow: 0 6px 16px -8px rgba(105, 53, 231, 0.5);
}

.why__list h3 {
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--ink);
}

.why__list p {
  margin-top: 4px;
  color: #474a73;
}

/* ─────────── شغلنا ─────────── */
.work {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
}

.work::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(40% 50% at 22% 55%, rgba(105, 53, 231, 0.5), transparent 70%);
}

[dir="rtl"] .work::before {
  transform: scaleX(-1);
}

.work__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.work .sec__head {
  margin-bottom: 30px;
}

.work .sec__head h2 {
  color: #fff;
}

.work .sec__lead {
  color: var(--on-ink-2);
}

.groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.groups > div {
  padding-block: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.groups dt {
  font: 600 0.95rem var(--fd);
  color: var(--amber);
}

.groups dd {
  margin-top: 2px;
  font-size: 0.95rem;
  color: var(--on-ink);
}

.phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 20px);
  align-items: start;
  direction: ltr;
}

.phones .device:nth-child(1) {
  margin-top: 56px;
}

.phones .device:nth-child(3) {
  margin-top: 28px;
}

/* ─────────── طريقة الشغل ─────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: s;
}

.steps li {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
}

.steps__n {
  display: block;
  font: 700 2.4rem/1 var(--fd);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--violet-2);
  text-align: start;
}

[dir="rtl"] .steps__n {
  text-align: right;
}

.steps li:last-child {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.steps li:last-child .steps__n {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.7);
}

.steps h3 {
  margin-top: 16px;
  font-weight: 600;
  font-size: 1.18rem;
}

.steps p {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--muted);
}

.steps li:last-child p {
  color: #e4dbff;
}

/* ─────────── ابدأ مشروعك ─────────── */
.brief {
  background: linear-gradient(180deg, var(--paper), #f3eeff);
}

.brief__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.brief__form {
  display: grid;
  gap: 28px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--r-l);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}

.brief legend {
  padding: 0;
  margin-bottom: 12px;
  font: 600 1.06rem var(--fd);
  color: var(--ink);
}

.chipset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font: 500 0.95rem/1.5 var(--fd);
  color: var(--text);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.chip:hover span {
  border-color: var(--violet-2);
}

.chip input:checked + span {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.chip input[type="checkbox"]:checked + span::before {
  content: "✓";
  font-weight: 700;
}

.chip input:focus-visible + span {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field > span {
  font: 600 0.92rem var(--fd);
  color: var(--ink);
}

.field em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-s);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--text);
  font: 400 1rem/1.6 var(--fb);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(105, 53, 231, 0.14);
}

.ticket {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--r-l);
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: 0 30px 60px -30px rgba(14, 16, 48, 0.7);
}

.ticket__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 0.95rem var(--fd);
  color: var(--on-ink-2);
}

.ticket__head .ico {
  color: #3ddc84;
}

.ticket__msg {
  min-height: 132px;
  padding: 14px 16px;
  border-radius: 16px;
  border-start-start-radius: 4px;
  background: var(--ink-3);
  font-size: 0.98rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ticket__note {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--on-ink-2);
}

/* ─────────── أسئلة ─────────── */
.faq__in {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(20px, 5vw, 64px);
  align-items: start;
}

.faq .sec__head {
  margin-bottom: 0;
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa:first-child {
  border-top: 1px solid var(--line);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  font: 600 1.08rem/1.5 var(--fd);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary .ico {
  color: var(--violet);
  transition: transform 0.25s var(--ease);
}

.qa[open] summary .ico {
  transform: rotate(180deg);
}

.qa p {
  padding-bottom: 22px;
  max-width: 46em;
  color: var(--muted);
}

/* ─────────── نداء أخير ─────────── */
.cta {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.cta__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--r-l);
  background: linear-gradient(120deg, var(--violet-d), var(--violet) 55%, #8257f5);
  color: #fff;
}

.cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 120% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(70% 120% at 100% 0%, #000, transparent 70%);
}

.cta h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

.cta p {
  margin-top: 6px;
  color: #e4dbff;
}

.cta__act {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.cta__num {
  font: 500 0.95rem var(--fd);
  letter-spacing: 0.06em;
  color: #e4dbff;
}

/* ─────────── الفوتر ─────────── */
.ftr {
  background: var(--ink);
  color: var(--on-ink-2);
  font-size: 0.95rem;
}

.ftr__in {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-block: 56px 36px;
}

.ftr__brand p {
  margin-top: 14px;
}

.ftr__brand .ftr__loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.88rem;
}

.ftr__loc .ico {
  flex: none;
  width: 1.1em;
  height: 1.1em;
}

.ftr h3 {
  font: 600 0.9rem var(--fd);
  color: #fff;
  margin-bottom: 12px;
}

.ftr li + li {
  margin-top: 6px;
}

.ftr a:hover {
  color: #fff;
}

.ftr__base {
  padding-block: 18px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.fab {
  position: fixed;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(15, 127, 67, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}

.fab.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fab .ico {
  width: 28px;
  height: 28px;
}

/* ─────────── الظهور مع السكرول (JS بيحط rv-wait على اللي تحت الشاشة بس) ─────────── */
.rv {
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
}

.rv-wait {
  opacity: 0;
  transform: translateY(18px);
}

.card.rv,
.steps li.rv {
  transition: opacity 0.6s ease, transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

/* ─────────── 404 ─────────── */
.nf {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--on-ink);
  text-align: center;
}

.nf__in {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 40px 20px;
}

.nf__code {
  font: 700 clamp(5rem, 22vw, 9rem)/1 var(--fd);
  color: transparent;
  -webkit-text-stroke: 2px var(--violet-2);
}

.nf h1 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ─────────── شاشات أصغر ─────────── */
@media (max-width: 1020px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hdr__act {
    margin-inline-start: auto;
  }

  .hero__in,
  .why__in,
  .work__in,
  .brief__grid,
  .faq__in {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage {
    margin-inline: auto;
    margin-top: 20px;
  }

  .sec__head--side,
  .ticket {
    position: static;
  }

  .facts__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
  }

  .fact:nth-child(odd) {
    border: 0;
    padding-inline-start: 0;
  }

  .phones {
    max-width: 520px;
    margin-inline: auto;
  }

  .ftr__in {
    grid-template-columns: 1fr 1fr;
  }

  .ftr__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .hdr__in {
    height: 60px;
    gap: 8px;
  }

  .brand img {
    width: 36px;
    height: 26px;
  }

  .brand__t b {
    font-size: 0.98rem;
  }

  .brand__t i {
    font-size: 0.48rem;
  }

  .lang {
    padding-inline: 8px;
  }

  .cards,
  .steps,
  .groups,
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 22px;
  }

  .hero__cta .btn {
    flex: 1 1 auto;
  }

  .win__main {
    padding: 12px;
    padding-inline-start: 36%;
    gap: 10px;
  }

  .kpis {
    grid-template-columns: 1fr 1fr;
  }

  .kpi:last-child {
    display: none;
  }

  .chart {
    height: 70px;
  }

  .toast {
    font-size: 0.72rem;
  }

  .cta__card {
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .rv-wait {
    opacity: 1;
    transform: none;
  }
}

.nw {
  white-space: nowrap;
}

/* مين إحنا — شاشات أصغر */
@media (max-width: 1020px) {
  .about__card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .about__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .about__list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
  }

  .about__ico {
    margin-bottom: 0;
  }
}
