/* ══════════════════════════════════════════════════════════════
   Evident Technologies — Pipeline Demo Stylesheet
   ══════════════════════════════════════════════════════════════ */

/* ── Jurisdiction Selector ────────────────────────────────────── */

.demo-jurisdiction {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(26 32 64 / 10%);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 80%);
  backdrop-filter: blur(8px);
}

.demo-jurisdiction__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text, #1a2040);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-jurisdiction__select {
  flex: 1;
  min-width: 14rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgb(26 32 64 / 15%);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--color-text, #1a2040);
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
}

.demo-jurisdiction__select:focus {
  outline: 2px solid var(--color-primary, #1f3a99);
  outline-offset: 1px;
  border-color: var(--color-primary, #1f3a99);
}

.demo-jurisdiction__info {
  font-size: 0.75rem;
  color: var(--color-text-muted, #5a6080);
}

.demo-jurisdiction__info[data-method="pattern"] {
  color: #15803d;
  font-weight: 600;
}

.demo-jurisdiction__info[data-method="reference"] {
  color: #a16207;
}

/* ── Hero ─────────────────────────────────────────────────────── */

.demo-hero {
  max-width: 72rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.demo-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full, 999px);
  background: rgb(31 58 153 / 8%);
  color: var(--color-primary, #1f3a99);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-hero__title {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  color: var(--color-text, #1a2040);
}

.demo-hero__desc {
  max-width: 48rem;
  margin: 0 auto;
  color: var(--color-text-muted, #5a6080);
  line-height: 1.75;
  font-size: 1.05rem;
  text-wrap: pretty;
}

.demo-hero__status {
  margin-top: 1.25rem;
}

/* ── Disclaimer ───────────────────────────────────────────────── */

.demo-disclaimer {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  max-width: 52rem;
  margin: 0 auto 3rem;
  padding: 1.125rem 1.375rem;
  border: 1px solid rgb(26 32 64 / 10%);
  border-radius: 0.875rem;
  background: rgb(255 255 255 / 80%);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  color: var(--color-text-muted, #5a6080);
  line-height: 1.65;
}

.demo-disclaimer svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--color-primary, #1f3a99);
}

.demo-disclaimer p {
  margin: 0;
}

/* ── Section Headings ─────────────────────────────────────────── */

.demo-section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.12;
  color: var(--color-text, #1a2040);
  margin: 0 0 0.5rem;
  text-align: center;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.demo-section-desc {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--color-text-muted, #5a6080);
  line-height: 1.65;
}

/* ── Case Study Grid ──────────────────────────────────────────── */

.demo-cases {
  max-width: 72rem;
  margin: 0 auto 2.5rem;
}

.demo-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.demo-case-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted, #5a6080);
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.375rem;
  border: 1px solid rgb(26 32 64 / 10%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 80%);
  backdrop-filter: blur(8px);
  transition:
    border-color 280ms var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 280ms var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 280ms var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1));
}

.case-card:hover {
  border-color: color-mix(in srgb, var(--color-primary, #1f3a99) 40%, transparent);
  box-shadow: 0 8px 28px rgb(31 58 153 / 11%);
  transform: translateY(-3px);
}

.case-card:active {
  transform: translateY(-1px);
  transition-duration: 100ms;
}

.case-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.case-card__type {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full, 999px);
  background: rgb(31 58 153 / 8%);
  color: var(--color-primary, #1f3a99);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-card__jurisdiction {
  font-size: 0.75rem;
  color: var(--color-text-muted, #5a6080);
}

.case-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--color-text, #1a2040);
}

.case-card__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted, #5a6080);
  line-height: 1.55;
  flex: 1;
}

.case-card__stats {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text, #1a2040);
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.case-card__tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full, 999px);
  background: rgb(26 32 64 / 5%);
  color: var(--color-text-muted, #5a6080);
  font-size: 0.68rem;
  font-weight: 600;
}

.case-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.125rem;
  border: 1px solid var(--color-primary, #1f3a99);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--color-primary, #1f3a99);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease,
    box-shadow 200ms ease;
  font-family: inherit;
}

.case-card__btn:hover {
  background: var(--color-primary, #1f3a99);
  color: #fff;
  box-shadow: 0 4px 12px rgb(31 58 153 / 18%);
}

/* ── Upload & Processing ──────────────────────────────────────── */

.demo-progress {
  margin-top: 0.75rem;
}

.demo-progress__track {
  height: 6px;
  background: rgb(26 32 64 / 8%);
  border-radius: 3px;
  overflow: hidden;
}

.demo-progress__fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary, #1f3a99) 0%, #4a67cc 50%, var(--color-primary, #1f3a99) 100%);
  background-size: 200% 100%;
  transition: width 0.35s ease;
  border-radius: 3px;
  animation: progress-sheen 2s linear infinite;
}

.demo-error {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(220 38 38 / 30%);
  border-radius: 0.5rem;
  background: rgb(220 38 38 / 5%);
  color: #991b1b;
  font-size: 0.85rem;
}

/* ── Stage Cards (Interactive) ────────────────────────────────── */

.demo-stages {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.stage-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.875rem;
  align-items: center;
  padding: 0.875rem 1.125rem;
  border: 1px solid rgb(26 32 64 / 8%);
  border-radius: 0.75rem;
  background: #fff;
  transition:
    border-color 250ms var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 250ms ease;
}

.stage-card__num {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  background: rgb(31 58 153 / 8%);
  color: var(--color-primary, #1f3a99);
  font-size: 0.75rem;
  font-weight: 800;
}

.stage-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stage-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text, #1a2040);
}

.stage-card__tech {
  font-size: 0.72rem;
  color: var(--color-text-muted, #5a6080);
}

.stage-status,
.stage-detail {
  font-size: 0.72rem;
  text-align: right;
}

.stage-status {
  color: var(--color-text-muted, #5a6080);
}

.stage-detail {
  grid-column: 3;
  color: var(--color-text-muted, #5a6080);
  font-family: monospace;
  font-size: 0.68rem;
  word-break: break-all;
}

/* Stage status states */
.stage-card[data-status="processing"] {
  border-color: var(--color-primary, #1f3a99);
}

.stage-card[data-status="processing"] .stage-card__num {
  background: var(--color-primary, #1f3a99);
  color: #fff;
  animation: stage-pulse 0.8s ease-in-out infinite;
}

.stage-card[data-status="processing"] .stage-status {
  color: var(--color-primary, #1f3a99);
  font-weight: 600;
}

.stage-card[data-status="done"] {
  border-color: #16a34a;
}

.stage-card[data-status="done"] .stage-card__num {
  background: #16a34a;
  color: #fff;
  animation: stage-done-pop 0.35s var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1));
}

.stage-card[data-status="done"] .stage-status {
  color: #15803d;
  font-weight: 600;
}

.stage-card[data-status="error"] {
  border-color: #dc2626;
}

.stage-card[data-status="error"] .stage-card__num {
  background: #dc2626;
  color: #fff;
}

.stage-card[data-status="error"] .stage-status {
  color: #dc2626;
}

.stage-card[data-status="info"] .stage-status {
  color: #a16207;
}

.stage-card[data-status="skipped"] .stage-status {
  color: var(--color-text-muted, #5a6080);
  opacity: 0.6;
}

/* Locked stages */
.stage-card--locked {
  opacity: 0.6;
  border-style: dashed;
  cursor: default;
}

.stage-card--locked:hover {
  opacity: 0.82;
  border-color: var(--color-primary, #1f3a99);
}

.stage-card__tier {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-primary, #1f3a99);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Pipeline Grid (16-stage overview) ────────────────────────── */

.demo-capabilities {
  max-width: 72rem;
  margin: 0 auto;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.pipeline-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.875rem;
  align-items: center;
  padding: 1.125rem 1.25rem;
  border: 1px solid rgb(26 32 64 / 8%);
  border-radius: 0.875rem;
  background: #fff;
  transition:
    box-shadow 280ms var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 280ms var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 220ms ease;
}

.pipeline-card:hover {
  box-shadow: 0 8px 28px rgb(26 32 64 / 11%);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--color-primary, #1f3a99) 22%, transparent);
}

.pipeline-card:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 100ms;
}

.pipeline-card:focus-visible {
  outline: 2px solid var(--color-primary, #1f3a99);
  outline-offset: 2px;
}

.pipeline-card__num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.pipeline-card[data-tier="free"] .pipeline-card__num {
  background: rgb(21 128 61 / 10%);
  color: #15803d;
}

.pipeline-card[data-tier="starter"] .pipeline-card__num {
  background: rgb(37 99 235 / 10%);
  color: #2563eb;
}

.pipeline-card[data-tier="core"] .pipeline-card__num {
  background: rgb(147 51 234 / 10%);
  color: #7c3aed;
}

.pipeline-card[data-tier="complete"] .pipeline-card__num {
  background: rgb(180 83 9 / 4%);
  color: #92400e;
}

.pipeline-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pipeline-card__name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text, #1a2040);
}

.pipeline-card__detail {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted, #5a6080);
  line-height: 1.45;
}

.pipeline-card__tier {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pipeline-card[data-tier="free"] .pipeline-card__tier {
  color: #15803d;
}

.pipeline-card[data-tier="starter"] .pipeline-card__tier {
  color: #2563eb;
}

.pipeline-card[data-tier="core"] .pipeline-card__tier {
  color: #7c3aed;
}

.pipeline-card[data-tier="complete"] .pipeline-card__tier {
  color: #92400e;
}

/* ── CTA Rows ─────────────────────────────────────────────────── */

.demo-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

/* ── Tier Grid ────────────────────────────────────────────────── */

.demo-tiers {
  max-width: 72rem;
  margin: 0 auto;
}

.demo-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgb(26 32 64 / 10%);
  border-radius: 1rem;
  background: #fff;
  transition:
    border-color 280ms var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 280ms var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 280ms var(--ease-spring, cubic-bezier(0.22, 1, 0.36, 1));
}

.tier-card:hover {
  border-color: color-mix(in srgb, var(--color-primary, #1f3a99) 20%, transparent);
  box-shadow: 0 8px 28px rgb(26 32 64 / 10%);
  transform: translateY(-2px);
}

.tier-card--featured {
  border-color: var(--color-primary, #1f3a99);
  box-shadow: 0 4px 20px rgb(31 58 153 / 12%);
  position: relative;
}

.tier-card__popular {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full, 999px);
  background: rgb(168 85 247 / 12%);
  color: #9333ea;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 0.1rem;
}

.tier-card__name {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tier-card[data-tier="free"] .tier-card__name {
  color: #15803d;
}

.tier-card[data-tier="starter"] .tier-card__name {
  color: #2563eb;
}

.tier-card[data-tier="core"] .tier-card__name {
  color: #7c3aed;
}

.tier-card[data-tier="complete"] .tier-card__name {
  color: #92400e;
}

.tier-card__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text, #1a2040);
  line-height: 1;
}

.tier-card__price small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted, #5a6080);
}

.tier-card__period {
  font-size: 0.78rem;
  color: var(--color-text-muted, #5a6080);
}

.tier-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted, #5a6080);
  line-height: 1.5;
  margin: 0;
}

.tier-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 0.5rem 0;
  list-style: none;
}

.tier-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text, #1a2040);
  line-height: 1.4;
}

.tier-card__features .check-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #16a34a;
}

.tier-card__limits {
  font-size: 0.72rem;
  color: var(--color-text-muted, #5a6080);
  padding-top: 0.5rem;
  border-top: 1px solid rgb(26 32 64 / 6%);
  margin-top: auto;
}

.tier-card__cta {
  margin-top: 0.5rem;
}

.tier-enterprise-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted, #5a6080);
  margin-bottom: 2rem;
}

/* ── Upgrade CTA ──────────────────────────────────────────────── */

.demo-upgrade-cta {
  padding: 1.25rem;
  border: 1px solid rgb(31 58 153 / 15%);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgb(31 58 153 / 4%), rgb(200 140 0 / 4%));
  margin-top: 1rem;
}

.demo-upgrade-cta h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-text, #1a2040);
}

.demo-upgrade-cta p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted, #5a6080);
  line-height: 1.55;
}

.demo-upgrade-cta__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-upgrade-cta__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text, #1a2040);
  line-height: 1.45;
}

.demo-upgrade-cta__features li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.4rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary, #1f3a99);
}

.demo-upgrade-cta__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Results Panel ────────────────────────────────────────────── */

.demo-results {
  border: 1px solid rgb(26 32 64 / 10%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 80%);
  backdrop-filter: blur(8px);
  padding: 1.25rem;
  animation: demo-fade-in 0.3s ease;
}

.results-formatted {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.results-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--color-text, #1a2040);
}

.results-mode-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full, 999px);
  background: rgb(31 58 153 / 8%);
  color: var(--color-primary, #1f3a99);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.results-description {
  font-size: 0.85rem;
  color: var(--color-text-muted, #5a6080);
  line-height: 1.6;
  margin: 0;
}

.results-card {
  padding: 1rem;
  border: 1px solid rgb(26 32 64 / 6%);
  border-radius: 0.75rem;
  background: rgb(249 250 252 / 80%);
}

.results-card__title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text, #1a2040);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.results-status--done {
  background: #22c55e;
}

.results-status--error {
  background: #dc2626;
}

.results-status--info {
  background: #ca8a04;
}

.results-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0;
  font-size: 0.82rem;
}

.results-dl dt {
  font-weight: 600;
  color: var(--color-text-muted, #5a6080);
}

.results-dl dd {
  margin: 0;
  color: var(--color-text, #1a2040);
}

.results-hash {
  display: block;
  padding: 0.5rem;
  background: rgb(26 32 64 / 4%);
  border-radius: 0.35rem;
  font-size: 0.72rem;
  word-break: break-all;
  color: var(--color-text, #1a2040);
}

.results-transcript {
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--color-primary, #1f3a99);
  background: rgb(31 58 153 / 3%);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.82rem;
  color: var(--color-text, #1a2040);
  line-height: 1.65;
  white-space: pre-wrap;
}

.results-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.results-timeline li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text, #1a2040);
}

.results-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary, #1f3a99);
}

.results-timeline time {
  font-size: 0.72rem;
  color: var(--color-text-muted, #5a6080);
  font-family: monospace;
}

.results-issues {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.results-issues li {
  font-size: 0.82rem;
  color: var(--color-text, #1a2040);
  line-height: 1.5;
}

.results-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted, #5a6080);
  margin: 0.5rem 0 0;
}

.results-note {
  font-size: 0.82rem;
  color: var(--color-text-muted, #5a6080);
  margin: 0;
}

.results-note--error {
  color: #991b1b;
}

/* ── Canonical Button Helpers ─────────────────────────────────── */

.demo-upgrade-cta__actions .btn,
.demo-cta-row .btn {
  min-height: 2.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
}

.demo-btn--inline {
  display: inline-flex;
  min-height: auto;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
}

/* ── Server Badge ─────────────────────────────────────────────── */

.server-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full, 999px);
  font-size: 0.78rem;
  font-weight: 600;
}

.server-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.server-badge.connected {
  background: rgb(21 128 61 / 10%);
  color: #15803d;
}

.server-badge.connected::before {
  background: #16a34a;
  animation: dot-pulse 2s ease-in-out infinite;
}

.server-badge.disconnected {
  background: rgb(220 38 38 / 8%);
  color: #991b1b;
}

.server-badge.disconnected::before {
  background: #dc2626;
}

/* ── Proof of Concept: Pro Se Journey ─────────────────────────── */

.demo-poc {
  padding: 3rem 0;
}

.demo-poc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.demo-poc__card {
  padding: 2rem;
  background: rgb(6 16 28 / 60%);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(126 157 202 / 12%);
  border-radius: 1rem;
  transition: border-color 0.3s ease;
}

.demo-poc__card:hover {
  border-color: rgb(59 130 246 / 25%);
}

.demo-poc__card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f0f4ff;
  margin: 0 0 0.75rem;
}

.demo-poc__card-body {
  font-size: 0.9375rem;
  color: #9ca3af;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.demo-poc__card-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-poc__stage {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  background: rgb(31 58 153 / 15%);
  border: 1px solid rgb(59 130 246 / 20%);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #93c5fd;
  letter-spacing: 0.02em;
}

.demo-poc__verify {
  padding: 2.5rem;
  background: rgb(6 16 28 / 70%);
  backdrop-filter: blur(12px);
  border: 1px solid rgb(59 130 246 / 15%);
  border-radius: 1rem;
  text-align: center;
}

.demo-poc__verify-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f0f4ff;
  margin: 0 0 0.75rem;
}

.demo-poc__verify-body {
  font-size: 0.9375rem;
  color: #9ca3af;
  line-height: 1.7;
  margin: 0 0 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Animation ────────────────────────────────────────────────── */

@keyframes demo-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stage-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.95);
  }
}

@keyframes stage-done-pop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes progress-sheen {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.65);
  }
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (width >= 960px) {
  .demo-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-progress__fill {
    transition: none;
    animation: none;
  }

  .stage-card,
  .stage-card__num,
  .server-badge::before {
    animation: none;
  }

  .pipeline-card,
  .case-card,
  .tier-card,
  .stage-card {
    transition: none;
    transform: none;
  }

  .pipeline-card:hover,
  .case-card:hover,
  .tier-card:hover {
    transform: none;
  }

  @keyframes demo-fade-in {
    from {
      opacity: 1;
      transform: none;
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}
