/* Generative AI enrichment flow — reference-style attractive diagram */

.enrich-flow {
  --blue: #0000ff;
  --ink: #0f172a;
  --mute: #64748b;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: Poppins, sans-serif;
  color: var(--ink);
}

.enrich-flow__canvas {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.enrich-flow__label {
  margin: 0 0 0.3rem;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.enrich-flow__label--in { color: #1d4ed8; }
.enrich-flow__label--out { color: #059669; }

.enrich-flow__panel--out {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #a7f3d0;
  gap: 0.18rem;
  padding: 0.3rem;
}

.enrich-flow__center {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  pointer-events: none;
  width: max-content;
  max-width: 42%;
}

.enrich-flow__center-title {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.enrich-flow__center-sub {
  margin: 0.1rem 0 0;
  font-size: 8px;
  font-weight: 600;
  color: var(--mute);
  line-height: 1.25;
}

.enrich-flow__out {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 0.45rem;
  padding: 0.18rem 0.3rem;
  opacity: 0.4;
  transform: translateX(4px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.enrich-flow__out.is-on {
  opacity: 1;
  transform: translateX(0);
  border-color: #6ee7b7;
}

.enrich-flow__out-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.enrich-flow__out-text {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.enrich-flow__out-lines {
  display: none;
}

.enrich-flow__out-lines i {
  display: block;
  height: 2.5px;
  border-radius: 999px;
  background: #e2e8f0;
}

.enrich-flow__out-lines i:first-child { width: 92%; }
.enrich-flow__out-lines i:last-child { width: 68%; }

.enrich-flow__out-ico {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.3rem;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
}

.enrich-flow__out-ico svg {
  width: 0.7rem;
  height: 0.7rem;
}

.enrich-flow__out-ico--green { background: #10b981; }
.enrich-flow__out-ico--violet { background: #8b5cf6; }
.enrich-flow__out-ico--amber { background: #f59e0b; }
.enrich-flow__out-ico--blue { background: #3b82f6; }
.enrich-flow__out-ico--pink { background: #ec4899; }
.enrich-flow__out-ico--magenta { background: #d946ef; }

.enrich-flow__check {
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 7px;
  font-weight: 800;
  color: #fff;
  background: #10b981;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.enrich-flow__out.is-on .enrich-flow__check {
  opacity: 1;
  transform: scale(1);
}

.enrich-flow__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.enrich-flow__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  pointer-events: none;
}

.enrich-flow__core {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}

.enrich-flow__core-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 0, 255, 0.28);
  animation: enrich-ring 2.8s ease-in-out infinite;
}

.enrich-flow__core-ring--2 {
  inset: -16px;
  border-color: rgba(0, 0, 255, 0.14);
  animation-delay: -1.2s;
}

.enrich-flow__core-orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #5c5cff, #0000ff 55%, #0000aa);
  box-shadow:
    0 0 0 6px rgba(0, 0, 255, 0.1),
    0 10px 22px rgba(0, 0, 255, 0.32);
}

.enrich-flow__core-orb svg {
  width: 24px;
  height: 24px;
}

.enrich-flow__dash {
  animation: enrich-dash 4.5s linear infinite;
}

.enrich-flow__col {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 28%;
  min-width: 0;
  height: auto;
}

.enrich-flow__col--in {
  left: 0;
  padding-right: 0.15rem;
}

.enrich-flow__col--out {
  right: 0;
  padding-left: 0.15rem;
}

.enrich-flow__panel {
  flex: none;
  height: auto;
  border-radius: 0.75rem;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.enrich-flow__panel--in {
  background: linear-gradient(180deg, #f5f3ff 0%, #eef2ff 100%);
  border: 1px solid #ddd6fe;
}

.enrich-flow__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid #e9e4ff;
  border-radius: 0.55rem;
  padding: 0.32rem 0.4rem;
  box-shadow: 0 6px 14px -12px rgba(79, 70, 229, 0.45);
  opacity: 0.55;
  transform: translateX(-4px);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.enrich-flow__item.is-on {
  opacity: 1;
  transform: translateX(0);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 255, 0.3);
  border-color: #c7d2fe;
}

.enrich-flow__ico {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
}

.enrich-flow__ico svg {
  width: 0.95rem;
  height: 0.95rem;
}

.enrich-flow__ico--blue {
  color: #1d4ed8;
  background: #dbeafe;
}

.enrich-flow__ico--green {
  color: #047857;
  background: #d1fae5;
}

.enrich-flow__ico--amber {
  color: #b45309;
  background: #fef3c7;
}

.enrich-flow__bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.enrich-flow__bars i {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
}

.enrich-flow__bars i:nth-child(1) { width: 88%; }
.enrich-flow__bars i:nth-child(2) { width: 64%; }
.enrich-flow__bars i:nth-child(3) { width: 74%; }

.enrich-flow__outcomes {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.4rem 0.35rem 0.35rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.4);
}

.enrich-flow__outcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  color: #64748b;
  transition: transform 0.25s ease;
}

.enrich-flow__outcome.is-on {
  transform: translateY(-2px);
}

.enrich-flow__outcome-ico {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.enrich-flow__outcome-ico svg {
  width: 0.95rem;
  height: 0.95rem;
}

.enrich-flow__outcome-ico--violet {
  color: #7c3aed;
  background: #ede9fe;
}

.enrich-flow__outcome-ico--green {
  color: #059669;
  background: #d1fae5;
}

.enrich-flow__outcome-ico--teal {
  color: #0d9488;
  background: #ccfbf1;
}

.enrich-flow__outcome-ico--purple {
  color: #6d28d9;
  background: #ede9fe;
}

.enrich-flow__outcome-ico--orange {
  color: #ea580c;
  background: #ffedd5;
}

.enrich-flow__outcome.is-on .enrich-flow__outcome-ico {
  box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.1);
  transform: scale(1.06);
}

.enrich-flow__outcome-text {
  display: block;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1.2;
  color: #334155;
  letter-spacing: 0.01em;
}

.enrich-flow__outcome.is-on .enrich-flow__outcome-text {
  color: #0f172a;
}

@keyframes enrich-dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -140; }
}

@keyframes enrich-ring {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.05); }
}

@media (max-width: 420px) {
  .enrich-flow__center-sub { display: none; }
  .enrich-flow__out-text { font-size: 8.5px; }
  .enrich-flow__outcome-text { font-size: 6.5px; }
  .enrich-flow__outcome-ico { width: 1.7rem; height: 1.7rem; }
}
