/* =====================================================================
   SmarDac — Solutions pages (/solutions and /solutions/<slug>)
   Loaded after industries.css, which supplies every `in2-` primitive
   (tokens, buttons, hero, CTA, reveal). This file adds the sections that
   are unique to the Suite index and the module detail pages, all scoped
   with the `sol-` prefix.
   ===================================================================== */

/* Each hero is generated from that module's own screens (angled, softened,
   navy-tinted); the screens sit right of centre, clear of the headline. */
.sol-hero .in2-hero__bg img { object-position: 60% 50%; }
.sol-hero .in2-hero__bg::after {
  background:
    linear-gradient(90deg, rgba(5, 15, 36, .78) 0%, rgba(9, 29, 62, .45) 34%, rgba(9, 29, 62, .10) 62%, rgba(9, 29, 62, 0) 100%),
    linear-gradient(180deg, rgba(5, 15, 36, .45) 0%, rgba(5, 15, 36, 0) 28%, rgba(5, 15, 36, 0) 60%, rgba(5, 15, 36, .85) 100%);
}
.sol-hero .in2-hero__lead { max-width: 620px; }

/* ---------- Module chip in the hero (detail pages) ---------- */
.sol-hero__chip {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 6px 16px 6px 6px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(9, 29, 62, .42);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 600 12px/1 var(--in2-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72);
}
.sol-hero__chip img { width: 30px; height: 30px; border-radius: 9px; display: block; }

/* ---------- Sub-navigation: white pill bar over the hero's lower edge ---------- */
.sol-subnav { position: relative; z-index: 5; margin-top: -30px; }
.sol-subnav__bar {
  display: flex; gap: 6px; padding: 6px; width: max-content; max-width: 100%;
  border-radius: 16px; background: #fff; border: 1px solid var(--in2-line);
  box-shadow: 0 24px 50px -28px rgba(9, 29, 62, .55);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.sol-subnav__bar::-webkit-scrollbar { display: none; }
.sol-subnav a {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px; border-radius: 11px;
  font: 600 14px var(--in2-body); color: var(--in2-ink); text-decoration: none; white-space: nowrap;
  transition: background .3s, color .3s;
}
.sol-subnav a img { width: 20px; height: 20px; border-radius: 6px; display: block; }
.sol-subnav a:hover { background: #eef6ff; color: var(--in2-p); text-decoration: none; }
.sol-subnav a.is-active, .sol-subnav a.is-active:hover { background: var(--in2-navy); color: #fff; }

/* ---------- Intro: copy + module card ---------- */
.sol-intro { padding: 100px 0 40px; background: #fff; }
.sol-intro__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.sol-intro__copy .in2-h2 { margin-bottom: 18px; }

/* Installer download: a deep brand blue, one step below the primary CTA. */
.in2-btn--navy {
  color: #fff; background: linear-gradient(135deg, #16498f 0%, #0f3271 55%, #12407f 100%);
  box-shadow: 0 12px 26px -14px rgba(13, 50, 113, .85), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.in2-btn--navy:hover {
  color: #fff; background: linear-gradient(135deg, #1a55a6 0%, #133b85 55%, #164a94 100%);
  box-shadow: 0 18px 34px -14px rgba(13, 50, 113, .95), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.sol-module {
  position: relative; padding: 30px 30px 28px; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #f6f9fd, #fff); border: 1px solid var(--in2-line);
  box-shadow: 0 40px 80px -46px rgba(9,29,62,.45);
}
.sol-module::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9; pointer-events: none;
  background: radial-gradient(360px 220px at 100% 0%, color-mix(in srgb, var(--accent, #0092ff) 16%, transparent), transparent 70%);
}
.sol-module__head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.sol-module__icon { width: 64px; height: 64px; border-radius: 18px; display: block; flex: none; box-shadow: 0 14px 26px -12px color-mix(in srgb, var(--accent, #0092ff) 65%, transparent); }
.sol-module__head strong { display: block; font: 700 21px var(--in2-head); color: var(--in2-ink); letter-spacing: -.01em; }
.sol-module__head span { display: block; margin-top: 4px; font: 500 12px/1 var(--in2-body); letter-spacing: .14em; text-transform: uppercase; color: var(--in2-muted); }
.sol-module p { font: 400 15px/1.65 var(--in2-body); color: var(--in2-muted); margin: 0 0 22px; }
.sol-module__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Main Features: screenshot collage + feature rows ---------- */
.sol-feat { padding: 60px 0 110px; background: #fff; }
.sol-feat__head { margin: 0 0 40px; }
.sol-feat__head .in2-h2 { margin: 0; }
.sol-feat__head .in2-lead { margin-top: 10px; max-width: 640px; }
.sol-feat__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 64px); align-items: start; }

.sol-feat__shot { position: sticky; top: 110px; }
.sol-feat__shot img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 30px 40px rgba(9, 29, 62, .16));
}

/* ---------- Product collages: zoom in on hover, ease back out ---------- */
.sol-tilt { display: block; transform-origin: 50% 50%; transition: transform .7s var(--in2-ease), filter .7s var(--in2-ease); }
.sol-feat__shot:hover .sol-tilt, .sol-card--featured:hover .sol-tilt { transform: scale(1.05); filter: drop-shadow(0 40px 50px rgba(9, 29, 62, .26)); }

/* ---------- Icon showcase: stands in for the collage on artwork-less modules ---------- */
.sol-showcase {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 38px 30px 30px; border-radius: 28px;
  background: linear-gradient(180deg, #f7f9fd, #fff); border: 1px solid var(--in2-line);
  box-shadow: 0 44px 84px -50px rgba(9, 29, 62, .5);
}
.sol-showcase__orb {
  content: ""; position: absolute; z-index: -1; left: -18%; top: -34%; width: 82%; height: 300px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent, #0092ff) 26%, transparent), transparent);
}
.sol-feat__shot .sol-showcase__icon {
  width: 104px; height: 104px; border-radius: 30px; display: block; margin: 0 auto 20px;
  box-shadow: 0 22px 40px -18px color-mix(in srgb, var(--accent, #0092ff) 60%, transparent);
}
.sol-showcase__name { display: block; font: 700 22px var(--in2-head); color: var(--in2-ink); letter-spacing: -.01em; }
.sol-showcase__sub { display: block; margin: 8px auto 28px; max-width: 320px; font: 600 11.5px/1.6 var(--in2-body); letter-spacing: .12em; text-transform: uppercase; color: var(--in2-muted); }

/* Bridge topology: field side, gateway, network side — threaded on one rail. */
.sol-showcase__flow { position: relative; margin: 0; padding: 0; list-style: none; text-align: left; }
.sol-showcase__flow::before {
  content: ""; position: absolute; left: 23px; top: 28px; bottom: 28px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent, #0092ff) 60%, transparent),
    color-mix(in srgb, var(--accent, #0092ff) 14%, transparent));
}
.sol-showcase__flow li { position: relative; display: flex; align-items: center; gap: 16px; padding: 9px 0; }
.sol-showcase__node {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--accent, var(--in2-navy));
  box-shadow: 0 12px 22px -12px color-mix(in srgb, var(--accent, #091d3e) 75%, transparent), inset 0 1px 0 rgba(255,255,255,.22);
}
.sol-showcase__node svg { width: 23px; height: 23px; }
.sol-showcase__flow li > div > strong { display: block; font: 700 15.5px/1.3 var(--in2-head); color: var(--in2-ink); }
.sol-showcase__flow li > div > span { display: block; margin-top: 3px; font: 400 13.5px/1.5 var(--in2-body); color: var(--in2-muted); }

.sol-feat__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sol-feat__row {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px;
  background: #fff; border: 1px solid var(--in2-line);
  transition: transform .4s var(--in2-ease), box-shadow .4s var(--in2-ease), border-color .3s;
}
.sol-feat__row:nth-child(even) { background: #eef4fb; border-color: #e3ebf6; }
.sol-feat--green .sol-feat__row:nth-child(even) { background: #edf7f0; border-color: #dcefe2; }
.sol-feat__list .sol-feat__row:hover { transform: translateX(6px); border-color: rgba(0,146,255,.35); box-shadow: 0 22px 44px -26px rgba(9,29,62,.35); }
.sol-feat__icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--c, var(--in2-navy));
  box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--c, #091d3e) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .45s var(--in2-ease);
}
.sol-feat__icon svg { width: 22px; height: 22px; }
.sol-feat__list .sol-feat__row:hover .sol-feat__icon { transform: rotate(-8deg) scale(1.08); }
.sol-feat__row h4 { font: 700 16.5px/1.25 var(--in2-head); text-transform: none; color: var(--in2-ink); margin: 0 0 4px; }
.sol-feat__row p { font: 400 14px/1.55 var(--in2-body); color: var(--in2-muted); margin: 0; }

/* ---------- Other modules (detail pages) ---------- */
.sol-others { padding: 0 0 110px; background: #fff; }
.sol-others__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 32px; }
.sol-others__head .in2-h2 { margin: 0; }
.sol-others__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sol-mini {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(180deg, #f6f9fd, #fff); border: 1px solid var(--in2-line); text-decoration: none;
  transition: transform .45s var(--in2-ease), box-shadow .45s var(--in2-ease), border-color .3s;
}
.sol-others__grid .sol-mini:hover { transform: translateY(-5px); border-color: rgba(0,146,255,.3); box-shadow: 0 28px 54px -28px rgba(0,146,255,.45); text-decoration: none; }
.sol-mini img { flex: none; width: 46px; height: 46px; border-radius: 13px; display: block; }
.sol-mini strong { display: block; font: 700 16px var(--in2-head); color: var(--in2-ink); margin-bottom: 2px; transition: color .3s; }
.sol-others__grid .sol-mini:hover strong { color: var(--in2-p); }
/* The arrow button is a span too, so exclude it: this rule is one class +
   one type (0,1,1) and would otherwise beat `.sol-mini__go` (0,1,0). */
.sol-mini span:not(.sol-mini__go) { display: block; font: 400 13.5px/1.45 var(--in2-body); color: var(--in2-muted); }
/* Flex (not grid + place-items) so the glyph centres in every browser;
   line-height 0 kills the inline baseline gap under the icon. */
span.sol-mini__go {
  margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center;
  -ms-flex-pack: center; justify-content: center; line-height: 0;
  color: var(--in2-p); background: #eef6ff;
  transition: background .3s, color .3s, transform .35s var(--in2-ease);
}
.sol-mini__go svg { width: 16px; height: 16px; display: block; flex: none; }
.sol-others__grid .sol-mini:hover .sol-mini__go { background: var(--in2-p); color: #fff; transform: translateX(3px); }

/* =====================================================================
   SUITE INDEX — the seven module cards
   ===================================================================== */
.sol-suite { padding: 100px 0 110px; background: #fff; }
.sol-suite__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.sol-suite__head .in2-eyebrow::before { display: none; }
.sol-suite__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.sol-card {
  position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid var(--in2-line); text-decoration: none;
  transition: transform .5s var(--in2-ease), box-shadow .5s var(--in2-ease), border-color .4s;
}
.sol-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(135deg, var(--accent, var(--in2-p2)) 0%, var(--in2-p) 45%, rgba(0,146,255,0) 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity .45s ease;
}
.sol-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(420px 240px at 100% 0%, color-mix(in srgb, var(--accent, #0092ff) 14%, transparent), transparent 70%);
}
.sol-suite__grid .sol-card:hover { transform: translateY(-8px); border-color: transparent; text-decoration: none; box-shadow: 0 34px 66px -30px rgba(0, 146, 255, .45), 0 8px 20px -12px rgba(9, 29, 62, .18); }
.sol-suite__grid .sol-card:hover::before, .sol-suite__grid .sol-card:hover::after { opacity: 1; }
.sol-card:focus-visible { outline: 2px solid var(--in2-p); outline-offset: 4px; }
.sol-card__icon { width: 58px; height: 58px; border-radius: 17px; display: block; margin-bottom: 20px; box-shadow: 0 14px 26px -12px color-mix(in srgb, var(--accent, #0092ff) 65%, transparent); transition: transform .45s var(--in2-ease); }
.sol-suite__grid .sol-card:hover .sol-card__icon { transform: rotate(-6deg) scale(1.06); }
.sol-card h3 { font: 700 21px var(--in2-head); text-transform: none; color: var(--in2-ink); margin: 0 0 10px; transition: color .35s; }
.sol-suite__grid .sol-card:hover h3 { color: var(--in2-p); }
.sol-card > p { font: 400 14.5px/1.7 var(--in2-body); color: var(--in2-muted); margin: 0 0 22px; }
.sol-card .in2-link { margin-top: auto; align-self: flex-start; }
.sol-suite__grid .sol-card:hover .in2-link::after { transform: scaleX(1); transform-origin: left; }
.sol-suite__grid .sol-card:hover .in2-link svg { transform: translateX(5px); }

/* The eighth module leaves the final card alone on its row, so it stretches
   into a full-width band and lays its contents out horizontally. */
.sol-suite__grid .sol-card:last-child:nth-child(3n + 2) {
  grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 24px 30px;
}
.sol-suite__grid .sol-card:last-child:nth-child(3n + 2) .sol-card__icon { margin-bottom: 0; }
.sol-suite__grid .sol-card:last-child:nth-child(3n + 2) h3 { flex: none; margin: 0; }
.sol-suite__grid .sol-card:last-child:nth-child(3n + 2) > p { flex: 1 1 300px; margin: 0; }
.sol-suite__grid .sol-card:last-child:nth-child(3n + 2) .in2-link { flex: none; margin: 0; align-self: center; }

/* Hub is the backbone, so its card spans the row and shows the product. */
.sol-card--featured { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(24px, 4vw, 56px); padding: 34px 36px; background: linear-gradient(180deg, #f6f9fd, #fff); }
.sol-card--featured .sol-card__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.sol-card--featured .sol-card__body > p { max-width: 560px; }
.sol-card--featured .sol-card__shot { flex: 0 0 46%; min-width: 0; }
.sol-card--featured .sol-card__shot img { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 34px rgba(9, 29, 62, .16)); }
.sol-card__tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; margin-bottom: 16px; border-radius: 999px; font: 700 11px var(--in2-head); letter-spacing: .12em; text-transform: uppercase; color: var(--in2-p); background: #eef6ff; border: 1px solid #d6ecff; align-self: flex-start; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1199px) {
  .sol-feat__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 991px) {
  .sol-intro { padding: 80px 0 30px; }
  .sol-intro__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sol-feat { padding: 50px 0 80px; }
  .sol-feat__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sol-feat__shot { position: static; }
  .sol-others { padding-bottom: 80px; }
  .sol-others__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-suite { padding: 80px 0; }
  .sol-suite__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .sol-card--featured { flex-direction: column; align-items: stretch; padding: 28px 26px; }
  .sol-card--featured .sol-card__shot { flex-basis: auto; }
}
@media (max-width: 767px) {
  .sol-subnav { margin-top: -26px; }
  .sol-subnav__bar { width: 100%; }
  .sol-subnav a { height: 42px; padding: 0 13px; font-size: 13px; }
  .sol-hero__chip { font-size: 11px; letter-spacing: .1em; }
  .sol-intro { padding: 64px 0 24px; }
  .sol-module { padding: 24px 22px; border-radius: 22px; }
  .sol-module__icon { width: 54px; height: 54px; border-radius: 15px; }
  .sol-showcase { padding: 30px 22px 24px; border-radius: 24px; }
  .sol-feat__shot .sol-showcase__icon { width: 84px; height: 84px; border-radius: 24px; }
  .sol-showcase__name { font-size: 20px; }
  .sol-showcase__sub { margin-bottom: 22px; }
  .sol-showcase__node { width: 44px; height: 44px; }
  .sol-showcase__flow::before { left: 21px; }
  .sol-feat { padding: 40px 0 64px; }
  .sol-feat__head { margin-bottom: 28px; }
  .sol-feat__row { padding: 12px 14px; gap: 13px; border-radius: 14px; }
  .sol-feat__icon { width: 42px; height: 42px; }
  .sol-feat__icon svg { width: 20px; height: 20px; }
  .sol-feat__row h4 { font-size: 15.5px; }
  .sol-feat__row p { font-size: 13.5px; }
  .sol-others { padding-bottom: 64px; }
  .sol-others__head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
  .sol-others__grid { grid-template-columns: minmax(0, 1fr); }
  .sol-mini { padding: 15px 16px; gap: 13px; }
  .sol-mini img { width: 40px; height: 40px; border-radius: 11px; }
  .sol-suite { padding: 64px 0; }
  .sol-suite__head { margin-bottom: 34px; }
  .sol-suite__grid { grid-template-columns: minmax(0, 1fr); }
  .sol-card { padding: 24px 20px 22px; }
  .sol-card--featured { padding: 24px 20px 22px; }
  /* One column: the trailing band goes back to the normal stacked card. */
  .sol-suite__grid .sol-card:last-child:nth-child(3n + 2) { flex-direction: column; align-items: flex-start; padding: 24px 20px 22px; }
  .sol-suite__grid .sol-card:last-child:nth-child(3n + 2) .sol-card__icon { margin-bottom: 20px; }
  .sol-suite__grid .sol-card:last-child:nth-child(3n + 2) h3 { margin-bottom: 10px; }
  .sol-suite__grid .sol-card:last-child:nth-child(3n + 2) > p { margin-bottom: 22px; }
}
@media (hover: none) {
  .sol-feat__shot:hover .sol-tilt, .sol-card--featured:hover .sol-tilt { transform: none; }
  .sol-card:hover, .sol-mini:hover, .sol-feat__row:hover { transform: none; }
  .sol-card:hover .sol-card__icon, .sol-feat__row:hover .sol-feat__icon { transform: none; }
}

/* Anchor target sits clear of the sticky header */
#features, #modules { scroll-margin-top: 88px; }
