/* ============================================================
   NEXORA · Sections / Core Product Loop
   Learn → Build → Prove → Connect → Opportunity
   ============================================================ */

.loop-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-12);
}

/* Connecting track */
.loop-steps::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 2px;
  background:
    linear-gradient(90deg, var(--border) 0 8%, transparent 8% 100%),
    var(--gradient-brand);
  opacity: 0.35;
  border-radius: 2px;
}

.loop-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
  padding: 0 0.5rem;
}

.loop-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: border-color var(--dur), color var(--dur), box-shadow var(--dur);
}

.loop-node .icon {
  width: 1.5em;
  height: 1.5em;
}

/* Travelling highlight along the loop */
.loop-node {
  animation: node-travel 7.5s var(--ease-out) infinite;
}
.loop-step:nth-child(1) .loop-node { animation-delay: 0s; }
.loop-step:nth-child(2) .loop-node { animation-delay: 1.5s; }
.loop-step:nth-child(3) .loop-node { animation-delay: 3s; }
.loop-step:nth-child(4) .loop-node { animation-delay: 4.5s; }
.loop-step:nth-child(5) .loop-node { animation-delay: 6s; }

.loop-num {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  background: var(--bg-page);
  border: 1px solid var(--border-accent);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
}

.loop-step h3 {
  font-size: 1.12rem;
}

.loop-step p {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 15rem;
}

/* Loop-back banner */
.loop-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.1rem 1.5rem;
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-full);
  width: fit-content;
  margin-inline: auto;
  color: var(--text-2);
  font-size: 0.92rem;
  background: var(--surface);
}

.loop-back .icon {
  color: var(--accent-2);
  animation: spin-slow 6s linear infinite;
}

.loop-back b {
  color: var(--text-1);
  font-weight: 600;
}
