/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 100px 0 80px; overflow: hidden;
  background: linear-gradient(175deg, #f8faff 0%, var(--white) 45%, var(--bg-page) 100%);
}
.hero > .container {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 48px; width: 100%;
}

/* Background elements */
.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--border-200) 0.6px, transparent 0.6px);
  background-size: 28px 28px; opacity: 0.5;
}
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(120px); pointer-events: none;
}
.hero-glow--a { width: 600px; height: 600px; background: rgba(37,99,235,0.18); top: -180px; right: -120px; }
.hero-glow--b { width: 450px; height: 450px; background: rgba(99,102,241,0.14); bottom: -120px; left: -140px; }
.hero-glow--c { width: 300px; height: 300px; background: rgba(16,185,129,0.10); top: 40%; left: 50%; }

/* Content — left side */
.hero-content { position: relative; z-index: 1; max-width: 720px; width: 100%; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 8px; border-radius: 100px; margin-bottom: 28px;
  background: var(--primary-50); border: 1px solid var(--primary-100);
  font-size: 12px; font-weight: 600; color: var(--primary-700);
  letter-spacing: 0.04em; text-transform: uppercase;
  animation: fadeUp 0.7s ease both;
}
.eyebrow-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-600);
  display: flex; align-items: center; justify-content: center;
}
.eyebrow-dot svg { width: 10px; height: 10px; fill: #fff; }

.hero h1 {
  font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.035em; color: var(--text-900); margin-bottom: 22px;
  animation: fadeUp 0.7s ease 0.08s both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary-600), var(--indigo-600), var(--green-600));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(15px, 1.8vw, 17px); font-weight: 400;
  color: var(--text-500); max-width: 560px; line-height: 1.8; margin-bottom: 36px;
  animation: fadeUp 0.7s ease 0.16s both;
}

.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.24s both;
}

/* Metrics */
.hero-metrics {
  display: flex; gap: 48px; margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--border-200);
  animation: fadeUp 0.7s ease 0.4s both;
}
.hero-metric-value {
  font-size: 32px; font-weight: 800; color: var(--text-900);
  letter-spacing: -0.03em;
}
.hero-metric-value span { color: var(--primary-600); }
.hero-metric-label {
  font-size: 12px; font-weight: 500; color: var(--text-400);
  margin-top: 2px; letter-spacing: 0.02em;
}

/* ============================================================
   HERO VISUAL — Right side dashboard
   ============================================================ */
.hero-visual {
  position: relative; z-index: 1;
  animation: fadeUp 0.8s ease 0.3s both;
  overflow: visible; padding: 16px;
}

.hero-dash {
  background: var(--white); border: 1.5px solid var(--border-200);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.hero-dash:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }

.hero-dash-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 18px; background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border-200);
}
.hd-dot { width: 8px; height: 8px; border-radius: 50%; }
.hd-dot:nth-child(1) { background: #fca5a5; }
.hd-dot:nth-child(2) { background: #fcd34d; }
.hd-dot:nth-child(3) { background: #86efac; }
.hd-bar-title {
  margin-left: 10px; font-size: 11px; font-weight: 600;
  color: var(--text-400); letter-spacing: 0.03em;
}

.hero-dash-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

/* Mini metrics */
.hd-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hd-metric {
  background: var(--bg-section-alt); border-radius: var(--radius-sm);
  padding: 14px 10px; text-align: center; border: 1px solid var(--border-100);
}
.hd-metric-icon { margin-bottom: 6px; }
.hd-metric-icon svg { width: 18px; height: 18px; stroke-width: 1.5; }
.hd-metric:nth-child(1) .hd-metric-icon svg { stroke: var(--primary-600); }
.hd-metric:nth-child(2) .hd-metric-icon svg { stroke: var(--green-600); }
.hd-metric:nth-child(3) .hd-metric-icon svg { stroke: var(--indigo-600); }
.hd-metric-val { font-size: 18px; font-weight: 800; color: var(--text-900); letter-spacing: -0.02em; }
.hd-metric-lbl { font-size: 9px; font-weight: 600; color: var(--text-400); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1px; }

/* Chart bars */
.hd-chart { display: flex; flex-direction: column; gap: 8px; }
.hd-chart-title { font-size: 11px; font-weight: 700; color: var(--text-700); }
.hd-row { display: flex; align-items: center; gap: 8px; }
/* .hd-row-label { font-size: 10px; font-weight: 600; color: var(--text-400); width: 50px; text-align: right; } */
.hd-row-label { font-size: 10px; font-weight: 600; color: var(--text-400); width: 70px; text-align: right; flex-shrink: 0; }
.hd-row-track { flex: 1; height: 7px; border-radius: 4px; background: var(--bg-input); overflow: hidden; }
.hd-row-fill { height: 100%; border-radius: 4px; }
.hd-row-fill--1 { width: 88%; background: linear-gradient(90deg, var(--primary-600), var(--primary-400)); animation: barGrow1 1.2s ease 0.8s both; }
/* .hd-row-fill--2 { width: 72%; background: linear-gradient(90deg, var(--indigo-600), var(--indigo-500)); animation: barGrow2 1.2s ease 1s both; } */
/* .hd-row-fill--2 { width: 72%; background: linear-gradient(90deg, var(--green-600), var(--green-500)); animation: barGrow2 1.2s ease 1s both; } */
.hd-row-fill--2 { width: 72%; background: linear-gradient(90deg, var(--green-600), var(--green-500)); animation: barGrow2 1.2s ease 1s both; }
.hd-row-fill--3 { width: 95%; background: linear-gradient(90deg, var(--indigo-600), var(--indigo-500)); animation: barGrow3 1.2s ease 1.2s both; }
.hd-row-fill--4 { width: 60%; background: linear-gradient(90deg, var(--amber-600), #fbbf24); animation: barGrow4 1.2s ease 1.4s both; }
@keyframes barGrow1 { from{width:0} to{width:88%} }
@keyframes barGrow2 { from{width:0} to{width:72%} }
@keyframes barGrow3 { from{width:0} to{width:95%} }
@keyframes barGrow4 { from{width:0} to{width:60%} }

/* Status rows */
.hd-status { display: flex; flex-direction: column; gap: 6px; }
.hd-status-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: var(--radius-xs);
  background: var(--bg-section-alt); border: 1px solid var(--border-100);
}
.hd-status-left { display: flex; align-items: center; gap: 8px; }
.hd-status-dot { width: 7px; height: 7px; border-radius: 50%; }
.hd-status-dot--green { background: var(--green-500); }
.hd-status-dot--blue { background: var(--primary-500); }
.hd-status-dot--amber { background: var(--amber-600); }
.hd-status-name { font-size: 11px; font-weight: 600; color: var(--text-700); }
.hd-status-badge {
  font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.hd-status-badge--pass { background: var(--green-100); color: var(--green-700); }
.hd-status-badge--review { background: var(--primary-100); color: var(--primary-700); }
.hd-status-badge--flag { background: var(--amber-100); color: var(--amber-600); }

/* Floating badges */
.hero-float {
  position: absolute; border-radius: var(--radius-sm);
  background: var(--white); border: 1.5px solid var(--border-200);
  box-shadow: var(--shadow-lg); padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  animation: floatBounce 3s ease-in-out infinite; z-index: 2;
}
/* .hero-float--1 { top: 20px; right: -10px; } */
.hero-float--1 { top: 12px; right: 12px; }
.hero-float--2 { bottom: -10px; left: 20px; animation-delay: -1.5s; }
@keyframes floatBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-float-icon {
  width: 28px; height: 28px; border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
}
.hero-float--1 .hero-float-icon { background: var(--green-50); }
.hero-float--1 .hero-float-icon svg { width: 14px; height: 14px; stroke: var(--green-600); stroke-width: 2; }
.hero-float--2 .hero-float-icon { background: var(--primary-50); }
.hero-float--2 .hero-float-icon svg { width: 14px; height: 14px; stroke: var(--primary-600); stroke-width: 2; }
.hero-float-text { font-size: 10px; font-weight: 700; color: var(--text-700); }
.hero-float-val { font-size: 9px; color: var(--text-400); font-weight: 500; }

/* ============================================================
   HERO RESPONSIVE
   ============================================================ */
@media (max-width: 1060px) {
  .hero > .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .hero-dash { transform: none; }
}
@media (max-width: 768px) {
  .hero-visual { display: none; }
  .hero-metrics { flex-direction: column; gap: 16px; }
  .hero h1 { font-size: 30px; }
  .hero-ctas { flex-direction: column; }
  .btn-lg { justify-content: center; }
}