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

.pf-stats {
  position: relative;
  padding: 5rem 1.5rem;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,87,168,0.12) 0%, transparent 60%), #09090b;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: 'Inter', sans-serif;
}

.pf-stats::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(0,87,168,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.pf-stats-inner {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
}

.pf-stats-header {
  max-width: 48rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.pf-stats-h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.pf-stats-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  letter-spacing: -0.01em;
  margin: 0;
}

.pf-stats-shell {
  position: relative;
  border-radius: 1rem;
  background: rgba(24,24,27,0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem;
  overflow: hidden;
}

.pf-stats-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(0,87,168,0.12) 0%, transparent 50%, rgba(245,166,35,0.08) 100%);
  pointer-events: none;
}

.pf-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pf-stats-grid { grid-template-columns: 1fr 1fr; }
}

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

.pf-stats-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem;
  transition: all 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
}

.pf-stats-card:hover { transform: scale(1.02); }
.pf-stats-card:nth-child(1):hover { box-shadow: 0 0 40px -10px rgba(0,87,168,0.4); }
.pf-stats-card:nth-child(2):hover { box-shadow: 0 0 40px -10px rgba(245,166,35,0.35); }
.pf-stats-card:nth-child(3):hover { box-shadow: 0 0 40px -10px rgba(245,166,35,0.35); }

@media (min-width: 768px) and (max-width: 1023px) {
  .pf-stats-card:nth-child(3) { grid-column: span 2; }
}

.pf-stats-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.pf-stats-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pf-stats-card-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.pf-stats-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.pf-stats-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.pf-stats-badge-green {
  background: rgba(16,185,129,0.15);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.25);
}

.pf-stats-badge-red {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
}

.pf-stats-badge-amber {
  background: rgba(245,166,35,0.12);
  color: #F5A623;
  border: 1px solid rgba(245,166,35,0.25);
}

.pf-stats-chart-box {
  position: relative;
  background: rgba(15,15,15,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.pf-stats-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3px;
  height: 7rem;
}

.pf-stats-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, rgba(0,40,90,0.5), #0057A8);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.pf-stats-bar-highlight {
  background: linear-gradient(to top, rgba(160,80,0,0.5), #F5A623);
}

.pf-stats-shell.pf-stats-animated .pf-stats-bar {
  transform: scaleY(1);
}

.pf-stats-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.pf-stats-stat-cell {
  background: rgba(255,255,255,0.05);
  border-radius: 0.5rem;
  padding: 0.625rem;
  text-align: center;
}

.pf-stats-stat-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.25rem;
}

.pf-stats-stat-val {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.pf-stats-gauge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 1rem;
}

.pf-stats-gauge-svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.pf-stats-gauge-track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 10;
}

.pf-stats-gauge-fill {
  fill: none;
  stroke: #F5A623;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4,0,0.2,1);
}

.pf-stats-shell.pf-stats-animated .pf-stats-gauge-fill {
  stroke-dashoffset: 98;
}

.pf-stats-gauge-center {
  position: absolute;
  text-align: center;
  pointer-events: none;
}

.pf-stats-gauge-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #F5A623;
  line-height: 1;
}

.pf-stats-gauge-unit {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 0.25rem;
}

.pf-stats-gauge-compare {
  background: rgba(255,255,255,0.05);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.pf-stats-compare-item {
  text-align: center;
}

.pf-stats-compare-lbl {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.25rem;
}

.pf-stats-compare-val {
  font-size: 15px;
  font-weight: 700;
}

.pf-stats-compare-val.pf-amber { color: #F5A623; }
.pf-stats-compare-val.pf-red { color: #f87171; }

.pf-stats-compare-sep {
  width: 1px;
  height: 2rem;
  background: rgba(255,255,255,0.1);
}

.pf-stats-rating-big {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pf-stats-rating-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.pf-stats-rating-of {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.pf-stats-stars {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.pf-stats-star {
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,0.15);
  transition: color 0.4s ease, filter 0.4s ease;
  flex-shrink: 0;
}

.pf-stats-star.pf-star-filled {
  color: #F5A623;
  filter: drop-shadow(0 0 4px rgba(245,166,35,0.5));
}

.pf-stats-review-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(255,255,255,0.05);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.pf-stats-google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pf-stats-review-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
}

.pf-stats-review-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.pf-stats-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pf-stats-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,87,168,0.3), transparent);
  margin-top: 4rem;
}

@media (max-width: 600px) {
  .pf-stats { padding: 3.5rem 1rem; }
  .pf-stats-shell { padding: 1.25rem; }
}
