/* ============================================================
   AVIMA — Marketing website stylesheet
   Trilingual: FR (default) / EN / AR (dir="rtl")
   Uses CSS logical properties so most layout mirrors
   automatically for Arabic; explicit overrides at the bottom.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --primary: #1676f3;
  --navy: #2e3a52;
  --primary-soft: #e9f2fe;
  --amber: #f5a623;
  --amber-soft: #fdf1dc;
  --bg: #f7f9fc;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #5b6673;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(31, 42, 68, 0.08);
  --shadow-lg: 0 24px 60px rgba(31, 42, 68, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --font-head: "Poppins", "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
}

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

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 118, 243, 0.3);
}

.btn--primary:hover {
  background: #0e5ad6;
}

.btn--ghost {
  border-color: var(--primary);
  color: var(--navy);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--primary-soft);
}

.btn--amber {
  background: var(--amber);
  color: #3d2a00;
  box-shadow: 0 8px 20px rgba(242, 165, 22, 0.35);
}

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

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.nav__brand:hover {
  text-decoration: none;
}

.nav__brand img {
  height: 46px;
  width: auto;
  border-radius: 10px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--card);
}

.lang-switch a {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.lang-switch a:hover {
  text-decoration: none;
  color: var(--primary);
}

.lang-switch a[aria-current="true"] {
  background: var(--primary);
  color: #fff;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.nav__burger span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 110px) clamp(56px, 8vw, 90px);
  background:
    radial-gradient(720px 340px at 85% 10%, rgba(242, 165, 22, 0.14), transparent 65%),
    radial-gradient(900px 420px at 10% 90%, rgba(22, 118, 243, 0.1), transparent 60%),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-soft);
  color: #7c5400;
  border: 1px solid #f0d9a8;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-block-end: 20px;
}

.pill--primary {
  background: var(--primary-soft);
  color: var(--navy);
  border-color: #c5dbfa;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 56ch;
  margin-block-end: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block-end: 18px;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Mini dashboard mockup (pure CSS, no image) */
.mock {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
}

.mock::before {
  content: "";
  position: absolute;
  inset-block-start: -14px;
  inset-inline-end: -14px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(242, 165, 22, 0.18);
  z-index: -1;
}

.mock__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-block-end: 4px;
}

.mock__sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-block-end: 18px;
}

.mock__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-block-end: 18px;
}

.mock__kpi {
  background: var(--primary-soft);
  border-radius: 10px;
  padding: 10px 12px;
}

.mock__kpi strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy);
}

.mock__kpi span {
  font-size: 0.72rem;
  color: var(--muted);
}

.mock__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding-block-start: 8px;
  border-top: 1px dashed var(--border);
}

.mock__bar {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--primary) 0%, #4d94f7 100%);
  opacity: 0.9;
}

.mock__bar:nth-child(1) { height: 38%; }
.mock__bar:nth-child(2) { height: 45%; }
.mock__bar:nth-child(3) { height: 62%; }
.mock__bar:nth-child(4) { height: 52%; }
.mock__bar:nth-child(5) { height: 78%; }
.mock__bar:nth-child(6) { height: 100%; background: linear-gradient(180deg, var(--amber) 0%, #f7c35e 100%); }

.mock__caption {
  margin-block-start: 14px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-block-end: 0;
}

/* ---------- Stats strip ---------- */
.stats {
  padding-block: 8px 40px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--navy);
  margin-block-end: 4px;
}

.stat span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Section headers ---------- */
.section {
  padding-block: clamp(64px, 8vw, 100px);
}

.section--tint {
  background: linear-gradient(180deg, var(--primary-soft) 0%, transparent 100%);
}

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-block-end: 12px;
}

.kicker--amber {
  color: #b07700;
}

.section__head {
  max-width: 720px;
  margin-block-end: clamp(32px, 5vw, 52px);
}

.section__head .lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin-block-end: 0;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .chat__msg,
  .chat__typing {
    transition: none !important;
  }
}

/* ---------- Problem cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-block-end: 8px;
}

.card p {
  margin-block-end: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card--problem {
  border-inline-start: 4px solid #d9534f;
}

/* ---------- Solution ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
}

.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-block-start: 2px;
  border-radius: 50%;
  background: var(--primary) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 13px no-repeat;
}

/* Screenshot placeholder */
.shot {
  background: repeating-linear-gradient(45deg, #f1f5f1 0 12px, #e9efe9 12px 24px);
  border: 2px dashed #b9c9bd;
  border-radius: var(--radius-lg);
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #55685c;
  font-size: 0.9rem;
}

.shot strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--navy);
  margin-block-end: 6px;
}

/* ---------- Features ---------- */
.feature {
  position: relative;
}

.feature__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  margin-block-end: 16px;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- AI assistant section ---------- */
.ai-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1d2a4a 100%);
  color: #e9f3ec;
}

.ai-section h2 {
  color: #fff;
}

.ai-section .lead {
  color: #c6d2ea;
}

.ai-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.ai-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ai-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #d8e1f2;
}

.ai-points li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-block-start: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.ai-disclaimer {
  font-size: 0.78rem;
  color: #93a1bd;
  margin-block-start: 18px;
}

/* ---------- Chat mockup ---------- */
.chat {
  background: #f4f8f5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
}

.chat__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #3d2a00;
  font-size: 0.9rem;
}

.chat__head strong {
  font-family: var(--font-head);
  font-size: 0.95rem;
  display: block;
}

.chat__head span {
  font-size: 0.75rem;
  opacity: 0.85;
}

.chat__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
}

.chat__msg {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.chat__msg--user {
  align-self: flex-start;
  background: #dfe8f6;
  color: #16233b;
  border-end-start-radius: 4px;
}

.chat__msg--ai {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-end-end-radius: 4px;
}

.chat__msg table {
  border-collapse: collapse;
  margin-block-start: 10px;
  font-size: 0.8rem;
  width: 100%;
}

.chat__msg th,
.chat__msg td {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 9px;
  text-align: start;
}

.chat__typing {
  align-self: flex-end;
  display: none;
  gap: 5px;
  background: var(--primary);
  border-radius: 16px;
  border-end-end-radius: 4px;
  padding: 12px 16px;
}

.chat__typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  animation: blink 1s infinite;
}

.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }

.chat.armed .chat__msg {
  opacity: 0;
  transform: translateY(8px);
}

.chat.armed .chat__typing.on {
  display: inline-flex;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat__typing i {
    animation: none;
  }
}

/* ---------- How it works ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin-block-end: 16px;
}

.step p {
  margin-block-end: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Screenshots gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery .shot {
  min-height: 200px;
  padding: 16px;
}

.gallery .shot strong {
  font-size: 0.9rem;
}

.gallery__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-block-start: 16px;
  margin-block-end: 0;
}

/* Real screenshot embeds */
.shot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.shot-item {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.shot-item figcaption {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}

/* ---------- Audience / Security band / Statement (jmix.io-inspired) ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid-4 .card h3 {
  font-size: 1rem;
}

.grid-4 .card p {
  font-size: 0.9rem;
}

.section--slim {
  padding-block: clamp(40px, 5vw, 64px);
}

.security-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.security-band h2 {
  margin-block-end: 8px;
}

.security-band p {
  color: var(--muted);
  margin-block-end: 0;
}

.chip-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  box-shadow: var(--shadow);
}

.chip-row li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex: 0 0 auto;
}

.chip-row--center {
  justify-content: center;
  margin-block-start: 22px;
}

.statement {
  max-width: 820px;
  text-align: center;
  margin-inline: auto;
}

.statement h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.statement p {
  color: var(--muted);
  margin-block-end: 0;
}

.hero__tech {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  opacity: 0.85;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 22px;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
}

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

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-block-end: 20px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 118, 243, 0.18);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.form-card .btn {
  margin-block-start: 18px;
  width: 100%;
  justify-content: center;
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-block-start: 12px;
  margin-block-end: 0;
  text-align: center;
}

.contact-aside p {
  color: var(--muted);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
  margin-block: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #ccd6e8;
  padding-block: 56px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-block-end: 40px;
}

.site-footer img {
  height: 52px;
  width: auto;
  margin-block-end: 14px;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-block-end: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #ccd6e8;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-tagline {
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block-start: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #93a1bd;
}

/* ---------- RTL overrides (Arabic page) ---------- */
[dir="rtl"] .kicker {
  text-transform: none;
  letter-spacing: 0;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .nav__brand {
  letter-spacing: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {

  .hero__grid,
  .ai-grid,
  .split,
  .security-band,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 768px) {

  .nav__links {
    position: absolute;
    inset-inline: 0;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
    padding-block: 8px;
  }

  .nav__links a {
    display: block;
    padding: 14px 24px;
    border-block-end: 1px solid var(--border);
  }

  .site-header.nav-open .nav__links {
    display: flex;
  }

  .site-header.nav-open .nav__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav__burger span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav__burger {
    display: flex;
  }

  .nav__cta .btn {
    display: none;
  }

  .grid-3,
  .steps,
  .grid-4,
  .stats__grid,
  .gallery,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

