/* ============================================================
   ForgeMint: "wow" layer (progressive enhancement; motion is
   owned by motion.js, these are its styles)
   ============================================================ */

/* display accent: a serif italic warm phrase inside a sans headline */
.hl {
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400;
  color: var(--accent); letter-spacing: -.01em;
}

/* section beat labels (film chapter marks) */
.beat-label {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin: 0 0 var(--space-3); font-family: var(--mono); font-size: var(--text-label);
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent);
}
.beat-label::before { content: ""; width: var(--space-4); height: 1px; background: var(--accent); opacity: .7; }

/* Workflow */
#services { padding-bottom: clamp(24px, 4vw, 48px); }
#how { padding-top: clamp(24px, 4vw, 48px); }
.workflow-panel {
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface);
}
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6);
  margin: 0; padding: 0; list-style: none;
}
.step {
  --wire-stop: calc(var(--wire-progress, 0) * 100%);
  --wire-length: calc(100% + var(--space-6) - 36px);
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
}
.step:not(:last-child)::before {
  content: ""; position: absolute; top: 18px; left: 36px; right: calc(-1 * var(--space-6));
  height: 1px;
  background: linear-gradient(var(--wire-direction, to right), var(--accent) var(--wire-stop), var(--border-strong) var(--wire-stop));
}
.step.is-transmitting::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  top: 18px; left: calc(36px + var(--wire-length) * var(--wire-progress));
  width: 6px; height: 6px; border-radius: var(--radius-pill); transform: translate(-50%, -50%);
  background: var(--text);
  box-shadow: 0 0 7px 2px var(--accent), 0 0 18px color-mix(in srgb, var(--accent) 65%, transparent);
}
.step-no {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: var(--space-4);
  border-radius: var(--radius-sm); border: 1px solid var(--accent-border);
  background: var(--surface-inset); color: var(--accent-hi); font: 12px var(--font-mono);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.step.is-reached .step-no {
  background: var(--surface-hover); border-color: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.step p { margin: var(--space-2) 0 var(--space-4); color: var(--text-dim); font-size: 14px; }
.step .section-link { margin-top: auto; }

.stats-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4);
  margin-top: clamp(24px, 4vw, 40px); padding-top: var(--space-5); border-top: 1px solid var(--border);
}
.stat b { display: block; font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.03em; }
.stat span { display: block; font-size: 13px; color: var(--text-dim); }

/* ============================================================
   Batch B · Global  (8 progress · 9 smooth)
   ============================================================ */

/* 8 · scroll playhead: a film scrubber with beat ticks */
#fx-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 130;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--info), var(--accent) 55%, var(--accentHi));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
  pointer-events: none;
}
#fx-progress::after {
  content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 7px;
  background-image: repeating-linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 38%, transparent) 0 1px, transparent 1px var(--scrubber-tick));
}

/* Supported networks and launchpads */
.integration-panel {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface);
}
.integration-panel h2 { font-size: clamp(19px, 2.45vw, 26px); }
.chain-band > h2 { margin-bottom: var(--space-4); }
.chain-grid {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin: 0; padding: 0; list-style: none;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 5px 10px; border-radius: var(--radius-pill); font-size: var(--text-sm); color: var(--text-dim);
  border: 1px solid var(--chip-border); background: var(--chip-bg);
}
.chain-grid .chip img { flex: none; width: 20px; height: 20px; object-fit: contain; }
.integration-panel .chip { animation: chain-drift 4.8s ease-in-out infinite; }
.integration-panel .chip:nth-child(3n + 2) { animation-delay: -1.6s; }
.integration-panel .chip:nth-child(3n) { animation-delay: -3.2s; }
@keyframes chain-drift {
  50% { transform: translateY(-3px); }
}

.launchpad-band {
  margin-top: var(--space-6); padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.launchpad-note { margin: var(--space-2) 0 var(--space-4); color: var(--text-dim); font-size: var(--text-sm); }
.launchpad-note:last-child { margin: var(--space-4) 0 0; }

/* 18 · FAQ polish */
.faq-item { transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease); }
.faq-item[open] {
  border-color: var(--borderHi);
  background: var(--surface-2);
  box-shadow: 0 24px 60px -44px color-mix(in srgb, var(--accent) 50%, transparent);
}
.faq-q { transition: color .18s var(--ease), background-color .18s var(--ease); }
.faq-q:hover { color: var(--text); background: var(--surface-hover); }
.faq-q:hover .plus::before, .faq-q:hover .plus::after { background: var(--accentHi); }
/* ---------- reduced motion: keep the content, drop the motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .card, .btn, .faq-item, .faq-q, .faq-q .plus::after, .step-no,
  #fx-progress { transition: none; }

  .btn:hover, .btn:active { transform: none; }

}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); --wire-direction: to bottom; }
  .step { padding-left: calc(36px + var(--space-3)); }
  .step-no { position: absolute; top: 0; left: 0; }
  .step:not(:last-child)::before {
    top: 36px; left: 17px; right: auto; bottom: calc(-1 * var(--space-6)); width: 1px; height: auto;
  }
  .step.is-transmitting::after { top: calc(36px + var(--wire-length) * var(--wire-progress)); left: 17px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
