/* ==========================================================================
   Homepage sections below the hero carousel (home-sections.php)
   ========================================================================== */
.hs {
  --hs-ink: #0b1730;
  --hs-text: #3c475e;
  --hs-mute: #6b7489;
  --hs-blue: #1d4b98;
  --hs-blue-2: #2a5fc4;
  --hs-sky: #3ea6ff;
  --hs-soft: #eef3fd;
  --hs-line: #e3e8f2;
  --hs-shadow: 0 10px 28px -14px rgba(23, 54, 120, 0.28);
  font-family: var(--font-primary);
  color: var(--hs-ink);
  overflow-x: clip;   /* clip sideways only, so the trusted-by card can overlap the hero above */
}
.hs *, .hs *::before, .hs *::after { box-sizing: border-box; }
.hs a { text-decoration: none; color: inherit; }
.hs h2, .hs h3 { font-family: var(--font-primary); margin: 0; text-transform: none; text-align: left; }
.hs p { margin: 0; text-align: left; }
.hs ul { list-style: none; margin: 0; padding: 0; }
.hs section { padding: 0; background: transparent; }
.hs-wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 80px); }
.hs .hs-pi { display: inline !important; margin: 0 !important; padding: 0 !important; font-family: var(--font-primary); }

/* Shared bits */
.hs-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hs-blue-2); }
.hs-eyebrow--dark { color: var(--hs-ink); font-size: 14px; letter-spacing: 0.06em; }
.hs-eyebrow--light { color: #cfe0ff; }
.hs-eyebrow--line { display: inline-flex; align-items: center; gap: 10px; color: var(--hs-mute); }
.hs-eyebrow--line::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.hs-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px;
  border-radius: 999px; background: var(--hs-blue); color: #fff !important;
  font-size: 14px; font-weight: 700; line-height: 1;
  box-shadow: 0 8px 18px -10px rgba(29, 75, 152, 0.7);
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hs-btn i { font-size: 12px; transition: transform 0.2s; }
.hs-btn:hover { background: #163d80; transform: translateY(-1px); }
.hs-btn:hover i { transform: translateX(3px); }
.hs-btn--white { background: #fff; color: var(--hs-ink) !important; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.45); }
.hs-btn--white:hover { background: #eaf4ff; }
.hs-btn--sm { padding: 9px 18px; font-size: 13px; }
.hs-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--hs-soft); color: var(--hs-blue-2); font-size: 14px; }
.hs-ico--solid { background: linear-gradient(135deg, var(--hs-blue-2), var(--hs-sky)); color: #fff; }

/* 1. Trusted by */
.hs-trust { position: relative; z-index: 3; margin-top: -48px; }
.hs-trust__card { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding: 22px clamp(20px, 3vw, 40px); background: #fff; border-radius: 10px; box-shadow: 0 18px 40px -22px rgba(23, 54, 120, 0.4); }
.hs-trust__title { flex: none; padding-right: clamp(20px, 3vw, 48px); border-right: 1px solid var(--hs-line); font-size: 20px; font-weight: 700; line-height: 1.15; color: var(--hs-ink); }
/* Partner logos: endless slow right-to-left loop, pauses on hover and highlights one logo */
.hs-trust__marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.hs-trust__track { display: flex; width: max-content; animation: hs-marquee 45s linear infinite; }
.hs-trust__marquee:hover .hs-trust__track,
.hs-trust__marquee:focus-within .hs-trust__track { animation-play-state: paused; }
.hs-trust__logos { display: flex; align-items: center; flex: none; }
/* same fixed slot for every logo = even spacing */
.hs-trust__logos li { flex: none; display: flex; align-items: center; justify-content: center; width: 156px; height: 56px; margin: 0 6px; }
.hs-logo { display: block; flex: none; overflow: hidden; transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease; }
.hs-logo img { display: block; max-width: none !important; height: auto !important; }
.hs-trust__marquee:hover .hs-logo { opacity: 0.35; filter: grayscale(1); }
.hs-trust__marquee .hs-logo:hover { opacity: 1; filter: none; transform: scale(1.15); }
@keyframes hs-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 2. Build. Accelerate. Scale. */
.hs-build { padding: clamp(48px, 6vw, 80px) 0 !important; background: linear-gradient(180deg, #fff 0%, var(--hs-soft) 28%, #e6eefc 100%) !important; }
.hs-build__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hs-build__h { position: relative; display: block; width: fit-content; margin: 6px 0 16px !important; font-size: clamp(2.5rem, 1.4rem + 2.8vw, 3.9rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; color: var(--hs-blue) !important; }
/* Sparkle text: a light shine sweeps across each word, one after another */
.hs-shine {
  background: linear-gradient(100deg, var(--hs-blue) 0%, var(--hs-blue) 38%, #8fd0ff 48%, #ffffff 50%, #8fd0ff 52%, var(--hs-blue) 62%, var(--hs-blue) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: hs-shine 4.2s ease-in-out var(--d, 0s) infinite;
}
@keyframes hs-shine { 0%, 35% { background-position: 100% 0; } 75%, 100% { background-position: 0% 0; } }
/* Twinkling four-point sparkles around the headline */
.hs-spark { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); pointer-events: none; animation: hs-twinkle 2.8s ease-in-out var(--t) infinite; opacity: 0; }
.hs-spark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #3ea6ff, #9fd0ff); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 6px rgba(62, 166, 255, 0.8)); }
@keyframes hs-twinkle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(90deg); } 70% { opacity: 0.6; transform: scale(0.75) rotate(135deg); } }

.hs-build__text p { max-width: 460px; font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.28rem); font-weight: 500; line-height: 1.5; color: #2c374d; margin-bottom: 22px; }
.hs-build__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 18px; }
.hs-build__tiles li { display: flex; }
.hs-build__tiles a { position: relative; overflow: hidden; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 148px; padding: 22px 20px 20px; background: #fff; border: 1px solid #e6ecf7; border-radius: 12px; box-shadow: var(--hs-shadow); font-size: clamp(15px, 0.85rem + 0.2vw, 17px); font-weight: 700; line-height: 1.3; color: var(--hs-ink); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s; }
.hs-build__tiles .hs-ico { width: 52px; height: 52px; border-radius: 14px; font-size: 21px; background: linear-gradient(135deg, #e8f1ff, #d6e6ff); color: var(--hs-blue-2); transition: background 0.25s, color 0.25s, transform 0.25s; }
/* a soft light glides across the card on hover */
.hs-build__tiles a::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(62, 166, 255, 0.16), transparent); transform: skewX(-18deg); transition: left 0.6s ease; }
.hs-build__tiles a:hover { transform: translateY(-5px); border-color: #c7d8f5; box-shadow: 0 20px 38px -16px rgba(23, 54, 120, 0.42); color: var(--hs-blue); }
.hs-build__tiles a:hover::after { left: 120%; }
.hs-build__tiles a:hover .hs-ico { background: linear-gradient(135deg, var(--hs-blue-2), var(--hs-sky)); color: #fff; transform: scale(1.06); }

/* 3. π-Pillars */
.hs-pillars { padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 3vw, 40px) !important; background: #fff !important; }
.hs-pillars__grid { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.6fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.hs-pillars__text h2 { margin: 6px 0 10px; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); font-weight: 800; color: var(--hs-blue); letter-spacing: -0.02em; }
.hs-pillars__text p { margin-bottom: 18px; font-size: 15px; line-height: 1.5; color: var(--hs-text); }
.hs-pillars__nav { display: flex; gap: 8px; margin-top: 20px; }
.hs-pillars__nav button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--hs-line); border-radius: 50%; background: #fff; color: var(--hs-blue); cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.hs-pillars__nav button:hover { background: var(--hs-blue); border-color: var(--hs-blue); color: #fff; }
.hs-pillars__rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 18px; margin: -6px -4px 0; }
.hs-pillars__rail::-webkit-scrollbar { display: none; }
.hs-pillar { scroll-snap-align: start; display: flex; flex-direction: column; padding: 18px; background: #fff; border-radius: 8px; box-shadow: var(--hs-shadow); border: 1px solid #eef1f6; transition: transform 0.25s, box-shadow 0.25s; }
.hs-pillar:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -18px rgba(23, 54, 120, 0.45); }
.hs-pillar h3 { margin: 16px 0 10px; font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--hs-ink); }
.hs-pillar p { font-size: 13.5px; line-height: 1.55; color: var(--hs-mute); }
.hs-pillar__go { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; color: var(--hs-blue-2); }
.hs-pillar__go i { font-size: 11px; transition: transform 0.2s; }
.hs-pillar:hover .hs-pillar__go i { transform: translateX(3px); }

/* 4. Driving Innovation */
.hs-about { padding: 0 clamp(0px, 1vw, 12px) 0 0 !important; }
.hs-about__band { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) auto; gap: clamp(20px, 3vw, 48px); align-items: center; padding: 14px clamp(20px, 3vw, 56px) 14px 14px; border-radius: 0 18px 18px 0; background: linear-gradient(100deg, #1d4b98 0%, #3a6cc7 55%, #aac2ee 100%); box-shadow: 0 24px 48px -28px rgba(23, 54, 120, 0.6); color: #fff; }
.hs-about__img { overflow: hidden; border-radius: 4px; height: clamp(240px, 22vw, 380px); }
.hs-about__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-about__text h2 { margin: 10px 0 12px; font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); font-weight: 800; line-height: 1.15; color: #fff; letter-spacing: -0.02em; }
.hs-about__text p { max-width: 440px; margin-bottom: 20px; font-size: 15px; line-height: 1.55; color: #dbe6fb; }
.hs-about__stats { display: flex; flex-direction: column; gap: 22px; padding-left: clamp(20px, 3vw, 44px); border-left: 2px solid rgba(255, 255, 255, 0.3); }
.hs-about__stats li { display: flex; align-items: center; gap: 14px; }
.hs-about__sico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 15px; }
.hs-about__stats b { display: block; font-size: clamp(1.5rem, 1.1rem + 0.9vw, 2rem); font-weight: 800; line-height: 1; color: #fff; }
.hs-about__stats em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; color: #dbe6fb; }

/* 5. GenAI-in-a-Box spotlight */
.hs-spot { padding: clamp(48px, 5vw, 72px) 0 clamp(36px, 4vw, 56px) !important; background: linear-gradient(180deg, #fff, var(--hs-soft)) !important; }
.hs-spot__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hs-spot__text h2 { margin: 8px 0 14px; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; color: var(--hs-ink); }
.hs-spot__text p { margin-bottom: 22px; font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem); line-height: 1.45; color: var(--hs-text); }
.hs-spot__text p a { color: var(--hs-ink); font-weight: 700; }
.hs-spot__text p a:hover { color: var(--hs-blue); }
.hs-spot__video { overflow: hidden; border-radius: 10px; background: #0b1730; box-shadow: 0 24px 48px -24px rgba(11, 23, 48, 0.55); }
.hs-spot__video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* 6. Latest Insights */
.hs-insights { padding: clamp(32px, 4vw, 48px) 0 clamp(48px, 5vw, 64px) !important; background: #fff !important; }
.hs-insights__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.hs-insights__head h2 { margin: 8px 0 6px; font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.hs-insights__head p { font-size: 13px; color: var(--hs-mute); }
.hs-insights__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hs-post { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #eef1f6; border-radius: 8px; box-shadow: var(--hs-shadow); transition: transform 0.25s, box-shadow 0.25s; }
.hs-post:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -18px rgba(23, 54, 120, 0.45); }
.hs-post__img { position: relative; display: block; aspect-ratio: 16 / 7.6; overflow: hidden; background: #eef1f6; }
.hs-post__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hs-post:hover .hs-post__img img { transform: scale(1.04); }
.hs-post__ph { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255, 255, 255, 0.85); font-size: 30px; }
.hs-post__tag { position: absolute; left: 12px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 700; color: var(--hs-ink); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12); }
.hs-post__body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; flex: 1; }
.hs-post h3 { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--hs-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-post:hover h3 { color: var(--hs-blue); }
.hs-post__more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--hs-blue-2); }
.hs-post__more i { font-size: 11px; transition: transform 0.2s; }
.hs-post:hover .hs-post__more i { transform: translateX(3px); }

/* 7. CTA */
.hs-cta { padding: 0 clamp(0px, 0.5vw, 8px) clamp(28px, 3vw, 40px) !important; }
.hs-cta__band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 3vw, 44px) clamp(24px, 4vw, 64px); border-radius: 18px; background: radial-gradient(120% 160% at 100% 0%, #2a5fc4 0%, rgba(42, 95, 196, 0) 55%), linear-gradient(100deg, #0b1f4d 0%, #112d6e 60%, #1d4b98 100%); box-shadow: 0 24px 48px -26px rgba(11, 23, 48, 0.7); }
.hs-cta__band h2 { font-size: clamp(1.4rem, 1rem + 1.1vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.hs-cta__band p { margin-top: 6px; font-size: 13px; color: #b8c6e0; }
.hs-cta__band .hs-btn { flex: none; position: relative; margin-left: 24px; }
.hs-cta__band .hs-btn::before { content: ""; position: absolute; left: -28px; top: 50%; width: 1px; height: 44px; transform: translateY(-50%); background: rgba(255, 255, 255, 0.25); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hs-pillars__rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .hs-about__band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .hs-about__stats { grid-column: 1 / -1; flex-direction: row; justify-content: space-around; padding: 18px 0 6px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.3); }
}
@media (max-width: 991.98px) {
  .hs-trust { margin-top: -28px; }
  .hs-trust__card { flex-direction: column; align-items: stretch; }
  .hs-trust__title { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--hs-line); text-align: center !important; }
  .hs-trust__marquee { width: 100%; }
  .hs-build__grid, .hs-pillars__grid, .hs-spot__grid { grid-template-columns: 1fr; }
  .hs-build__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-pillars__rail { grid-auto-columns: calc((100% - 16px) / 2); }
  .hs-insights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hs-trust__logos li { width: 128px; height: 48px; margin: 0 4px; }
  .hs-logo { zoom: 0.8; }
  .hs-trust__track { animation-duration: 45s; }
  .hs-pillars__rail { grid-auto-columns: 82%; }
  .hs-about { padding: 0 !important; }
  .hs-about__band { grid-template-columns: 1fr; border-radius: 0; padding: 14px 16px 22px; }
  .hs-about__img { min-height: 200px; }
  .hs-about__stats { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hs-insights__grid { grid-template-columns: 1fr; }
  .hs-cta__band { flex-direction: column; align-items: flex-start; border-radius: 12px; }
  .hs-cta__band .hs-btn { margin-left: 0; }
  .hs-cta__band .hs-btn::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hs *, .hs *::before, .hs *::after { transition: none !important; }
  .hs-shine, .hs-spark { animation: none !important; }
  .hs-spark { opacity: 0.8; }
  .hs-trust__track { animation-duration: 180s; }
}
