/* V8: authority version. Keeps the strong hero and architecture, trims repetition,
   and makes the agent the visual protagonist. */

/* Hero flow summary */
.scene-flow-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0 0 9px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 9px;
  color: #9aa5bf;
}
.scene-flow-label span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.scene-flow-label span b {
  color: var(--violet-soft);
  font-family: var(--font-mono);
  font-size: 7.5px;
}
.scene-flow-label .is-agent {
  border: 1px solid rgba(185, 174, 248, 0.32);
  background: rgba(97, 76, 225, 0.22);
  color: #fff;
  box-shadow: 0 0 18px rgba(97, 76, 225, 0.2);
}
.scene-flow-label i {
  color: var(--violet-soft);
  font-style: normal;
  font-size: 10px;
}

/* Make the agent card the protagonist of the hero */
.hero-scene .scene-card--agent {
  position: relative;
  z-index: 1;
  border-color: rgba(185, 174, 248, 0.55);
  background: linear-gradient(160deg, rgba(97, 76, 225, 0.24), rgba(255, 255, 255, 0.045));
  box-shadow: 0 0 0 1px rgba(185, 174, 248, 0.16), 0 20px 46px rgba(97, 76, 225, 0.26);
  transform: translateY(-2px);
}
.hero-scene .scene-card--agent::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(185, 174, 248, 0.32), transparent 46%);
  pointer-events: none;
  opacity: 0.55;
}
.hero-scene .scene-card--agent .agent-mark {
  box-shadow: 0 0 0 6px rgba(97, 76, 225, 0.14);
}
.hero-scene .scene-card--agent .scene-steps li.is-active span {
  animation: v8AgentPulse 2.2s ease-in-out infinite;
}
.hero-scene .scene-card--agent .scene-card-top .scene-live {
  color: #8ff0cf;
}
@keyframes v8AgentPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.06); }
}

/* Curated integrations, not the whole catalog */
.v8-integration-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.v8-integration-strip span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 10px;
  font-weight: 600;
  color: #4b556b;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.v8-integration-strip span:hover {
  border-color: #d5c9ff;
  background: #faf8ff;
  transform: translateY(-1px);
}
.v8-integration-note {
  max-width: 720px;
  margin-top: 14px;
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--muted-2);
}
.v8-integration-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

/* Families are the agent breadth section; no duplicate demo panel above */
.agents .section-head {
  margin-bottom: 8px;
}
.agents .agent-families {
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 760px) {
  .scene-flow-label {
    font-size: 8px;
    gap: 4px;
  }
  .scene-flow-label span {
    padding: 3px 6px;
  }
  .hero-scene .scene-card--agent {
    transform: none;
  }
}

/* Visible labels for the demo controls */
.hero-scene .scene-control {
  width: auto;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  font-weight: 700;
  color: #c8d0e2;
  white-space: nowrap;
}
.hero-scene .scene-control span {
  line-height: 1;
}
.hero-scene .scene-control:hover {
  color: #fff;
  border-color: rgba(185, 174, 248, 0.4);
  background: rgba(97, 76, 225, 0.16);
}
@media (max-width: 760px) {
  .hero-scene .scene-control {
    font-size: 7.5px;
    padding: 0 6px;
  }
}

/* Stronger agent protagonist in the hero */
.hero-scene .scene-card--agent {
  transform: translateY(-4px) scale(1.025);
  border: 1.5px solid rgba(210, 200, 255, 0.82);
  box-shadow:
    0 0 0 1px rgba(185, 174, 248, 0.22),
    0 30px 64px rgba(97, 76, 225, 0.4),
    0 0 38px rgba(97, 76, 225, 0.24);
  animation: v8AgentCardGlow 3.5s ease-in-out infinite;
}
.hero-scene .scene-card--agent .scene-label {
  color: #fff;
  background: rgba(97, 76, 225, 0.36);
  border: 1px solid rgba(185, 174, 248, 0.32);
  border-radius: 999px;
  padding: 3px 6px;
}
.hero-scene .scene-card--agent .scene-agent-head strong {
  font-size: 12.5px;
}
@keyframes v8AgentCardGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(185, 174, 248, 0.2),
      0 24px 52px rgba(97, 76, 225, 0.3),
      0 0 28px rgba(97, 76, 225, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(210, 200, 255, 0.34),
      0 34px 70px rgba(97, 76, 225, 0.46),
      0 0 44px rgba(97, 76, 225, 0.3);
  }
}
@media (max-width: 760px) {
  .hero-scene .scene-card--agent {
    transform: none;
  }
}

/* Scroll entry and extra hover life for the authority version */
.v8-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--v8-delay, 0ms);
}
.v8-reveal.v8-visible {
  opacity: 1;
  transform: none;
}

.what-points article {
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.what-points article:hover {
  background: #fff;
  border-color: #d5c9ff;
  transform: translateX(2px);
}

.demo-cta {
  transition: transform 0.22s, box-shadow 0.22s;
}
.demo-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px rgba(11, 18, 48, 0.24);
}
.partners {
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.partners:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(11, 18, 48, 0.22);
}
.finance-table tbody tr {
  transition: background 0.16s;
}
.finance-table tbody tr:hover {
  background: rgba(97, 76, 225, 0.055);
}
.config-step-block {
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.config-step-block:hover {
  border-color: #cbbcff;
  box-shadow: 0 10px 24px rgba(97, 76, 225, 0.07);
  transform: translateY(-1px);
}
.stack-layer {
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.stack-layer:hover {
  transform: translateX(2px);
}
