/* ────────────────────────────────────────────────────────────
   Somow Site — layout on top of design-system tokens
   ──────────────────────────────────────────────────────────── */

/* — Site default: Arabic primary, RTL — */
:root[data-site] {
  color-scheme: light;
}

/* The site uses its own layout; override any DS app reset */
body.site {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* — Type system for the site: technical / intelligent pairing — */
:root[data-site] {
  --font-sans-en: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", ui-sans-serif, sans-serif;
  --font-display-en: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-display-ar: "IBM Plex Sans Arabic", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* — Scroll reveal — */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(.985);
  filter: blur(6px);
  transition: opacity .7s cubic-bezier(.16,.84,.34,1),
              transform .7s cubic-bezier(.16,.84,.34,1),
              filter .7s cubic-bezier(.16,.84,.34,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* — Container — */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* — Site navigation — */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 0;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.nav-logo img { height: 32px; }
.nav-logo .nm { font-weight: 700; font-size: 17px; letter-spacing: -.01em; line-height: 1; }
.nav-logo .sb { font-size: 10.5px; color: var(--text-muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; font-family: var(--font-mono); }
:root[dir="rtl"] .nav-logo .sb { font-family: var(--font-sans-ar); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--primary); background: var(--primary-soft); }
:root[data-mode="dark"] .nav-links a.active { color: var(--text); }

.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-end .lang-btn {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: var(--font-sans-en);
}
:root[dir="rtl"] .nav-end .lang-btn { font-family: var(--font-sans-ar); }

.nav-end .icon-btn {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--text);
}
.nav-end .icon-btn:hover { background: var(--surface-2); }

/* — Hero — */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary);
  padding: 6px 12px; background: var(--primary-soft);
  border-radius: 999px; margin-bottom: 24px;
}
:root[dir="rtl"] .hero-eyebrow { font-family: var(--font-sans-ar); letter-spacing: .04em; font-size: 12px; }

.hero h1 {
  font-family: var(--font-display-en);
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 0 0 20px;
  text-wrap: balance;
}
:root[dir="rtl"] .hero h1 { font-family: var(--font-display-ar); letter-spacing: 0; line-height: 1.15; }
.hero h1 em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}
.hero p.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hero visual — abstract pixel mosaic referencing the logo */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-inline-start: auto;
}
.hero-art-frame {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in oklch, var(--primary) 22%, transparent), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in oklch, var(--teal-700) 18%, transparent), transparent 55%),
    var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pixel-mosaic {
  position: absolute;
  inset: 14% 14% 14% 14%;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 4px;
}
.pixel-mosaic span {
  border-radius: 3px;
}

/* Floating product chips on hero */
.hero-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-md);
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.hero-chip .meta { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-muted); }
:root[dir="rtl"] .hero-chip .meta { font-family: var(--font-sans-ar); }

/* — Section heading — */
.sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary);
  padding: 4px 12px; background: var(--primary-soft);
  border-radius: 999px;
  margin-bottom: 16px;
}
:root[dir="rtl"] .sec-eyebrow { font-family: var(--font-sans-ar); letter-spacing: .04em; }
.sec-title {
  font-family: var(--font-display-en);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1; font-weight: 700; letter-spacing: -.02em;
  margin: 0 0 14px;
  text-wrap: balance;
}
:root[dir="rtl"] .sec-title { font-family: var(--font-display-ar); letter-spacing: 0; line-height: 1.25; }
.sec-sub {
  font-size: 17px; color: var(--text-secondary);
  margin: 0; line-height: 1.55;
}
.sec-head.start { text-align: start; max-width: none; margin: 0 0 var(--space-10); }

/* — Section spacing — */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section.alt { background: var(--surface); }
.section.dark { background: var(--gray-900); color: #fff; }
.section.dark .sec-title { color: #fff; }
.section.dark .sec-sub { color: rgba(255,255,255,.7); }

/* — Stats strip — */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-cell {
  padding: 28px 24px;
  border-inline-end: 1px solid var(--border);
}
.stat-cell:last-child { border-inline-end: 0; }
.stat-cell .v {
  font-family: var(--font-display-en);
  font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1; letter-spacing: -.02em;
  color: var(--primary);
}
:root[dir="rtl"] .stat-cell .v { font-family: var(--font-sans-ar); }
.stat-cell .l {
  margin-top: 8px;
  font-size: 13.5px; color: var(--text-secondary);
}

/* — Product card — */
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  min-height: 280px;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklch, var(--primary) 40%, var(--border));
}
.product-card .glyph {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-family: var(--font-display-ar);
  font-size: 32px; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, oklch(0.72 0.10 var(--h, 195)), oklch(0.50 0.10 var(--h, 195)));
  box-shadow: 0 6px 18px color-mix(in oklch, oklch(0.55 0.10 var(--h, 195)) 35%, transparent);
}
.product-card h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.product-card .tg {
  font-size: 14px;
  color: var(--text-muted);
  margin: -8px 0 0;
  font-weight: 500;
}
.product-card p.short {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.product-card .open {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600;
  color: var(--primary);
}
.product-card .open svg {
  transition: transform .2s;
}
[dir="rtl"] .product-card .open svg { transform: scaleX(-1); }
.product-card:hover .open svg { transform: translateX(4px); }
[dir="rtl"] .product-card:hover .open svg { transform: scaleX(-1) translateX(4px); }

.product-card::after {
  content: "";
  position: absolute;
  inset-block-start: -40px;
  inset-inline-end: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, oklch(0.85 0.06 var(--h, 195) / .25), transparent 70%);
  pointer-events: none;
}

/* — Service card — */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.service-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.service-card h4 {
  margin: 0 0 8px;
  font-size: 18px; font-weight: 600; letter-spacing: -.005em;
}
.service-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* — Process step — */
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.process-step .n {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--primary);
  font-weight: 600;
}
.process-step h4 {
  margin: 10px 0 8px;
  font-size: 19px; font-weight: 600;
}
.process-step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* — Sector pill — */
.sector-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14.5px; font-weight: 500;
}
.sector-pill .ic {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
}

/* — Partner row — */
.partners-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-row .ptr {
  padding: 28px 16px;
  display: grid; place-items: center;
  text-align: center;
  font-size: 16px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -.005em;
  border-inline-end: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: color .2s;
}
.partners-row .ptr:hover { color: var(--text); }
.partners-row .ptr:nth-child(4n) { border-inline-end: 0; }
.partners-row .ptr:nth-last-child(-n+4) { border-bottom: 0; }

/* — Big CTA — */
.big-cta {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 64px);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.big-cta h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700; letter-spacing: -.015em;
  line-height: 1.15;
  max-width: 18ch;
  text-wrap: balance;
}
.big-cta p {
  margin: 14px 0 24px;
  font-size: 17px;
  color: rgba(255,255,255,.85);
  max-width: 50ch;
  line-height: 1.55;
}
.big-cta .btn--primary {
  background: #fff; color: var(--teal-800);
}
.big-cta .btn--primary:hover { background: var(--teal-50); }
.big-cta .btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.3); }
.big-cta .btn--ghost:hover { background: rgba(255,255,255,.1); }
.big-cta .pixels {
  position: absolute;
  top: -20px;
  inset-inline-end: -20px;
  display: grid; grid-template-columns: repeat(10, 16px);
  gap: 3px; opacity: .25;
  pointer-events: none;
}
.big-cta .pixels span {
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 2px;
}

/* — Footer — */
.site-footer {
  background: var(--gray-950);
  color: #fff;
  padding: 80px 0 32px;
  margin-top: 80px;
}
:root[data-mode="dark"] .site-footer { background: oklch(0.10 0.010 230); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.footer-brand img { height: 36px; filter: brightness(0) invert(1); }
.footer-brand-text b { display: block; font-size: 18px; font-weight: 700; }
.footer-brand-text span { display:block; font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; font-family: var(--font-mono); }
:root[dir="rtl"] .footer-brand-text span { font-family: var(--font-sans-ar); letter-spacing: .02em; }
.footer-col h5 {
  margin: 0 0 16px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5); font-family: var(--font-mono);
  font-weight: 600;
}
:root[dir="rtl"] .footer-col h5 { font-family: var(--font-sans-ar); letter-spacing: .04em; font-size: 13px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.75); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}
.footer-desc { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.6; max-width: 36ch; }

/* — Product detail page — */
.pd-hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  padding: clamp(48px, 7vw, 90px) 0;
  border-bottom: 1px solid var(--border);
}
.pd-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
}
.pd-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
[dir="rtl"] .pd-back svg { transform: scaleX(-1); }

.pd-glyph {
  width: 96px; height: 96px;
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  font-family: var(--font-display-ar);
  font-size: 56px; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, oklch(0.72 0.10 var(--h, 195)), oklch(0.50 0.10 var(--h, 195)));
  box-shadow: 0 14px 40px color-mix(in oklch, oklch(0.55 0.10 var(--h, 195)) 35%, transparent);
  margin-bottom: 24px;
}
.pd-hero h1 {
  font-family: var(--font-display-en);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 0 0 12px;
  line-height: 1.05;
}
:root[dir="rtl"] .pd-hero h1 { font-family: var(--font-display-ar); letter-spacing: 0; line-height: 1.15; }
.pd-hero .tg {
  font-size: 19px;
  color: var(--primary);
  font-weight: 500;
  margin: 0 0 20px;
}
.pd-hero p.lede {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 58ch;
}
.pd-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pd-metric {
  padding: 22px 20px;
  border-inline-end: 1px solid var(--border);
}
.pd-metric:last-child { border-inline-end: 0; }
.pd-metric .v {
  font-size: 32px; font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display-en);
  letter-spacing: -.02em;
  line-height: 1;
}
:root[dir="rtl"] .pd-metric .v { font-family: var(--font-sans-ar); }
.pd-metric .l { font-size: 12.5px; color: var(--text-secondary); margin-top: 8px; }

/* product mockup placeholder */
.pd-mockup {
  aspect-ratio: 4 / 3.2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.pd-mockup .topbar {
  height: 36px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
}
.pd-mockup .topbar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pd-mockup .topbar i:nth-child(1) { background: #ff5f57; }
.pd-mockup .topbar i:nth-child(2) { background: #febc2e; }
.pd-mockup .topbar i:nth-child(3) { background: #28c840; }
.pd-mockup .topbar .u { margin-inline-start: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.pd-mockup .body { padding: 20px; }
.pd-mockup .ph-bar { height: 8px; background: var(--surface-2); border-radius: 4px; }
.pd-mockup .ph-bar.long { width: 80%; }
.pd-mockup .ph-bar.mid  { width: 55%; }
.pd-mockup .ph-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; }

/* — Feature card — */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
}
.feature-card .ic {
  width: 40px; height: 40px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature-card h4 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.feature-card p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* — Cross-link other products — */
.other-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.op-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  display: flex; gap: 12px; align-items: center;
}
.op-card:hover { border-color: color-mix(in oklch, var(--primary) 35%, var(--border)); }
.op-card .g {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: linear-gradient(135deg, oklch(0.72 0.10 var(--h, 195)), oklch(0.50 0.10 var(--h, 195)));
  color: #fff; font-family: var(--font-display-ar); font-weight: 700; font-size: 20px;
  flex-shrink: 0;
}
.op-card .nm { font-size: 14.5px; font-weight: 600; margin: 0; line-height: 1.1; }
.op-card .tx { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.3; }

/* — Contact — */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-card-list {
  display: flex; flex-direction: column; gap: 14px;
}
.contact-cell {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.contact-cell .ic {
  width: 40px; height: 40px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-cell h5 { margin: 0 0 4px; font-size: 13px; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 600; }
:root[dir="rtl"] .contact-cell h5 { font-family: var(--font-sans-ar); letter-spacing: 0; text-transform: none; font-size: 13px; }
.contact-cell p, .contact-cell a { margin: 0; font-size: 15px; color: var(--text); font-weight: 500; }
.contact-cell a:hover { color: var(--primary); }

/* — Page header (for inner pages) — */
.page-header {
  padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.page-header h1 {
  font-family: var(--font-display-en);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 700; letter-spacing: -.025em;
  margin: 0 0 14px;
  line-height: 1.05;
}
:root[dir="rtl"] .page-header h1 { font-family: var(--font-display-ar); letter-spacing: 0; line-height: 1.2; }
.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 68ch;
  line-height: 1.55;
}

/* — Grid helpers — */
.g-1 { display: grid; gap: 16px; }
.g-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.g-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.g-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { margin: 0; max-width: 100%; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .stat-cell:nth-child(2n) { border-inline-end: 0; }
  .pd-hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .pd-metrics { grid-template-columns: 1fr; }
  .pd-metric { border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .pd-metric:last-child { border-bottom: 0; }
  .other-products { grid-template-columns: repeat(2, 1fr); }
  .partners-row { grid-template-columns: repeat(2, 1fr); }
  .partners-row .ptr:nth-child(4n) { border-inline-end: 1px solid var(--border); }
  .partners-row .ptr:nth-child(2n) { border-inline-end: 0; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
/* — Testimonial card — */
.tst-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
}
.tst-card .mark {
  font-family: var(--font-display-en);
  font-size: 64px;
  line-height: .5;
  color: var(--primary);
  opacity: .35;
  margin-bottom: 6px;
}
.tst-card .body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 24px;
  text-wrap: pretty;
  font-weight: 500;
  flex: 1;
}
.tst-card .who {
  display: flex; align-items: center; gap: 12px;
}
.tst-card .who .ava {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-ink);
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
}
.tst-card .who .name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.tst-card .who .role { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* — Case study card — */
.case-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  align-items: stretch;
}
.case-card .ph {
  background: linear-gradient(155deg, oklch(0.62 0.10 var(--h, 195)), oklch(0.32 0.06 var(--h, 195)));
  padding: 28px;
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.case-card .ph .badge-ind {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 12px;
}
:root[dir="rtl"] .case-card .ph .badge-ind { font-family: var(--font-sans-ar); letter-spacing: .04em; }
.case-card .ph h4 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  font-family: var(--font-display-en);
}
:root[dir="rtl"] .case-card .ph h4 { font-family: var(--font-display-ar); letter-spacing: 0; line-height: 1.3; }
.case-card .ph .pixmask {
  position: absolute; bottom: -10px; inset-inline-end: -10px;
  display: grid; grid-template-columns: repeat(6, 12px); gap: 2px; opacity: .25;
}
.case-card .ph .pixmask span { width: 12px; height: 12px; background: rgba(255,255,255,.5); border-radius: 2px; }
.case-card .body { padding: 28px; }
.case-card .ttl { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 10px; line-height: 1.3; text-wrap: balance; }
.case-card .sum { font-size: 14.5px; color: var(--text-secondary); margin: 0 0 18px; line-height: 1.6; }
.case-card .case-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}
.case-card .case-metrics .m {
  padding: 14px 12px;
  border-inline-end: 1px solid var(--border);
}
.case-card .case-metrics .m:last-child { border-inline-end: 0; }
.case-card .case-metrics .m .v {
  font-size: 22px; font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display-en);
  letter-spacing: -.01em;
  line-height: 1;
}
:root[dir="rtl"] .case-card .case-metrics .m .v { font-family: var(--font-sans-ar); }
.case-card .case-metrics .m .l { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.case-card .pulled {
  margin-top: 18px;
  padding: 16px;
  border-inline-start: 3px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
:root[dir="rtl"] .case-card .pulled { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.case-card .pulled .q { font-size: 14.5px; font-weight: 500; color: var(--text); margin: 0 0 8px; line-height: 1.5; }
.case-card .pulled .b { font-size: 12.5px; color: var(--text-muted); font-family: var(--font-mono); }
:root[dir="rtl"] .case-card .pulled .b { font-family: var(--font-sans-ar); }

/* — Job card — */
.job-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.job-card:hover {
  border-color: color-mix(in oklch, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-sm);
}
.job-card .meta {
  display: flex; gap: 14px; margin-top: 8px;
  font-size: 12.5px; color: var(--text-muted);
  flex-wrap: wrap;
}
.job-card .meta b { color: var(--primary); font-weight: 600; }
.job-card .title { font-size: 17px; font-weight: 600; letter-spacing: -.005em; margin: 0; }
.job-card .arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--text-secondary);
  transition: background .15s, color .15s, transform .15s;
}
.job-card:hover .arrow { background: var(--primary); color: var(--on-primary); }
[dir="rtl"] .job-card .arrow svg { transform: scaleX(-1); }

/* — FAQ — */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: start;
  padding: 18px 22px;
  font: inherit; font-size: 16px; font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-q .ic {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform .2s, background .2s;
}
.faq-item.open .faq-q .ic { transform: rotate(45deg); background: var(--primary); color: var(--on-primary); }
.faq-a {
  padding: 0 22px 20px;
  font-size: 15px; line-height: 1.6;
  color: var(--text-secondary);
}

/* — Newsletter in footer — */
.newsletter {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.newsletter .h {
  font-size: 16px; font-weight: 600; color: #fff;
}
.newsletter .s {
  font-size: 13.5px; color: rgba(255,255,255,.65);
  margin-top: 4px; max-width: 50ch;
}
.newsletter form {
  display: flex; gap: 8px;
}
.newsletter input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  padding: 0 16px;
  height: 42px;
  border-radius: var(--r-sm);
  font: inherit; font-size: 14px;
  min-width: 260px;
}
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter input:focus { outline: none; border-color: var(--primary); }
.newsletter button {
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 0 22px;
  height: 42px;
  border-radius: var(--r-sm);
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter button:hover { background: var(--primary-hover); }

@media (max-width: 900px) {
  .case-card { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter input { min-width: 0; width: 100%; }
  .newsletter form { flex-direction: column; }
}

@media (max-width: 700px) {
  .g-3 { grid-template-columns: 1fr; }
  .case-card .case-metrics { grid-template-columns: 1fr; }
  .case-card .case-metrics .m { border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .case-card .case-metrics .m:last-child { border-bottom: 0; }
  .job-card { grid-template-columns: 1fr; gap: 12px; }
  .job-card .arrow { justify-self: end; }
  [dir="rtl"] .job-card .arrow { justify-self: start; }
}

/* ══════════════════════════════════════════════════════════════════════
   REDESIGN v2 — "Command center" — power & intelligence, fully responsive
   Override layer (same class names, later cascade wins)
   ══════════════════════════════════════════════════════════════════════ */

/* — Nav: crisper, with mobile drawer — */
.site-nav {
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}
.nav-row { gap: clamp(16px, 3vw, 40px); }
.nav-logo img { height: 34px; }
.nav-links a {
  position: relative;
  font-size: 14.5px; font-weight: 500;
  color: var(--text-secondary);
  border-radius: 0; background: none !important;
  padding: 8px 2px;
}
.nav-links { gap: clamp(14px, 2vw, 26px); justify-content: center; }
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: center;
  transition: transform .22s cubic-bezier(.22,.61,.36,1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(.5); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  background: transparent; border-radius: var(--r-sm);
  cursor: pointer; color: var(--text);
  place-items: center;
}
.nav-burger:hover { background: var(--surface-2); }

/* Mobile drawer */
.nav-drawer-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: color-mix(in oklch, var(--gray-950) 55%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.nav-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; inset-inline-end: 0; z-index: 61;
  width: min(84vw, 340px); height: 100dvh;
  background: var(--surface);
  border-inline-start: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  visibility: hidden;
}
/* RTL: drawer sits on the inline-end side (physical left), hidden off the left. */
:root[dir="rtl"] .nav-drawer { transform: translateX(-100%); }
/* Open state must beat the direction-specific closed rules (specificity). */
.nav-drawer.open,
:root[dir="rtl"] .nav-drawer.open { transform: translateX(0); visibility: visible; }
@media (min-width: 901px) {
  .nav-drawer, .nav-drawer-backdrop { display: none !important; }
}
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.nav-drawer-head .x {
  width: 40px; height: 40px; border: 1px solid var(--border-strong);
  background: transparent; border-radius: var(--r-sm); cursor: pointer;
  display: grid; place-items: center; color: var(--text);
}
.nav-drawer a.dlink {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 6px; font-size: 17px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav-drawer a.dlink.active { color: var(--primary); }
[dir="rtl"] .nav-drawer a.dlink svg { transform: scaleX(-1); }
.nav-drawer-foot { margin-top: auto; padding-top: 20px; display: flex; gap: 10px; }
.nav-drawer-foot .lang-btn, .nav-drawer-foot .icon-btn {
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  border-radius: var(--r-sm); cursor: pointer; font: inherit; font-weight: 600; font-size: 14px;
}
.nav-drawer-foot .lang-btn { flex: 1; height: 46px; }
.nav-drawer-foot .icon-btn { width: 46px; height: 46px; display: grid; place-items: center; }

/* — HERO: dark command center — */
.hero {
  background: var(--gray-950);
  color: #fff;
  padding: clamp(72px, 10vw, 132px) 0 clamp(64px, 8vw, 108px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero .hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 78%);
}
:root[dir="rtl"] .hero .hero-bg {
  -webkit-mask-image: radial-gradient(120% 90% at 30% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 30% 0%, #000 30%, transparent 78%);
}
.hero .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 78% 8%, color-mix(in oklch, var(--teal-500) 42%, transparent), transparent 60%),
    radial-gradient(50% 50% at 10% 100%, color-mix(in oklch, var(--teal-700) 30%, transparent), transparent 62%);
}
:root[dir="rtl"] .hero .hero-bg::after {
  background:
    radial-gradient(60% 60% at 22% 8%, color-mix(in oklch, var(--teal-500) 42%, transparent), transparent 60%),
    radial-gradient(50% 50% at 90% 100%, color-mix(in oklch, var(--teal-700) 30%, transparent), transparent 62%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
.hero-eyebrow {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--teal-300);
  font-family: var(--font-mono); letter-spacing: .16em; font-size: 11px;
  padding: 7px 14px;
}
:root[dir="rtl"] .hero-eyebrow { font-family: var(--font-mono); letter-spacing: .12em; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px color-mix(in oklch, var(--teal-400) 30%, transparent); }
.hero h1 {
  color: #fff;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02; letter-spacing: -.03em; font-weight: 800;
}
:root[dir="rtl"] .hero h1 { line-height: 1.12; letter-spacing: -.01em; font-weight: 700; }
.hero h1 em {
  color: var(--teal-300);
  background: linear-gradient(180deg, var(--teal-200), var(--teal-400));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lede { color: rgba(255,255,255,.72); font-size: clamp(16px, 1.5vw, 20px); max-width: 54ch; }
.hero .btn--secondary {
  background: rgba(255,255,255,.05); color: #fff; border-color: rgba(255,255,255,.22);
}
.hero .btn--secondary:hover { background: rgba(255,255,255,.12); }
.hero-trust {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: rgba(255,255,255,.55);
}
.hero-trust b { color: #fff; font-weight: 700; }
.hero-trust .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); }

/* Hero system panel */
.hero-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hp-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: rgba(255,255,255,.5); text-transform: uppercase;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.hp-live { color: var(--teal-300); display: inline-flex; align-items: center; gap: 6px; }
.hp-live::before { content: "●"; animation: hp-pulse 1.6s ease-in-out infinite; }
@keyframes hp-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.hp-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.hp-metric {
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-sm); padding: 12px;
}
.hp-metric .v { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; }
.hp-metric .l { font-size: 10.5px; color: rgba(255,255,255,.5); margin-top: 6px; font-family: var(--font-mono); letter-spacing: .04em; }
:root[dir="rtl"] .hp-metric .l { font-family: var(--font-sans-ar); }
.hp-chart { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-sm); padding: 12px; margin-bottom: 16px; }
.hp-chart .cap { font-family: var(--font-mono); font-size: 10.5px; color: rgba(255,255,255,.5); margin-bottom: 8px; letter-spacing: .06em; }
:root[dir="rtl"] .hp-chart .cap { font-family: var(--font-sans-ar); }
.hp-list { display: flex; flex-direction: column; gap: 2px; }
.hp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 4px; border-top: 1px solid rgba(255,255,255,.07);
  font-size: 13px; color: rgba(255,255,255,.85);
}
.hp-row:first-child { border-top: 0; }
.hp-row .g { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: rgba(255,255,255,.06); overflow: hidden; flex-shrink: 0; }
.hp-row .g img { width: 100%; height: 100%; object-fit: contain; }
.hp-row .nm { font-weight: 600; }
.hp-row .st { margin-inline-start: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--teal-300); display: inline-flex; align-items: center; gap: 5px; }
:root[dir="rtl"] .hp-row .st { font-family: var(--font-sans-ar); }
.hp-row .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); }

/* — Section headers: technical / numbered — */
.section { padding: clamp(64px, 8vw, 116px) 0; }
.sec-eyebrow {
  background: none; border-radius: 0; padding: 0;
  color: var(--primary);
  font-family: var(--font-mono); letter-spacing: .18em; font-size: 12px;
  margin-bottom: 18px;
}
.sec-eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--primary); display: inline-block;
}
:root[dir="rtl"] .sec-eyebrow { font-family: var(--font-sans-ar); letter-spacing: .06em; }
.sec-title { font-weight: 800; font-size: clamp(30px, 3.8vw, 50px); letter-spacing: -.025em; }
:root[dir="rtl"] .sec-title { font-weight: 700; letter-spacing: -.01em; }
.sec-sub { font-size: clamp(15px, 1.3vw, 18px); max-width: 62ch; margin-inline: auto; }
.sec-head.start .sec-sub { margin-inline: 0; }
.sec-head.start .sec-eyebrow { justify-content: flex-start; }

/* — Cards: sharper, accent line on hover — */
.product-card, .service-card, .process-step, .feature-card, .tst-card, .stat, .contact-cell, .job-card, .sector-pill, .faq-item {
  border-radius: var(--r-lg);
}
.product-card::before, .service-card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, oklch(0.72 0.10 var(--h,195)), oklch(0.52 0.10 var(--h,195)));
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.service-card { position: relative; overflow: hidden; }
.service-card::before { background: linear-gradient(90deg, var(--primary), var(--teal-700)); }
.product-card:hover::before, .service-card:hover::before { transform: scaleX(1); }
.service-card { transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklch, var(--primary) 30%, var(--border)); }
.service-card .icon-wrap { border-radius: var(--r-md); transition: background .2s, color .2s; }
.service-card:hover .icon-wrap { background: var(--primary); color: var(--on-primary); }
.process-step { transition: border-color .2s; }
.process-step:hover { border-color: color-mix(in oklch, var(--primary) 35%, var(--border)); }
.process-step .n { font-size: 26px; font-weight: 800; letter-spacing: 0; opacity: .9; }
.sector-pill { transition: transform .18s, border-color .18s; }
.sector-pill:hover { transform: translateY(-2px); border-color: color-mix(in oklch, var(--primary) 35%, var(--border)); }

/* — Stats strip: heavier, engineered — */
.stats-strip { border-radius: var(--r-lg); }
.stat-cell { padding: clamp(20px, 3vw, 34px) clamp(16px, 2vw, 28px); position: relative; }
.stat-cell .v { font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); }
.stat-cell::after {
  content: ""; position: absolute; top: clamp(20px,3vw,34px); inset-inline-start: 0; width: 2px; height: 22px;
  background: var(--primary); opacity: 0;
}
.stat-cell:hover::after { opacity: 1; }

/* — Big CTA: sharper — */
.big-cta { border-radius: var(--r-xl); }
.big-cta h2 { font-weight: 800; letter-spacing: -.02em; }
:root[dir="rtl"] .big-cta h2 { font-weight: 700; }

/* — Responsive — */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { max-width: 460px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-end .lang-btn, .nav-end .icon-btn, .nav-end .btn--primary { display: none; }
  .nav-burger { display: grid; }
  .nav-row { justify-content: space-between; }
}
@media (max-width: 560px) {
  .hp-metrics { grid-template-columns: 1fr 1fr; }
  .hero-trust { gap: 8px; }
  .hero { padding-top: 84px; }
}

/* — Product detail hero: dark command center (per-product hue) — */
.pd-hero {
  background: var(--gray-950);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}
.pd-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 78%);
}
:root[dir="rtl"] .pd-hero::before {
  -webkit-mask-image: radial-gradient(120% 90% at 30% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 30% 0%, #000 30%, transparent 78%);
}
.pd-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 55% at 78% 6%, oklch(0.60 0.11 var(--h,195) / .5), transparent 60%),
    radial-gradient(45% 50% at 8% 100%, oklch(0.42 0.09 var(--h,195) / .4), transparent 62%);
}
:root[dir="rtl"] .pd-hero::after {
  background:
    radial-gradient(55% 55% at 22% 6%, oklch(0.60 0.11 var(--h,195) / .5), transparent 60%),
    radial-gradient(45% 50% at 92% 100%, oklch(0.42 0.09 var(--h,195) / .4), transparent 62%);
}
.pd-hero .container { position: relative; z-index: 1; }
.pd-hero .pd-back {
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-pill);
  padding: 7px 14px;
}
.pd-hero .pd-back:hover { color: #fff; background: rgba(255,255,255,.12); }
.pd-hero .pd-glyph {
  box-shadow: 0 16px 44px oklch(0.55 0.10 var(--h,195) / .5);
}
.pd-hero h1 { color: #fff; font-weight: 800; letter-spacing: -.03em; }
:root[dir="rtl"] .pd-hero h1 { font-weight: 700; letter-spacing: -.01em; }
.pd-hero .tg { color: var(--teal-300); }
.pd-hero p.lede { color: rgba(255,255,255,.72); }
.pd-hero .btn--secondary {
  background: rgba(255,255,255,.05); color: #fff; border-color: rgba(255,255,255,.22);
}
.pd-hero .btn--secondary:hover { background: rgba(255,255,255,.12); }
.pd-hero .pd-metrics {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pd-hero .pd-metric { border-inline-end-color: rgba(255,255,255,.1); }
.pd-hero .pd-metric .v { color: #fff; }
.pd-hero .pd-metric .l { color: rgba(255,255,255,.6); }
.pd-hero .pd-mockup {
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  border-color: rgba(255,255,255,.14);
}
@media (max-width: 900px) {
  .pd-hero .pd-metric { border-inline-end: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .pd-hero .pd-metric:last-child { border-bottom: 0; }
}

/* — Legal page — */
.legal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.legal-nav {
  position: sticky; top: 92px;
  display: flex; flex-direction: column; gap: 4px;
}
.legal-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500; color: var(--text-secondary);
  border: 1px solid transparent;
}
.legal-nav a:hover { background: var(--surface-2); color: var(--text); }
.legal-nav a.active {
  background: var(--primary-soft); color: var(--primary-ink);
  border-color: color-mix(in oklch, var(--primary) 25%, transparent);
}
:root[data-mode="dark"] .legal-nav a.active { color: var(--text); }
.legal-help {
  margin-top: 20px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.legal-help .h { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.legal-help a { font-size: 13.5px; font-family: var(--font-mono); color: var(--primary); }
:root[dir="rtl"] .legal-help a { font-family: var(--font-sans-ar); }

.legal-body { max-width: 68ch; }
.legal-sec { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.legal-sec:last-of-type { border-bottom: 0; }
.legal-sec h2 {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-display-en);
  font-size: 20px; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 12px;
}
:root[dir="rtl"] .legal-sec h2 { font-family: var(--font-display-ar); }
.legal-sec h2 .n {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--primary); flex-shrink: 0;
}
.legal-sec p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--text-secondary); }
.legal-foot {
  margin-top: 32px; padding: 18px 20px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
}
@media (max-width: 760px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal-nav a { flex: 1; min-width: 140px; justify-content: center; }
  .legal-help { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════
   HOME v3 — editorial, engineered, premium light theme
   ══════════════════════════════════════════════════════════════════════ */

/* Blueprint texture for alt/light sections */
.section.textured { position: relative; }
.section.textured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(100% 80% at 50% 0%, #000, transparent 80%);
  mask-image: radial-gradient(100% 80% at 50% 0%, #000, transparent 80%);
}
.section.textured > .container { position: relative; z-index: 1; }

/* Stats console — floats over the dark hero seam */
.home-stats {
  position: relative; z-index: 2;
  margin-top: clamp(-72px, -6vw, -48px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.hs-cell {
  padding: clamp(22px, 3vw, 34px) clamp(18px, 2.4vw, 30px);
  border-inline-end: 1px solid var(--border);
  position: relative;
}
.hs-cell::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 32px; height: 3px;
  background: var(--primary);
}
.hs-cell:last-child { border-inline-end: 0; }
.hs-cell .v {
  font-family: var(--font-display-en);
  font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; line-height: 1;
  letter-spacing: -.03em; color: var(--text);
}
:root[dir="rtl"] .hs-cell .v { font-family: var(--font-display-ar); }
.hs-cell .l { margin-top: 10px; font-size: 13px; color: var(--text-muted); }

/* Products bento */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.bento-feature {
  grid-row: span 2;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
  background:
    radial-gradient(120% 80% at 100% 0%, oklch(0.95 0.04 var(--h,195) / .6), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
:root[data-mode="dark"] .bento-feature {
  background: radial-gradient(120% 80% at 100% 0%, oklch(0.30 0.06 var(--h,195) / .5), transparent 60%), var(--surface);
}
.bento-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: color-mix(in oklch, oklch(0.6 0.1 var(--h,195)) 45%, var(--border)); }
.bf-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.bf-glyph {
  width: 64px; height: 64px; border-radius: var(--r-md);
  display: grid; place-items: center; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.bf-glyph img { width: 100%; height: 100%; object-fit: contain; }
.bf-badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: oklch(0.42 0.10 var(--h,195)); background: oklch(0.95 0.04 var(--h,195));
  padding: 5px 12px; border-radius: var(--r-pill);
}
:root[data-mode="dark"] .bf-badge { color: #fff; background: oklch(0.4 0.08 var(--h,195)); }
:root[dir="rtl"] .bf-badge { font-family: var(--font-sans-ar); letter-spacing: .02em; }
.bf-body { margin-top: 32px; }
.bf-body h3 { font-family: var(--font-display-en); font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.05; }
:root[dir="rtl"] .bf-body h3 { font-family: var(--font-display-ar); }
.bf-tg { font-size: 15px; font-weight: 600; color: oklch(0.5 0.10 var(--h,195)); margin-bottom: 12px; }
.bf-body p { font-size: 15.5px; line-height: 1.65; color: var(--text-secondary); margin: 0; max-width: 44ch; }
.bf-metrics { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.bf-metrics b { display: block; font-family: var(--font-display-en); font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
:root[dir="rtl"] .bf-metrics b { font-family: var(--font-display-ar); }
.bf-metrics span { font-size: 12px; color: var(--text-muted); }
.bf-spark { position: absolute; bottom: 0; inset-inline-start: 0; width: 100%; height: 80px; opacity: .5; }

.bento-tile {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 22px;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.bento-tile::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, oklch(0.72 0.10 var(--h,195)), oklch(0.5 0.10 var(--h,195)));
  transform: scaleY(0); transform-origin: top; transition: transform .25s;
}
.bento-tile:hover { transform: translateX(0) translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in oklch, oklch(0.6 0.1 var(--h,195)) 40%, var(--border)); }
.bento-tile:hover::before { transform: scaleY(1); }
.bt-glyph {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--r-md);
  display: grid; place-items: center; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.bt-glyph img { width: 100%; height: 100%; object-fit: contain; }
.bt-main { flex: 1; min-width: 0; }
.bt-main h4 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.bt-tg { font-size: 13px; color: var(--text-muted); display: block; margin-top: 3px; }
.bt-arrow { color: var(--text-muted); flex-shrink: 0; transition: transform .2s, color .2s; }
[dir="rtl"] .bt-arrow { transform: scaleX(-1); }
.bento-tile:hover .bt-arrow { color: var(--primary); transform: translateX(4px); }
[dir="rtl"] .bento-tile:hover .bt-arrow { transform: scaleX(-1) translateX(4px); }

/* Capability matrix — shared hairlines */
.cap-matrix {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.cap-cell {
  padding: 30px;
  border-inline-end: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.cap-cell:nth-child(3n) { border-inline-end: 0; }
.cap-cell:nth-last-child(-n+3) { border-bottom: 0; }
.cap-cell:hover { background: var(--surface-2); }
.cap-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cap-ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
:root[data-mode="dark"] .cap-ic { color: var(--text); }
.cap-idx { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--border-strong); }
.cap-cell h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -.005em; }
.cap-cell p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* Manifesto band */
.manifesto {
  background: var(--gray-950); color: #fff;
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative; overflow: hidden;
}
.manifesto::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(90% 90% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(90% 90% at 50% 50%, #000, transparent 75%);
}
.manifesto::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 80% 30%, color-mix(in oklch, var(--teal-600) 32%, transparent), transparent 62%);
}
.manifesto .container { position: relative; z-index: 1; }
.mf-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; color: var(--teal-300); margin-bottom: 24px; }
:root[dir="rtl"] .mf-eyebrow { font-family: var(--font-sans-ar); letter-spacing: .08em; }
.mf-quote {
  font-family: var(--font-display-en);
  font-size: clamp(26px, 4vw, 52px); font-weight: 700; line-height: 1.25;
  letter-spacing: -.02em; margin: 0; max-width: 22ch; text-wrap: balance; color: #fff;
}
:root[dir="rtl"] .mf-quote { font-family: var(--font-display-ar); line-height: 1.4; letter-spacing: 0; max-width: 26ch; }
.mf-quote { max-width: 26ch; }
.mf-by { margin-top: 28px; font-size: 15px; color: rgba(255,255,255,.6); }

/* Sectors strip — editorial chips */
.sector-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.sector-chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 20px 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
:root[dir="rtl"] .sector-chip { padding: 14px 16px 14px 20px; }
.sector-chip:hover { transform: translateY(-2px); border-color: color-mix(in oklch, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.sc-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
:root[data-mode="dark"] .sc-ic { color: var(--text); }

/* Process — connected stepline */
.stepline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
}
.stepline::before {
  content: ""; position: absolute; top: 19px; inset-inline: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
}
.stepx { padding: 0 20px; position: relative; }
.stepx .sx-n {
  font-family: var(--font-display-en); font-size: 40px; font-weight: 700;
  color: color-mix(in oklch, var(--primary) 30%, transparent);
  line-height: 1; letter-spacing: -.02em;
}
:root[dir="rtl"] .stepx .sx-n { font-family: var(--font-display-ar); }
.stepx .sx-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
  margin: 16px 0 20px; position: relative; z-index: 1;
}
.section.textured .stepx .sx-dot { border-color: var(--surface); }
.stepx h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -.005em; }
.stepx p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

@media (max-width: 900px) {
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .hs-cell:nth-child(2n) { border-inline-end: 0; }
  .hs-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .bento { grid-template-columns: 1fr; }
  .bento-feature { grid-row: auto; }
  .cap-matrix { grid-template-columns: repeat(2, 1fr); }
  .cap-cell:nth-child(3n) { border-inline-end: 1px solid var(--border); }
  .cap-cell:nth-child(2n) { border-inline-end: 0; }
  .cap-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .cap-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .stepline { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stepline::before { display: none; }
}
@media (max-width: 560px) {
  .cap-matrix { grid-template-columns: 1fr; }
  .cap-cell { border-inline-end: 0 !important; }
  .cap-cell:not(:last-child) { border-bottom: 1px solid var(--border) !important; }
  .stepline { grid-template-columns: 1fr; gap: 28px; }
  .bf-metrics { gap: 20px; }
}

/* ── Nav polish ── */
.site-nav { transition: box-shadow .25s, background .25s, border-color .25s; }
.site-nav::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600), var(--teal-800));
  opacity: .9;
}
.site-nav.scrolled {
  box-shadow: 0 6px 24px color-mix(in oklch, var(--gray-950) 10%, transparent);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
}
.nav-row { padding: 16px 0; }
.nav-logo { padding-inline-end: clamp(8px, 2vw, 24px); position: relative; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mark img { height: 38px; width: auto; display: block; }
.nav-logo .brand-mark img { height: 34px; }
.footer-brand .brand-mark img { height: 40px; }
.footer-brand { align-items: center; }
.footer-brand img { filter: none; }
.nav-logo::after {
  content: ""; position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 26px; background: var(--border);
}
@media (max-width: 900px) { .nav-logo::after { display: none; } }
.nav-end .lang-btn { border-radius: var(--r-pill); }
.nav-end .icon-btn { border-radius: var(--r-pill); }
.nav-end .btn--primary { border-radius: var(--r-pill); padding-inline: 18px; }

/* ── Nav redesign v3 — balanced, segmented tools, refined CTA ── */
.nav-row { gap: clamp(14px, 2.4vw, 32px); }
.nav-links { flex: 1; justify-content: center; gap: clamp(12px, 1.8vw, 26px); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.nav-tools {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 3px;
}
.nav-tools .nt-btn {
  height: 32px; min-width: 34px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 11px;
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); border-radius: var(--r-pill);
  transition: background .15s, color .15s;
}
.nav-tools .nt-btn:hover { background: var(--surface-2); color: var(--text); }
.nav-tools .nt-lang { font-family: var(--font-mono); letter-spacing: .04em; }
:root[dir="rtl"] .nav-tools .nt-lang { font-family: var(--font-sans-ar); }
.nav-tools .nt-div { width: 1px; height: 18px; background: var(--border); margin: 0 2px; }
.nav-cta { gap: 7px; height: 38px; box-shadow: 0 4px 14px color-mix(in oklch, var(--primary) 30%, transparent); }
.nav-cta svg { transition: transform .2s; }
[dir="rtl"] .nav-cta svg { transform: scaleX(-1); }
.nav-cta:hover svg { transform: translateX(3px); }
[dir="rtl"] .nav-cta:hover svg { transform: scaleX(-1) translateX(3px); }
@media (max-width: 900px) {
  .nav-end { display: none; }
}

/* ── About bento ── */
.about-bento {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ab-cell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
}
.ab-quote {
  grid-column: span 2; grid-row: span 2;
  background: var(--gray-950); color: #fff;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  border-color: transparent;
}
.ab-quote::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 82% 12%, color-mix(in oklch, var(--teal-500) 40%, transparent), transparent 60%);
}
.ab-eyebrow {
  position: relative; z-index: 1;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em;
  color: var(--teal-300);
}
:root[dir="rtl"] .ab-eyebrow { font-family: var(--font-sans-ar); letter-spacing: .06em; }
.ab-q {
  position: relative; z-index: 1;
  font-family: var(--font-display-en); font-weight: 700;
  font-size: clamp(24px, 3vw, 40px); line-height: 1.25; letter-spacing: -.02em;
  margin: 20px 0; max-width: 20ch; text-wrap: balance; color: #fff;
}
:root[dir="rtl"] .ab-q { font-family: var(--font-display-ar); line-height: 1.4; letter-spacing: 0; }
.ab-by { position: relative; z-index: 1; font-size: 14px; color: rgba(255,255,255,.65); }
.ab-pixels {
  position: absolute; bottom: -16px; inset-inline-end: -16px;
  display: grid; grid-template-columns: repeat(8, 14px); gap: 3px; opacity: .28;
}
.ab-pixels span { width: 14px; height: 14px; background: rgba(255,255,255,.5); border-radius: 2px; }
.ab-story { grid-column: span 1; grid-row: span 2; display: flex; flex-direction: column; }
.ab-story h3 { margin: 0 0 14px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.ab-story p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.7; color: var(--text-secondary); }
.ab-story p:last-child { margin-bottom: 0; }
.ab-stat { display: flex; flex-direction: column; justify-content: center; position: relative; }
.ab-stat::before {
  content: ""; position: absolute; top: 22px; inset-inline-start: 0; width: 30px; height: 3px; background: var(--primary);
}
.ab-stat b { font-family: var(--font-display-en); font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--text); }
:root[dir="rtl"] .ab-stat b { font-family: var(--font-display-ar); }
.ab-stat span { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ── Values bento ── */
.values-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.val-cell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 30px;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.val-cell:nth-child(1) { grid-column: span 2; }
.val-cell:nth-child(4) { grid-column: span 2; }
.val-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklch, var(--primary) 30%, var(--border)); }
.val-cell::after {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--teal-700));
  transform: scaleY(0); transform-origin: top; transition: transform .25s;
}
.val-cell:hover::after { transform: scaleY(1); }
.val-n {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--primary);
  display: block; margin-bottom: 14px;
}
.val-cell h4 { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.val-cell p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); max-width: 52ch; }

/* ── Customers logo wall ── */
.logo-wall {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; background: var(--surface);
}
.lw-item {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px;
  border-inline-end: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.lw-item:nth-child(4n) { border-inline-end: 0; }
.lw-item:nth-last-child(-n+4) { border-bottom: 0; }
.lw-item:hover { background: var(--surface-2); }
.lw-mono {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-ink);
  font-family: var(--font-display-en); font-weight: 700; font-size: 15px;
}
:root[data-mode="dark"] .lw-mono { color: var(--text); }
:root[dir="rtl"] .lw-mono { font-family: var(--font-display-ar); }
.lw-name { font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--text); }

@media (max-width: 900px) {
  .about-bento { grid-template-columns: 1fr 1fr; }
  .ab-quote { grid-column: span 2; grid-row: auto; }
  .ab-story { grid-column: span 2; grid-row: auto; }
  .values-bento { grid-template-columns: 1fr; }
  .val-cell:nth-child(1), .val-cell:nth-child(4) { grid-column: auto; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .lw-item:nth-child(4n) { border-inline-end: 1px solid var(--border); }
  .lw-item:nth-child(2n) { border-inline-end: 0; }
}
@media (max-width: 560px) {
  .about-bento { grid-template-columns: 1fr; }
  .ab-quote, .ab-story { grid-column: auto; }
  .ab-stat { padding-top: 34px; }
  .logo-wall { grid-template-columns: 1fr; }
  .lw-item { border-inline-end: 0 !important; }
}

/* ── Services bento ── */
.svc-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-cell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.svc-cell::after {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--teal-700));
  transform: scaleY(0); transform-origin: top; transition: transform .25s;
}
.svc-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklch, var(--primary) 30%, var(--border)); }
.svc-cell:hover::after { transform: scaleY(1); }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.svc-ic { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; transition: background .2s, color .2s; }
:root[data-mode="dark"] .svc-ic { color: var(--text); }
.svc-cell:hover .svc-ic { background: var(--primary); color: var(--on-primary); }
.svc-idx { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--border-strong); }
.svc-cell h4 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.svc-cell p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--text-secondary); }

.svc-feature {
  grid-column: span 2; grid-row: span 2;
  background: var(--gray-950); color: #fff; border-color: transparent;
  display: flex; flex-direction: column;
}
.svc-feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 82% 12%, color-mix(in oklch, var(--teal-500) 38%, transparent), transparent 62%);
}
.svc-feature > * { position: relative; z-index: 1; }
.svc-feature .svc-ic { width: 60px; height: 60px; background: rgba(255,255,255,.08); color: var(--teal-300); border: 1px solid rgba(255,255,255,.14); }
.svc-feature:hover .svc-ic { background: var(--primary); color: var(--on-primary); }
.svc-feature .svc-idx { color: rgba(255,255,255,.4); }
.svc-feature h4 { font-size: clamp(24px, 2.6vw, 34px); margin-top: auto; color: #fff; }
.svc-feature p { font-size: 16px; color: rgba(255,255,255,.72); max-width: 44ch; }
.svc-feature::after { background: linear-gradient(180deg, var(--teal-300), var(--teal-500)); }

@media (max-width: 900px) {
  .svc-bento { grid-template-columns: 1fr 1fr; }
  .svc-feature { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .svc-bento { grid-template-columns: 1fr; }
  .svc-feature { grid-column: auto; }
}

/* Product-detail features: tint the featured tile with the product hue */
.pd-feats .svc-feature::before {
  background: radial-gradient(60% 60% at 82% 12%, oklch(0.55 0.11 var(--h,195) / .55), transparent 62%);
}
.pd-feats .svc-feature::after {
  background: linear-gradient(180deg, oklch(0.72 0.10 var(--h,195)), oklch(0.5 0.10 var(--h,195)));
}
.pd-feats .svc-feature .svc-ic { color: oklch(0.82 0.09 var(--h,195)); }
.pd-feats .svc-cell:hover { border-color: color-mix(in oklch, oklch(0.6 0.1 var(--h,195)) 35%, var(--border)); }
.pd-feats .svc-cell::after { background: linear-gradient(180deg, oklch(0.7 0.10 var(--h,195)), oklch(0.5 0.10 var(--h,195))); }
.pd-feats .svc-ic { background: oklch(0.95 0.04 var(--h,195)); color: oklch(0.45 0.10 var(--h,195)); }
:root[data-mode="dark"] .pd-feats .svc-ic { background: oklch(0.32 0.06 var(--h,195)); color: #fff; }
.pd-feats .svc-cell:hover .svc-ic { background: oklch(0.6 0.11 var(--h,195)); color: #fff; }

/* ============================================================
   Responsive hardening — professional support for all screens
   (added on top of the design's existing 900/560 breakpoints)
   ============================================================ */

/* 1) Kill horizontal scroll from the off-canvas mobile drawer
      (position:fixed + translateX(-100%) was extending the page). */
html { overflow-x: hidden; }
body.site { overflow-x: hidden; max-width: 100%; }

/* 2) Let flex/grid children shrink instead of forcing overflow. */
.hero-cta, .hero-trust, .nav-row, .footer-grid, .contact-grid,
.newsletter form, .job-card, .case-card, .pd-hero-grid { min-width: 0; }

/* 3) Media never overflows its box. */
img { max-width: 100%; height: auto; }

/* 4) Newsletter: stack + fluid input on small screens (was min-width:260px). */
@media (max-width: 620px) {
  .newsletter form { flex-direction: column; align-items: stretch; }
  .newsletter input { min-width: 0; width: 100%; }
  .newsletter button { width: 100%; }
}

/* 5) Tablet range refinements (portrait tablets / large phones). */
@media (max-width: 900px) {
  .nav-cta { padding-inline: 14px; }
  .hero h1 { font-size: clamp(34px, 8vw, 60px); }
  .section { padding: clamp(48px, 9vw, 80px) 0; }
}

/* 6) Phone refinements (≤560): denser spacing, safer single columns. */
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .home-stats { gap: 10px; }
  .hp-metrics { grid-template-columns: 1fr 1fr; }
  .other-products { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-trust { gap: 8px 12px; margin-top: 28px; padding-top: 18px; }
  .btn--lg { width: 100%; justify-content: center; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .pd-metrics-strip, .pd-metrics { gap: 10px; }
}

/* 7) Very small phones (≤380): stack the last multi-column bits. */
@media (max-width: 380px) {
  .home-stats { grid-template-columns: 1fr; }
  .hp-metrics { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(28px, 9vw, 40px); }
  .nav-logo .sb { display: none; }
}
