/* =========================================================================
   Smart Networks (SNW) — Design System
   Aesthetic: "Engineered precision" — light, technical, blueprint motifs,
   deep-navy hero/footer, blue→cyan signal gradient. Fully RTL-aware via
   CSS logical properties.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --ink: #0a1730;          /* deep navy, near-black */
  --ink-2: #0f2149;        /* navy 2 */
  --navy: #12294f;
  --brand: #1b62e6;        /* signal blue */
  --brand-strong: #1450c8;
  --cyan: #16c6d4;         /* signal cyan */
  --cyan-strong: #0fa8b6;

  /* Neutrals */
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-softer: #eef2f9;
  --line: #e2e8f2;
  --line-strong: #cbd6e8;
  --text: #14203a;
  --muted: #56617a;
  --muted-2: #78829a;
  --white: #ffffff;

  /* On-dark neutrals */
  --d-text: #eaf0fb;
  --d-muted: #9fb0cc;
  --d-line: rgba(255, 255, 255, 0.12);
  --d-line-strong: rgba(255, 255, 255, 0.2);
  --d-card: rgba(255, 255, 255, 0.04);

  /* Signature gradient */
  --grad: linear-gradient(100deg, var(--brand) 0%, var(--cyan) 100%);
  --grad-soft: linear-gradient(100deg, rgba(27, 98, 230, 0.12), rgba(22, 198, 212, 0.12));

  /* Typography */
  --font-en: "Space Grotesk", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-en-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;

  --f-display: var(--font-en);
  --f-body: var(--font-en-body);

  /* Radii & shadow */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 23, 48, 0.06), 0 2px 6px rgba(10, 23, 48, 0.05);
  --shadow: 0 10px 30px -12px rgba(10, 23, 48, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 23, 48, 0.28);
  --shadow-brand: 0 18px 40px -16px rgba(27, 98, 230, 0.45);

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 820px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

/* Arabic switches the font stack */
[lang="ar"],
html[dir="rtl"] {
  --f-display: var(--font-ar);
  --f-body: var(--font-ar);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
/* Default size for inline icon-set SVGs (they carry focusable="false").
   Sized contexts (.icon-badge svg, .btn svg, etc.) override this. */
svg[focusable="false"] { width: 1em; height: 1em; flex: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -0.02em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.25; }
.h1, h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.h2, h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.h3, h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { color: var(--muted); }
strong { color: var(--text); font-weight: 600; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); line-height: 1.65; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.bg-soft { background: var(--bg-soft); }
.bg-grid { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--f-body);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand);
}
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--grad); border-radius: 2px; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 0.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--f-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: var(--r-pill);
  border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -14px rgba(27, 98, 230, 0.55); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--bg-soft); }
.btn-on-dark { background: rgba(255,255,255,0.08); color: #fff; border-color: var(--d-line-strong); }
.btn-on-dark:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; height: 76px; }
.brand { display: inline-flex; align-items: center; grid-column: 1; justify-self: start; flex: 0 0 auto; }
.brand-logo { height: 65px; width: auto; display: block; }
@media (max-width: 600px) { .brand-logo { height: 52px; } }
.footer-logo { height: 58px; filter: brightness(0) invert(1); }

/* Centered current-page label — mobile only */
.nav-current { display: none; }

.nav-links { grid-column: 2; justify-self: center; display: flex; align-items: center; gap: 0.15rem; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  padding: 0.55rem 0.9rem; border-radius: var(--r-pill); position: relative; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--brand); background: var(--bg-soft); }
.nav-links a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0.9rem; bottom: 0.18rem;
  height: 3px; background: var(--grad); border-radius: 3px;
}
.nav-menu-lang { display: none; }

.nav-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 0.6rem; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.9rem; color: var(--ink);
  padding: 0.5rem 0.85rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1024px) {
  .nav { display: flex; justify-content: space-between; }
  .nav-links, .nav-lang-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-current {
    display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
    max-width: 44%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
  }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0.2rem;
    position: absolute; top: 100%; left: 50%; right: auto; transform: translateX(-50%); width: 100vw;
    background: #fff; border-block: 1px solid var(--line);
    padding: 0.8rem var(--gutter) 1.3rem; box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 0.85rem 0.7rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .nav-links.open a:last-child { border-bottom: 0; }
  .nav-links.open a[aria-current="page"] { color: var(--brand); }
  .nav-links.open a[aria-current="page"]::after { display: none; }
  .nav-links.open .nav-menu-lang { display: block; margin-top: 0.5rem; border-top: 1px solid var(--line); padding-top: 0.5rem; }
  .nav-links.open .nav-menu-lang a { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--brand); font-weight: 600; border-bottom: 0; }
  .nav-links.open .nav-menu-lang svg { width: 1.05em; height: 1.05em; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--d-text); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 70% at 85% -10%, rgba(22, 198, 212, 0.22), transparent 60%),
    radial-gradient(70% 60% at 5% 10%, rgba(27, 98, 230, 0.28), transparent 55%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset-inline-end: -8%; top: -20%; width: 46%; height: 90%; pointer-events: none; opacity: 0.7;
  background: radial-gradient(closest-side, rgba(22, 198, 212, 0.16), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: var(--d-muted); margin-top: 1.4rem; max-width: 40ch; }
.hero-eyebrow { color: var(--cyan); }
.hero-eyebrow::before { background: var(--cyan); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero-trust { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; align-items: center; }
.hero-trust .t-item { display: flex; flex-direction: column; }
.hero-trust .t-num { font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; color: #fff; line-height: 1; }
.hero-trust .t-label { font-size: 0.82rem; color: var(--d-muted); margin-top: 0.35rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
}

/* Hero schematic visual */
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4)); }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; background: var(--ink); color: var(--d-text); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 100% 0%, rgba(22,198,212,0.16), transparent 55%), radial-gradient(60% 100% at 0% 0%, rgba(27,98,230,0.22), transparent 55%); }
.page-hero-inner { position: relative; z-index: 2; padding-block: clamp(3rem, 6vw, 5rem); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: var(--d-muted); margin-top: 1.1rem; max-width: 60ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--d-muted); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.8rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.icon-badge {
  width: 56px; height: 56px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--brand); border: 1px solid rgba(27,98,230,0.16);
  margin-bottom: 1.1rem;
}
/* Dark card variants (concrete colors so contrast is unambiguous) */
.card-dark { background: #0f2149; border-color: transparent; color: #d7e2f6; }
.card-dark h3 { color: #ffffff; }
.card-dark p { color: #aebbd4; }
.icon-badge-dark { background: rgba(255,255,255,0.08); color: #16c6d4; border: 1px solid rgba(255,255,255,0.2); }
.link-cyan { color: #38d3df; }
.side-card-dark { background: #0f2149; border-color: transparent; color: #d7e2f6; }
.side-card-dark h3 { color: #ffffff; }
.icon-badge svg { width: 28px; height: 28px; }

/* Solution card (linked, feature) */
.sol-card { display: flex; flex-direction: column; }
.sol-card .outcome { font-style: italic; color: var(--brand); font-weight: 500; margin-bottom: 0.35rem; font-size: 0.95rem; }
[dir="rtl"] .sol-card .outcome { font-style: normal; }
.sol-card h3 { margin-bottom: 0.85rem; }
.sol-card p { font-size: 0.96rem; }
.sol-card .card-link { margin-top: auto; padding-top: 1.2rem; display: inline-flex; align-items: center; gap: 0.45rem; color: var(--brand); font-weight: 600; font-size: 0.95rem; }
.sol-card:hover .card-link .arrow { transform: translateX(4px); }
[dir="rtl"] .sol-card:hover .card-link .arrow { transform: translateX(-4px) scaleX(-1); }
.card-link { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--brand); font-weight: 600; font-size: 0.95rem; }
.card-link svg { width: 1.15em; height: 1.15em; flex: none; }
.card-link .arrow { transition: transform 0.2s; display: inline-flex; }
[dir="rtl"] .card-link .arrow { transform: scaleX(-1); }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tag { font-size: 0.76rem; font-weight: 500; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.28rem 0.7rem; }

/* Stat cards */
.stat { text-align: center; padding: 1.6rem 1rem; }
.stat .num { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat .label { margin-top: 0.8rem; color: var(--muted); font-size: 0.92rem; }

/* System chips (low-current showcase) */
.systems-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; }
@media (max-width: 980px) { .systems-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .systems-grid { grid-template-columns: repeat(2, 1fr); } }
.system-chip { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; text-align: center; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.system-chip:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.system-chip .ic { width: 42px; height: 42px; margin: 0 auto 0.7rem; color: var(--brand); }
.system-chip .ic svg { width: 100%; height: 100%; }
.system-chip .nm { font-weight: 600; font-size: 0.9rem; color: var(--ink); line-height: 1.3; }
.system-chip .vd { font-size: 0.76rem; color: var(--muted-2); margin-top: 0.25rem; }

/* Vendor chips */
.vendor-wrap { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.vendor-chip { font-weight: 600; font-size: 0.92rem; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.6rem 1rem; transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.vendor-chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.vendor-chip.on-dark { background: #17305c; color: #dce6fa; border-color: rgba(255, 255, 255, 0.22); }
.vendor-chip.on-dark:hover { border-color: var(--cyan); color: #ffffff; }

/* ---------- Split / feature blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.detail-split { grid-template-columns: 1.6fr 1fr; align-items: start; gap: clamp(1.6rem, 4vw, 3rem); }
@media (max-width: 880px) { .detail-split { grid-template-columns: 1fr; } }
.feature-list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.feature-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.feature-list .fi { width: 26px; height: 26px; flex: none; border-radius: 7px; background: var(--grad-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.feature-list .fi svg { width: 15px; height: 15px; }
.feature-list b { display: block; color: var(--ink); font-family: var(--f-display); }
.feature-list span { color: var(--muted); font-size: 0.95rem; }

/* Differentiator cards */
.diff-card { display: flex; gap: 1.1rem; align-items: flex-start; }
.diff-card p { margin-top: 0.65rem; }
.diff-card .icon-badge { margin-bottom: 0; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.step .n { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: #fff; width: 40px; height: 40px; border-radius: 11px; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step h3 { margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; }

/* ---------- Detail page ---------- */
.subsystem-list { display: grid; gap: 1rem; }
.subsystem { padding: 1.4rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: box-shadow 0.2s, border-color 0.2s; }
.subsystem:hover { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.subsystem h3 { font-size: 1.18rem; }
.subsystem .ss-desc { color: var(--muted); margin-top: 0.4rem; font-size: 0.97rem; }
.subsystem .ss-vendors { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.subsystem .vendor-chip { padding: 0.38rem 0.8rem; font-size: 0.84rem; background: var(--bg-soft); }
.subsystem .ss-cap { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; font-size: 0.82rem; font-weight: 600; color: var(--cyan-strong); }

.side-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.7rem; }
@media (min-width: 881px) { .detail-aside { position: sticky; top: 92px; } }
.side-card h3 { font-size: 1.2rem; margin-bottom: 0.9rem; }
.check-list { display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text); font-size: 0.95rem; }
.check-list .ci { color: var(--cyan-strong); flex: none; margin-top: 2px; }
.check-list .ci svg { width: 18px; height: 18px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--ink); color: var(--d-text); border-radius: var(--r-xl); padding: clamp(2.4rem, 5vw, 4rem); overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 120% at 100% 0%, rgba(22,198,212,0.25), transparent 55%), radial-gradient(60% 120% at 0% 100%, rgba(27,98,230,0.3), transparent 55%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: var(--d-muted); margin-top: 0.9rem; max-width: 52ch; }
.cta-band .hero-cta { margin-top: 1.8rem; }

/* ---------- Marquee (partners belt) ---------- */
.belt { border-block: 1px solid var(--line); background: #fff; overflow: hidden; padding-block: 1.5rem; }
.belt-label { text-align: center; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 1.1rem; }
[dir="rtl"] .belt-label { letter-spacing: 0.04em; }
.marquee { display: flex; gap: 3rem; width: max-content; animation: marquee 42s linear infinite; }
.marquee span { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--muted); white-space: nowrap; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .marquee { animation-name: marquee-rtl; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- Certifications belt ---------- */
.cert-belt { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.cert-item { display: inline-flex; align-items: center; gap: 0.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.6rem 1.1rem; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.cert-item .ci { color: var(--cyan-strong); display: inline-flex; }
.cert-item svg { width: 18px; height: 18px; }

/* ---------- Sector cards ---------- */
.sector-card { position: relative; overflow: hidden; }
.sector-card .icon-badge { background: var(--ink); color: var(--cyan); border-color: transparent; }
.sector-card h3 { font-size: 1.2rem; }
.sector-card p { margin-top: 0.6rem; font-size: 0.92rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0.8rem 1rem; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,98,230,0.14); }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1.2rem; }
.contact-line { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-line .ci { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--grad-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.contact-line .ci svg { width: 20px; height: 20px; }
.contact-line .cl-label { font-size: 0.8rem; color: var(--muted-2); }
.contact-line .cl-value { font-weight: 600; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--d-muted); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--d-muted); }
.footer-about { margin-top: 1.1rem; font-size: 0.92rem; max-width: 34ch; color: var(--d-muted); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--d-line-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--d-text); transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.footer-social a:hover { background: var(--grad); border-color: transparent; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h3 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; font-family: var(--f-body); letter-spacing: 0.02em; }
.footer-col ul { display: grid; gap: 0.8rem; }
.footer-col a { font-size: 0.92rem; color: var(--d-muted); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-contact-line { font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer-contact-line a { color: var(--d-text); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--d-line); display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.footer-badge { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--d-text); font-weight: 500; }
.footer-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(22,198,212,0.2); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mtop-lg { margin-top: 2rem; }
.mtop-xl { margin-top: 3rem; }
.hide-mobile { }
@media (max-width: 640px) { .hide-mobile { display: none !important; } }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 8px 8px; }
.skip-link:focus { inset-inline-start: 1rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
