/* ==========================================================================
   WORKFLOWS page — hero "Product · Workflows".
   Light, single-column hero with copy pulled left (asymmetric, soft blue
   glow top-right). Signature = a live SIGNAL TOKEN travelling left→right
   along a concrete 4-step pipeline example on a loop, while the POLICY-CHECK
   card stays fixed with a blue border ("the control never leaves").
   ========================================================================== */

.wf-hero {
  position: relative;
  background-color: #fff;
  padding: 118px 0 104px;
  overflow: hidden;
}

.wf-hero__glow {
  position: absolute;
  top: -18%;
  right: -8%;
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(0, 54, 250, 0.10), rgba(0, 54, 250, 0.03) 55%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.wf-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.wf-hero__copy {
  max-width: 720px;
}

.wf-hero__kicker {
  position: relative;
  padding-left: 21px;
  font-family: "Cabin", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-image: linear-gradient(90deg, #0036fa, #4e87fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.wf-hero__kicker::before,
.wf-hero__kicker::after {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 4px;
  border-radius: 1px;
}

.wf-hero__kicker::before {
  top: calc(50% - 4px);
  background: linear-gradient(to right, #0036fa, #c0e2f9);
}

.wf-hero__kicker::after {
  top: 50%;
  width: 14px;
  background: linear-gradient(to right, #c0e2f9, #0036fa);
}

.wf-hero__title {
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: #0a0c11;
  margin-top: 22px;
  text-wrap: balance;
}

.wf-hero__subtitle {
  font-family: "Cabin", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #4d4d4d;
  max-width: 620px;
  margin-top: 22px;
}

.wf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.wf-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 10px;
  font-family: "Cabin", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.wf-hero__btn--solid {
  color: #fff;
  background-image: linear-gradient(90deg, #0036fa, #4e87fc);
  box-shadow: 0 12px 28px rgba(0, 54, 250, 0.28);
}

.wf-hero__btn--solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0, 54, 250, 0.4);
}

.wf-hero__btn--ghost {
  color: #0a0c11;
  background-color: #fff;
  border: 1px solid #d7dbe6;
}

.wf-hero__btn--ghost:hover {
  border-color: #4e87fc;
  color: #0036fa;
  background-color: rgba(78, 135, 252, 0.06);
}

/* ---------- pipeline strip (signature) ---------- */
.wf-hero__flow {
  position: relative;
  margin-top: 56px;
  background-color: #fff;
  border: 1px solid #e7e9f0;
  border-radius: 8px;
  padding: 30px 30px 32px;
  box-shadow: 0 30px 60px -46px rgba(10, 22, 60, 0.4);
}

.wf-hero__flow-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.wf-hero__flow-label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a91a3;
}

.wf-hero__flow-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0036fa;
}

.wf-hero__flow-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-image: linear-gradient(135deg, #0036fa, #4e87fc);
  box-shadow: 0 0 0 0 rgba(0, 54, 250, 0.45);
  animation: wfPing 2.4s ease-out infinite;
}

@keyframes wfPing {
  0%   { box-shadow: 0 0 0 0 rgba(0, 54, 250, 0.4); }
  70%  { box-shadow: 0 0 0 7px rgba(0, 54, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 54, 250, 0); }
}

.wf-hero__track {
  position: relative;
  display: flex;
  align-items: stretch;
}

.wf-hero__step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid #eceef4;
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #fff;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.wf-hero__step:hover {
  transform: translateY(-2px);
  border-color: #cfd7ee;
  box-shadow: 0 16px 30px -22px rgba(10, 22, 60, 0.45);
}

.wf-hero__step-kicker {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-image: linear-gradient(90deg, #0036fa, #4e87fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wf-hero__step-title {
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: #0a0c11;
}

.wf-hero__step-sub {
  font-family: "Cabin", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #6b7280;
  margin-top: auto;
}

.wf-hero__step--focus {
  border-color: #4e87fc;
  box-shadow: inset 0 0 0 1px rgba(78, 135, 252, 0.5);
  background-color: rgba(0, 54, 250, 0.028);
}

.wf-hero__step--focus:hover {
  border-color: #0036fa;
}

.wf-hero__step--focus::after {
  content: "control";
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4e87fc;
}

.wf-hero__arrow {
  flex: 0 0 auto;
  width: 54px;
  display: grid;
  place-items: center;
  color: #b9c0d4;
}

.wf-hero__arrow svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* signature — a live signal token travelling the whole pipeline on a loop */
.wf-hero__token {
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(0,54,250,0), #4e87fc 45%, #0036fa 55%, rgba(0,54,250,0));
  box-shadow: 0 0 12px rgba(0, 54, 250, 0.55);
  pointer-events: none;
  opacity: 0;
}

.wf-hero__flow.is-in .wf-hero__token {
  animation: wfTravel 3.8s cubic-bezier(0.6, 0, 0.35, 1) 0.5s infinite;
}

@keyframes wfTravel {
  0%   { left: 2%;  opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 98%; opacity: 0; }
}

/* ---------- scroll-reveal (site motion language) ---------- */
.wf-hero__copy > *,
.wf-hero__flow {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.wf-hero__copy.is-in > *,
.wf-hero__flow.is-in {
  opacity: 1;
  transform: none;
}

.wf-hero__copy.is-in > *:nth-child(1) { transition-delay: 0.02s; }
.wf-hero__copy.is-in > *:nth-child(2) { transition-delay: 0.10s; }
.wf-hero__copy.is-in > *:nth-child(3) { transition-delay: 0.18s; }
.wf-hero__copy.is-in > *:nth-child(4) { transition-delay: 0.26s; }

.wf-hero__step,
.wf-hero__arrow {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.wf-hero__flow.is-in .wf-hero__step,
.wf-hero__flow.is-in .wf-hero__arrow {
  opacity: 1;
  transform: none;
}

.wf-hero__flow.is-in .wf-hero__track > *:nth-child(1) { transition-delay: 0.34s; }
.wf-hero__flow.is-in .wf-hero__track > *:nth-child(2) { transition-delay: 0.42s; }
.wf-hero__flow.is-in .wf-hero__track > *:nth-child(3) { transition-delay: 0.50s; }
.wf-hero__flow.is-in .wf-hero__track > *:nth-child(4) { transition-delay: 0.58s; }
.wf-hero__flow.is-in .wf-hero__track > *:nth-child(5) { transition-delay: 0.66s; }
.wf-hero__flow.is-in .wf-hero__track > *:nth-child(6) { transition-delay: 0.74s; }
.wf-hero__flow.is-in .wf-hero__track > *:nth-child(7) { transition-delay: 0.82s; }

@media (prefers-reduced-motion: reduce) {
  .wf-hero__copy > *,
  .wf-hero__flow,
  .wf-hero__step,
  .wf-hero__arrow {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wf-hero__token,
  .wf-hero__flow-live::before {
    animation: none;
  }
  .wf-hero__token { opacity: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .wf-hero { padding: 88px 0 76px; }
  .wf-hero__inner { padding: 0 24px; }
  .wf-hero__title { font-size: 42px; }
  .wf-hero__glow { width: 420px; height: 420px; }
}

@media (max-width: 860px) {
  .wf-hero__track {
    flex-direction: column;
  }
  .wf-hero__arrow {
    width: 100%;
    height: 40px;
    transform: rotate(90deg);
  }
  .wf-hero__flow.is-in .wf-hero__arrow {
    transform: rotate(90deg);
  }
  .wf-hero__arrow {
    opacity: 0;
  }
  .wf-hero__flow.is-in .wf-hero__arrow { opacity: 1; }
  .wf-hero__token { display: none; }
  .wf-hero__step--focus::after { top: 12px; }
}

@media (max-width: 600px) {
  .wf-hero__title { font-size: 33px; }
  .wf-hero__flow { padding: 22px 18px 24px; }
}
