/* =============================================================
   ARK LABS — SOLUTIONS HUB (audience chooser)
   Loaded by /solutions/index.html only.
   Style rhythm mirrors partners.css so the two sibling hubs feel
   consistent — distinct class names keep them independent.
   ============================================================= */

/* ---- Shared .accent (matches partners-hero .accent) ---- */
.sol-hero h1 .accent,
.sol-final-cta h2 .accent,
.why-copy h2 .accent {
  color: var(--cyan);
}

/* ---------------------------------------------------------------
   1. HERO
   --------------------------------------------------------------- */
.sol-hero {
  position: relative;
  background: linear-gradient(180deg, var(--light-blue) 0%, var(--white) 100%);
  padding: 80px 48px 72px;
  border-bottom: 1px solid var(--border-light);
}
.sol-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--coral);
}
.sol-hero-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
}
.sol-hero-copy h1 {
  font-size: 3.2em;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 4px 0 18px;
}
.sol-hero-copy .lede {
  font-size: 1.12em;
  color: var(--steel);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 28px;
}
.sol-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.sol-hero-ctas .btn-primary-lg span,
.sol-hero-ctas .btn-outline-lg span { margin-left: 4px; }

/* ---------------------------------------------------------------
   1b. HERO PIPELINE DIAGRAM (animated platform view — right column)
   --------------------------------------------------------------- */
.sol-hero-pipeline {
  width: 100%;
  background: linear-gradient(180deg, #EDF4FB 0%, #FFFFFF 100%);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(12, 35, 64, 0.14);
  padding: 16px 14px 12px;
  overflow: hidden;
}
.pipeline-diagram {
  display: block;
  width: 100%;
  height: auto;
}

/* Flow lines — directional march */
.pipeline-diagram .flow-line {
  animation: pipeline-flow-march 1.6s linear infinite;
}
@keyframes pipeline-flow-march {
  to { stroke-dashoffset: -16; }
}

/* Halo — slow breathing behind the runtime card */
.pipeline-diagram .halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: pipeline-halo-breath 4.2s ease-in-out infinite;
}
@keyframes pipeline-halo-breath {
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%      { transform: scale(1.04); opacity: 0.9; }
}

/* Compute tiles — staggered cyan pulse rolls across the fleet */
.pipeline-diagram .tile-pulse {
  fill: none;
  stroke: #00AEE8;
  stroke-width: 1.6;
  opacity: 0;
  animation: pipeline-tile-highlight 7s linear infinite;
}
@keyframes pipeline-tile-highlight {
  0%, 2%    { opacity: 0; }
  6%, 12%   { opacity: 1; }
  16%, 100% { opacity: 0; }
}
.pipeline-diagram .tile-1 .tile-pulse { animation-delay: 0s; }
.pipeline-diagram .tile-2 .tile-pulse { animation-delay: 1s; }
.pipeline-diagram .tile-3 .tile-pulse { animation-delay: 2s; }
.pipeline-diagram .tile-4 .tile-pulse { animation-delay: 3s; }
.pipeline-diagram .tile-5 .tile-pulse { animation-delay: 4s; }
.pipeline-diagram .tile-6 .tile-pulse { animation-delay: 5s; }
.pipeline-diagram .tile-7 .tile-pulse { animation-delay: 6s; }

/* Pills — lift on hover */
.pipeline-diagram .pill {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 220ms ease, filter 220ms ease;
  cursor: default;
}
.pipeline-diagram .pill:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 10px 14px rgba(12, 35, 64, 0.22));
}

@media (prefers-reduced-motion: reduce) {
  .pipeline-diagram .flow-line,
  .pipeline-diagram .halo,
  .pipeline-diagram .tile-pulse,
  .pipeline-diagram .packet { animation: none !important; }
  .pipeline-diagram .pill   { transition: none !important; }
}

/* ---------------------------------------------------------------
   2. SHARED SECTION SCAFFOLD
   --------------------------------------------------------------- */
.sol-section { padding: 88px 48px; }
.sol-section.alt { background: var(--bg-warm); }
.sol-section-inner { max-width: 1200px; margin: 0 auto; }
.sol-section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.sol-section-head .section-tag { justify-content: center; display: inline-flex; }
.sol-section-head .section-title { margin: 0 auto 14px; }
.sol-section-head .section-subtitle { margin: 0 auto; }

/* ---------------------------------------------------------------
   3. AUDIENCE CHOOSER (3 cards)
   --------------------------------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.audience-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}
.audience-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cyan);
  border-radius: 16px 16px 0 0;
}
.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(12, 35, 64, 0.08);
  border-color: var(--cyan);
}
.audience-kicker {
  font-size: 0.7em;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.audience-card h3 {
  font-size: 1.45em;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 6px;
  min-height: 2.4em; /* reserve 2 lines so all 4 cards align */
}
.audience-sub {
  font-size: 0.9em;
  color: var(--steel);
  margin-bottom: 18px;
  font-weight: 500;
}
.audience-card > p {
  font-size: 0.95em;
  color: var(--steel);
  line-height: 1.65;
  margin-bottom: 18px;
}
.audience-card p em { color: var(--navy); font-style: normal; font-weight: 600; }
.audience-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.audience-features li {
  font-size: 0.9em;
  color: var(--navy);
  padding: 8px 0 8px 22px;
  position: relative;
  border-top: 1px solid var(--border-light);
}
.audience-features li:first-child { border-top: none; }
.audience-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan-light);
  border: 2px solid var(--cyan);
}
.audience-cta {
  margin-top: auto;
  font-size: 0.92em;
  font-weight: 700;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.audience-cta span { transition: transform 0.18s ease; }
.audience-card:hover .audience-cta span { transform: translateX(4px); }

/* ---------------------------------------------------------------
   4. VERTICAL PREVIEW (4 cards, 1 live + 3 soon)
   --------------------------------------------------------------- */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.vertical-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.vertical-card.live:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.08);
  border-color: var(--cyan);
}
.vertical-card.soon {
  background: var(--bg-warm);
  opacity: 0.88;
}
.vertical-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.vertical-status.soon {
  color: var(--steel);
  background: none;
}
.vertical-status .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  position: relative;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(13, 138, 106, 0.5);
  animation: sol-pulse 2s infinite;
}
@keyframes sol-pulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 138, 106, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(13, 138, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 138, 106, 0); }
}
.vertical-card h4 {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.25;
}
.vertical-card > p {
  font-size: 0.88em;
  color: var(--steel);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.vertical-cta {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--cyan);
}
.vertical-cta.muted { color: var(--steel); font-weight: 500; font-style: italic; }

/* ---------------------------------------------------------------
   5. WHY ARK (condensed)
   --------------------------------------------------------------- */
.why-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 56px;
  align-items: start;
}
.why-copy h2 {
  font-size: 2.1em;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin: 4px 0 18px;
  letter-spacing: -0.5px;
}
.why-copy p {
  font-size: 1em;
  color: var(--steel);
  line-height: 1.7;
  margin-bottom: 14px;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.why-cell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 22px 20px;
}
.w-num {
  font-size: 0.78em;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.why-cell h4 {
  font-size: 1.02em;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
.why-cell p {
  font-size: 0.88em;
  color: var(--steel);
  line-height: 1.6;
  margin: 0;
}

/* ---------------------------------------------------------------
   6. FINAL CTA (dark band)
   --------------------------------------------------------------- */
.sol-final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 88px 48px;
  text-align: center;
  position: relative;
}
.sol-final-cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--coral);
}
.sol-final-inner { max-width: 780px; margin: 0 auto; }
.sol-final-cta .section-tag--center { color: var(--cyan); margin-bottom: 18px; }
.sol-final-cta h2 {
  font-size: 2.4em;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.sol-final-cta p {
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 28px;
}
.sol-final-cta .cta-group {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.sol-final-cta .btn-w,
.sol-final-cta .btn-od {
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.sol-final-cta .btn-w {
  background: var(--cyan);
  color: var(--white);
}
.sol-final-cta .btn-w:hover { background: var(--cyan-dark); transform: translateY(-1px); }
.sol-final-cta .btn-od {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.sol-final-cta .btn-od:hover { border-color: var(--white); transform: translateY(-1px); }

/* ---------------------------------------------------------------
   7. RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sol-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .sol-hero-copy h1 { font-size: 2.6em; }
  /* Full-width pipeline on tablet so 820-wide diagram stays legible */
  .sol-hero-pipeline { max-width: 100%; margin: 0 auto; padding: 24px 12px; }
  .audience-grid { grid-template-columns: 1fr; }
  .vertical-grid { grid-template-columns: repeat(2, 1fr); }
  .why-wrap { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .sol-hero { padding: 56px 24px 48px; }
  .sol-section { padding: 64px 24px; }
  .sol-final-cta { padding: 64px 24px; }
  .sol-hero-copy h1 { font-size: 2.15em; }
  .sol-hero-pipeline { border-radius: 14px; padding: 16px 6px; }
  /* Allow the landscape SVG to scroll horizontally rather than shrinking label text below the readable threshold */
  .sol-hero-pipeline .pipeline-diagram { min-width: 620px; }
  /* Scroll-shadow cue — soft fade on the right edge tells users
     this card is horizontally scrollable. Mirrors .bench-models-
     table-wrap pattern. */
  .sol-hero-pipeline {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    background:
      linear-gradient(to right, #fff 30%, rgba(255,255,255,0)),
      linear-gradient(to right, rgba(255,255,255,0), #fff 70%) 100% 0,
      radial-gradient(farthest-side at 0 50%, rgba(12,35,64,0.10), rgba(12,35,64,0)),
      radial-gradient(farthest-side at 100% 50%, rgba(12,35,64,0.10), rgba(12,35,64,0)) 100% 0;
    background-repeat: no-repeat;
    background-color: #fff;
    background-size: 32px 100%, 32px 100%, 12px 100%, 12px 100%;
    background-attachment: local, local, scroll, scroll;
  }
  .vertical-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .sol-final-cta h2 { font-size: 1.85em; }
}
