/* ────────────────────────────────────────────────────────────
   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;
}

/* — 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; }
}
