/* Agenora executive showcase layer */
:root {
  --showcase-green: #65f0a0;
  --showcase-cyan: #58d7e7;
  --showcase-amber: #f2cc78;
  --showcase-red: #ff7d75;
}

body {
  background:
    radial-gradient(circle at 15% 8%, rgba(101, 240, 160, .18), transparent 26%),
    radial-gradient(circle at 82% 2%, rgba(88, 215, 231, .14), transparent 30%),
    radial-gradient(circle at 62% 58%, rgba(101, 240, 160, .08), transparent 36%),
    linear-gradient(180deg, #050e0b 0%, #07110d 44%, #030806 100%) !important;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(101,240,160,.05) 28%, transparent 46%),
    linear-gradient(245deg, transparent 8%, rgba(88,215,231,.045) 38%, transparent 58%);
  animation: agenoraAurora 13s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes agenoraAurora {
  from { opacity: .45; transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { opacity: .9; transform: translate3d(1.5%, 1%, 0) scale(1.03); }
}

.hero,
.agent-hero {
  isolation: isolate;
}

.hero::after,
.agent-hero::after {
  content: "";
  position: absolute;
  inset: auto 6% 9% 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(101,240,160,.75), rgba(88,215,231,.78), transparent);
  filter: blur(.2px);
  opacity: .65;
  animation: agenoraScan 4.2s linear infinite;
}

@keyframes agenoraScan {
  0% { transform: translateX(-12%); opacity: .2; }
  35% { opacity: .85; }
  100% { transform: translateX(12%); opacity: .2; }
}

.showcase-band {
  margin-top: 24px;
  border: 1px solid rgba(136, 243, 178, .18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 16%, rgba(101,240,160,.12), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(88,215,231,.10), transparent 28%),
    linear-gradient(180deg, rgba(17, 37, 30, .86), rgba(7, 17, 13, .88));
  box-shadow: 0 24px 72px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 22px;
  overflow: hidden;
  position: relative;
}

.showcase-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  opacity: .65;
  pointer-events: none;
}

.showcase-band > * {
  position: relative;
  z-index: 1;
}

.showcase-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.showcase-head h2 {
  font-size: 30px;
  margin: 0 0 6px;
}

.showcase-head p {
  max-width: 780px;
  color: rgba(238,248,240,.66);
}

.showcase-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(101,240,160,.32);
  background: rgba(101,240,160,.12);
  color: #aff6ca;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 18px;
  align-items: stretch;
}

.story-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.story-step {
  min-height: 168px;
  border: 1px solid rgba(136, 243, 178, .16);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 10px;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}

.story-step.active {
  transform: translateY(-4px);
  border-color: rgba(101,240,160,.52);
  background: rgba(101,240,160,.12);
  box-shadow: 0 18px 42px rgba(101,240,160,.10);
}

.story-step i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 900;
  color: #06110d;
  background: linear-gradient(135deg, var(--showcase-green), var(--showcase-cyan));
}

.story-step b {
  color: white;
  font-size: 17px;
}

.story-step span {
  color: rgba(238,248,240,.62);
  line-height: 1.55;
  font-size: 13px;
}

.data-theater {
  min-height: 350px;
  border: 1px solid rgba(136, 243, 178, .15);
  border-radius: 8px;
  background: rgba(2, 9, 7, .64);
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.data-theater .node {
  position: absolute;
  min-width: 92px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(136, 243, 178, .24);
  border-radius: 8px;
  background: rgba(15, 34, 27, .84);
  color: rgba(238,248,240,.84);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 28px rgba(101,240,160,.10);
}

.data-theater .node:nth-child(1) { left: 6%; top: 12%; }
.data-theater .node:nth-child(2) { right: 8%; top: 16%; }
.data-theater .node:nth-child(3) { left: 10%; bottom: 16%; }
.data-theater .node:nth-child(4) { right: 12%; bottom: 20%; }
.data-theater .node.core {
  left: 50%;
  top: 50%;
  min-width: 150px;
  min-height: 76px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, rgba(101,240,160,.22), rgba(88,215,231,.18));
  border-color: rgba(101,240,160,.48);
}

.data-theater svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .72;
}

.data-theater path {
  stroke-dasharray: 6 12;
  animation: dataDash 1.4s linear infinite;
}

@keyframes dataDash {
  to { stroke-dashoffset: -36; }
}

.platform-flow-demo {
  display: grid;
  grid-template-columns: minmax(330px, .62fr) minmax(620px, 1.38fr);
  gap: 18px;
  align-items: stretch;
}

.flow-stage-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.flow-step {
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(136, 243, 178, .16);
  min-height: 82px;
  grid-template-columns: 42px 1fr;
  align-content: center;
  align-items: start;
  column-gap: 12px;
  padding: 13px 14px;
}

.flow-step.done {
  border-color: rgba(16, 185, 129, .28);
}

.flow-step i {
  grid-row: span 2;
}

.flow-step b {
  font-size: 16px;
}

.flow-step span {
  font-size: 12px;
  line-height: 1.45;
}

.flow-theater {
  position: relative;
  min-height: 438px;
  border: 1px solid rgba(136, 243, 178, .15);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, rgba(101,240,160,.18), transparent 24%),
    linear-gradient(135deg, #07111f, #0d1727 54%, #07111f);
  overflow: hidden;
  color: white;
  box-shadow: 0 14px 34px rgba(15,23,42,.18);
}

.flow-theater::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: .45;
}

.flow-lane {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 38%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242,107,44,.28), rgba(16,185,129,.46), rgba(14,165,233,.40), rgba(242,107,44,.36));
}

.flow-lane::before,
.flow-lane::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  border: 1px dashed rgba(148,163,184,.26);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateY(-78px);
}

.flow-lane::after {
  height: 86px;
  border-top: 0;
  border-bottom: 1px dashed rgba(148,163,184,.24);
  border-radius: 0 0 999px 999px;
  transform: translateY(0);
}

.flow-packet {
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fb923c;
  box-shadow: 0 0 0 8px rgba(251,146,60,.12), 0 0 26px rgba(251,146,60,.58);
  animation: packetFlow 13s cubic-bezier(.2,.8,.2,1) infinite;
}

.packet-two {
  animation-delay: -4.2s;
  background: #10b981;
  box-shadow: 0 0 0 8px rgba(16,185,129,.12), 0 0 26px rgba(16,185,129,.58);
}

.packet-three {
  animation-delay: -8.4s;
  background: #38bdf8;
  box-shadow: 0 0 0 8px rgba(56,189,248,.12), 0 0 26px rgba(56,189,248,.58);
}

@keyframes packetFlow {
  0% { left: 0%; opacity: 0; }
  7% { opacity: 1; }
  22% { left: 24%; }
  44% { left: 50%; }
  66% { left: 74%; }
  88% { left: 100%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.flow-node {
  position: absolute;
  z-index: 2;
  width: 180px;
  min-height: 92px;
  border: 1px solid rgba(148,163,184,.26);
  border-radius: 8px;
  background: rgba(15, 23, 42, .82);
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 6px;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .45s ease, background .45s ease, box-shadow .45s ease;
}

.flow-node small {
  color: rgba(226,232,240,.62);
  font-size: 12px;
  font-weight: 700;
}

.flow-node strong {
  color: white;
  font-size: 15px;
  line-height: 1.32;
}

.flow-node span {
  color: rgba(226,232,240,.72);
  font-size: 12px;
  line-height: 1.35;
}

.node-enterprise { left: 5%; top: 10%; }
.node-agent { left: 29%; bottom: 13%; }
.node-core {
  left: 50%;
  top: 48%;
  width: 210px;
  min-height: 118px;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(15, 23, 42, .92);
  border-color: rgba(16,185,129,.48);
}
.node-service { right: 6%; top: 11%; }
.node-growth { right: 10%; bottom: 12%; }

.flow-theater[data-flow-stage="0"] .node-enterprise,
.flow-theater[data-flow-stage="1"] .node-agent,
.flow-theater[data-flow-stage="2"] .node-core,
.flow-theater[data-flow-stage="3"] .node-service,
.flow-theater[data-flow-stage="4"] .node-growth {
  transform: translateY(-6px);
  border-color: rgba(242,107,44,.72);
  background: rgba(30,41,59,.96);
  box-shadow: 0 0 0 4px rgba(242,107,44,.10), 0 22px 52px rgba(242,107,44,.18);
}

.flow-theater[data-flow-stage="2"] .node-core {
  transform: translate(-50%, -50%) scale(1.04);
}

.flow-insight {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.flow-insight div {
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  padding: 12px;
}

.flow-insight span {
  display: block;
  color: rgba(226,232,240,.62);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.flow-insight strong {
  display: block;
  color: white;
  font-size: 13px;
  line-height: 1.45;
}

.flow-outcomes {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.flow-outcomes div {
  min-height: 58px;
  border: 1px solid rgba(242,107,44,.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(242,107,44,.16), rgba(16,185,129,.10));
  padding: 11px 12px;
}

.flow-outcomes small {
  display: block;
  color: rgba(226,232,240,.70);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.flow-outcomes b {
  color: white;
  font-size: 13px;
  line-height: 1.35;
}

.flow-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow: hidden;
}

.flow-progress i {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f26b2c, #10b981);
  transition: width .55s cubic-bezier(.2,.8,.2,1);
}

.flow-theater[data-flow-stage="0"] .flow-progress i { width: 20%; }
.flow-theater[data-flow-stage="1"] .flow-progress i { width: 40%; }
.flow-theater[data-flow-stage="2"] .flow-progress i { width: 60%; }
.flow-theater[data-flow-stage="3"] .flow-progress i { width: 80%; }
.flow-theater[data-flow-stage="4"] .flow-progress i { width: 100%; }

.app-runway {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.runway-card {
  min-height: 172px;
  padding: 14px;
  border: 1px solid rgba(136, 243, 178, .16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 43, 34, .82), rgba(8, 18, 14, .84));
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.runway-card:hover {
  transform: translateY(-5px);
  border-color: rgba(101,240,160,.50);
  box-shadow: 0 22px 54px rgba(101,240,160,.10);
}

.runway-card strong {
  color: white;
  font-size: 17px;
}

.runway-card span {
  color: rgba(238,248,240,.60);
  line-height: 1.5;
  font-size: 13px;
}

.runway-card em {
  font-style: normal;
  color: #aef6c8;
  font-weight: 900;
}

.ai-narrator {
  position: fixed;
  top: auto !important;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: min(360px, calc(100vw - 44px));
  height: auto !important;
  min-height: 0 !important;
  max-height: 220px;
  border: 1px solid rgba(136,243,178,.24);
  border-radius: 8px;
  background: rgba(4, 12, 9, .86);
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  overflow: hidden;
}

.ai-narrator header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-narrator strong {
  color: white;
}

.ai-narrator p {
  color: rgba(238,248,240,.66);
  font-size: 13px;
  line-height: 1.55;
}

.ai-narrator .meter {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.ai-narrator .meter i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--showcase-green), var(--showcase-cyan));
  animation: narratorMeter 7s ease-in-out infinite;
}

@keyframes narratorMeter {
  0%, 100% { width: 28%; }
  50% { width: 92%; }
}

.demo-playbook {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.playbook-step {
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(136, 243, 178, .16);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}

.playbook-step b {
  color: white;
  display: block;
  margin-bottom: 8px;
}

.playbook-step span {
  color: rgba(238,248,240,.60);
  font-size: 13px;
  line-height: 1.55;
}

.is-revealed {
  animation: revealUp .7s ease both;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.pulse-target {
  animation: pulseTarget 1s ease;
}

@keyframes pulseTarget {
  0%, 100% { box-shadow: 0 0 0 rgba(101,240,160,0); }
  50% { box-shadow: 0 0 0 5px rgba(101,240,160,.18), 0 20px 60px rgba(101,240,160,.13); }
}

@media (max-width: 1180px) {
  .story-grid { grid-template-columns: 1fr; }
  .platform-flow-demo { grid-template-columns: 1fr; }
  .app-runway { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-steps, .demo-playbook { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-stage-column { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .showcase-band { padding: 16px; }
  .showcase-head { display: grid; }
  .showcase-head h2 { font-size: 24px; }
  .story-steps, .flow-stage-column, .app-runway, .demo-playbook { grid-template-columns: 1fr; }
  .data-theater { min-height: 300px; }
  .flow-theater { min-height: 680px; }
  .flow-lane {
    top: 8%;
    bottom: 8%;
    left: 50%;
    right: auto;
    width: 4px;
    height: auto;
    transform: translateX(-50%);
  }
  .flow-lane::before,
  .flow-lane::after { display: none; }
  .flow-packet {
    left: 50%;
    top: 0;
    animation-name: packetFlowMobile;
  }
  .flow-node {
    left: 50% !important;
    right: auto !important;
    width: min(270px, calc(100% - 40px));
    transform: translateX(-50%);
  }
  .node-enterprise { top: 38px; }
  .node-agent { top: 158px; bottom: auto; }
  .node-core {
    top: 278px;
    transform: translateX(-50%);
  }
  .node-service { top: 418px; }
  .node-growth { top: 538px; bottom: auto; }
  .flow-theater[data-flow-stage="2"] .node-core,
  .flow-theater[data-flow-stage="0"] .node-enterprise,
  .flow-theater[data-flow-stage="1"] .node-agent,
  .flow-theater[data-flow-stage="3"] .node-service,
  .flow-theater[data-flow-stage="4"] .node-growth {
    transform: translateX(-50%) translateY(-4px);
  }
  .flow-insight {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin: 18px;
    padding-top: 640px;
    grid-template-columns: 1fr;
  }
  .flow-outcomes {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0 18px 18px;
    grid-template-columns: 1fr;
  }
  .ai-narrator { position: static; width: auto; margin: 16px; max-height: none; }
}

@keyframes packetFlowMobile {
  0% { top: 0%; opacity: 0; }
  7% { opacity: 1; }
  22% { top: 22%; }
  44% { top: 44%; }
  66% { top: 66%; }
  88% { top: 100%; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-packet,
  .data-theater path {
    animation: none !important;
  }
}
