.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-soft {
  background: rgba(0, 227, 178, 0.18);
  color: #027f73;
  border: 1px solid rgba(2, 132, 255, 0.4);
}

.hero-copy .lead {
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: 38ch;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(0, 227, 178, 0.2));
  border: 1px solid rgba(7, 90, 109, 0.15);
  box-shadow: 0 12px 30px rgba(5, 71, 90, 0.15);
}

.hero-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 1rem;
}

.photo-card {
  min-height: 130px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 0.85rem 1rem;
  color: #f8ffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 20px 45px rgba(5, 71, 90, 0.25);
  position: relative;
  overflow: hidden;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
  mix-blend-mode: multiply;
}

.photo-card span {
  position: relative;
  z-index: 1;
}

.photo-card.primary {
  background-image: linear-gradient(135deg, rgba(0, 227, 178, 0.65), rgba(2, 132, 255, 0.35)), url("../images/glass.png");
}

.photo-card.secondary {
  background-image: linear-gradient(135deg, rgba(0, 243, 198, 0.5), rgba(0, 122, 255, 0.45)), url("../images/plastic.png");
}

.photo-card.tertiary {
  background-image: linear-gradient(135deg, rgba(255, 212, 102, 0.6), rgba(255, 138, 102, 0.45)), url("../images/metal.png");
}

.photo-card.quaternary {
  background-image: linear-gradient(135deg, rgba(173, 255, 194, 0.55), rgba(0, 227, 178, 0.35)), url("../images/paper.png");
}

@media (max-width: 580px) {
  .hero-visual {
    grid-template-columns: 1fr;
  }
}

.brand-mark {
  width: 96px;
  height: 96px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #f5fffe;
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.25);
}

.hero-subtitle {
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats div {
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(2, 132, 255, 0.1));
  border: 1px solid rgba(7, 90, 109, 0.18);
  min-width: 120px;
}

.stat-label {
  display: block;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(7, 52, 58, 0.65);
}

.panel-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.preview-stage {
  min-height: 340px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(12, 98, 126, 0.3);
  background: linear-gradient(145deg, var(--surface-strong), rgba(0, 227, 178, 0.14), rgba(2, 132, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.preview-stage:empty::after {
  content: "Drop a photo or start the webcam";
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preview-stage canvas,
.preview-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: calc(var(--radius-md) - 6px);
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(8, 53, 70, 0.25);
}

.status-pill {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 255, 0.35);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(2, 132, 255, 0.22));
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-pill {
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: capitalize;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(3, 8, 20, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: transparent;
  color: #f5fffe;
}

.btn-ghost {
  background: rgba(0, 227, 178, 0.18);
  border-color: rgba(0, 227, 178, 0.35);
  color: var(--text);
}

.btn-danger {
  background: rgba(255, 124, 124, 0.16);
  border-color: rgba(255, 124, 124, 0.35);
  color: #b73333;
}

.labels {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.labels .label-item {
  --label-hue: 200;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(0, 227, 178, 0.08));
  border: 1px solid rgba(7, 90, 109, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition), box-shadow var(--transition);
}

.labels .label-item::before {
  content: "";
  width: 8px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, hsla(var(--label-hue), 80%, 55%, 0.95), hsla(var(--label-hue), 85%, 45%, 0.8));
}

.labels .label-item.is-active {
  background: linear-gradient(135deg, rgba(0, 227, 178, 0.18), rgba(217, 249, 255, 1));
  box-shadow: 0 18px 38px rgba(3, 74, 103, 0.25);
}

.labels .name {
  font-weight: 600;
  color: var(--text-strong);
}

.labels .prob {
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  color: var(--muted);
}

.interaction-panel {
  gap: 1rem;
}

.panel-head h2 {
  font-size: 1.6rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--muted);
}
