/* ===== Stats Section ===== */
.stats-section {
  padding: 3rem 0;
  color: #ffffff;
}

@media (min-width: 640px) {
  .stats-section {
    padding: 4rem 0;
  }
}

@media (min-width: 768px) {
  .stats-section {
    padding: 5rem 0;
  }
}

.stats-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .stats-container {
    padding: 0 1.5rem;
  }
}

/* Title */
.stats-title-block {
  text-align: center;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-title-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .stats-title-block {
    margin-bottom: 3.5rem;
  }
}

.stats-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

@media (min-width: 640px) {
  .stats-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .stats-title {
    font-size: 2.25rem;
  }
}

.stats-title-underline {
  margin: 0.75rem auto 0;
  height: 0.25rem;
  width: 3rem;
  border-radius: 9999px;
  background: #f37021;
}

@media (min-width: 640px) {
  .stats-title-underline {
    margin-top: 1rem;
    width: 4rem;
  }
}

/* Grid */
.stats-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card wrapper (animation) */
.stats-card-wrapper {
  height: 100%;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.stats-card-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card */
.stats-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #e2e8f0;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(243, 112, 33, 0.12);
  transition: transform 0.2s ease-out,
              box-shadow 0.2s ease-out,
              border-color 0.2s ease-out;
}

.stats-card:hover {
  transform: translateY(-0.5rem) scale(1.01);
  border-top-color: #f37021;
  box-shadow: 0 12px 28px rgba(243, 112, 33, 0.22);
}

.stats-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-card-inner {
    padding: 1.5rem;
  }
}

/* Label */
.stats-label {
  margin-bottom: 0.75rem;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #163f86 !important;
}

@media (min-width: 640px) {
  .stats-label {
    margin-bottom: 1rem;
    font-size: 11px;
  }
}

/* Icon */
.stats-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  background: #fff7ed;
  color: #f37021;
}

@media (min-width: 640px) {
  .stats-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
  }
}

.stats-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Value */
.stats-value {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #f37021 !important;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .stats-value {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .stats-value {
    font-size: 3rem;
  }
}

/* Unit */
.stats-unit {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f37021 !important;
}

@media (min-width: 640px) {
  .stats-unit {
    margin-top: 0.5rem;
    font-size: 0.875rem;
  }
}

/* Underline */
.stats-underline {
  display: block;
  margin: 0.5rem auto 0;
  height: 2px;
  width: 2rem;
  border-radius: 9999px;
  background: #163f86 !important;
}

@media (min-width: 640px) {
  .stats-underline {
    margin-top: 0.75rem;
    width: 2.5rem;
  }
}

/* Description */
.stats-desc {
  margin: 0.75rem 0 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #475569;
}

@media (min-width: 640px) {
  .stats-desc {
    margin-top: 1rem;
  }
}