:root {
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --transition: 0.3s ease;
}

.head .title {
  font-size: 22px;
  font-weight: 800;
}

.head .sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.hero-cards {
  display: grid;
  font-family: "Inter", sans-serif;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.kpi-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition), background 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Gradient glow border (hidden by default) */
.kpi-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.9), rgba(109, 40, 217, 0.85), rgba(236, 72, 153, 0.85));
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.4s, background-position 1.2s ease;
  z-index: -1;
}

/* Light sweep effect */
.kpi-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.8s ease;
  z-index: 2;
}

/* Hover effects */
.kpi-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background: linear-gradient(145deg, #ffffff, #f9fafb);
}

.kpi-card:hover::before {
  opacity: 1;
  background-position: 100% 0;
}

.kpi-card:hover::after {
  left: 100%;
}

.kpi-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.kpi-projects .kpi-icon {
  background: #2563eb;
}

.kpi-users .kpi-icon {
  background: #0ea5e9;
}

.kpi-roi .kpi-icon {
  background: #7c3aed;
}

.kpi-alerts .kpi-icon {
  background: #dc2626;
}

.kpi-revenue .kpi-icon {
  background: #f97316;
}

.kpi-milestones .kpi-icon {
  background: #eab308;
  color: white;
}

.kpi-cities .kpi-icon {
  background: #06b6d4;
}

.kpi-downloads .kpi-icon {
  background: #db2777;
}

.kpi-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 4px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.kpi-note {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.7;
  transform: translateY(4px);
  transition: all 0.4s ease;
}

/* Hover makes text more visible */
.kpi-card:hover .kpi-head {
  color: white;
}

.kpi-card:hover .kpi-value {
  color: white;
  text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.kpi-card:hover .kpi-note {
  color: white;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .hero-cards {
    grid-template-columns: 1fr;
  }
}/*# sourceMappingURL=statsDesign1.css.map */