/*
 * Use cases — advisory-only product story.
 * Scoped to .uc-page so the existing shared marketing system stays untouched.
 */

.uc-page {
  --uc-night: var(--cr33-night);
  --uc-night-2: var(--cr30-deep);
  --uc-ink: var(--cr33-ink);
  --uc-muted: var(--cr33-muted);
  --uc-line: var(--cr33-line);
  --uc-paper: var(--cr30-paper);
  --uc-white: var(--white);
  --uc-cyan: var(--cr33-cyan);
  --uc-cyan-dark: var(--brand-accent);
  --uc-sun: var(--cr33-sun);
  --uc-sun-soft: rgba(255, 182, 111, .17);
  background: #fff;
}

.uc-page .hero-shell {
  background:
    radial-gradient(circle at 78% 38%, rgba(49, 151, 190, .16), transparent 34%),
    radial-gradient(circle at 24% 84%, rgba(255, 181, 107, .1), transparent 30%),
    linear-gradient(126deg, var(--uc-night), var(--cr30-deep));
  border-radius: 0 0 28px 28px;
}

.uc-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.uc-eyebrow {
  margin: 0 0 14px;
  color: var(--uc-cyan-dark);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.uc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(62px, 7vw, 104px) 0 clamp(64px, 7vw, 96px);
  color: #fff;
}

.uc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .18;
  background-image:
    linear-gradient(rgba(118, 185, 211, .15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 185, 211, .15) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent 5%, #000 38%, #000 100%);
}

.uc-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(480px, 1.07fr);
  align-items: center;
  gap: clamp(42px, 6vw, 86px);
}

.uc-hero-copy {
  max-width: 680px;
}

.uc-hero .uc-eyebrow {
  color: var(--uc-cyan);
}

.uc-hero h1 {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5vw, 4.7rem);
  font-weight: 780;
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.uc-hero h1 em {
  display: block;
  color: var(--uc-sun);
  font-style: normal;
}

.uc-hero-lead {
  max-width: 60ch;
  margin: 26px 0 0;
  color: var(--cr33-text);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.7;
}

.uc-hero-actions,
.uc-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.uc-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .96rem;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.uc-button:hover {
  transform: translateY(-1px);
}

.uc-button-primary {
  border-color: var(--uc-sun);
  background: var(--uc-sun);
  color: var(--uc-night);
}

.uc-button-primary:hover,
.uc-button-primary:focus-visible {
  border-color: var(--cr33-focus);
  background: var(--cr33-focus);
  color: var(--uc-night);
}

.uc-button-secondary {
  border-color: rgba(209, 230, 241, .52);
  background: rgba(7, 23, 40, .35);
  color: #fff;
}

.uc-button-secondary:hover,
.uc-button-secondary:focus-visible {
  border-color: var(--uc-cyan);
  background: rgba(49, 116, 150, .28);
  color: #fff;
}

/* The shared legacy hero assigns link colors broadly; preserve CTA contrast. */
body.uc-page.cr26-legacy .cr28-legacy-hero a.uc-button.uc-button-primary {
  color: var(--uc-night);
}

body.uc-page.cr26-legacy .cr28-legacy-hero a.uc-button.uc-button-secondary {
  color: #fff;
}

.uc-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--cr28-muted);
  font-size: .82rem;
  font-weight: 650;
  list-style: none;
}

.uc-hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.uc-hero-proof li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--uc-cyan);
  box-shadow: 0 0 0 4px rgba(103, 213, 231, .12);
}

.uc-hero-visual {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(151, 195, 218, .25);
  border-radius: 22px;
  background:
    linear-gradient(rgba(85, 148, 181, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 148, 181, .07) 1px, transparent 1px),
    rgba(3, 17, 31, .7);
  background-size: 32px 32px;
  box-shadow: 0 30px 70px rgba(0, 7, 18, .35);
}

.uc-visual-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-on-dark-muted);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.uc-live-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cr33-text);
  letter-spacing: .08em;
}

.uc-live-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--uc-cyan);
  box-shadow: 0 0 0 0 rgba(103, 213, 231, .32);
  animation: uc-pulse 2.4s ease-out infinite;
}

.uc-source-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.uc-source-grid span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 5px;
  border: 1px solid rgba(120, 181, 210, .24);
  border-radius: 9px;
  background: rgba(23, 66, 94, .46);
  color: var(--cr33-text);
  font-size: clamp(.62rem, .72vw, .76rem);
  font-weight: 700;
  text-align: center;
}

.uc-data-rail,
.uc-handoff-rail {
  position: relative;
  width: 2px;
  height: 42px;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(var(--uc-cyan), rgba(103, 213, 231, .12));
}

.uc-data-rail::before,
.uc-data-rail::after,
.uc-data-rail i {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent-200);
  box-shadow: 0 0 10px var(--uc-cyan);
  transform: translateX(-50%);
  animation: uc-data-down 2.1s linear infinite;
}

.uc-data-rail::after { animation-delay: -.7s; }
.uc-data-rail i:nth-child(1) { animation-delay: -1.4s; }
.uc-data-rail i:nth-child(n+2) { display: none; }

.uc-analysis-node,
.uc-engineer-node {
  position: relative;
  padding: 20px 22px;
  border-radius: 14px;
}

.uc-analysis-node {
  border: 1px solid rgba(103, 213, 231, .48);
  background: linear-gradient(135deg, rgba(14, 76, 105, .88), rgba(10, 42, 66, .92));
  box-shadow: 0 16px 34px rgba(0, 5, 15, .22);
}

.uc-node-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--uc-cyan);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.uc-analysis-node strong,
.uc-engineer-node strong {
  display: block;
  color: #fff;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.35;
}

.uc-analysis-node small,
.uc-engineer-node small {
  display: block;
  margin-top: 7px;
  color: var(--cr28-muted);
  font-size: .78rem;
  line-height: 1.5;
}

.uc-handoff-rail {
  background: linear-gradient(var(--uc-sun), rgba(255, 181, 107, .16));
}

.uc-handoff-rail i {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 8px;
  height: 12px;
  border-radius: 8px;
  background: var(--cr33-focus);
  box-shadow: 0 0 12px var(--uc-sun);
  transform: translateX(-50%);
  animation: uc-data-down 2.1s linear infinite;
}

.uc-engineer-node {
  border: 1px solid rgba(255, 181, 107, .65);
  background: linear-gradient(135deg, rgba(107, 65, 31, .65), rgba(49, 36, 31, .82));
}

.uc-engineer-node .uc-node-kicker {
  color: var(--uc-sun);
}

.uc-verification-loop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--cr28-muted);
  font-size: .78rem;
  font-weight: 650;
  text-align: center;
}

.uc-verification-loop span {
  width: 18px;
  height: 18px;
  border: 1px solid var(--uc-cyan);
  border-right-color: transparent;
  border-radius: 50%;
  animation: uc-spin 2.8s linear infinite;
}

.uc-model {
  border-bottom: 1px solid var(--uc-line);
  background: #fff;
}

.uc-model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.uc-model-grid > div {
  min-width: 0;
  padding: 24px 22px;
  border-left: 1px solid var(--uc-line);
}

.uc-model-grid > div:last-child {
  border-right: 1px solid var(--uc-line);
}

.uc-model-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--uc-cyan-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.uc-model-grid strong {
  display: block;
  color: var(--uc-ink);
  font-size: .92rem;
  line-height: 1.45;
}

.uc-model-grid .uc-model-human {
  background: var(--uc-sun-soft);
}

.uc-model-grid .uc-model-human span {
  color: var(--uc-ink);
}

.uc-section {
  padding: clamp(72px, 7vw, 108px) 0;
}

.uc-section-tint {
  border-block: 1px solid var(--border-light);
  background: var(--uc-paper);
}

.uc-section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.uc-section-heading-compact {
  margin-bottom: 30px;
}

.uc-section-heading h2,
.uc-cta h2 {
  margin: 0;
  color: var(--uc-ink);
  font-size: clamp(2rem, 3.3vw, 3.35rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.uc-section-heading > p:last-child {
  max-width: 66ch;
  margin: 18px 0 0;
  color: var(--uc-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.uc-flagship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.uc-case-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--uc-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 72%, var(--bg));
  box-shadow: 0 14px 38px rgba(14, 42, 66, .065);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.uc-case-card:hover {
  border-color: var(--cr28-muted);
  box-shadow: 0 18px 44px rgba(14, 42, 66, .1);
  transform: translateY(-2px);
}

.uc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.uc-card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cr28-muted);
  border-radius: 12px;
  background: var(--brand-accent-100);
  color: var(--brand-accent);
}

.uc-card-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uc-card-stage {
  color: var(--cr30-muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.uc-case-card h3,
.uc-support-card h3,
.uc-boundary h3 {
  color: var(--uc-ink);
  font-weight: 740;
  letter-spacing: -.025em;
}

.uc-case-card h3 {
  margin: 24px 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  line-height: 1.22;
}

.uc-case-card > p {
  margin: 0;
  color: var(--uc-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.uc-case-card ul {
  margin: 20px 0 24px;
  padding: 0;
  color: var(--uc-muted);
  font-size: .93rem;
  line-height: 1.58;
  list-style: none;
}

.uc-case-card li {
  position: relative;
  padding-left: 21px;
}

.uc-case-card li + li {
  margin-top: 8px;
}

.uc-case-card li::before {
  content: "";
  position: absolute;
  top: .63em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 2px solid var(--brand-accent);
  border-radius: 50%;
}

.uc-card-link,
.uc-support-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--brand-accent);
  font-size: .9rem;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.uc-card-link:hover,
.uc-support-card a:hover {
  color: var(--brand-accent-hover);
}

.uc-lifecycle {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uc-lifecycle li {
  position: relative;
  min-height: 126px;
  padding: 20px 17px;
  border: 1px solid var(--border-light);
  border-radius: 13px;
  background: #fff;
}

.uc-lifecycle li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  z-index: 2;
  width: 10px;
  height: 2px;
  background: var(--cr28-muted);
}

.uc-lifecycle span {
  display: block;
  margin-bottom: 12px;
  color: var(--uc-cyan-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.uc-lifecycle strong {
  color: var(--uc-ink);
  font-size: .91rem;
  line-height: 1.45;
}

.uc-lifecycle .uc-lifecycle-human {
  border-color: var(--cr33-sun);
  background: var(--uc-sun-soft);
  box-shadow: inset 0 3px 0 var(--uc-sun);
}

.uc-lifecycle .uc-lifecycle-human span {
  color: var(--uc-ink);
}

.uc-boundary {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  margin-top: 24px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 18px;
  background: var(--uc-night);
  color: #fff;
}

.uc-boundary .uc-eyebrow {
  color: var(--uc-cyan);
}

.uc-boundary h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  line-height: 1.12;
}

.uc-boundary ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  color: var(--cr33-text);
  font-size: .91rem;
  line-height: 1.55;
  list-style: none;
}

.uc-boundary li {
  position: relative;
  padding-left: 18px;
}

.uc-boundary li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--uc-sun);
}

.uc-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.uc-support-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border-top: 3px solid var(--cr33-cyan);
  border-radius: 10px 10px 15px 15px;
  background: var(--uc-paper);
}

.uc-support-icon {
  display: inline-flex;
  width: fit-content;
  min-width: 38px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: #fff;
  color: var(--brand-accent);
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.uc-support-card h3 {
  margin: 18px 0 9px;
  font-size: 1.16rem;
  line-height: 1.28;
}

.uc-support-card p {
  margin: 0 0 20px;
  color: var(--uc-muted);
  font-size: .92rem;
  line-height: 1.62;
}

.uc-cta {
  padding: clamp(64px, 7vw, 94px) 0;
  background:
    radial-gradient(circle at 92% 20%, rgba(103, 213, 231, .12), transparent 32%),
    linear-gradient(125deg, var(--uc-night), var(--cr30-deep));
  color: #fff;
}

.uc-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
}

.uc-cta .uc-eyebrow {
  color: var(--uc-cyan);
}

.uc-cta h2 {
  max-width: 18ch;
  color: #fff;
}

.uc-cta p:last-child {
  max-width: 60ch;
  margin: 17px 0 0;
  color: var(--cr28-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.uc-cta-actions {
  justify-content: flex-end;
  margin: 0;
}

.uc-disclosure {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}

.uc-disclosure p {
  max-width: 94ch;
  margin: 0;
  color: var(--uc-muted);
  font-size: .84rem;
  line-height: 1.6;
}

.uc-page :is(.uc-button, .uc-card-link, .uc-support-card a):focus-visible {
  outline: 3px solid var(--cr33-focus);
  outline-offset: 4px;
}

@keyframes uc-data-down {
  from { transform: translate(-50%, -10px); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  to { transform: translate(-50%, 52px); opacity: 0; }
}

@keyframes uc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(103, 213, 231, .34); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(103, 213, 231, 0); }
}

@keyframes uc-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1040px) {
  .uc-hero-layout {
    grid-template-columns: 1fr;
  }

  .uc-hero-copy {
    max-width: 760px;
  }

  .uc-hero h1 {
    max-width: 16ch;
  }

  .uc-hero-visual {
    width: min(100%, 760px);
  }

  .uc-model-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .uc-model-grid > div:nth-child(3) {
    border-top: 1px solid var(--uc-line);
  }

  .uc-model-grid > div:nth-child(2),
  .uc-model-grid > div:nth-child(4) {
    border-right: 1px solid var(--uc-line);
  }

  .uc-model-grid > div:nth-child(4) {
    border-top: 1px solid var(--uc-line);
  }

  .uc-lifecycle {
    grid-template-columns: repeat(3, 1fr);
  }

  .uc-lifecycle li:nth-child(3)::after {
    display: none;
  }

  .uc-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uc-cta-inner {
    grid-template-columns: 1fr;
  }

  .uc-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .uc-shell {
    width: calc(100% - 36px);
  }

  .uc-hero {
    padding-block: 48px 58px;
  }

  .uc-hero h1 {
    max-width: 18ch;
    font-size: clamp(2.55rem, 12vw, 3.65rem);
  }

  .uc-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uc-source-grid span:last-child {
    grid-column: 1 / -1;
  }

  .uc-model-grid,
  .uc-flagship-grid,
  .uc-lifecycle,
  .uc-support-grid,
  .uc-boundary,
  .uc-boundary ul {
    grid-template-columns: 1fr;
  }

  .uc-model-grid > div {
    border-right: 1px solid var(--uc-line);
    border-bottom: 1px solid var(--uc-line);
  }

  .uc-lifecycle li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -11px;
    left: 50%;
    width: 2px;
    height: 10px;
  }

  .uc-lifecycle li:nth-child(3)::after {
    display: block;
  }

  .uc-cta-actions,
  .uc-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .uc-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uc-page *,
  .uc-page *::before,
  .uc-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
