/* ── Proof — Systems in Production ── */
.proof {
  position: relative;
}

/* ── Bento grid: 2 featured top, 3 compact bottom ── */
.proof-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

/* ── Card base ── */
.proof-card {
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--accent-purple);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}

.proof-card:nth-child(even) {
  border-left-color: var(--accent-cyan);
}

.proof-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(123, 97, 255, 0.1);
  border-left-color: var(--accent-purple);
}

.proof-card:nth-child(even):hover {
  box-shadow: 0 12px 40px rgba(0, 184, 212, 0.1);
  border-left-color: var(--accent-cyan);
}

/* ── 6-col grid: featured = 3 cols, compact = 2 cols ── */
.proof-stack {
  grid-template-columns: repeat(6, 1fr);
}

.proof-card--featured {
  grid-column: span 3;
  display: flex;
}

.proof-card--featured .proof-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.proof-card--featured .proof-card-inner > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.proof-card--featured .proof-card-tags {
  margin-top: auto;
  padding-top: 1.25rem;
}

.proof-card:not(.proof-card--featured) {
  grid-column: span 2;
  display: flex;
}

.proof-card:not(.proof-card--featured) .proof-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.proof-card:not(.proof-card--featured) .proof-card-inner > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.proof-card:not(.proof-card--featured) .proof-card-tags {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* ── Card inner layout ── */
.proof-card-inner {
  display: block;
}

/* ── Status badge ── */
.proof-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #16a34a;
  margin-bottom: 0.75rem;
}

.proof-card-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0); }
}

/* ── Category label ── */
.proof-card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-purple);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.proof-card:nth-child(even) .proof-card-label {
  color: var(--accent-cyan);
}

/* ── Title ── */
.proof-card h3 {
  font-weight: var(--fw-bold);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.proof-card--featured h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

/* ── Description ── */
.proof-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── Tags ── */
.proof-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* ── Footnote ── */
.proof-footnote {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin-top: 2rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .proof-stack {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-card--featured,
  .proof-card:not(.proof-card--featured) {
    grid-column: span 1;
  }

  .proof-card:not(.proof-card--featured):last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .proof-stack {
    grid-template-columns: 1fr;
  }

  .proof-card--featured,
  .proof-card:not(.proof-card--featured) {
    grid-column: span 1;
  }

  .proof-card:hover {
    transform: none;
  }
}
