/* RCA capability hero — causal search engine demo */
.solution-frame .rca-causal-hero {
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.rca-causal-hero {
  --rca-bg: #11131d;
  --rca-surface: #0c1117;
  --rca-teal: #4ecdc4;
  --rca-orange: #ef8354;
  --rca-line: rgba(78, 205, 196, 0.12);
  --rca-muted: rgba(255, 255, 255, 0.22);
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(31, 34, 53, 0.28);
  background: var(--rca-bg);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(19, 24, 40, 0.22);
  font-family: var(--mono, "IBM Plex Mono", ui-monospace, monospace);
  color: rgba(255, 255, 255, 0.75);
  isolation: isolate;
}

.rca-causal-hero__scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(transparent, rgba(78, 205, 196, 0.04), transparent);
  pointer-events: none;
  animation: rca-scan 6s linear infinite;
  z-index: 2;
}

@keyframes rca-scan {
  0% { top: -72px; }
  100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rca-causal-hero__scanline {
    animation: none;
    display: none;
  }
}

.rca-causal-hero__hud {
  position: relative;
  z-index: 1;
  padding: 14px 16px 8px;
}

.rca-causal-hero__hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.rca-causal-hero__logo {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(78, 205, 196, 0.75);
  font-weight: 500;
}

.rca-causal-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rca-causal-hero__chip {
  font-size: 0.58rem;
  padding: 3px 8px;
  border: 1px solid rgba(78, 205, 196, 0.22);
  color: rgba(78, 205, 196, 0.5);
  letter-spacing: 0.06em;
  border-radius: 4px;
  text-transform: uppercase;
}

.rca-causal-hero__chip--warn {
  border-color: rgba(239, 131, 84, 0.35);
  color: rgba(239, 131, 84, 0.7);
}

.rca-causal-hero__chip--alert {
  border-color: rgba(239, 131, 84, 0.65);
  color: var(--rca-orange);
  animation: rca-chip-blink 1.2s ease infinite;
}

@keyframes rca-chip-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.rca-causal-hero__stats-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rca-causal-hero__counters {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 20px);
}

.rca-causal-hero__ctr-num {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(78, 205, 196, 0.88);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.rca-causal-hero__ctr-num--orange {
  color: var(--rca-orange);
}

.rca-causal-hero__ctr-lbl {
  font-size: 0.55rem;
  color: var(--rca-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.rca-causal-hero__elapsed {
  font-size: 0.58rem;
  color: rgba(78, 205, 196, 0.35);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.rca-causal-hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 680 / 280;
  min-height: 200px;
  max-height: 320px;
  background: var(--rca-bg);
}

.rca-causal-hero__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.rca-causal-hero__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rca-line);
}

.rca-causal-hero__phases {
  padding: 12px 14px;
  border-right: 1px solid rgba(78, 205, 196, 0.07);
}

.rca-causal-hero__panel-label {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(78, 205, 196, 0.35);
  margin-bottom: 8px;
}

.rca-causal-hero__phase {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rca-causal-hero__phase:last-child {
  border-bottom: none;
}

.rca-causal-hero__pbar {
  width: 3px;
  height: 22px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  flex-shrink: 0;
  transition: background 0.35s ease;
}

.rca-causal-hero__pbar--act {
  background: var(--rca-teal);
}

.rca-causal-hero__pbar--done {
  background: rgba(78, 205, 196, 0.35);
}

.rca-causal-hero__pbar--crit {
  background: var(--rca-orange);
}

.rca-causal-hero__pname {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.rca-causal-hero__pname--act {
  color: rgba(255, 255, 255, 0.82);
}

.rca-causal-hero__pname--done {
  color: rgba(78, 205, 196, 0.58);
}

.rca-causal-hero__pval {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 2px;
  transition: color 0.3s ease;
}

.rca-causal-hero__pval--ok {
  color: rgba(78, 205, 196, 0.62);
}

.rca-causal-hero__pval--run {
  color: rgba(78, 205, 196, 0.92);
}

.rca-causal-hero__pval--crit {
  color: var(--rca-orange);
}

.rca-causal-hero__result {
  padding: 12px 14px;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.rca-causal-hero__result--show {
  opacity: 1;
}

.rca-causal-hero__rlabel {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rca-orange);
  margin-bottom: 6px;
}

.rca-causal-hero__rname {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.rca-causal-hero__chain {
  display: flex;
  gap: 6px;
  font-size: 0.58rem;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rca-causal-hero__chain:last-of-type {
  border-bottom: none;
}

.rca-causal-hero__chain-n {
  color: rgba(78, 205, 196, 0.38);
  min-width: 14px;
}

.rca-causal-hero__chain-t {
  color: rgba(255, 255, 255, 0.42);
}

.rca-causal-hero__chain--root .rca-causal-hero__chain-t {
  color: rgba(239, 131, 84, 0.85);
}

.rca-causal-hero__chain--root .rca-causal-hero__chain-n {
  color: rgba(239, 131, 84, 0.75);
}

.rca-causal-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rca-causal-hero__badge {
  font-size: 0.55rem;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rca-causal-hero__badge--o {
  border: 1px solid rgba(239, 131, 84, 0.35);
  color: rgba(239, 131, 84, 0.78);
  background: rgba(239, 131, 84, 0.06);
}

.rca-causal-hero__badge--t {
  border: 1px solid rgba(78, 205, 196, 0.28);
  color: rgba(78, 205, 196, 0.68);
  background: rgba(78, 205, 196, 0.05);
}

.rca-causal-hero__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(78, 205, 196, 0.07);
}

.rca-causal-hero__replay {
  font-family: inherit;
  font-size: 0.58rem;
  padding: 6px 14px;
  border: 1px solid rgba(78, 205, 196, 0.35);
  background: rgba(78, 205, 196, 0.08);
  color: rgba(78, 205, 196, 0.88);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rca-causal-hero__replay:hover {
  background: rgba(78, 205, 196, 0.14);
  color: var(--rca-teal);
  border-color: rgba(78, 205, 196, 0.5);
}

.rca-causal-hero__replay:focus-visible {
  outline: 2px solid var(--rca-teal);
  outline-offset: 2px;
}

.rca-causal-hero__meta {
  font-size: 0.55rem;
  color: rgba(78, 205, 196, 0.28);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .rca-causal-hero__bottom {
    grid-template-columns: 1fr;
  }

  .rca-causal-hero__phases {
    border-right: none;
    border-bottom: 1px solid rgba(78, 205, 196, 0.07);
  }
}
