/* =================================================================
 * USE CASE PAGES
 * =============================================================== */

/* ---------- Hero ---------- */
.uc-hero {
  position: relative;
  min-height: 640px;
  height: 92vh;
  max-height: 960px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.uc-hero-media, .uc-hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.uc-hero-media img {
  object-fit: cover;
  object-position: 60% 40%;
  transform: scale(1.06);
  animation: ucDrift 26s ease-in-out infinite alternate;
  z-index: -2;
}
@keyframes ucDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.uc-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,6,8,.92) 0%, rgba(5,6,8,.72) 38%, rgba(5,6,8,.2) 70%, rgba(5,6,8,.35) 100%),
    linear-gradient(to bottom, rgba(5,6,8,.55) 0%, rgba(5,6,8,0) 28%, rgba(5,6,8,0) 55%, var(--bg) 100%);
}
.uc-hero-grain {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.uc-hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 64px;
}
.uc-hero-copy { max-width: 760px; }
.uc-hero h1 {
  margin-top: 24px;
  font-size: clamp(36px, 4.6vw, 66px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.uc-hero p {
  margin-top: 24px;
  max-width: 560px;
  font-size: 16px;
  color: #b6bcc4;
}
.uc-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.uc-btn { height: 48px; border-radius: 14px; padding: 0 22px; font-size: 14px; }

.uc-spine {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  font: 500 11px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.uc-spine span:last-child { color: var(--emerald-bright); }
.uc-spine i {
  width: 1px; height: 22px;
  margin-right: 4px;
  background: linear-gradient(var(--line-strong), var(--emerald));
}

/* ---------- Shared prose ---------- */
.uc-prose p { color: var(--muted); max-width: 520px; }
.uc-prose p + p { margin-top: 14px; }
.uc-prose-wide { columns: 2 320px; column-gap: 56px; max-width: 1040px; }
.uc-prose-wide p { max-width: none; break-inside: avoid; }
.uc-callout {
  margin-top: 28px !important;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text) !important;
}
.uc-callout strong { font-weight: 400; color: var(--emerald-bright); }

.uc-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 28px;
}
.uc-split .display { text-wrap: balance; }

.uc-section-title { max-width: 820px; margin-bottom: 56px; text-wrap: balance; }

/* ---------- Solution ---------- */
.uc-solution { overflow: hidden; }
.uc-solution-glow {
  position: absolute;
  width: 900px; height: 420px;
  right: -200px; top: -120px;
  background: radial-gradient(ellipse at center, rgba(16,185,129,.18), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.uc-solution .container { position: relative; }
.uc-solution-title {
  max-width: 880px;
  margin: 28px 0 48px;
  font-size: clamp(32px, 4vw, 56px);
  text-wrap: balance;
}

/* ---------- Capabilities ---------- */
.uc-caps { padding-top: 0; }
.uc-cap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.uc-cap:first-child { border-top: 0; }
.uc-cap-head { position: relative; }
.uc-cap-num {
  display: block;
  font: 500 13px var(--mono);
  color: var(--emerald-bright);
}
.uc-cap-cat {
  display: block;
  margin-top: 18px;
  font: 500 11px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.uc-cap-head h3 {
  margin-top: 16px;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.028em;
  max-width: 18ch;
}
.uc-outcomes-label {
  margin-top: 32px;
  font: 500 11px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}
.uc-outcomes {
  list-style: none;
  margin: 14px 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.uc-outcomes li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
}
.uc-outcomes li::before {
  content: "";
  position: absolute; left: 2px; top: 19px;
  width: 8px; height: 8px;
  border: 1.5px solid var(--emerald);
  transform: rotate(45deg);
}

/* ---------- Chain reaction ---------- */
.uc-chain-section { background: linear-gradient(to bottom, var(--bg), var(--panel)); }
.uc-chain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-top: 28px;
}
.uc-chain-copy { position: sticky; top: calc(var(--nav-h) + 48px); }
.uc-chain-copy .display { margin-bottom: 28px; text-wrap: balance; }
.uc-chain {
  --n: 8;
  position: relative;
  list-style: none;
  margin: 0; padding: 0;
}
.uc-chain::before,
.uc-chain::after {
  content: "";
  position: absolute;
  left: 7px; top: 14px; bottom: 14px;
  width: 1px;
}
.uc-chain::before { background: var(--line-strong); }
.uc-chain::after {
  background: linear-gradient(to bottom, transparent, var(--emerald-bright), transparent);
  background-size: 100% 30%;
  background-repeat: no-repeat;
  animation: ucPulse 3.6s linear infinite;
}
@keyframes ucPulse {
  from { background-position: 0 -40%; }
  to   { background-position: 0 140%; }
}
.uc-chain li {
  position: relative;
  display: grid;
  grid-template-columns: 16px 34px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px 18px 14px 0;
  opacity: .25;
  transform: translateX(-8px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: calc(var(--i) * 140ms);
}
.uc-chain.in li { opacity: 1; transform: none; }
.uc-node {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  position: relative;
  z-index: 1;
}
.uc-chain li:first-child .uc-node { border-color: var(--red); box-shadow: 0 0 12px rgba(242,74,74,.6); }
.uc-chain li:last-child .uc-node { border-color: var(--emerald-bright); background: var(--emerald); box-shadow: 0 0 14px rgba(52,211,153,.7); }
.uc-step { font: 500 12px var(--mono); color: var(--dim); }
.uc-step-text { font-size: 16px; color: #cfd3d8; }
.uc-chain li:last-child .uc-step-text { color: var(--emerald-bright); }
.uc-chain li + li { border-top: 1px dashed var(--line); }

/* ---------- Teams ---------- */
.uc-teams {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.uc-team {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.uc-team:nth-child(3n) { border-right: 0; }
.uc-team:nth-last-child(-n+3) { border-bottom: 0; }
.uc-team:hover { background: var(--panel-2); }
.uc-team-num { font: 500 12px var(--mono); color: var(--emerald-bright); }
.uc-team h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.uc-team-copy p { color: var(--muted); font-size: 14px; }

/* ---------- Intelligence layers (light) ---------- */
.uc-layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid rgba(6,19,14,.16);
}
.uc-layer {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: baseline;
  column-gap: 12px;
  padding: 26px 24px 26px 0;
  border-bottom: 1px solid rgba(6,19,14,.16);
}
.uc-layer-num { font: 500 12px var(--mono); color: #047857; }
.uc-layer h3 { font-size: 21px; font-weight: 400; letter-spacing: -0.02em; }
.uc-layer p { grid-column: 2; margin-top: 8px; font-size: 14px; color: var(--light-muted); max-width: 320px; }

/* ---------- Related ---------- */
.uc-related {
  --cols: 4;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 16px;
  margin-top: 32px;
}
.uc-related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
}
.uc-related-media, .uc-related-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
}
.uc-related-media img {
  object-fit: cover;
  filter: saturate(.8) brightness(.55);
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s;
}
.uc-related-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(5,6,8,.95) 15%, rgba(5,6,8,.4) 70%, rgba(5,6,8,.2));
}
.uc-related-card:hover .uc-related-media img { transform: scale(1.06); filter: saturate(1) brightness(.7); }
.uc-related-card:hover { border-color: var(--emerald); }
.uc-related-label {
  font: 500 11px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emerald-bright);
}
.uc-related-title {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  padding-right: 28px;
}
.uc-related-arrow {
  position: absolute; right: 22px; bottom: 22px;
  color: var(--muted);
  transition: transform .3s, color .3s;
}
.uc-related-card:hover .uc-related-arrow { transform: translateX(4px); color: var(--emerald-bright); }

/* ---------- FAQ ---------- */
.uc-faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.uc-faq-list { border-top: 1px solid var(--line); }
.uc-faq-item { border-bottom: 1px solid var(--line); }
.uc-faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-size: 18px;
  letter-spacing: -0.015em;
  transition: color .2s;
}
.uc-faq-item summary::-webkit-details-marker { display: none; }
.uc-faq-item summary:hover { color: var(--emerald-bright); }
.uc-faq-item summary span {
  position: absolute; right: 4px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
}
.uc-faq-item summary span::before,
.uc-faq-item summary span::after {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 14px; height: 1.5px;
  background: currentColor;
  transition: transform .3s;
}
.uc-faq-item summary span::after { transform: rotate(90deg); }
.uc-faq-item[open] summary span::after { transform: rotate(0deg); }
.uc-faq-answer { padding: 0 48px 28px 0; }
.uc-faq-answer p { color: var(--muted); max-width: 680px; }

/* ---------- CTA ---------- */
.uc-cta-title { max-width: 820px; text-wrap: balance; }
.uc-cta-copy { margin-top: 22px; max-width: 520px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .uc-teams { grid-template-columns: 1fr 1fr; }
  .uc-team:nth-child(3n) { border-right: 1px solid var(--line); }
  .uc-team:nth-child(2n) { border-right: 0; }
  .uc-team:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .uc-team:nth-last-child(-n+2) { border-bottom: 0; }
  .uc-layers { grid-template-columns: 1fr 1fr; }
  .uc-related { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .uc-hero { height: auto; min-height: 100svh; }
  .uc-hero-inner { flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 100svh; }
  .uc-hero-shade {
    background: linear-gradient(to bottom, rgba(5,6,8,.5) 0%, rgba(5,6,8,.55) 35%, rgba(5,6,8,.92) 70%, var(--bg) 100%);
  }
  .uc-spine { flex-direction: row; align-items: center; }
  .uc-spine i { width: 18px; height: 1px; margin: 0; background: linear-gradient(90deg, var(--line-strong), var(--emerald)); }
  .uc-split, .uc-cap, .uc-chain-grid, .uc-faq { grid-template-columns: 1fr; gap: 32px; }
  .uc-cap { padding: 56px 0; }
  .uc-chain-copy { position: static; }
  .uc-prose-wide { columns: 1; }
}

@media (max-width: 600px) {
  .uc-teams, .uc-layers, .uc-related { grid-template-columns: 1fr; }
  .uc-team { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .uc-team:last-child { border-bottom: 0 !important; }
  .uc-related-card { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .uc-hero-media img { animation: none; }
  .uc-chain::after { animation: none; display: none; }
  .uc-chain li { opacity: 1; transform: none; }
}
