/* StatsBento — ported for 3DQARAJ homepage */

.stats-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stats-bento__primary {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 32px 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #3a3a40, #1a1a1e);
  border: 1px solid rgba(200, 200, 208, 0.35);
  color: #f4f4f5;
}

.stats-bento__primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 10px);
  opacity: 0.28;
  mask-image: radial-gradient(ellipse 80% 50% at 100% 0%, #000 70%, transparent 110%);
  pointer-events: none;
}

.stats-bento__tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 18px;
}

.stats-bento__value {
  position: relative;
  z-index: 1;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.stats-bento__desc {
  position: relative;
  z-index: 1;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.stats-bento__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stats-bento__card {
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.stats-bento__card--muted {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stats-bento__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 4px;
}

.stats-bento__metric {
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.1;
}

.stats-bento__bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 32px;
  flex-shrink: 0;
}

.stats-bento__bar {
  width: 6px;
  border-radius: 999px;
  background: rgba(200, 200, 208, 0.85);
  transform-origin: bottom;
  animation: stats-bento-bar 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stats-bento__card--compact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: 120px;
}

.stats-bento__card--review {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stats-bento__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #e6be65;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.stats-bento__review-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}

.stats-bento__review-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 4px;
}

@keyframes stats-bento-bar {
  from { transform: scaleY(0.2); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (min-width: 768px) {
  .stats-bento {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, auto);
  }

  .stats-bento__primary {
    grid-column: span 3;
    grid-row: span 2;
    min-height: 320px;
    padding: 40px;
  }

  .stats-bento__row {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 14px;
  }

  .stats-bento__card--wide {
    grid-column: span 1;
  }
}

html[data-theme="light"] .stats-bento__card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(28, 24, 20, 0.08);
}

html[data-theme="light"] .stats-bento__metric,
html[data-theme="light"] .stats-bento__review-title {
  color: #1c1814;
}

html[data-theme="light"] .stats-bento__label,
html[data-theme="light"] .stats-bento__review-sub {
  color: rgba(28, 24, 20, 0.48);
}
