:root {
  --process-emerald: #34d399;
  --process-emerald-soft: rgba(52, 211, 153, 0.14);
  --process-border: rgba(255, 255, 255, 0.09);
  --process-panel: rgba(17, 24, 39, 0.78);
}

.process-hero,
.process-catalog-hero {
  background:
    radial-gradient(circle at 18% 12%, rgba(52, 211, 153, 0.2), transparent 30rem),
    radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.1), transparent 28rem),
    linear-gradient(135deg, #022c22 0%, #090a11 45%, #0a0a0a 100%);
}

.process-grid {
  background-image:
    linear-gradient(rgba(52, 211, 153, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

.process-gradient-text {
  background: linear-gradient(135deg, #a7f3d0, #34d399 48%, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.process-chip,
.process-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.process-chip,
.process-status--published {
  background: rgba(6, 78, 59, 0.24);
  color: #6ee7b7;
}

.process-status--in_validation {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(120, 53, 15, 0.2);
  color: #fcd34d;
}

.process-status--planned {
  border-color: rgba(107, 114, 128, 0.35);
  background: rgba(31, 41, 55, 0.7);
  color: #9ca3af;
}

.process-card,
.process-surface {
  border: 1px solid var(--process-border);
  background: var(--process-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.process-card {
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.process-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(31, 41, 55, 0.82);
}

.process-pipeline-step {
  position: relative;
}

.process-pipeline-node {
  position: relative;
  z-index: 2;
}

.process-pipeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3rem;
  right: -1.5rem;
  width: 3rem;
  border-top: 1px solid rgba(52, 211, 153, 0.55);
}

.process-pipeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: calc(3rem - 0.25rem);
  right: -1.55rem;
  border-top: 0.25rem solid transparent;
  border-bottom: 0.25rem solid transparent;
  border-left: 0.42rem solid rgba(52, 211, 153, 0.72);
}

.process-showcase {
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 1rem;
  background: #070b14;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46), 0 0 65px rgba(16, 185, 129, 0.08);
}

.process-showcase iframe {
  display: block;
  width: 100%;
  height: min(76vh, 760px);
  min-height: 560px;
  border: 0;
  background: #0b1020;
}

.process-metric {
  border-left: 3px solid var(--process-emerald);
  background: rgba(6, 78, 59, 0.13);
}

.process-input {
  width: 100%;
  border: 1px solid rgba(107, 114, 128, 0.7);
  border-radius: 0.5rem;
  background: #0a0a0a;
  color: #fff;
  padding: 0.72rem 0.8rem;
}

.process-input:focus {
  border-color: var(--process-emerald);
  outline: 3px solid rgba(52, 211, 153, 0.16);
  outline-offset: 1px;
}

.process-card a:focus-visible,
.process-showcase a:focus-visible,
.process-evidence-action:focus-visible,
.process-chip:focus-visible {
  outline: 3px solid rgba(52, 211, 153, 0.7);
  outline-offset: 3px;
}

.process-pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--process-emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  animation: process-pulse 2s infinite;
}

@keyframes process-pulse {
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@media (max-width: 1023px) {
  .process-pipeline-step:not(:last-child)::after {
    top: 100%;
    right: auto;
    left: 3rem;
    width: 0;
    height: 1.5rem;
    border-top: 0;
    border-left: 1px solid rgba(52, 211, 153, 0.55);
  }

  .process-pipeline-step:not(:last-child)::before {
    top: calc(100% + 1.15rem);
    right: auto;
    left: calc(3rem - 0.22rem);
    border-top: 0.42rem solid rgba(52, 211, 153, 0.72);
    border-right: 0.25rem solid transparent;
    border-bottom: 0;
    border-left: 0.25rem solid transparent;
  }
}

@media (max-width: 640px) {
  .process-showcase iframe {
    height: 68vh;
    min-height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-card,
  .process-pulse {
    animation: none;
    transition: none;
  }
}
