/* ============================================================
   solutions.css
   Styles for /solutions.html  –  Solutions overview landing page
   Extends: bootstrap.css / common.css / config.css / style.css
   ============================================================ */

/* ── .reveal utility (scroll-reveal, controlled by main.js IO) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   1. HERO — split layout (text left | diagram right)
   ══════════════════════════════════════════════════════════════ */

.sl-hero-section {
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind content */
.sl-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 520px;
  align-items: center;
}

/* ── Left: text content ── */
.sl-hero-content {
  padding: 72px 48px 72px 0;
  border-right: 1px solid var(--layoutBorderColor);
}

.sl-hero-headline {
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--mastercolor);
  margin-bottom: 0;
}

.sl-hero-sub {
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 400;
  color: var(--primaryTextColor);
  max-width: 520px;
  line-height: 1.75;
  margin-top: 20px;
  margin-bottom: 32px;
}

/* ── CTA row — d-flex align-items-center flex-wrap on HTML element ── */
.sl-cta-row {
  gap: 20px;
  margin-bottom: 48px;
}

.sl-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--layoutBorderColor);
  transition:
    color 0.2s,
    border-color 0.2s,
    gap 0.2s;
}
.sl-ghost-btn:hover {
  color: var(--secondaryMastercolor);
  border-color: var(--secondaryMastercolor);
  gap: 12px;
}
.sl-ghost-btn svg {
  stroke: currentColor;
  transition: inherit;
}

/* ── Stats chips — d-flex flex-wrap on HTML element ── */
.sl-stat-chips {
  gap: 10px;
}

.sl-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--layoutBorderColor);
  background: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.sl-stat-chip-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}

.sl-stat-chip-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--primaryTextColor);
  border-left: 1px solid var(--layoutBorderColor);
  padding-left: 10px;
}

/* ── Right: platform diagram — d-flex align-items-center justify-content-center on HTML element ── */
.sl-hero-diagram {
  padding: 48px 0 48px 48px;
  position: relative;
}

.sl-diagram-svg {
  width: 100%;
  max-width: 490px;
  height: auto;
}

/* Animated elements on the SVG */
.sl-dia-pulse {
  animation: slDiaPulse 2.8s ease-in-out infinite;
}
.sl-dia-pulse:nth-child(2) {
  animation-delay: 0.56s;
}
.sl-dia-pulse:nth-child(3) {
  animation-delay: 1.12s;
}
.sl-dia-pulse:nth-child(4) {
  animation-delay: 1.68s;
}
.sl-dia-pulse:nth-child(5) {
  animation-delay: 2.24s;
}

@keyframes slDiaPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* Orbit dot travelling along spokes */
.sl-dia-dot {
  animation: slDiaDot 4s linear infinite;
}
@keyframes slDiaDot {
  0% {
    offset-distance: 0%;
  }
  100% {
    offset-distance: 100%;
  }
}

/* Hub glow ring */
.sl-dia-hub-ring {
  animation: slHubRing 3s ease-in-out infinite;
}
@keyframes slHubRing {
  0%,
  100% {
    r: 28px;
    opacity: 0.18;
  }
  50% {
    r: 34px;
    opacity: 0.05;
  }
}

/* ── Hero responsive ── */
@media (max-width: 991.98px) {
  .sl-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .sl-hero-content {
    padding: 48px 0 36px;
    border-right: none;
    border-bottom: 1px solid var(--layoutBorderColor);
  }
  .sl-hero-diagram {
    padding: 40px 0;
    border-right: none;
  }
  .sl-diagram-svg {
    max-width: 280px;
  }
}

@media (max-width: 575.98px) {
  .sl-hero-headline {
    font-size: clamp(30px, 7vw, 44px);
  }
  .sl-stat-chips {
    gap: 8px;
  }
  .sl-stat-chip {
    padding: 7px 12px;
  }
}

/* ══════════════════════════════════════════════════════════════
   2. SOLUTIONS GRID  –  asymmetric card layout
   ══════════════════════════════════════════════════════════════ */

.sl-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondaryMastercolor);
  margin-bottom: 10px;
}
.sl-section-label::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: var(--secondaryMastercolor);
  flex-shrink: 0;
}

.sl-section-title {
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 0;
  line-height: 1.2;
}

/* Grid container — uses top+left outer border */
.sl-sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--layoutBorderColor);
  border-left: 1px solid var(--layoutBorderColor);
}

/* Every card closes the box at right+bottom */
.sl-sol-card {
  position: relative;
  padding: 40px 36px 36px;
  border-right: 1px solid var(--layoutBorderColor);
  border-bottom: 1px solid var(--layoutBorderColor);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.3s ease;
  cursor: default;
}

/* ── Left accent bar — grows in on hover ── */
.sl-sol-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--secondaryMastercolor);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}
.sl-sol-card:hover::before {
  transform: scaleY(1);
}

.sl-sol-card:hover {
  background: rgba(246, 99, 32, 0.02);
}

/* Featured — spans 2 grid rows */
.sl-sol-card--featured {
  grid-row: span 2;
  padding: 52px 40px 44px;
}

/* ── Faded background number ── */
.sl-sol-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 0, 0, 0.035);
  pointer-events: none;
  user-select: none;
  font-family: var(--font-primary);
  letter-spacing: -0.06em;
  z-index: 0;
  transition: color 0.3s ease;
}
.sl-sol-card--featured .sl-sol-num {
  font-size: 140px;
  color: rgba(0, 0, 0, 0.025);
}
.sl-sol-card:hover .sl-sol-num {
  color: rgba(246, 99, 32, 0.07);
}

/* ── Icon wrapper ── */
.sl-sol-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(246, 99, 32, 0.07);
  border: 1px solid rgba(246, 99, 32, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.25s;
}
.sl-sol-card:hover .sl-sol-icon {
  background: rgba(246, 99, 32, 0.14);
  border-color: rgba(246, 99, 32, 0.38);
  transform: translateY(-2px);
}
.sl-sol-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--secondaryMastercolor);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sl-sol-card--featured .sl-sol-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
}
.sl-sol-card--featured .sl-sol-icon svg {
  width: 28px;
  height: 28px;
}

/* ── Category — font_10 text-uppercase text_secondaryMastercolor mb-2 on HTML element ── */
.sl-sol-cat {
  font-weight: 700;
  letter-spacing: 0.12em;
  position: relative;
  z-index: 1;
}

/* ── Solution name ── */
.sl-sol-name {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.sl-sol-card--featured .sl-sol-name {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 16px;
}

/* ── Description ── */
.sl-sol-desc {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--primaryTextColor);
  line-height: 1.72;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.sl-sol-card--featured .sl-sol-desc {
  font-size: 14px;
  margin-bottom: 28px;
}

/* ── Capability pills — list-unstyled on HTML element ── */
.sl-sol-caps {
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  position: relative;
  z-index: 1;
}
.sl-sol-caps li {
  font-size: 11px;
  font-weight: 500;
  color: var(--primaryTextColor);
  padding: 5px 13px;
  border: 1px solid var(--layoutBorderColor);
  border-radius: 100px;
  letter-spacing: 0.02em;
  transition:
    border-color 0.2s,
    color 0.2s;
  line-height: 1;
}
.sl-sol-card:hover .sl-sol-caps li {
  border-color: rgba(246, 99, 32, 0.3);
}

/* ── Explore link ── */
/* text-decoration-none on HTML element */
.sl-sol-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  position: relative;
  z-index: 1;
  margin-top: auto;
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--layoutBorderColor);
  transition:
    color 0.2s,
    border-color 0.2s,
    gap 0.2s;
}
.sl-sol-link:hover {
  color: var(--secondaryMastercolor);
  border-color: var(--secondaryMastercolor);
  gap: 12px;
}
.sl-sol-link svg {
  stroke: currentColor;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: stroke 0.2s;
}

/* ── "Coming soon" badge ── */
.sl-coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--layoutBorderColor);
  border-radius: 100px;
  padding: 4px 12px 4px 8px;
  width: fit-content;
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.sl-coming-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--layoutBorderColor);
  flex-shrink: 0;
}

/* "Live" badge for active solutions */
.sl-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 100px;
  padding: 4px 12px 4px 8px;
  width: fit-content;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.sl-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
  animation: slLivePulse 2s ease-in-out infinite;
}
@keyframes slLivePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ── Grid: responsive ── */
@media (max-width: 991.98px) {
  .sl-sol-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sl-sol-card--featured {
    grid-column: span 2;
    grid-row: span 1;
    padding: 40px 32px;
  }
  .sl-sol-card--featured .sl-sol-num {
    font-size: 96px;
  }
}

@media (max-width: 639.98px) {
  .sl-sol-grid {
    grid-template-columns: 1fr;
  }
  .sl-sol-card--featured {
    grid-column: span 1;
  }
  .sl-sol-card {
    padding: 32px 24px 28px;
  }
}

/* ══════════════════════════════════════════════════════════════
   3. PLATFORM METRICS BAND
   ══════════════════════════════════════════════════════════════ */

.sl-metrics-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.sl-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 20px;
  text-align: center;
  border-right: 1px solid var(--layoutBorderColor);
}
.sl-metric:last-child {
  border-right: none;
}

.sl-metric-val {
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  letter-spacing: -0.03em;
}
.sl-metric-val sup {
  font-size: 0.5em;
  font-weight: 700;
  vertical-align: super;
  letter-spacing: 0;
  color: var(--secondaryMastercolor);
}

.sl-metric-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--primaryTextColor);
  letter-spacing: 0.03em;
  line-height: 1.4;
  max-width: 100px;
  text-align: center;
}

@media (max-width: 991.98px) {
  .sl-metrics-band {
    grid-template-columns: repeat(3, 1fr);
  }
  .sl-metric:nth-child(3) {
    border-right: none;
  }
  .sl-metric:nth-child(4),
  .sl-metric:nth-child(5) {
    border-top: 1px solid var(--layoutBorderColor);
  }
  .sl-metric:nth-child(5) {
    border-right: none;
  }
}

@media (max-width: 575.98px) {
  .sl-metrics-band {
    grid-template-columns: 1fr 1fr;
  }
  .sl-metric:nth-child(2) {
    border-right: none;
  }
  .sl-metric:nth-child(3) {
    border-right: 1px solid var(--layoutBorderColor);
    border-top: 1px solid var(--layoutBorderColor);
  }
  .sl-metric:nth-child(4) {
    border-right: none;
  }
  .sl-metric:nth-child(5) {
    grid-column: span 2;
    border-right: none;
    border-top: 1px solid var(--layoutBorderColor);
  }
}

/* ══════════════════════════════════════════════════════════════
   4. TRUST / COMPLIANCE STRIP
   ══════════════════════════════════════════════════════════════ */

/* d-flex align-items-center on HTML element */
.sl-trust-strip {
  overflow-x: auto;
  scrollbar-width: none;
}
.sl-trust-strip::-webkit-scrollbar {
  display: none;
}

/* d-flex flex-column align-items-center text-center on HTML element */
.sl-trust-badge {
  gap: 6px;
  padding: 28px 36px;
  border-right: 1px solid var(--layoutBorderColor);
  flex-shrink: 0;
}
.sl-trust-badge:last-child {
  border-right: none;
}

/* d-flex align-items-center justify-content-center on HTML element */
.sl-trust-icon {
  width: 36px;
  height: 36px;
}
.sl-trust-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--secondaryMastercolor);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sl-trust-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sl-trust-desc {
  font-size: 11px;
  font-weight: 400;
  color: var(--primaryTextColor);
  white-space: nowrap;
}
