/**
 * Agentic Workflow Engine - hero cycle stage.
 */

/* ---- Hero stage ---- */
.linkle-awe-hero-stage {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(15, 108, 189, 0.18), transparent 70%),
    linear-gradient(180deg, #0d1526 0%, #0b1220 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: 0 1.25rem 3rem rgba(11, 18, 32, 0.35);
}

.linkle-awe-hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Cycle diagram ---- */
.linkle-awe-cycle {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 280px;
  padding: 2rem 1.25rem 2.25rem;
}

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

.linkle-awe-cycle__svg path {
  fill: none;
  stroke: #3d9aef;
  stroke-width: 2;
  stroke-dasharray: 5 8;
  opacity: 0.55;
}

.linkle-awe-cycle__svg .linkle-awe-dot {
  fill: #7ec4ff;
  filter: drop-shadow(0 0 6px rgba(126, 196, 255, 0.9));
}

.linkle-awe-cycle__label {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.linkle-awe-cycle__track {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
}

.linkle-awe-cycle__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
  gap: 0.45rem;
  padding: 0.25rem 0.15rem;
  transition: transform 0.2s ease;
}

.linkle-awe-cycle__step.is-active .linkle-awe-cycle__icon {
  border-color: #0f6cbd;
  background: rgba(15, 108, 189, 0.28);
  box-shadow:
    0 0 0 6px rgba(15, 108, 189, 0.18),
    0 0 28px rgba(15, 108, 189, 0.45);
}

.linkle-awe-cycle__anchor {
  position: absolute;
  top: 1.65rem;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  opacity: 0;
  pointer-events: none;
}

.linkle-awe-cycle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: rgba(18, 28, 48, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #7ec4ff;
  font-size: 1.35rem;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.linkle-awe-cycle__name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.25;
}

.linkle-awe-cycle__sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.2;
}

.linkle-awe-cycle__chevron {
  flex: 0 0 auto;
  align-self: center;
  margin-top: 0.85rem;
  color: rgba(126, 196, 255, 0.45);
  font-size: 0.85rem;
}

@media (max-width: 991.98px) {
  .linkle-awe-cycle {
    min-height: 240px;
    padding: 1.5rem 1rem 1.75rem;
  }

  .linkle-awe-cycle__icon {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.15rem;
  }

  .linkle-awe-cycle__name {
    font-size: 0.7rem;
  }
}

@media (max-width: 767.98px) {
  .linkle-awe-cycle {
    min-height: 0;
    padding: 1.25rem 1rem 1.5rem;
  }

  .linkle-awe-cycle__svg {
    display: none;
  }

  .linkle-awe-cycle__track {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    max-width: 320px;
    margin: 0 auto;
  }

  .linkle-awe-cycle__step {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.85rem;
    background: rgba(18, 28, 48, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .linkle-awe-cycle__step.is-active {
    border-color: rgba(15, 108, 189, 0.55);
    background: rgba(15, 108, 189, 0.16);
  }

  .linkle-awe-cycle__icon {
    flex-shrink: 0;
  }

  .linkle-awe-cycle__name {
    font-size: 0.9rem;
  }

  .linkle-awe-cycle__sub {
    display: inline !important;
    margin-left: 0.35rem;
  }

  .linkle-awe-cycle__sub::before {
    content: "· ";
  }
}

@media (prefers-reduced-motion: reduce) {
  .linkle-awe-cycle__svg .linkle-awe-dot {
    display: none !important;
  }

  .linkle-awe-cycle__step {
    transition: none;
  }
}
