/* ==========================================================================
   Pathway IT — home.css  (homepage)
   Uses the same visual system as the service pages: tighter type scale,
   14px cards with cool-navy shadows, dark bands with corner glow.
   Everything is namespaced `hm-` so it cannot collide with sections.css.
   ========================================================================== */

/* Icon slots painted by main.js. Without an explicit size an inline SVG with
   only a viewBox renders at 300x150, so every slot below sets one. */
span[data-icon]:not([class]) { display: inline-flex; flex: none; vertical-align: middle; }
span[data-icon]:not([class]) svg { width: 1em; height: 1em; }

.hm-page { --tint: #FAFBFE; --band: #F1F2FB; --card-line: #E7EAF4; }

/* ==========================================================================
   Section shells
   ========================================================================== */
.hm-section { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--paper); }
.hm-section--tint { background: var(--tint); }
.hm-section--band { background: var(--band); }
.hm-dark { padding-block: clamp(3.5rem, 7vw, 5rem); background: #0A0F26; }
.hm-dark--alt { background: #080D20; }

.hm-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.2rem, 4.5vw, 3.2rem); }
.hm-head h2 {
  margin-top: 1rem;
  font-size: clamp(1.4rem, 2.7vw, 1.95rem);
  line-height: 1.3; letter-spacing: -.02em; color: var(--slate-900);
}
.hm-head h2 span { color: var(--indigo); }
.hm-head > p { margin-top: .9rem; font-size: .88rem; line-height: 1.65; color: var(--slate-500); }

.hm-head--dark h2 { color: #fff; }
.hm-head--dark > p { color: #98A2C0; }
.eyebrow--dark {
  background: rgba(79, 70, 229, .18);
  border-color: rgba(139, 92, 246, .34);
  color: #C4B5FD;
}

/* Mono kicker used on dark strips */
.hm-kicker {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
}

/* Arrow link with a hover nudge */
.hm-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; color: var(--indigo);
}
.hm-link svg { width: 15px; height: 15px; transition: transform var(--t) var(--ease); }
.hm-link:hover svg { transform: translateX(3px); }

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hm-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(2.2rem, 5vw, 4rem)) 0 clamp(3rem, 6vw, 4.5rem);
  background: #0A0F26; color: #fff;
}
.hm-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 60% at 12% 8%, rgba(79, 70, 229, .32) 0%, transparent 62%),
    radial-gradient(40% 55% at 88% 88%, rgba(56, 189, 248, .16) 0%, transparent 62%);
}
.hm-hero > .container { position: relative; }

.hm-hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 4.5vw, 3.6rem); align-items: center;
}

.hm-hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.14; letter-spacing: -.03em;
}
.hm-hero h1 span {
  background: linear-gradient(100deg, #A5B4FC 0%, #818CF8 45%, #38BDF8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm-hero-sub {
  margin-top: 1.1rem; max-width: 47ch;
  font-size: .92rem; line-height: 1.72; color: #A8B2D1;
}

.hm-hero-actions { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.hm-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .82rem 1.35rem; border-radius: 10px;
  font-size: .87rem; font-weight: 600;
  background: var(--indigo); color: #fff;
  box-shadow: 0 12px 30px rgba(79, 70, 229, .34);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.hm-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(79, 70, 229, .44); }
.hm-btn svg { width: 16px; height: 16px; }
.hm-btn-ghost {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .82rem 1.35rem; border-radius: 10px;
  font-size: .87rem; font-weight: 600; color: #fff;
  border: 1px solid rgba(255, 255, 255, .26);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.hm-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .07); }
.hm-btn-ghost svg { width: 16px; height: 16px; }

/* social proof row */
.hm-proof { margin-top: 1.6rem; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.hm-avatars { display: flex; }
.hm-avatars span {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .62rem; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--indigo-400), var(--sky));
  border: 2px solid #0A0F26;
}
.hm-avatars span + span { margin-left: -10px; }
.hm-proof-txt { font-size: .78rem; color: #A8B2D1; }
.hm-proof-txt b { color: #fff; font-weight: 600; }
.hm-stars { color: var(--amber); letter-spacing: .08em; font-size: .8rem; }

/* hero stat row */
.hm-hero-stats {
  margin-top: 1.9rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  list-style: none;
}
.hm-hero-stats b {
  display: block; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 700; line-height: 1.1;
  background: linear-gradient(100deg, #fff 0%, #A5B4FC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Must stay a child selector: the count-up number is a <span> inside the <b>,
   and a plain `.hm-hero-stats span` would shrink it to label size. */
.hm-hero-stats > li > span { display: block; margin-top: .3rem; font-size: .68rem; color: #8E99BC; }

/* --- product mock ------------------------------------------------------- */
.hm-hero-copy { min-width: 0; }
/* The deck below the screen is deliberately wider, so the wrapper is inset by
   the same amount instead of letting it spill out of the grid column. */
.hm-hero-media { position: relative; min-width: 0; padding: 0 5% 26px; }
.hm-mock {
  border-radius: 14px; padding: 9px;
  background: linear-gradient(160deg, #222C4A, #101728);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 34px 70px rgba(2, 6, 20, .6);
}
.hm-mock-base {
  display: block; height: 11px; width: 108%; margin: -1px 0 0 -4%;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#28324F, #141A2C);
  box-shadow: 0 12px 22px rgba(2, 6, 20, .5);
}
.hm-app {
  display: grid; grid-template-columns: 78px 1fr;
  border-radius: 8px; overflow: hidden;
  background: #F7F9FC; font-size: 7px; line-height: 1.5;
}
.hm-app-rail { background: #0C1222; padding: 9px 7px; color: rgba(255, 255, 255, .5); }
.hm-app-brand {
  display: flex; align-items: center; gap: 4px; margin-bottom: 9px;
  font-size: 7.5px; font-weight: 700; color: #fff;
  overflow: hidden; white-space: nowrap;
}
.hm-app-brand svg { width: 9px; height: 9px; color: var(--indigo-400); flex: none; }
.hm-app-rail ul { list-style: none; display: grid; gap: 4px; }
.hm-app-rail li { padding: 3px 5px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-app-rail li.is-current { background: var(--indigo); color: #fff; }

.hm-app-main { padding: 9px; display: grid; gap: 7px; align-content: start; }
.hm-app-top { display: flex; align-items: center; justify-content: space-between; }
.hm-app-hello { display: grid; font-size: 6px; color: var(--slate-500); }
.hm-app-hello b { font-size: 8.5px; color: var(--slate-900); }
.hm-app-avatar { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(140deg, var(--indigo-400), var(--sky)); }

.hm-app-kpis { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.hm-app-kpis li { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 5px; display: grid; }
.hm-app-kpis b { font-size: 9px; color: var(--slate-900); }
.hm-app-kpis span { font-size: 5.5px; color: var(--slate-500); }
.hm-app-kpis i { font-size: 5.5px; font-style: normal; font-weight: 600; color: var(--green); }

.hm-app-chart { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 5px 5px 2px; }
.hm-app-chart > span { display: block; font-size: 6px; font-weight: 600; color: var(--slate-900); margin-bottom: 2px; }
.hm-app-chart svg { display: block; width: 100%; height: 36px; }
.hm-app-chart polyline { fill: none; stroke: var(--indigo); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hm-app-chart polygon { fill: url(#hmFade); stroke: none; }

.hm-app-bars { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.hm-app-bars span { flex: 1; border-radius: 2px 2px 0 0; background: rgba(79, 70, 229, .22); }
.hm-app-bars span.is-peak { background: var(--indigo); }

/* floating glass chips */
.hm-chip {
  position: absolute; display: flex; align-items: center; gap: .45rem;
  padding: .5rem .7rem; border-radius: 11px;
  background: rgba(14, 20, 44, .82);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 14px 32px rgba(2, 6, 20, .5);
  backdrop-filter: blur(8px);
  font-size: .66rem; font-weight: 600; color: #fff; white-space: nowrap;
}
.hm-chip-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; flex: none; }
.hm-chip-ico svg { width: 12px; height: 12px; }
.hm-chip small { display: block; font-size: .58rem; font-weight: 500; color: #94A0BD; }
/* Placed over the nav rail and the deck, so neither covers a live figure. */
.hm-chip--live { top: 42%; left: 0; }
.hm-chip--live .hm-chip-ico { background: rgba(16, 185, 129, .18); color: #34D399; }
.hm-chip--speed { bottom: 0; right: 0; }
.hm-chip--speed .hm-chip-ico { background: rgba(56, 189, 248, .18); color: var(--sky); }

/* ==========================================================================
   2. Trust strip
   ========================================================================== */
.hm-trust { background: #080D20; border-top: 1px solid rgba(255, 255, 255, .06); padding-block: 1.15rem; }
.hm-trust-list {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.hm-trust-list li { display: flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 500; color: #C3CCE6; }
.hm-trust-list li + li { border-left: 1px solid rgba(255, 255, 255, .08); padding-left: 1rem; }
.hm-trust-ico {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: 9px; background: rgba(79, 70, 229, .18); color: var(--indigo-400);
}
.hm-trust-ico svg { width: 15px; height: 15px; }

/* ==========================================================================
   3. Client logo strip
   ========================================================================== */
.hm-logos { background: var(--paper); padding-block: clamp(2rem, 4vw, 2.8rem); }
.hm-logos-label { text-align: center; color: var(--slate-500); margin-bottom: 1.3rem; }
.hm-logo-row {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .7rem 1.5rem;
}
.hm-logo-row li {
  display: flex; align-items: center; gap: .45rem;
  font-size: .88rem; font-weight: 600; color: #8892B0;
  transition: color var(--t) var(--ease);
}
.hm-logo-row li:hover { color: var(--slate-900); }
.hm-logo-row svg { width: 17px; height: 17px; color: var(--indigo-400); flex: none; }

/* ==========================================================================
   4. Services — 4-up compact cards
   ========================================================================== */
.hm-svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; list-style: none; }
.hm-svc {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--card-line); border-radius: 14px;
  padding: 1.35rem 1.25rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.hm-svc:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(20, 22, 70, .09); border-color: #CFD5F5; }
.hm-svc-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; margin-bottom: .9rem; }
.hm-svc-ico svg { width: 19px; height: 19px; }
.hm-svc h3 { font-size: .95rem; letter-spacing: -.01em; color: var(--slate-900); }
.hm-svc-tag { display: block; margin-top: .25rem; font-size: .72rem; font-weight: 500; color: var(--indigo); }
.hm-svc p { margin-top: .6rem; font-size: .8rem; line-height: 1.6; color: var(--slate-500); }
.hm-svc-points { list-style: none; margin-top: .85rem; display: grid; gap: .4rem; }
.hm-svc-points li { display: flex; align-items: flex-start; gap: .4rem; font-size: .75rem; line-height: 1.45; color: var(--slate-600); }
.hm-svc-points svg { width: 13px; height: 13px; color: var(--indigo); flex: none; margin-top: .15rem; }
.hm-svc .hm-link { margin-top: auto; padding-top: 1rem; }

/* the 8th tile completes the 2x4 grid and sends people to the enquiry form */
.hm-svc--cta {
  background: linear-gradient(150deg, #131A3C, #0A0F26);
  border-color: rgba(139, 92, 246, .3); color: #fff;
  align-items: flex-start;
}
.hm-svc--cta:hover { border-color: rgba(139, 92, 246, .55); box-shadow: 0 16px 38px rgba(20, 22, 70, .3); }
.hm-svc--cta .hm-svc-ico { background: rgba(124, 126, 245, .18); color: var(--indigo-400); }
.hm-svc--cta h3 { color: #fff; }
.hm-svc--cta p { color: #9AA5C4; }
.hm-svc-btn {
  margin-top: auto; padding-top: 1rem;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; color: #C4B5FD;
}
.hm-svc-btn svg { width: 15px; height: 15px; transition: transform var(--t) var(--ease); }
.hm-svc--cta:hover .hm-svc-btn svg { transform: translateX(3px); }

/* icon tints, shared by several sections */
.t-indigo { background: #EEF0FE; color: #4F46E5; }
.t-green  { background: #E7F8EF; color: #16A34A; }
.t-blue   { background: #E8F1FE; color: #2563EB; }
.t-rose   { background: #FDECEC; color: #E11D48; }
.t-amber  { background: #FDF4E3; color: #D97706; }
.t-teal   { background: #E4F6F6; color: #0D9488; }

/* ==========================================================================
   5. Why us — 3-up cards
   ========================================================================== */
.hm-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; list-style: none; }
.hm-why {
  background: var(--paper); border: 1px solid var(--card-line); border-radius: 14px;
  padding: 1.5rem 1.4rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.hm-why:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(20, 22, 70, .09); border-color: #CFD5F5; }
.hm-why-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 1rem; }
.hm-why-ico svg { width: 20px; height: 20px; }
.hm-why h3 { font-size: .97rem; letter-spacing: -.01em; color: var(--slate-900); }
.hm-why p { margin-top: .5rem; font-size: .82rem; line-height: 1.65; color: var(--slate-500); }

/* ==========================================================================
   6. Process — dark step rail
   ========================================================================== */
.hm-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.hm-step { position: relative; text-align: center; padding-inline: .3rem; }
/* Must be block-level: as an inline span its box was the full text width, so
   width/margin were ignored and the absolutely-positioned number badge below
   resolved against that wide box instead of the 54px circle. */
.hm-step-mark {
  position: relative; z-index: 1;
  display: block; width: 54px; height: 54px;
  margin: 0 auto .85rem;
}
.hm-step-ico {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #141A38; border: 1px solid rgba(139, 92, 246, .38); color: var(--indigo-400);
  box-shadow: 0 0 0 5px rgba(124, 58, 237, .08);
}
.hm-step-ico svg { width: 21px; height: 21px; }
.hm-step-mark b {
  position: absolute; top: -5px; right: -5px;
  width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--indigo); color: #fff;
  font-family: var(--font-mono); font-size: .6rem; font-weight: 700;
  border: 2px solid #0A0F26;
}
.hm-step h3 { font-size: .9rem; color: #fff; letter-spacing: -.01em; }
.hm-step p { margin-top: .45rem; font-size: .77rem; line-height: 1.6; color: #98A2C0; }
.hm-step:not(:last-child)::after {
  content: ""; position: absolute; top: 27px; height: 0;
  border-top: 1px dashed rgba(255, 255, 255, .17);
  left: calc(50% + 34px); right: calc(-50% + 34px);
}

/* ==========================================================================
   7. Tech stack — grouped brand tiles
   ========================================================================== */
.hm-stack { display: grid; gap: .9rem; }
.hm-stack-row {
  display: grid; grid-template-columns: 190px 1fr; gap: 1.2rem; align-items: center;
  background: var(--paper); border: 1px solid var(--card-line); border-radius: 14px;
  padding: 1.1rem 1.25rem;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.hm-stack-row:hover { border-color: #CFD5F5; box-shadow: 0 14px 32px rgba(20, 22, 70, .08); }
.hm-stack-label { display: flex; align-items: center; gap: .6rem; }
.hm-stack-ico {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 10px; background: var(--indigo-50); color: var(--indigo);
}
.hm-stack-ico svg { width: 17px; height: 17px; }
.hm-stack-label b { font-size: .87rem; color: var(--slate-900); letter-spacing: -.01em; }
.hm-stack-label span { display: block; font-size: .68rem; color: var(--slate-500); }
.hm-stack-items { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.hm-tech {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .68rem .38rem .45rem; border-radius: var(--r-pill);
  background: #F7F8FD; border: 1px solid #E8EBF6;
  font-size: .75rem; font-weight: 600; color: var(--slate-600);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.hm-tech:hover { background: #fff; border-color: #CFD5F5; }
.hm-tech-mark {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none;
  border-radius: 6px; background: #fff; border: 1px solid #EDEFF8;
}
.hm-tech-mark svg { width: 13px; height: 13px; }

/* ==========================================================================
   8. Platform capabilities — 4-up
   ========================================================================== */
.hm-plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; list-style: none; }
.hm-plat {
  text-align: center; background: var(--paper); border: 1px solid var(--card-line);
  border-radius: 14px; padding: 1.6rem 1.2rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.hm-plat:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(20, 22, 70, .09); border-color: #CFD5F5; }
.hm-plat-ico {
  display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto .95rem;
  border-radius: 50%; background: var(--indigo-50); color: var(--indigo);
}
.hm-plat-ico svg { width: 21px; height: 21px; }
.hm-plat h3 { font-size: .92rem; letter-spacing: -.01em; color: var(--slate-900); }
.hm-plat p { margin-top: .45rem; font-size: .79rem; line-height: 1.6; color: var(--slate-500); }

/* ==========================================================================
   9. Stats band
   ========================================================================== */
.hm-stats-wrap { padding-block: clamp(2rem, 4vw, 3rem); background: var(--paper); }
.hm-stats {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 1rem;
  background: #0A0F26; border-radius: 16px;
  padding: clamp(1.5rem, 3.2vw, 2.1rem) clamp(1.2rem, 3vw, 2rem);
  background-image: radial-gradient(120% 170% at 50% 0%, rgba(109, 40, 217, .18) 0%, transparent 62%);
}
.hm-stat { display: flex; align-items: center; gap: .8rem; padding-inline: .4rem; }
.hm-stat + .hm-stat { border-left: 1px solid rgba(255, 255, 255, .08); }
.hm-stat-ico {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 11px; color: #C4B5FD;
  background: rgba(124, 58, 237, .18); border: 1px solid rgba(139, 92, 246, .3);
}
.hm-stat-ico svg { width: 17px; height: 17px; }
.hm-stat b {
  display: block; font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 700; line-height: 1.1;
  background: linear-gradient(100deg, #fff 0%, #A5B4FC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm-stat > div > span { display: block; margin-top: .25rem; font-size: .7rem; color: #98A2C0; }

/* ==========================================================================
   10. Case studies — 3-up
   ========================================================================== */
.hm-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.hm-case {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--card-line); border-radius: 16px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.hm-case:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(20, 22, 70, .11); border-color: #CFD5F5; }
.hm-case-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #EDF0F8; }
.hm-case-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 620ms var(--ease); }
.hm-case:hover .hm-case-media img { transform: scale(1.05); }
.hm-case-tag {
  position: absolute; top: .7rem; left: .7rem;
  padding: .28rem .6rem; border-radius: var(--r-pill);
  background: rgba(10, 15, 38, .82); color: #fff;
  font-size: .65rem; font-weight: 600; backdrop-filter: blur(6px);
}
.hm-case-body { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.hm-case-body h3 { font-size: .95rem; line-height: 1.4; letter-spacing: -.01em; color: var(--slate-900); }
.hm-case-body p { margin-top: .5rem; font-size: .8rem; line-height: 1.6; color: var(--slate-500); }
.hm-case-metrics { list-style: none; display: flex; gap: 1.3rem; margin-top: 1rem; padding-top: .95rem; border-top: 1px solid #EDEFF7; }
.hm-case-metrics b { display: block; font-size: .95rem; color: var(--indigo); letter-spacing: -.01em; }
.hm-case-metrics span { display: block; margin-top: .1rem; font-size: .67rem; color: var(--slate-500); }
.hm-case .hm-link { margin-top: 1rem; }
.hm-more { text-align: center; margin-top: clamp(1.8rem, 3.5vw, 2.4rem); }

/* ==========================================================================
   11. Testimonials — 3-up
   ========================================================================== */
.hm-tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; list-style: none; }
.hm-tst {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--card-line); border-radius: 16px;
  padding: 1.6rem 1.5rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.hm-tst:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(20, 22, 70, .09); border-color: #CFD5F5; }
.hm-tst-stars { color: var(--amber); letter-spacing: .1em; font-size: .85rem; }
.hm-tst blockquote { margin-top: .85rem; font-size: .85rem; line-height: 1.72; color: var(--slate-600); }
.hm-tst-who { display: flex; align-items: center; gap: .7rem; margin-top: auto; padding-top: 1.3rem; }
/* Initials badge. Scoped off `.hm-tst-txt` below so the muted label styling
   cannot reach in here and knock the initials out of centre. */
.hm-av {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; color: #fff; font-size: .76rem; font-weight: 700;
  letter-spacing: .02em; line-height: 1; text-transform: uppercase;
  background: linear-gradient(140deg, var(--indigo-400), var(--sky));
}
.hm-tst-txt { min-width: 0; }
.hm-tst-txt b { display: block; font-size: .84rem; color: var(--slate-900); }
.hm-tst-txt span { display: block; font-size: .72rem; color: var(--slate-500); }

/* ==========================================================================
   12. Industries — 4-up linked cards
   ========================================================================== */
.hm-ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hm-ind {
  display: flex; align-items: center; gap: .8rem;
  background: var(--paper); border: 1px solid var(--card-line); border-radius: 13px;
  padding: 1.1rem 1.15rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.hm-ind:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20, 22, 70, .08); border-color: #CFD5F5; }
.hm-ind-ico {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 11px; background: var(--indigo-50); color: var(--indigo);
}
.hm-ind-ico svg { width: 18px; height: 18px; }
/* Scoped to the text wrapper: `.hm-ind span` also matched the icon tile and the
   arrow, flattening them to display:block and greying the icons out. */
.hm-ind-txt { min-width: 0; }
.hm-ind-txt b { display: block; font-size: .87rem; color: var(--slate-900); letter-spacing: -.01em; }
.hm-ind-txt span { display: block; margin-top: .12rem; font-size: .72rem; color: var(--slate-500); }
.hm-ind-arrow { margin-left: auto; color: #C2CADF; transition: transform var(--t) var(--ease), color var(--t) var(--ease); }
.hm-ind-arrow svg { width: 15px; height: 15px; }
.hm-ind:hover .hm-ind-arrow { color: var(--indigo); transform: translateX(3px); }

/* ==========================================================================
   13. FAQ — tightened to the service-page scale
   ========================================================================== */
.hm-faq { max-width: 800px; margin-inline: auto; }
.hm-faq .faq-item { border-radius: 14px; border-color: var(--card-line); }
.hm-faq .faq-q { font-size: .92rem; padding: 1.1rem 1.3rem; }
.hm-faq .faq-q .chev { width: 18px; height: 18px; }
.hm-faq .faq-a-inner { padding: 0 1.3rem 1.2rem; font-size: .84rem; line-height: 1.7; }

/* ==========================================================================
   14. Closing CTA
   ========================================================================== */
.hm-cta-wrap { padding-block: 0 clamp(3.5rem, 7vw, 5.5rem); background: var(--paper); }
.hm-cta {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 3.5vw, 2.6rem);
  align-items: center;
  background: #0A0F26; border-radius: 18px;
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.5rem, 3.5vw, 2.6rem);
  background-image: radial-gradient(110% 150% at 15% 0%, rgba(79, 70, 229, .2) 0%, transparent 60%);
}
.hm-cta h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.35; letter-spacing: -.01em; color: #fff; }
.hm-cta p { margin-top: .7rem; font-size: .85rem; line-height: 1.7; color: #A3AECB; }
.hm-cta-form { display: flex; gap: .6rem; }
.hm-cta-form input {
  flex: 1; min-width: 0; padding: .8rem 1rem; border-radius: 10px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  color: #fff; font: inherit; font-size: .84rem;
}
.hm-cta-form input::placeholder { color: #8892B0; }
.hm-cta-form input:focus-visible { outline: 2px solid var(--indigo-400); outline-offset: 1px; }
.hm-cta-btn {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  padding: .8rem 1.25rem; border-radius: 10px;
  background: var(--indigo); color: #fff; font-size: .84rem; font-weight: 600;
  box-shadow: 0 12px 30px rgba(79, 70, 229, .34);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.hm-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(79, 70, 229, .44); }
.hm-cta-btn svg { width: 15px; height: 15px; }
.hm-cta-points { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: .9rem; }
.hm-cta-points li { display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: #98A2C0; }
.hm-cta-points svg { width: 13px; height: 13px; color: #34D399; flex: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hm-svc-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-plat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Process rail ---------------------------------------------------------
   Five steps do not divide into three or two, so each breakpoint has to say
   what happens to the leftovers. Kept in one range-bounded block so the
   tablet rules cannot leak into the phone layout. */
@media (min-width: 641px) and (max-width: 1080px) {
  /* Six tracks, two per step: lets the two leftover steps sit centred under
     the first three instead of hugging the left edge. */
  .hm-steps { grid-template-columns: repeat(6, 1fr); gap: 1.8rem 1rem; }
  .hm-step { grid-column: span 2; }
  .hm-step:nth-child(4) { grid-column: 2 / span 2; }
  .hm-step:nth-child(3)::after, .hm-step:last-child::after { display: none; }
}

@media (max-width: 640px) {
  /* Phones read a process better as a vertical rail than as squeezed boxes. */
  .hm-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .hm-step {
    display: grid; grid-template-columns: 54px minmax(0, 1fr);
    gap: .2rem .95rem; align-items: start; text-align: left; padding-inline: 0;
  }
  /* Three children in two columns would drop the paragraph under the icon, so
     each one is placed by hand: circle spans both rows, text stacks beside it. */
  .hm-step-mark { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .hm-step h3 { grid-column: 2; grid-row: 1; align-self: center; }
  .hm-step p { grid-column: 2; grid-row: 2; margin-top: .15rem; }
  /* The connector turns vertical, running from under one circle to the next. */
  .hm-step:not(:last-child)::after {
    top: 62px; bottom: -1.9rem; left: 26px; right: auto;
    width: 0; height: auto;
    border-top: 0; border-left: 1px dashed rgba(255, 255, 255, .17);
  }
}

@media (max-width: 1000px) {
  .hm-why-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-case-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-tst-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-ind-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 940px) {
  .hm-cta { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hm-hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hm-hero-media { order: -1; max-width: 520px; margin-inline: auto; }
  .hm-hero-sub { max-width: none; }
  .hm-chip { display: none; }
  .hm-trust-list { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .hm-trust-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hm-stack-row { grid-template-columns: 1fr; gap: .9rem; }
}

@media (max-width: 860px) {
  .hm-stats { grid-template-columns: repeat(2, 1fr); }
  .hm-stat:nth-child(odd) { border-left: 0; }
}

@media (max-width: 760px) {
  .hm-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .hm-ind-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hm-svc-grid, .hm-why-grid, .hm-case-grid, .hm-tst-grid, .hm-plat-grid { grid-template-columns: 1fr; }
  .hm-logo-row { gap: .6rem 1.1rem; }
  .hm-logo-row li { font-size: .82rem; }
}

@media (max-width: 560px) {
  .hm-ind-grid { grid-template-columns: 1fr; }
  .hm-hero-actions .hm-btn, .hm-hero-actions .hm-btn-ghost { width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
  .hm-cta-form { flex-direction: column; }
  .hm-cta-btn { justify-content: center; }
  .hm-stats { grid-template-columns: 1fr; }
  .hm-stat { border-left: 0 !important; }
}

@media (max-width: 420px) {
  .hm-hero-stats { grid-template-columns: 1fr 1fr; }
  .hm-trust-list { grid-template-columns: 1fr; }
  .hm-trust-list li + li { border-left: 0; padding-left: 0; }
}
