/* ==========================================================================
   Hero — opening section with headline, CTAs, and the marquee counter card
   ========================================================================== */

.hero {
  background:
    radial-gradient(ellipse 80% 50% at 80% 0%, rgba(217, 98, 31, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(58, 143, 196, 0.06), transparent 60%),
    var(--paper);
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 24, 31, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 31, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero { padding: 56px 0 80px; }
}

.hero h1 {
  font-size: var(--type-display);
  margin: 24px 0 24px;
  font-weight: 600;
}
.hero h1 em {
  font-style: italic;
  color: var(--amber-500);
  font-weight: 500;
}

.hero .lede {
  font-size: var(--type-body-lg);
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 16px;
  line-height: 1.55;
}

.hero .reputation-line {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-style: italic;
  color: var(--slate-800);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.4;
  border-left: 3px solid var(--amber-500);
  padding-left: 16px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- The big counter card ---- */
.counter-card {
  background: linear-gradient(160deg, var(--slate-900) 0%, var(--slate-800) 100%);
  color: var(--bone);
  border-radius: 10px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(217, 98, 31, 0.2);
}

.counter-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(217, 98, 31, 0.22), transparent 70%);
  transform: translate(30%, -30%);
}

.counter-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(58, 143, 196, 0.10), transparent 70%);
  transform: translate(-30%, 30%);
}

.counter-card .ribbon {
  display: inline-block;
  background: var(--amber-500);
  color: var(--paper);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 24px;
  position: relative;
}

.counter-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--bone-soft);
  margin-bottom: 24px;
  letter-spacing: -0.005em;
  position: relative;
}

.big-number {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 9vw, 6.4rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--amber-400);
  display: flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
}
.big-number .pct {
  font-size: 0.42em;
  color: var(--bone-soft);
  font-weight: 500;
}

.gauge {
  margin-top: 28px;
  height: 6px;
  background: rgba(240, 238, 232, 0.12);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber-500), var(--amber-300));
  width: 0;
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gauge-track {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(240, 238, 232, 0.5);
  position: relative;
}

.counter-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(240, 238, 232, 0.12);
  position: relative;
}
.counter-stats div p:first-child {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--bone);
  line-height: 1;
}
.counter-stats div p:last-child {
  font-size: 0.74rem;
  color: var(--bone-soft);
  margin-top: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.source-line {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(240, 238, 232, 0.45);
  letter-spacing: 0.04em;
  line-height: 1.6;
  position: relative;
}
.source-line a { color: var(--amber-300); text-decoration: none; }
