/* =======================================================================
   Purple AI × INDEX — Diagnóstico Manufactura
   Page-scoped styles. Reuses tokens, btn--hero-cta, site-header & footer
   from styles.css. New tokens stay scoped to .page-mfg to avoid leaks.
   ======================================================================= */

.page-mfg {
  --mfg-teal: #5eead4;
  --mfg-teal-bright: #2dd4bf;
  --mfg-teal-soft: rgba(94, 234, 212, 0.16);
  --mfg-teal-line: rgba(94, 234, 212, 0.32);
  --mfg-gold: #fbbf24;
  --mfg-gold-soft: rgba(251, 191, 36, 0.16);
  --mfg-gold-line: rgba(251, 191, 36, 0.34);
  --mfg-card-bg: linear-gradient(165deg, rgba(18, 18, 22, 0.62) 0%, rgba(8, 8, 11, 0.94) 100%);
  --mfg-card-border: rgba(255, 255, 255, 0.11);
  --mfg-card-border-strong: rgba(255, 255, 255, 0.17);
  --mfg-elev: 0 1px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --mfg-elev-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px color-mix(in srgb, var(--color-accent) 22%, transparent);
  --mfg-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reveal staggers for the manufactura page (parallels what styles.css does
   for the main page's sections). */
html.reveal-enabled .page-mfg .reveal {
  --reveal-delay: 0s;
}

.page-mfg .mfg-alliance__inner > .reveal:nth-child(1) { --reveal-delay: 0s; }
.page-mfg .mfg-alliance__inner > .reveal:nth-child(2) { --reveal-delay: 0.06s; }
.page-mfg .mfg-alliance__inner > .reveal:nth-child(3) { --reveal-delay: 0.12s; }

.page-mfg .mfg-hero__copy > .reveal:nth-child(1) { --reveal-delay: 0s; }
.page-mfg .mfg-hero__copy > .reveal:nth-child(2) { --reveal-delay: 0.06s; }
.page-mfg .mfg-hero__copy > .reveal:nth-child(3) { --reveal-delay: 0.12s; }
.page-mfg .mfg-hero__copy > .reveal:nth-child(4) { --reveal-delay: 0.18s; }
.page-mfg .mfg-hero__copy > .reveal:nth-child(5) { --reveal-delay: 0.24s; }
.page-mfg .mfg-hero__side > .reveal:nth-child(1) { --reveal-delay: 0.18s; }

.page-mfg .mfg-areas__grid .mfg-area.reveal:nth-child(1) { --reveal-delay: 0.04s; }
.page-mfg .mfg-areas__grid .mfg-area.reveal:nth-child(2) { --reveal-delay: 0.1s; }
.page-mfg .mfg-areas__grid .mfg-area.reveal:nth-child(3) { --reveal-delay: 0.16s; }
.page-mfg .mfg-areas__grid .mfg-area.reveal:nth-child(4) { --reveal-delay: 0.22s; }
.page-mfg .mfg-areas__grid .mfg-area.reveal:nth-child(5) { --reveal-delay: 0.28s; }

.page-mfg .mfg-steps .mfg-step.reveal:nth-child(1) { --reveal-delay: 0.02s; }
.page-mfg .mfg-steps .mfg-step.reveal:nth-child(2) { --reveal-delay: 0.1s; }
.page-mfg .mfg-steps .mfg-step.reveal:nth-child(3) { --reveal-delay: 0.18s; }
.page-mfg .mfg-steps .mfg-step.reveal:nth-child(4) { --reveal-delay: 0.26s; }

.page-mfg .mfg-context__stats .mfg-stat.reveal:nth-child(1) { --reveal-delay: 0.04s; }
.page-mfg .mfg-context__stats .mfg-stat.reveal:nth-child(2) { --reveal-delay: 0.1s; }
.page-mfg .mfg-context__stats .mfg-stat.reveal:nth-child(3) { --reveal-delay: 0.16s; }
.page-mfg .mfg-context__stats .mfg-stat.reveal:nth-child(4) { --reveal-delay: 0.22s; }

/* ——— Shared eyebrow + section title ——— */
.mfg-eyebrow {
  margin: 0 0 clamp(10px, 1.6vw, 14px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
}

.mfg-eyebrow--center {
  text-align: center;
}

.mfg-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.034em;
  line-height: 1.1;
  color: var(--text-heading-on-dark);
  text-wrap: balance;
}

.mfg-accent--teal {
  color: var(--mfg-teal);
}

.mfg-accent--muted {
  color: var(--color-text-muted);
}

/* ——— Pills (eyebrow badges in hero) ——— */
.mfg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.mfg-pill--teal {
  color: var(--mfg-teal);
  background: var(--mfg-teal-soft);
  border-color: var(--mfg-teal-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mfg-pill--teal .mfg-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--mfg-teal-bright);
  box-shadow: 0 0 10px var(--mfg-teal-bright);
  animation: mfg-blink 1.6s ease-in-out infinite;
}

.mfg-pill--gold {
  color: var(--mfg-gold);
  background: var(--mfg-gold-soft);
  border-color: var(--mfg-gold-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mfg-pill__icon {
  font-size: 11.5px;
  line-height: 1;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--mfg-gold) 60%, transparent));
}

@keyframes mfg-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ============================================================
   Alliance Bar (slim strip below site-header)
   ============================================================ */
.mfg-alliance {
  position: relative;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(
      ellipse 80% 100% at 50% 50%,
      color-mix(in srgb, var(--color-accent) 6%, transparent) 0%,
      transparent 70%
    ),
    #050507;
  padding: clamp(10px, 1.4vw, 14px) max(var(--page-gutter-x), env(safe-area-inset-right, 0px))
    clamp(10px, 1.4vw, 14px) max(var(--page-gutter-x), env(safe-area-inset-left, 0px));
}

.mfg-alliance__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 1.8vw, 18px);
  font-size: 12px;
}

.mfg-alliance__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.mfg-alliance__ping {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
}

.mfg-alliance__ping-dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--mfg-teal-bright);
  box-shadow: 0 0 8px var(--mfg-teal);
}

.mfg-alliance__ping-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--mfg-teal);
  animation: mfg-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes mfg-ping {
  0% { transform: scale(0.6); opacity: 0.95; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}

.mfg-alliance__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mfg-card-border);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mfg-alliance__badge-mark {
  color: #fff;
}

.mfg-alliance__badge-mark--alt {
  color: var(--mfg-teal);
}

.mfg-alliance__badge-x {
  color: var(--color-text-dim);
  font-weight: 400;
}

.mfg-alliance__loc {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .mfg-alliance__inner {
    font-size: 11.5px;
    gap: 10px;
  }
  .mfg-alliance__badge {
    font-size: 12px;
    padding: 5px 11px;
  }
  .mfg-alliance__loc {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   HERO (split copy + side card)
   ============================================================ */
.mfg-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 9vw, 96px) max(var(--page-gutter-x), env(safe-area-inset-right, 0px))
    clamp(56px, 9vw, 96px) max(var(--page-gutter-x), env(safe-area-inset-left, 0px));
  background:
    radial-gradient(
      ellipse 76% 60% at 18% -10%,
      color-mix(in srgb, var(--color-accent) 18%, transparent) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 40% at 96% 120%,
      color-mix(in srgb, var(--mfg-teal) 6%, transparent) 0%,
      transparent 60%
    ),
    var(--color-bg);
}

.mfg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
}

.mfg-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.mfg-hero__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 22px);
  max-width: 38rem;
}

.mfg-hero__eyebrows {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mfg-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.036em;
  line-height: 1.04;
  color: var(--text-heading-on-dark);
  text-wrap: balance;
}

.mfg-hero__lede {
  margin: 0;
  max-width: 38ch;
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.6;
  color: var(--text-on-surface);
}

.mfg-hero__lede strong {
  color: #fff;
  font-weight: 600;
}

.mfg-hero__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.mfg-hero__chips li {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--mfg-card-border);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-on-surface);
  letter-spacing: 0.01em;
}

.mfg-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: clamp(4px, 1vw, 8px);
}

.mfg-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mfg-cta-primary__arrow {
  display: inline-block;
  transition: transform 0.25s var(--mfg-ease);
}

.mfg-cta-primary:hover .mfg-cta-primary__arrow {
  transform: translateX(3px);
}

.mfg-hero__price {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  line-height: 1.3;
}

.mfg-hero__price-strike {
  color: var(--color-text-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  font-weight: 500;
}

.mfg-hero__price-note {
  color: var(--mfg-teal);
  font-weight: 600;
  letter-spacing: 0.005em;
}

/* —— Hero side: deliverables + scarcity —— */
.mfg-hero__side {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 18px);
  min-width: 0;
}

.mfg-deliverables {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--mfg-card-border);
  background: var(--mfg-card-bg);
  box-shadow: var(--mfg-elev);
  padding: clamp(20px, 2.4vw, 26px);
  overflow: hidden;
}

.mfg-deliverables::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 50% at 50% -20%,
    color-mix(in srgb, var(--color-accent-bright) 14%, transparent) 0%,
    transparent 70%
  );
}

.mfg-deliverables__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(16px, 2vw, 20px);
  position: relative;
  z-index: 1;
}

.mfg-deliverables__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 16.5px);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #fff;
}

.mfg-deliverables__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(124, 110, 247, 0.14);
  border: 1px solid rgba(124, 110, 247, 0.28);
  color: var(--color-accent-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.mfg-deliverables__list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mfg-deliverable {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mfg-deliverable:first-child {
  border-top: none;
  padding-top: 0;
}

.mfg-deliverable:last-child {
  padding-bottom: 0;
}

.mfg-deliverable__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--mfg-teal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.mfg-deliverable:nth-child(2) .mfg-deliverable__icon { color: #7dd3fc; }
.mfg-deliverable:nth-child(3) .mfg-deliverable__icon { color: var(--mfg-gold); }
.mfg-deliverable:nth-child(4) .mfg-deliverable__icon { color: var(--color-accent-bright); }

.mfg-deliverable__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mfg-deliverable__step {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.mfg-deliverable__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.3;
}

.mfg-deliverable__desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

@media (max-width: 960px) {
  .mfg-hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 40px);
  }
  .mfg-hero__copy {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .mfg-hero__title {
    font-size: clamp(34px, 9.4vw, 48px);
  }
  .mfg-hero__cta-row {
    width: 100%;
  }
  .mfg-cta-primary {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }
  .mfg-hero__price {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================
   ÁREAS DE EVALUACIÓN (5-col grid)
   ============================================================ */
.mfg-areas {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 11vw, 108px) max(var(--page-gutter-x), env(safe-area-inset-right, 0px))
    clamp(56px, 9vw, 100px) max(var(--page-gutter-x), env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: #020203;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: 11px 9px;
}

.mfg-areas::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 78% 62% at 50% -8%,
    color-mix(in srgb, var(--color-accent) 8%, transparent) 0%,
    transparent 58%
  );
}

.mfg-areas__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
}

.mfg-areas__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.mfg-areas__head-l {
  min-width: 0;
}

.mfg-areas__intro {
  margin: 0;
  font-size: clamp(14.5px, 1.32vw, 16.5px);
  line-height: 1.6;
  color: var(--text-on-surface);
  max-width: 44ch;
}

.mfg-areas__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.mfg-area {
  position: relative;
  padding: clamp(20px, 2.4vw, 24px) clamp(16px, 2vw, 20px) clamp(20px, 2.4vw, 24px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--mfg-card-border);
  background: var(--mfg-card-bg);
  box-shadow: var(--mfg-elev);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  transition:
    border-color 0.35s var(--mfg-ease),
    box-shadow 0.35s var(--mfg-ease),
    transform 0.35s var(--mfg-ease);
}

.mfg-area::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--mfg-ease);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-accent-bright) 12%, transparent) 0%,
    transparent 42%,
    transparent 58%,
    color-mix(in srgb, var(--color-accent) 10%, transparent) 100%
  );
}

.mfg-area::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  pointer-events: none;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center top;
  transition:
    opacity 0.35s var(--mfg-ease),
    transform 0.45s var(--mfg-ease);
  background: linear-gradient(90deg, transparent, var(--color-accent-bright), transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--color-accent) 55%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  .mfg-area:hover {
    border-color: var(--mfg-card-border-strong);
    box-shadow: var(--mfg-elev-hover);
    transform: translateY(-3px);
  }
  .mfg-area:hover::before { opacity: 1; }
  .mfg-area:hover::after { opacity: 1; transform: scaleX(1); }
  .mfg-area:hover .mfg-area__icon {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
  }
}

.mfg-area__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.32s var(--mfg-ease), background 0.32s var(--mfg-ease);
}

.mfg-area__icon--01 { color: #5eead4; }
.mfg-area__icon--02 { color: #7dd3fc; }
.mfg-area__icon--03 { color: #86efac; }
.mfg-area__icon--04 { color: var(--color-accent-bright); }
.mfg-area__icon--05 { color: #fda4af; }

.mfg-area__index {
  position: absolute;
  top: clamp(14px, 1.8vw, 18px);
  right: clamp(14px, 1.8vw, 18px);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1;
}

.mfg-area__title {
  margin: 4px 0 0;
  padding-right: 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #fff;
  line-height: 1.25;
}

.mfg-area__desc {
  margin: 0;
  font-size: clamp(12px, 1vw, 13px);
  line-height: 1.55;
  color: var(--color-text-muted);
  flex-grow: 1;
}

.mfg-area__outcome {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--mfg-teal);
  letter-spacing: 0.005em;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.mfg-area__arrow {
  color: var(--mfg-teal);
  opacity: 0.7;
  font-weight: 400;
}

@media (max-width: 1080px) {
  .mfg-areas__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mfg-areas__grid > .mfg-area:nth-child(4) {
    grid-column: 1 / span 1;
  }
}

@media (max-width: 760px) {
  .mfg-areas__header {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .mfg-areas__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mfg-areas__grid > .mfg-area:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 460px) {
  .mfg-areas__grid {
    grid-template-columns: 1fr;
  }
  .mfg-areas__grid > .mfg-area:nth-child(5) {
    grid-column: auto;
  }
}

/* ============================================================
   TIMELINE (4 steps, vertical with connector)
   ============================================================ */
.mfg-timeline {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 11vw, 108px) max(var(--page-gutter-x), env(safe-area-inset-right, 0px))
    clamp(56px, 9vw, 100px) max(var(--page-gutter-x), env(safe-area-inset-left, 0px));
  background:
    radial-gradient(
      ellipse 60% 38% at 88% -10%,
      color-mix(in srgb, var(--mfg-teal) 8%, transparent) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 36% at 8% 110%,
      color-mix(in srgb, var(--color-accent) 14%, transparent) 0%,
      transparent 58%
    ),
    var(--color-bg);
}

.mfg-timeline__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

.mfg-timeline__header {
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 46rem;
}

.mfg-timeline__header .mfg-section-title {
  margin-top: 4px;
}

.mfg-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.mfg-steps::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 24px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 8%,
    rgba(255, 255, 255, 0.14) 92%,
    transparent 100%
  );
}

.mfg-step {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(14px, 2vw, 18px) 0;
}

.mfg-step__node {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.06), transparent 65%),
    linear-gradient(160deg, rgba(20, 18, 32, 0.95) 0%, rgba(8, 7, 14, 0.95) 100%);
  border: 1px solid rgba(124, 110, 247, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 6px rgba(124, 110, 247, 0.06),
    0 8px 30px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.mfg-step__node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-accent-bright) 26%, transparent) 0%, transparent 65%);
  z-index: -1;
}

.mfg-step__node--final {
  border-color: rgba(94, 234, 212, 0.52);
}

.mfg-step__node--final::after {
  background: radial-gradient(circle, color-mix(in srgb, var(--mfg-teal) 24%, transparent) 0%, transparent 65%);
}

.mfg-step__num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.mfg-step__body {
  border-radius: var(--radius-lg);
  border: 1px solid var(--mfg-card-border);
  background: var(--mfg-card-bg);
  box-shadow: var(--mfg-elev);
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 24px);
  min-width: 0;
}

.mfg-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mfg-step__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  letter-spacing: -0.024em;
  color: #fff;
}

.mfg-step__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent-bright);
  background: rgba(124, 110, 247, 0.14);
  border: 1px solid rgba(124, 110, 247, 0.26);
}

.mfg-step:last-child .mfg-step__badge {
  color: var(--mfg-teal);
  background: var(--mfg-teal-soft);
  border-color: var(--mfg-teal-line);
}

.mfg-step__desc {
  margin: 0;
  font-size: clamp(13.5px, 1.18vw, 15px);
  line-height: 1.6;
  color: var(--text-on-surface);
}

.mfg-step__desc strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 520px) {
  .mfg-step {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
  }
  .mfg-step__node {
    width: 38px;
    height: 38px;
  }
  .mfg-step__num {
    font-size: 12px;
  }
  .mfg-steps::before {
    left: 18px;
  }
}

/* ============================================================
   CONTEXT (2-col: copy + stat cards)
   ============================================================ */
.mfg-context {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 11vw, 108px) max(var(--page-gutter-x), env(safe-area-inset-right, 0px))
    clamp(64px, 11vw, 108px) max(var(--page-gutter-x), env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: #050507;
}

.mfg-context::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 72% 52% at 12% -10%,
    color-mix(in srgb, var(--color-accent) 14%, transparent) 0%,
    transparent 58%
  );
}

.mfg-context__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.mfg-context__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 18px);
  max-width: 44ch;
}

.mfg-context__p {
  margin: 0;
  font-size: clamp(14.5px, 1.3vw, 16.5px);
  line-height: 1.62;
  color: var(--text-on-surface);
}

.mfg-context__p strong {
  color: #fff;
  font-weight: 600;
}

.mfg-highlight {
  margin-top: clamp(10px, 1.4vw, 14px);
  padding: clamp(18px, 2.2vw, 22px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--mfg-card-border);
  background: var(--mfg-card-bg);
  box-shadow: var(--mfg-elev);
  position: relative;
  overflow: hidden;
}

.mfg-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent-bright), var(--mfg-teal));
}

.mfg-highlight__org {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
}

.mfg-highlight__desc {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--text-on-surface);
}

.mfg-highlight__sub {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  color: var(--color-text-muted);
  font-style: italic;
}

.mfg-context__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.mfg-stat {
  position: relative;
  padding: clamp(18px, 2.2vw, 22px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--mfg-card-border);
  background: var(--mfg-card-bg);
  box-shadow: var(--mfg-elev);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition:
    border-color 0.35s var(--mfg-ease),
    box-shadow 0.35s var(--mfg-ease),
    transform 0.35s var(--mfg-ease);
}

@media (hover: hover) and (pointer: fine) {
  .mfg-stat:hover {
    transform: translateY(-2px);
    border-color: var(--mfg-card-border-strong);
    box-shadow: var(--mfg-elev-hover);
  }
}

.mfg-stat__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 600;
  letter-spacing: -0.034em;
  line-height: 1;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.mfg-stat__unit {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0;
}

.mfg-stat__label {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--mfg-teal);
}

.mfg-stat__desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (max-width: 960px) {
  .mfg-context__inner {
    grid-template-columns: 1fr;
  }
  .mfg-context__copy {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .mfg-context__stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.mfg-cta-final {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 11vw, 108px) max(var(--page-gutter-x), env(safe-area-inset-right, 0px))
    clamp(72px, 12vw, 120px) max(var(--page-gutter-x), env(safe-area-inset-left, 0px));
  text-align: center;
  background: var(--color-bg);
}

.mfg-cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 72% 60% at 50% 40%,
      color-mix(in srgb, var(--color-accent) 24%, transparent) 0%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 48% 38% at 16% 110%,
      color-mix(in srgb, var(--mfg-teal) 8%, transparent) 0%,
      transparent 60%
    );
  filter: blur(0.5px);
}

.mfg-cta-final__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
}

.mfg-cta-final__title {
  margin: clamp(8px, 1.2vw, 12px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 5.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.036em;
  line-height: 1.04;
  color: var(--text-heading-on-dark);
  text-wrap: balance;
}

.mfg-cta-final__lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.62;
  color: var(--text-on-surface);
}

.mfg-cta-final__lede strong {
  color: #fff;
  font-weight: 600;
}

.mfg-cta-final__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: clamp(8px, 1.4vw, 14px);
}

.mfg-cta-primary--lg {
  font-size: 15px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.mfg-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--mfg-teal-line);
  background: rgba(94, 234, 212, 0.06);
  color: var(--mfg-teal);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.25s var(--mfg-ease), border-color 0.25s var(--mfg-ease), transform 0.25s var(--mfg-ease);
}

.mfg-cta-outline:hover {
  background: rgba(94, 234, 212, 0.12);
  border-color: var(--mfg-teal);
  transform: translateY(-1px);
}

.mfg-cta-outline__icon {
  display: inline-flex;
  align-items: center;
}

.mfg-cta-final__credit {
  margin: clamp(8px, 1.4vw, 14px) 0 0;
  font-size: 12.5px;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

.mfg-cta-final__credit strong {
  color: #fff;
  font-weight: 600;
}

.mfg-cta-final__credit a {
  color: var(--mfg-teal);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--mfg-teal) 38%, transparent);
  transition: border-color 0.2s var(--mfg-ease), color 0.2s var(--mfg-ease);
}

.mfg-cta-final__credit a:hover {
  color: var(--mfg-teal-bright);
  border-bottom-color: var(--mfg-teal);
}

@media (max-width: 520px) {
  .mfg-cta-final__buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .mfg-cta-primary--lg {
    justify-content: center;
    min-height: 52px;
  }
  .mfg-cta-outline {
    justify-content: center;
    min-height: 52px;
  }
}

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  .mfg-pill--teal .mfg-pill__dot,
  .mfg-alliance__ping-ring {
    animation: none;
  }
  .mfg-area,
  .mfg-stat,
  .mfg-cta-primary__arrow {
    transition-duration: 0.01ms;
  }
  .mfg-area:hover,
  .mfg-stat:hover,
  .mfg-cta-outline:hover {
    transform: none;
  }
}
