.hero,
.risk-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 55% -80px, rgba(165, 180, 252, 0.22), transparent 70%),
    linear-gradient(140deg, #0a0f24 0%, #112050 32%, #1e1b4b 60%, #312e81 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px 20px;
  max-width: 1040px;
  margin: 0 auto;
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.14),
    0 6px 18px rgba(67, 56, 202, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero::before,
.risk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 10% 90%, rgba(96, 165, 250, 0.16), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(167, 139, 250, 0.14), transparent 50%);
  pointer-events: none;
}

.hero::after,
.risk-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: top left;
  mask-image: radial-gradient(circle at 70% 30%, rgba(0, 0, 0, 0.45), transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, rgba(0, 0, 0, 0.45), transparent 70%);
  pointer-events: none;
}

.hero-grid,
.risk-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.eyebrow,
.risk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 8px;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ddd6fe;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.risk-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
  box-shadow: 0 0 0 4px rgba(165, 180, 252, 0.16);
}

.hero h1,
.risk-hero h1 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-copy,
.risk-hero-lead {
  margin-top: 10px;
  max-width: 520px;
  font-size: clamp(0.88rem, 0.95vw, 0.96rem);
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
}

.hero-stats,
.risk-hero-metrics {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.8rem;
  margin-top: 10px;
}

.hero-stat,
.risk-pill {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.hero-stat-value,
.risk-pill-value {
  display: inline;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-stat-label,
.risk-pill-label {
  display: inline;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.65);
}

.hero-actions,
.risk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn,
.btn-secondary,
.risk-btn,
.risk-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn,
.risk-btn {
  background: #ffffff;
  color: #4338ca;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16), inset 0 -2px 0 rgba(15, 23, 42, 0.06);
}

.btn:hover,
.risk-btn:hover {
  transform: translateY(-1px);
}

.btn-secondary,
.risk-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #eef2ff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover,
.risk-btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.hero-panel,
.risk-hero-panel,
.risk-panel-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
}

.hero-panel-list,
.risk-hero-metrics {
  list-style: none;
  display: grid;
  gap: 8px;
}

.hero-panel-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: rgba(241, 245, 249, 0.9);
  font-size: 0.84rem;
  line-height: 1.55;
}

.hero-panel-title,
.risk-panel-card h2,
.risk-panel-card h3 {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: #bfdbfe;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Responsive ──
   These overrides MUST live in this file (not in per-page inline <style>
   blocks) because this stylesheet loads AFTER the inline styles and would
   otherwise win at every breakpoint with the desktop two-column layout. */
@media (max-width: 960px) {
  .hero-grid,
  .risk-hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-panel,
  .risk-hero-panel {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero,
  .risk-hero {
    text-align: center;
    padding: 14px 14px 16px;
  }

  .hero h1,
  .risk-hero h1 {
    max-width: 100%;
    text-align: center;
    font-size: clamp(1.72rem, 7.2vw, 2.05rem);
    line-height: 1.08;
  }

  .hero-copy,
  .risk-hero-lead {
    max-width: 100%;
    text-align: center;
  }

  .hero-stats,
  .risk-hero-metrics {
    justify-content: center;
  }

  .hero-actions,
  .risk-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-panel-title,
  .risk-panel-card h2,
  .risk-panel-card h3 {
    text-align: left;
  }
}
