*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background: #0d0a1e;
  color: #f2ede8;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
}

canvas#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.scene {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6b6488;
  margin: 0 0 2.5rem;
}

.heading {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1,5;
  margin: 0 0 0.5rem;
  background: linear-gradient(130deg, #ff8a50 0%, #ffcc44 55%, #ff8a50 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #6b6488;
  margin: 0 0 3.5rem;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(242, 237, 232, 0.06);
  border: 1px solid rgba(242, 237, 232, 0.06);
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
  max-width: 780px;
}

.unit {
  background: #0d0a1e;
  padding: 3rem 1rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.unit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(255, 138, 80, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.val {
  font-size: clamp(3.8rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: #f2ede8;
  text-shadow:
    0 0 20px rgba(255, 138, 80, 0.7),
    0 0 50px rgba(255, 138, 80, 0.35),
    0 0 100px rgba(255, 204, 68, 0.18);
  transition: text-shadow 0.3s ease;
}

.val.pulse {
  text-shadow:
    0 0 10px rgba(255, 138, 80, 1),
    0 0 30px rgba(255, 138, 80, 0.7),
    0 0 70px rgba(255, 204, 68, 0.4);
}

.lbl {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b6488;
}

.progress-wrap {
  width: 100%;
  max-width: 780px;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #6b6488;
  text-transform: uppercase;
}

.progress-track {
  height: 2px;
  background: rgba(242, 237, 232, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff8a50, #ffcc44);
  border-radius: 2px;
  transition: width 1s linear;
  box-shadow: 0 0 8px rgba(255, 138, 80, 0.5);
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .unit {
    padding: 2rem 0.5rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  canvas#bg {
    display: none;
  }
  .heading {
    animation: none;
  }
  .val {
    transition: none;
  }
}
