/* =====================================================================
   Home page — Shared Development
   Page-specific layout and product mockups (prefix: hm-).
   Built on css/site.css tokens; logical properties only.
   ===================================================================== */

/* ---------------------------------------------------------------------
   01 · Hero
   --------------------------------------------------------------------- */
.hm-hero { padding-bottom: clamp(64px, 8vw, 112px); }
.hm-hero .hero-inner { max-width: 1040px; }
.hm-hero h1.display { font-size: clamp(2.5rem, 1.1rem + 5vw, 5.4rem); }
html[lang="ar"] .hm-hero h1.display { font-size: clamp(2.1rem, 1rem + 4vw, 4.3rem); }
.hm-hero .lead { max-width: 790px; }
.hm-hero .lead strong { color: var(--text); font-weight: 600; }
.hm-meta { padding: 0; }
.hm-meta li { display: inline-flex; align-items: center; gap: 7px; }

/* Composed stage: DataGage window in front, AMS card offset behind */
.hm-stage {
  position: relative;
  max-width: 1240px;
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding-top: 72px;
  isolation: isolate;
}
.hm-stage::before {
  content: "";
  position: absolute;
  inset: 12% 6% -4%;
  z-index: -1;
  background:
    radial-gradient(50% 55% at 38% 50%, var(--accent-glow), transparent 70%),
    radial-gradient(35% 45% at 88% 30%, color-mix(in oklab, var(--gold) 20%, transparent), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hm-dg { position: relative; z-index: 2; width: 70%; }
.hm-ams { position: absolute; z-index: 1; top: 0; inset-inline-end: 0; width: 34%; }

/* keep the tilt visible before reveal (site.css .reveal would override it) */
.hm-dg.mock-tilt.reveal:not(.is-in) { transform: perspective(1800px) rotateX(9deg) translateY(24px); }
.hm-dg.mock-tilt.reveal { transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }

/* ---- DataGage window ---- */
.hm-dg-app { display: grid; grid-template-columns: 52px minmax(0, 1fr) 290px; min-height: 480px; }
.hm-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  background: var(--surface-2);
  border-inline-end: 1px solid var(--border);
}
.hm-rail span {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--text-muted);
}
.hm-rail .i { width: 17px; height: 17px; }
.hm-rail .on { background: var(--accent); color: var(--accent-contrast); }
.hm-rail .ai::after {
  content: "";
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--surface-2);
}
.hm-rail .hm-rail-logo { margin-bottom: 8px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--pa)); }
.hm-rail .end { margin-top: auto; }

.hm-dash {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px 14px 52px;
  background: var(--bg);
}
.hm-filter, .hm-customize {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
}
.hm-filter { margin-inline-start: auto; }
.hm-customize { border-color: var(--accent-border); color: var(--accent-text); }
.hm-filter .i, .hm-customize .i { width: 12px; height: 12px; }
.hm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hm-kpis .mock-kpi { padding: 10px 11px; }
.hm-kpis .k-label { font-size: 10.5px; }
.hm-kpis .k-value { font-size: 16px; white-space: nowrap; }
.hm-legend { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.hm-legend i { width: 8px; height: 8px; margin-inline-start: 5px; border-radius: 2px; background: var(--c); }
.hm-area .chart-svg { margin-top: 2px; }
.hm-axis { display: flex; justify-content: space-between; margin-top: 4px; direction: ltr; font-size: 10px; color: var(--text-muted); }
.hm-dash-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.hm-dash .hbar { grid-template-columns: 62px 1fr 30px; font-size: 10.5px; }
.hm-donut-wrap { display: flex; align-items: center; gap: 12px; }
.hm-donut-wrap .donut { width: 64px; height: 64px; flex-shrink: 0; }
.hm-donut-wrap ul { list-style: none; padding: 0; display: grid; gap: 4px; font-size: 10.5px; color: var(--text-2); }
.hm-donut-wrap li, .hm-legend { line-height: 1.3; }
.hm-donut-wrap li { display: flex; align-items: center; gap: 6px; }
.hm-donut-wrap li i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.hm-insights-pill {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 7px 6px 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--brand));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 10px 24px -8px var(--accent-glow);
}
[dir="rtl"] .hm-insights-pill { padding: 6px 12px 6px 7px; }
.hm-insights-pill .i { width: 13px; height: 13px; }
.hm-insights-pill b { padding: 0 7px; border-radius: 99px; background: rgba(255, 255, 255, .24); font-family: var(--font-sans); }

/* AI Assistant side panel */
.hm-chatpanel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-inline-start: 1px solid var(--border);
  background: var(--surface);
}
.hm-chat-head { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.hm-chat-head b { display: block; font-size: 12.5px; }
.hm-chat-head small { display: block; font-size: 10.5px; color: var(--text-muted); }
.hm-chat-hist { width: 16px; height: 16px; margin-inline-start: auto; color: var(--text-muted); }
.hm-datasets { display: flex; flex-wrap: wrap; gap: 5px; }
.hm-datasets > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--pa-soft);
  color: var(--pa-ink);
  font-size: 10px;
  font-weight: 600;
}
.hm-datasets .i { width: 11px; height: 11px; }
.hm-chatpanel .chat { flex: 1; gap: 8px; }
.hm-chatpanel .msg { max-width: 94%; font-size: 11.5px; }
html[lang="ar"] .hm-chatpanel .msg { font-size: 12px; }
.hm-chatpanel .msg-full { max-width: 100%; }
.hm-chatpanel .tool-chip { align-self: flex-start; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9.5px; }
.hm-chatpanel .tool-chip .i { flex-shrink: 0; }
.hm-gchart { margin-top: 8px; padding: 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.hm-gchart-title { margin-bottom: 6px; font-size: 10px; font-weight: 600; color: var(--text-2); }
.hm-gbars { display: flex; align-items: flex-end; gap: 10px; height: 62px; padding-inline: 4px; direction: ltr; }
.hm-gbars > div { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.hm-gbars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: color-mix(in oklab, var(--s1) 32%, var(--surface-3));
  transform-origin: bottom;
}
.hm-gbars i.cur { background: var(--s1); }
.hm-gbars i.dn { background: var(--s3); }
[data-animate-seq].is-in .hm-gbars i { animation: bar-grow .9s var(--ease-out) 1.25s both; }
.hm-gbars-labels { display: flex; gap: 10px; margin-top: 4px; padding-inline: 4px; direction: ltr; font-size: 9px; color: var(--text-muted); text-align: center; }
.hm-gbars-labels span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-chatpanel .suggest { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; }
.hm-chatpanel .suggest .i { width: 11px; height: 11px; }
.hm-chatpanel .chat-input { font-size: 11px; }
.hm-chatpanel .chat-input .hm-mic { width: 15px; height: 15px; margin-inline-start: auto; color: var(--text-muted); }
.hm-chatpanel .chat-input .send { margin-inline-start: 4px; }

/* ---- AMS back-office card ---- */
.hm-ams-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
  padding-inline-start: calc(12% + 14px);
  background: var(--bg);
}
.hm-ams-crumb { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; }
.hm-ams-crumb .i { width: 11px; height: 11px; }
.hm-ams-head { display: flex; align-items: center; gap: 9px; }
.hm-ava {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), color-mix(in oklab, var(--gold) 30%, var(--surface)));
  color: var(--gold-ink);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
}
.hm-ava.sm { width: 26px; height: 26px; font-size: 10px; }
.hm-ams-who { flex: 1; min-width: 0; }
.hm-ams-who b { display: block; font-size: 12.5px; }
.hm-ams-who small { display: block; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-ams-head .chip { padding: 3px 8px; font-size: 10px; }
.hm-brief {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, var(--brand), var(--gold)) border-box;
  box-shadow: 0 10px 28px -14px color-mix(in oklab, var(--gold) 55%, transparent);
}
.hm-brief-head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 11px; color: var(--accent-text); }
.hm-brief-head .i { width: 13px; height: 13px; }
.hm-tag { margin-inline-start: auto; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.hm-brief p { font-size: 11px; line-height: 1.5; color: var(--text-2); }
html[lang="ar"] .hm-brief p { line-height: 1.7; }
.hm-brief ul { list-style: none; padding: 0; margin-top: 6px; display: grid; gap: 3px; }
.hm-brief li { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text-2); }
.hm-brief li .i { width: 12px; height: 12px; }
.hm-brief .ok .i { color: var(--success); }
.hm-brief .gap .i { color: var(--warning); }
.hm-verdict { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 11px; background: var(--success-soft); }
.hm-verdict-ic { color: var(--success); }
.hm-verdict-ic .i { width: 18px; height: 18px; }
.hm-verdict b { display: block; font-size: 11.5px; color: var(--success); }
.hm-verdict small { display: block; font-size: 10.5px; color: var(--text-2); }
.hm-score-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; border: 1px dashed var(--border-strong); background: var(--surface); }
.hm-score-row .score-ring { width: 44px; height: 44px; font-size: 12px; flex-shrink: 0; }
.hm-score-row .score-ring span { width: 34px; height: 34px; }
.hm-score-row b { display: block; font-size: 11.5px; }
.hm-score-row small { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--text-muted); }
.hm-score-row small .i { width: 11px; height: 11px; }
.hm-log { list-style: none; padding: 0; margin-inline-start: 4px; border-inline-start: 1px solid var(--border-strong); }
.hm-log li { position: relative; display: flex; justify-content: space-between; gap: 8px; padding-block: 4px; padding-inline-start: 12px; font-size: 10.5px; color: var(--text-muted); }
.hm-log li::before {
  content: "";
  position: absolute;
  inset-inline-start: -4.5px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
}
.hm-log li.now { color: var(--text); font-weight: 600; }
.hm-log li.now::before { background: var(--gold); border-color: var(--gold); }
.hm-log time { font-family: var(--font-sans); font-variant-numeric: tabular-nums; direction: ltr; }

/* Floating chips */
.hm-stage .float-chip { padding: 7px 12px; background: var(--surface); border-color: var(--border); color: var(--text); font-weight: 600; z-index: 3; }
.hm-fc-1 { top: 66%; inset-inline-start: -18px; }
.hm-fc-1 .i { color: var(--success); }
.hm-fc-2 { bottom: 7%; inset-inline-end: 4%; }
.hm-fc-2 .i { color: var(--cyan); }
@media (prefers-reduced-motion: no-preference) {
  .hm-fc-1 { animation: hm-float 7s var(--ease-in-out) infinite; }
  .hm-fc-2 { animation: hm-float 8s var(--ease-in-out) -3s infinite; }
}
@keyframes hm-float { 50% { transform: translateY(-7px); } }

@media (max-width: 1180px) {
  .hm-dg-app { grid-template-columns: 52px minmax(0, 1fr) 250px; }
  .hm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-dash-row { grid-template-columns: 1fr; }
  .hm-donut-card { display: none; }
}
@media (max-width: 980px) {
  .hm-stage { display: flex; flex-direction: column; max-width: 760px; padding-top: 0; }
  .hm-dg { width: 100%; order: 0; }
  .hm-ams { order: 1; }
  .hm-dg-app { grid-template-columns: 52px minmax(0, 1fr) 280px; }
  .hm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-ams { position: relative; z-index: 3; width: min(430px, 90%); margin-top: -44px; margin-inline-start: auto; }
  .hm-ams-body { padding-inline-start: 14px; }
  .hm-fc-1 { top: -16px; inset-inline-start: 12px; }
  .hm-fc-2 { display: none; }
}
@media (max-width: 760px) {
  .hm-dg-app { grid-template-columns: minmax(0, 1fr); }
  .hm-rail { display: none; }
  .hm-chatpanel { border-inline-start: 0; border-top: 1px solid var(--border); }
  .hm-dash-row { display: none; }
  .hm-dash { padding-bottom: 14px; }
  .hm-insights-pill { position: static; align-self: flex-start; }
  .hm-filter { display: none; }
  .hm-customize { margin-inline-start: auto; }
  .hm-legend .t-en, .hm-legend .t-ar { display: none !important; }
  .hm-ams { width: 94%; margin-top: -28px; }
}
@media (max-width: 480px) {
  .hm-log, .hm-brief ul { display: none; }
  .hm-fc-1 { display: none; }
}

/* ---------------------------------------------------------------------
   02 · Marquee
   --------------------------------------------------------------------- */
.hm-marquee-sec { padding-block: clamp(36px, 5vw, 60px); }
.hm-marquee-label {
  margin-bottom: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
html[lang="ar"] .hm-marquee-label { font-family: var(--font-ar); font-size: .92rem; text-transform: none; }
.hm-marquee + .hm-marquee { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .hm-marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .hm-marquee .marquee-track { gap: 10px; }
}
.hm-marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 60s; }
.hm-marquee-rev .marquee-item { background: transparent; border-style: dashed; }
.hm-marquee-rev .marquee-item .i { color: var(--text-muted); }

/* ---------------------------------------------------------------------
   03 · Product cards
   --------------------------------------------------------------------- */
.hm-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .hm-products { grid-template-columns: 1fr; } }
.hm-pc-pos { max-width: 54ch; color: var(--text-2); font-size: 1.02rem; }
.hm-pc-list { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 14px; }
.hm-pc-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-2); font-size: .93rem; line-height: 1.55; }
.hm-pc-list b { display: block; color: var(--text); font-size: .98rem; font-weight: 600; }
.hm-pc-ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--pa-soft);
  color: var(--pa-ink);
}
.hm-pc-ic .i { width: 17px; height: 17px; }
.hm-products .product-visual { margin-top: auto; padding-top: 28px; }

/* Custom solutions: "we build anything" */
.hm-build {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: 20px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-xl);
}
.hm-build-copy .product-tag { margin-bottom: 14px; }
.hm-build-copy h3 { margin-bottom: 12px; }
.hm-build-copy p { max-width: 52ch; color: var(--text-2); font-size: 1.02rem; }
.hm-build-copy .btn { margin-top: 24px; }
.hm-build-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hm-build-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface-2, var(--surface)) 70%, transparent);
  color: var(--text);
  font-size: .93rem;
  font-weight: 500;
  line-height: 1.4;
}
.hm-build-ic { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.hm-build-ic .i { width: 17px; height: 17px; }
@media (max-width: 960px) { .hm-build { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hm-build-list { grid-template-columns: 1fr; } .hm-build-list li { min-height: 0; } }
.hm-pc-mock { box-shadow: var(--shadow); }
.hm-pc-mock .mock-main { padding: 14px; }
.hm-pc-mock .mock-grid.k3 .k-value { font-size: 16px; white-space: nowrap; }
.hm-pc-bars { height: 84px; }
.hm-pc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.hm-pc-foot .link-arrow { color: var(--pa-ink); font-size: 1.02rem; }
.hm-pc-demo { font-size: .9rem; font-weight: 500; color: var(--text-muted); transition: color .15s; }
.hm-pc-demo:hover { color: var(--text); }
@media (max-width: 560px) {
  .hm-pc-mock .mock-grid.k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-pc-mock .mock-grid.k3 > :last-child { grid-column: 1 / -1; }
}

/* AMS inbox */
.hm-inbox-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hm-inbox-head b { font-size: 13px; }
.hm-count { font-size: 11px; color: var(--text-muted); }
.hm-inbox-head .chip { margin-inline-start: auto; padding: 3px 9px; font-size: 10.5px; }
.hm-inbox { overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.hm-inbox-cols, .hm-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 112px 44px;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 12px;
}
.hm-inbox-cols { padding-block: 6px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 10.5px; font-weight: 600; color: var(--text-muted); }
.hm-inbox-cols > :first-child { grid-column: 1 / 3; }
.hm-lock-col { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; }
.hm-lock-col .i { width: 10px; height: 10px; }
.hm-row + .hm-row { border-top: 1px solid var(--border); }
.hm-row-who { min-width: 0; }
.hm-row-who b { display: block; overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.hm-row-who small { display: block; overflow: hidden; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; text-overflow: ellipsis; }
.status.hm-ok { color: var(--success); }
.status.hm-warn { color: var(--warning); }
.status.hm-bad { color: var(--danger); }
.hm-score { text-align: end; font-family: var(--font-sans); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-score small { font-size: 10px; font-weight: 500; color: var(--text-muted); }
.hm-score.hi { color: var(--gold-ink); }
.hm-score.muted { color: var(--text-muted); font-weight: 500; }
.hm-row.is-open { background: color-mix(in oklab, var(--pa-soft) 60%, transparent); }
.hm-row-note {
  grid-column: 2 / -1;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid var(--accent-border);
  background: var(--surface);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.hm-row-note .i { width: 12px; height: 12px; margin-top: 2px; color: var(--accent-text); flex-shrink: 0; }
.hm-row-note b { color: var(--accent-text); }
.hm-checking { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.hm-checking i, .hm-spin {
  display: inline-block;
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  border-top-color: transparent;
  animation: spin .9s linear infinite;
}
@media (max-width: 480px) {
  .hm-inbox-cols, .hm-row { grid-template-columns: 26px minmax(0, 1fr) 92px 34px; gap: 6px 8px; padding-inline: 10px; }
  .hm-inbox-head .chip { display: none; }
}

/* ---------------------------------------------------------------------
   04 · AI capabilities bento
   --------------------------------------------------------------------- */
/* site.css sets product-tag in mono caps; Arabic needs its own face */
html[lang="ar"] .product-tag { font-family: var(--font-ar); font-size: .8rem; text-transform: none; }
.hm-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hm-tile-top .card-icon { margin-bottom: 14px; }
.hm-tile-top .product-tag { margin-top: 4px; }
.hm-bento .card p { font-size: .95rem; }
html[lang="ar"] .hm-bento .card p { font-size: 1rem; }
.hm-bento .viz { font-size: 12px; }
@media (max-width: 960px) { .bento.hm-bento > .hm-span-sm { grid-column: span 2 !important; } }

/* Ask Your Data */
.hm-ask-q {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
}
[dir="rtl"] .hm-ask-q { padding: 9px 12px 9px 10px; }
.hm-ask-q > .i { width: 15px; height: 15px; color: var(--text-muted); }
.hm-ask-q .chip { margin-inline-start: auto; padding: 2px 8px; font-size: 10.5px; }
.hm-ask-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 10px; }
.hm-ask-grid .code { font-size: 10.5px; }
.hm-ask-grid .mock-table { border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
@media (max-width: 600px) { .hm-ask-grid { grid-template-columns: 1fr; } }

/* Arabic-first */
.hm-v-ar { display: flex; flex-direction: column; gap: 8px; }
.hm-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 94%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.55;
}
.hm-bubble .i { width: 13px; height: 13px; flex-shrink: 0; }
.hm-bubble[lang="ar"] { font-family: var(--font-ar); font-size: 13px; }
.hm-bubble[lang="en"] { font-family: var(--font-sans); }
.hm-bubble.ar, .hm-bubble.en { align-self: flex-end; background: var(--accent); color: var(--accent-contrast); border-end-end-radius: 4px; }
.hm-bubble.ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-end-start-radius: 4px; }
.hm-bubble.ai .i { color: var(--accent-text); }
.hm-names {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--surface-2);
}
.hm-names > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.hm-names [lang="ar"] { font-family: var(--font-ar); }
.hm-names [lang="en"] { font-family: var(--font-sans); }
.hm-names .i { width: 14px; height: 14px; color: var(--text-muted); }
.hm-names .chip { padding: 2px 8px; font-size: 10.5px; }

/* AI Assistant */
.hm-v-assist { display: flex; align-items: center; gap: 14px; }
.hm-v-assist .donut { width: 76px; height: 76px; flex-shrink: 0; }
.hm-v-assist-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--text-2); }
.hm-v-assist-txt b { font-family: var(--font-sans); font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--text); line-height: 1.1; }
.hm-v-assist-txt .tool-chip { margin-top: 8px; }

/* AI Insights feed + shared badges */
.hm-v-feed { display: grid; gap: 6px; }
.hm-feed-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
}
.hm-feed-card b { margin-inline-start: auto; font-family: var(--font-sans); color: var(--text); white-space: nowrap; }
.hm-feed-card b.up { color: var(--success); }
.hm-badge {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
html[lang="ar"] .hm-badge { font-family: var(--font-ar); font-size: 10.5px; text-transform: none; }
.hm-badge.kpi { background: var(--accent-soft); color: var(--accent-ink); }
.hm-badge.chg { background: var(--success-soft); color: var(--success); }
.hm-badge.trd { background: var(--cyan-soft); color: var(--cyan); }
.hm-badge.top { background: var(--gold-soft); color: var(--gold-ink); }

/* Auto Dashboard */
.hm-auto-steps { display: flex; gap: 4px; font-size: 11px; }
.hm-auto-steps span { flex: 1; padding: 5px 4px; border-radius: 8px; background: var(--surface-2); color: var(--text-muted); font-weight: 600; text-align: center; }
.hm-auto-steps .done { background: var(--success-soft); color: var(--success); }
.hm-auto-steps .on { background: var(--accent-soft); color: var(--accent-ink); }
.hm-auto-line { display: flex; justify-content: space-between; margin: 10px 0 6px; font-size: 11.5px; color: var(--text-2); }
.hm-auto-line b { font-family: var(--font-sans); color: var(--text); }
.hm-auto-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.hm-auto-tiles i { height: 30px; border-radius: 8px; background: linear-gradient(135deg, #5b47e0, #8b7cf6); }
.hm-auto-tiles i:nth-child(2) { background: linear-gradient(135deg, #0e7490, #22b8cf); }
.hm-auto-tiles i.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }

/* AI Decision */
.hm-verdict-box { padding: 12px 14px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #34249e, #5b47e0 55%, #7f70f2); box-shadow: 0 12px 30px -14px rgba(91, 71, 224, .7); }
.hm-verdict-box small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
html[lang="ar"] .hm-verdict-box small { font-family: var(--font-ar); font-size: 11px; text-transform: none; }
.hm-verdict-box b { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; }
.hm-decision-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hm-decision-meta .chip { padding: 3px 9px; font-size: 10.5px; }

/* Bring your own model */
.hm-v-models { display: grid; gap: 6px; }
.hm-model { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; }
.hm-model > i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex-shrink: 0; }
.hm-model.on { border-color: var(--accent-border); background: var(--accent-soft); }
.hm-model.on > i { border: 4px solid var(--accent); }
.hm-model .chip { margin-inline-start: auto; padding: 2px 7px; font-size: 10px; }

/* AI Document Verification */
.hm-v-docs { display: grid; gap: 6px; }
.hm-doc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); }
.hm-doc > .i { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.hm-doc > div { flex: 1; min-width: 0; }
.hm-file { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-doc small { display: block; font-size: 10.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-doc .status { flex-shrink: 0; font-size: 10.5px; }
.hm-doc.ok { border-color: color-mix(in oklab, var(--success) 35%, var(--border)); }
.hm-doc.ok .status { color: var(--success); }
.hm-doc.bad { border-color: color-mix(in oklab, var(--warning) 40%, var(--border)); }
.hm-doc.bad .status { color: var(--warning); }

/* Stage briefing & scoring */
.hm-score-lines { display: grid; gap: 7px; }
.hm-score-lines > div { display: grid; grid-template-columns: 100px minmax(0, 1fr) 42px; align-items: center; gap: 10px; font-size: 11.5px; color: var(--text-2); }
html[lang="ar"] .hm-score-lines > div { grid-template-columns: 116px minmax(0, 1fr) 42px; }
.hm-score-lines b { text-align: end; font-family: var(--font-sans); color: var(--text); }
.hm-score-lines .tot { padding-top: 7px; border-top: 1px dashed var(--border-strong); font-weight: 600; color: var(--text); }
.hm-hidden-note { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding: 7px 10px; border-radius: 9px; background: var(--gold-soft); color: var(--gold-ink); font-size: 11px; font-weight: 500; }
.hm-hidden-note .i { width: 13px; height: 13px; flex-shrink: 0; }

/* Smart answer checks */
.hm-v-field label { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 600; color: var(--text-2); }
.hm-input { padding: 8px 11px; border-radius: 9px; border: 1px solid var(--warning); background: var(--surface); box-shadow: 0 0 0 3px var(--warning-soft); font-family: var(--font-sans); font-size: 12.5px; direction: ltr; text-align: start; }
.hm-nudge { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 11px; line-height: 1.45; color: var(--warning); }
.hm-nudge .i { width: 13px; height: 13px; margin-top: 1px; flex-shrink: 0; }

/* Category Advisor */
.hm-v-cat { display: grid; gap: 6px; }
.hm-cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; }
.hm-cat .chip { flex-shrink: 0; padding: 2px 8px; font-size: 10px; }

/* Governed AI log */
.hm-v-log { overflow: hidden; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.hm-v-log > div { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 11.5px; color: var(--text-2); }
.hm-v-log > div + div { border-top: 1px solid var(--border); }
.hm-v-log time { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); }
.hm-v-log .status { margin-inline-start: auto; font-size: 10.5px; white-space: nowrap; }

/* ---------------------------------------------------------------------
   05 · Agentic AI band
   --------------------------------------------------------------------- */
.hm-band .bg-grid {
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 50% at 70% 30%, #000 20%, transparent 75%);
}
.hm-agent { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hm-agent { grid-template-columns: 1fr; } }
.hm-agent-copy .eyebrow { margin-bottom: 18px; }
.hm-agent-copy h2 { margin-bottom: 18px; }
.hm-pra { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 16px; }
.hm-pra li { display: flex; align-items: flex-start; gap: 14px; color: var(--text-2); font-size: .95rem; }
.hm-pra b { display: block; color: #fff; font-size: 1rem; font-weight: 600; }
.hm-pra-ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.hm-pra-ic .i { width: 18px; height: 18px; }

.hm-run-fig { margin: 0; }
.hm-run { padding: 16px; background: var(--band-surface); border-color: var(--border-strong); box-shadow: 0 40px 100px -40px rgba(91, 71, 224, .65), 0 0 0 1px rgba(255, 255, 255, .03); }
.hm-run-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.hm-run-head b { display: block; font-size: 13px; }
.hm-run-head small { display: block; font-size: 11px; color: var(--text-muted); }
.hm-live { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; padding: 4px 10px; border-radius: 99px; background: var(--success-soft); color: var(--success); font-size: 11px; font-weight: 600; white-space: nowrap; }
.hm-steps { list-style: none; padding: 0; display: grid; gap: 8px; }
.hm-steps li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-2);
}
.hm-steps li b { font-weight: 500; color: var(--text); }
.hm-steps li > div { min-width: 0; }
.hm-steps .tool-chip { display: flex; width: max-content; max-width: 100%; margin-top: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hm-steps time { padding-top: 2px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); }
.hm-steps .st { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); }
.hm-steps .st .i { width: 11px; height: 11px; }
.hm-steps li[data-state="done"] .st { background: var(--success); border-color: var(--success); color: #0d0b20; }
.hm-steps li.fix .st { background: var(--warning); border-color: var(--warning); }
.hm-steps li.fix .tool-chip { color: var(--warning); border-color: color-mix(in oklab, var(--warning) 40%, transparent); }
.hm-steps li[data-state="running"] { border-color: var(--accent-border); background: color-mix(in oklab, var(--accent-soft) 70%, var(--surface-2)); }
.hm-steps li[data-state="running"] .st { border-color: var(--accent); border-top-color: transparent; animation: spin .9s linear infinite; }
.hm-steps li:not([data-state]) { border-style: dashed; background: transparent; }
.hm-steps li:not([data-state]) b { color: var(--text-muted); }
.hm-steps .typing { padding-top: 6px; }

.hm-icards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.hm-icard { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.hm-icard .hm-badge { align-self: flex-start; margin-bottom: 4px; }
.hm-icard small { overflow: hidden; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; text-overflow: ellipsis; }
.hm-icard b { font-family: var(--font-sans); font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.hm-icard b.sm { font-size: 13px; letter-spacing: 0; line-height: 1.6; }
html[lang="ar"] .hm-icard b.sm { font-family: var(--font-ar); }
.hm-icard em { font-style: normal; font-size: 10.5px; color: var(--text-2); }
.hm-icard em.up { color: var(--success); }
.hm-spark { height: 24px; margin-block: 2px; }
@media (max-width: 560px) { .hm-icards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* AMS pipeline */
.hm-pipe-wrap {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0));
}
.hm-pipe-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; }
.hm-pipe-head .product-tag { color: var(--gold); }
.hm-pipe { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-pipe li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.hm-pipe li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 35px;
  inset-inline-end: -17px;
  width: 18px;
  height: 2px;
  background: var(--gold);
  opacity: .7;
}
.hm-pipe li:last-child { border-color: color-mix(in oklab, var(--gold) 45%, var(--border)); }
.hm-node {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 11px;
  border: 1px solid color-mix(in oklab, var(--gold) 35%, transparent);
  background: var(--gold-soft);
  color: var(--gold);
}
.hm-node .i { width: 18px; height: 18px; }
.hm-pipe b { color: #fff; font-size: .98rem; font-weight: 600; }
.hm-pipe small { color: var(--text-2); font-size: .86rem; line-height: 1.5; }
.hm-pipe .hm-lock { display: inline-block; width: 13px; height: 13px; margin-inline-end: 4px; vertical-align: -2px; color: var(--gold); }
@media (max-width: 900px) {
  .hm-pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-pipe li::after { display: none; }
}
@media (max-width: 520px) { .hm-pipe { grid-template-columns: 1fr; } }

/* Human in the loop */
.hm-hitl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.hm-hitl > div { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .025); color: var(--text-2); font-size: .92rem; }
.hm-hitl > div > .i { width: 22px; height: 22px; margin-top: 2px; color: var(--accent-text); flex-shrink: 0; }
.hm-hitl b { display: block; margin-bottom: 2px; color: #fff; font-size: 1rem; font-weight: 600; }
@media (max-width: 860px) { .hm-hitl { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   06 · Government
   --------------------------------------------------------------------- */
.hm-agenda { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .hm-agenda { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hm-agenda { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hm-agenda { grid-template-columns: 1fr; } }
.hm-ag {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  padding: 18px 16px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.hm-ag::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--cyan)); opacity: .75; }
.hm-ag-c { font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
html[lang="ar"] .hm-ag-c { font-family: var(--font-ar); font-size: .85rem; text-transform: none; }
.hm-ag b { font-size: .95rem; font-weight: 600; line-height: 1.35; }
.hm-ag small { font-size: .82rem; line-height: 1.5; color: var(--text-muted); }
.hm-agenda-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: .82rem; color: var(--text-muted); }
.hm-agenda-note .i { width: 15px; height: 15px; margin-top: 3px; flex-shrink: 0; }
.hm-sub-title { margin: clamp(48px, 6vw, 72px) 0 24px; font-size: 1.25rem; }
.hm-roadmap .step-num { display: flex; justify-content: space-between; }
.hm-roadmap .step h4 { font-size: 1.1rem; margin-bottom: 8px; }
@media (min-width: 601px) and (max-width: 1024px) { .hm-roadmap .step:last-child { grid-column: 1 / -1; } }
.hm-roadmap .step-num .i { width: 18px; height: 18px; color: var(--text-muted); }

.hm-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.hm-pillar { display: flex; gap: 14px; padding: 22px; border-bottom: 1px solid var(--border); border-inline-end: 1px solid var(--border); }
.hm-pillar:nth-child(3n) { border-inline-end: 0; }
.hm-pillar:nth-child(n+4) { border-bottom: 0; }
.hm-pillar .card-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.hm-pillar .card-icon .i { width: 19px; height: 19px; }
.hm-pillar h4 { margin-bottom: 4px; font-size: 1.02rem; }
.hm-pillar p { font-size: .92rem; color: var(--text-2); }
@media (max-width: 960px) {
  .hm-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-pillar:nth-child(3n) { border-inline-end: 1px solid var(--border); }
  .hm-pillar:nth-child(2n) { border-inline-end: 0; }
  .hm-pillar:nth-child(n+4) { border-bottom: 1px solid var(--border); }
  .hm-pillar:nth-child(n+5) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .hm-pillars { grid-template-columns: 1fr; }
  .hm-pillar, .hm-pillar:nth-child(3n) { border-inline-end: 0; }
  .hm-pillar:nth-child(n+4), .hm-pillar:nth-child(n+5) { border-bottom: 1px solid var(--border); }
  .hm-pillar:last-child { border-bottom: 0; }
}
.hm-sub-title + .hm-pillars { margin-top: 0; }
.hm-gov-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------------------------------------------------------------------
   07 · Services
   --------------------------------------------------------------------- */
.hm-svc { display: flex; flex-direction: column; color: inherit; }
.hm-svc .card-icon { margin-bottom: 16px; }
.hm-svc p { font-size: .95rem; }
.hm-svc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hm-svc-link:focus-visible { outline: none; }
.hm-svc:has(.hm-svc-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.hm-svc-go { position: absolute; top: 24px; inset-inline-end: 24px; width: 18px; height: 18px; color: var(--text-muted); transition: transform .2s var(--ease-out), color .2s; }
.hm-svc:hover .hm-svc-go, .hm-svc:focus-within .hm-svc-go { color: var(--accent-text); transform: translate(calc(2px * var(--dir)), -2px) scaleX(var(--dir)); }
.hm-more {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  transition: border-color .2s, background-color .2s;
}
.hm-more:hover, .hm-more:focus-within { border-color: var(--accent-border); background: var(--surface); }
.hm-more-ic { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.hm-more-txt { flex: 1; min-width: 0; font-size: .95rem; color: var(--text-2); }
.hm-more-txt h3 { margin: 0 0 2px; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--text); }
.hm-more-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hm-more-link:focus-visible { outline: none; }
.hm-more:focus-within:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.hm-more-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-more-go { width: 20px; height: 20px; color: var(--accent-text); flex-shrink: 0; transition: transform .2s var(--ease-out); }
.hm-more:hover .hm-more-go, .hm-more:focus-within .hm-more-go { transform: translateX(calc(3px * var(--dir))) scaleX(var(--dir)); }
@media (max-width: 760px) {
  .hm-more { flex-wrap: wrap; }
  .hm-more-chips { order: 3; width: 100%; }
  .hm-more-go { display: none; }
}

/* ---------------------------------------------------------------------
   08 · Metrics
   --------------------------------------------------------------------- */
.hm-metrics-sec .metric-value {
  background: linear-gradient(180deg, var(--text) 30%, color-mix(in oklab, var(--text) 50%, var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hm-enar i { margin-inline: .06em; font-style: normal; font-weight: 400; }

/* ---------------------------------------------------------------------
   09 · About
   --------------------------------------------------------------------- */
.hm-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 960px) { .hm-about { grid-template-columns: 1fr; } }
.hm-about-copy .eyebrow { margin-bottom: 18px; }
.hm-about-copy h2 { margin-bottom: 24px; }
.hm-about-prose { font-size: 1.05rem; color: var(--text-2); }
.hm-tagline { margin-top: 28px; padding-inline-start: 18px; border-inline-start: 2px solid var(--accent); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.hm-facts { overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.hm-map { padding: 8px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-2), var(--surface)); }
.hm-map-svg { width: 100%; height: auto; direction: ltr; }
.hm-map-dot { fill: var(--border-strong); }
.hm-pin { fill: var(--accent); }
.hm-pin.c { fill: var(--cyan); }
.hm-pin-halo { fill: var(--accent-glow); transform-box: fill-box; transform-origin: center; }
.hm-pin-halo.c { fill: color-mix(in oklab, var(--cyan) 25%, transparent); }
.hm-pin-hollow { fill: var(--surface); stroke: var(--text-muted); stroke-width: 1.5; }
.hm-map-l { font: 600 15px var(--font-sans); fill: var(--text); }
.hm-map-s { font: 500 11px var(--font-mono); fill: var(--text-muted); }
html[lang="ar"] .hm-map-l { font-family: var(--font-ar); }
html[lang="ar"] .hm-map-s { font-family: var(--font-ar); font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .hm-arc { animation: hm-dash 1.4s linear infinite; }
  .hm-pin-halo { animation: hm-halo 2.6s var(--ease-out) infinite; }
  .hm-pin-halo.c { animation-delay: 1.3s; }
}
@keyframes hm-dash { to { stroke-dashoffset: -24; } }
@keyframes hm-halo { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.hm-fact-list { display: grid; padding: 6px 24px 18px; }
.hm-fact-list > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.hm-fact-list > div:last-child { border-bottom: 0; }
.hm-fact-list dt { padding-top: 3px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
html[lang="ar"] .hm-fact-list dt { padding-top: 0; font-family: var(--font-ar); font-size: .88rem; text-transform: none; }
.hm-fact-list dd { margin: 0; font-size: .95rem; color: var(--text); }
.hm-fact-list a:hover { color: var(--accent-text); }
@media (max-width: 480px) { .hm-fact-list > div { grid-template-columns: 1fr; gap: 2px; } .hm-fact-list { padding-inline: 18px; } }
.hm-values { margin-top: clamp(40px, 5vw, 64px); }

/* ---------------------------------------------------------------------
   10 · FAQ
   --------------------------------------------------------------------- */
.hm-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.hm-faq-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
@media (max-width: 960px) {
  .hm-faq { grid-template-columns: 1fr; }
  .hm-faq-head { position: static; }
}

/* ---------------------------------------------------------------------
   11 · CTA band
   --------------------------------------------------------------------- */
.hm-cta-eyebrow { margin-bottom: 18px; color: #c9c1ff; }
.hm-cta-eyebrow .i { width: 14px; height: 14px; }
