/* Progressive maturity badge: fine printed borders with increasing finish across 6 stages. */
.maturity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #2c3648;
  background: linear-gradient(180deg, #121826, #0d121d);
  color: #b5c3d9;
  font: 0.72rem/1 var(--font-mono, ui-monospace, Consolas, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.maturity-badge__pct {
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

.maturity-badge__bar {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 20%, transparent);
  overflow: hidden;
}

.maturity-badge__bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: currentColor;
}

.maturity-badge__version {
  opacity: 0.72;
  padding-left: 0.45rem;
  border-left: 1px solid currentColor;
  text-transform: none;
  letter-spacing: 0.03em;
}

/* 1. Concept — dashed hairline, draft feel */
.maturity-badge[data-stage="concept"] {
  border-style: dashed;
  border-color: #364155;
  color: #93a1b8;
  background: #0c111b;
}

/* 2. Prototype — fine solid hairline, cool silver-blue */
.maturity-badge[data-stage="prototype"] {
  border-color: #41547d;
  color: #aebfff;
  box-shadow: inset 0 1px 0 rgba(174, 191, 255, 0.14);
}

/* 3. MVP — crisp border + inner top highlight */
.maturity-badge[data-stage="mvp"] {
  border-color: #536b9e;
  color: #c6d4ff;
  box-shadow:
    inset 0 1px 0 rgba(198, 212, 255, 0.24),
    0 2px 10px rgba(100, 140, 230, 0.12);
}

/* 4. Alpha — refined warm amber edge */
.maturity-badge[data-stage="alpha"] {
  border-color: #705c38;
  color: #e6c68b;
  box-shadow:
    inset 0 1px 0 rgba(230, 198, 139, 0.24),
    0 2px 12px rgba(220, 175, 95, 0.12);
}

/* 5. Beta — luminous silver-cyan sheen */
.maturity-badge[data-stage="beta"] {
  border-color: #436c82;
  color: #a6d6ec;
  box-shadow:
    inset 0 1px 0 rgba(166, 214, 236, 0.28),
    0 2px 14px rgba(120, 195, 230, 0.16);
}

/* 6. Release — crisp metallic emerald finish with restrained glint */
.maturity-badge[data-stage="release"] {
  border-color: #3d755e;
  color: #a1dcc2;
  background: linear-gradient(180deg, #13221d, #0d1714);
  box-shadow:
    inset 0 1px 0 rgba(161, 220, 194, 0.34),
    0 0 16px rgba(120, 205, 168, 0.18);
}

.maturity-badge[data-stage="release"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      110deg,
      transparent 35%,
      rgba(220, 255, 240, 0.28) 50%,
      transparent 65%
    )
    -120% 0 / 220% 100% no-repeat;
  pointer-events: none;
  animation: maturity-glint 2.6s ease-in-out 0.8s 1 both;
}

@keyframes maturity-glint {
  from {
    background-position: -120% 0;
  }
  to {
    background-position: 140% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maturity-badge[data-stage="release"]::after {
    animation: none;
  }
}
