/* Unified subpage template (AI / Products / Marketing / Clients) — coherent
   with the homepage: a full-bleed immersive hero, then editorial feature rows
   (text + framed dashboard, alternating) and clean card grids. Tokens match
   the site; classes prefixed `spu-`. */

.spu-page {
  --spu-ink: rgb(23, 23, 23);
  --spu-read: rgb(64, 62, 60);
  --spu-muted: rgba(38, 35, 35, 0.62);
  --spu-faint: rgba(38, 35, 35, 0.45);
  --spu-surface: rgb(245, 245, 242);
  --spu-card: rgb(251, 251, 248);
  --spu-line: rgb(231, 231, 227);
  --spu-border: rgb(232, 231, 230);
  --spu-accent: rgb(0, 126, 199);
  background: var(--spu-surface);
}

/* ---- Immersive hero -------------------------------------------------- */
.spu-hero {
  position: relative;
  width: 100%;
  /* Match the container to the 16:9 source so wide desktops don't scale the
     image up and crop it ("too zoomed"). aspect-ratio keeps ~zero crop up to
     ~1680px; max-height caps it below the fold on very wide/short screens. */
  aspect-ratio: 16 / 9;
  max-height: 88vh;
  min-height: 460px;
  overflow: hidden;
  background: #16201c;
}
.spu-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}
.spu-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(6, 10, 8, 0.62) 0%,
      rgba(6, 10, 8, 0.28) 16%,
      rgba(6, 10, 8, 0.18) 46%,
      rgba(6, 10, 8, 0.52) 100%
    );
}
.spu-hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px 40px;
  color: #fff;
}
.spu-hero-eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(178, 231, 255, 0.95);
}
.spu-hero-title {
  margin: 0;
  max-width: 17ch;
  font-family: var(--font-neoris);
  font-size: 56px;
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.5);
}
.spu-hero-sub {
  margin: 22px 0 0;
  max-width: 62ch;
  font-family: var(--font-neoris);
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.spu-hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.spu-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-neoris);
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.spu-btn-primary {
  background: #f5f5f2;
  color: #171717;
  border: 1px solid rgba(32, 32, 32, 0.1);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.14), inset 0 2px 0 #fff;
}
.spu-btn-primary:hover {
  transform: translateY(-1px);
}
.spu-btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.spu-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.spu-arrow {
  transition: transform 0.2s ease;
}
.spu-btn:hover .spu-arrow {
  transform: translateX(3px);
}

/* ---- Section shell --------------------------------------------------- */
.spu-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 104px 24px;
}
.spu-section.spu-alt {
  max-width: none;
  background: rgb(240, 239, 235);
  padding-left: 0;
  padding-right: 0;
}
.spu-section.spu-alt > .spu-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.spu-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.spu-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--spu-accent);
}
.spu-h2 {
  margin: 0;
  font-family: var(--font-neoris);
  font-size: 40px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--spu-ink);
}
.spu-sub {
  margin: 16px auto 0;
  max-width: 60ch;
  font-family: var(--font-neoris);
  font-size: 16px;
  line-height: 1.55;
  color: var(--spu-muted);
}

/* ---- Feature rows (text + framed dashboard) -------------------------- */
.spu-rows {
  display: flex;
  flex-direction: column;
  gap: 88px;
}
.spu-row {
  display: flex;
  gap: 64px;
  align-items: center;
}
.spu-row[id] {
  scroll-margin-top: 120px;
}
.spu-row.spu-rev {
  flex-direction: row-reverse;
}
.spu-row-text {
  flex: 1 1 0;
  min-width: 0;
}
.spu-row-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--spu-accent);
}
.spu-row-title {
  margin: 0;
  font-family: var(--font-neoris);
  font-size: 30px;
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--spu-ink);
}
.spu-row-body {
  margin: 16px 0 0;
  font-family: var(--font-neoris);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--spu-read);
}
.spu-row-bullets {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.spu-row-bullets li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-family: var(--font-neoris);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--spu-read);
}
.spu-check {
  position: absolute;
  left: 0;
  top: 2px;
  color: rgb(52, 168, 83);
}
.spu-row-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 13px;
  color: var(--spu-accent);
  text-decoration: none;
}
.spu-row-media {
  flex: 1 1 0;
  min-width: 0;
}
.spu-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--spu-border);
  background: rgba(242, 242, 237, 0.4);
  padding: 10px;
  box-shadow: rgb(255, 255, 255) 0 2px 1px, rgba(20, 24, 22, 0.12) 0 22px 48px;
}
.spu-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
/* ---- Card grid ------------------------------------------------------- */
.spu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.spu-grid.spu-cols2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.spu-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px;
  border-radius: 14px;
  border: 1px solid var(--spu-border);
  background: var(--spu-card);
  box-shadow: rgb(255, 255, 255) 0 1px 0, rgba(38, 35, 35, 0.05) 0 12px 28px;
}
.spu-card-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 16px;
}
.spu-card-logo {
  height: 26px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 16px;
}
.spu-card-title {
  margin: 0;
  font-family: var(--font-neoris);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--spu-ink);
}
.spu-card-body {
  margin: 8px 0 0;
  font-family: var(--font-neoris);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--spu-muted);
}
.spu-card-cta {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ibm-plex-mono, var(--font-mono, monospace));
  font-size: 12px;
  color: var(--spu-accent);
  text-decoration: none;
}
.spu-governance .spu-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.spu-governance .spu-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% 20%;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 175, 255, 0.14), transparent 68%);
  pointer-events: none;
}
.spu-governance .spu-card:hover {
  transform: translateY(-3px);
  box-shadow: rgb(255, 255, 255) 0 1px 0, rgba(38, 35, 35, 0.1) 0 18px 36px;
}
.spu-governance-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* ---- Stats ----------------------------------------------------------- */
.spu-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 920px;
  margin: 0 auto;
}
.spu-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  text-align: center;
  border-left: 1px solid var(--spu-line);
}
.spu-stat:first-child {
  border-left: none;
}
.spu-stat-v {
  font-family: var(--font-neoris);
  font-size: 40px;
  line-height: 1;
  color: var(--spu-ink);
  letter-spacing: -0.01em;
}
.spu-stat-l {
  font-family: var(--font-neoris);
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--spu-faint);
  max-width: 15ch;
}

/* ---- Logo wall ------------------------------------------------------- */
.spu-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 34px 24px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.spu-logos img {
  height: 30px;
  width: auto;
  max-width: 116px;
  object-fit: contain;
  opacity: 0.62;
  justify-self: center;
  transition: opacity 0.2s ease;
}
.spu-logos img:hover {
  opacity: 1;
}

/* ---- Closing band ---------------------------------------------------- */
.spu-band {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 24px;
}
.spu-band-inner {
  display: flex;
  gap: 56px;
  align-items: center;
}
.spu-band-inner.spu-center {
  flex-direction: column;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.spu-band-text {
  flex: 1 1 0;
}
.spu-band-media {
  flex: 1 1 0;
}
.spu-logowell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-radius: 16px;
  border: 1px solid var(--spu-border);
  background: var(--spu-card);
  box-shadow: rgb(255, 255, 255) 0 2px 1px, rgba(20, 24, 22, 0.08) 0 14px 32px;
}
.spu-logowell img {
  max-height: 44px;
  max-width: 60%;
  object-fit: contain;
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 900px) {
  .spu-hero-title {
    font-size: 40px;
  }
  .spu-h2 {
    font-size: 32px;
  }
  .spu-row {
    flex-direction: column;
    gap: 32px;
  }
  .spu-row.spu-rev {
    flex-direction: column;
  }
  .spu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spu-logos {
    grid-template-columns: repeat(4, 1fr);
  }
  .spu-band-inner {
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .spu-hero {
    aspect-ratio: auto;
    max-height: none;
    min-height: 78vh;
  }
  .spu-hero-title {
    font-size: 32px;
  }
  .spu-hero-sub {
    font-size: 16px;
  }
  .spu-section {
    padding: 72px 24px;
  }
  .spu-grid {
    grid-template-columns: 1fr;
  }
  .spu-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .spu-stats .spu-stat:nth-child(3) {
    border-left: none;
  }
  .spu-logos {
    /* minmax(0,1fr) + img max-width:100% lets wide wordmarks shrink to the
       track instead of forcing their 116px cap and overflowing the page. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .spu-logos img {
    max-width: 100%;
  }
}
