/* ══════════════════════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0EA5E9 0%, #1E1B4B 50%, #881337 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(14,165,233,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(240,90,90,0.15) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1668243304566-2e78ebd48960?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
  opacity: 0;
}
.hero .container { position: relative; z-index: 3; }
.hero-content {
  max-width: 780px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 90, 90, 0.85); /* solid red-accent background */
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  padding: 7px 20px;
  color: var(--white); /* white text for contrast */
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 12px rgba(240, 90, 90, 0.3);
}

.hero-badge i {
  color: #FFD166; /* gold icon inside badge */
  font-size: 0.85rem;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--primary-light); }
.hero-sub {
  color: rgba(255,255,255,0.90);
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 44px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.hero-stat {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.hero-stat::after {            /* colored bottom accent edge */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--stat-accent);
  opacity: 0.85;
}
.hero-stat:hover {
  transform: translateY(-4px);
  border-color: var(--stat-border);
  box-shadow: 0 16px 40px var(--stat-shadow);
}
.hero-stat-dots {              /* faint dotted texture, top-right */
  position: absolute;
  top: 16px; right: 16px;
  width: 56px; height: 40px;
  background-image: radial-gradient(rgba(255,255,255,0.35) 1.1px, transparent 1.1px);
  background-size: 9px 9px;
  opacity: 0.30;
  pointer-events: none;
}
.hero-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  margin-bottom: 18px;
  font-size: 1.15rem;
  color: var(--stat-icon);
  background: var(--stat-icon-bg);
  border: 1px solid var(--stat-border);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  background: var(--stat-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-stat-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 10px;
}
.hero-stat-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.62);
  margin-top: 5px;
}

/* Per-card accent palettes (matches mockup: cyan / purple / orange) */
.hero-stat--cyan {
  --stat-accent:   linear-gradient(135deg, #38BDF8, #0EA5E9);
  --stat-icon:     #38BDF8;
  --stat-icon-bg:  rgba(56,189,248,0.12);
  --stat-border:   rgba(56,189,248,0.40);
  --stat-shadow:   rgba(14,165,233,0.30);
}
.hero-stat--purple {
  --stat-accent:   linear-gradient(135deg, #C084FC, #9333EA);
  --stat-icon:     #C084FC;
  --stat-icon-bg:  rgba(192,132,252,0.12);
  --stat-border:   rgba(192,132,252,0.40);
  --stat-shadow:   rgba(147,51,234,0.30);
}
.hero-stat--orange {
  --stat-accent:   linear-gradient(135deg, #FBBF24, #F97316);
  --stat-icon:     #FBBF24;
  --stat-icon-bg:  rgba(251,191,36,0.12);
  --stat-border:   rgba(251,191,36,0.40);
  --stat-shadow:   rgba(249,115,22,0.30);
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero          { min-height: 100svh; }
  .hero-stats    { grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
  .hero-stat-num { font-size: 2.3rem; }
  .hero-actions  { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
