/* ============================================
   KOMPAS4 — Hero Sections
   Three variants: full, compact, split
   ============================================ */

/* ─── Base Hero ───────────────────────────── */
.hero {
  position: relative;
  background-color: var(--navy-900);
  color: var(--white);
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* ─── Hero: Full (Home) ──────────────────── */
.hero--full {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero--full .hero-content {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

/* ─── Hero: Compact (Inner Pages) ─────────── */
.hero--compact {
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-top: calc(var(--nav-height) + clamp(3rem, 6vw, 5rem));
}

/* ─── Hero: Split (Landing Pages) ─────────── */
.hero--split {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-bottom: clamp(4rem, 8vw, 6rem);
  padding-top: calc(var(--nav-height) + clamp(4rem, 8vw, 5rem));
}

/* ─── Hero Background Effects ─────────────── */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% -20%,
    rgba(37, 99, 235, 0.18),
    transparent
  ),
  radial-gradient(
    ellipse 60% 50% at 80% 100%,
    rgba(17, 35, 71, 0.6),
    transparent
  );
  pointer-events: none;
}

.hero-orb-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: var(--r-full);
  background: var(--blue-600);
  filter: blur(120px);
  opacity: 0.08;
  top: -100px;
  left: -100px;
  pointer-events: none;
}

.hero-orb-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: var(--r-full);
  background: var(--navy-400);
  filter: blur(100px);
  opacity: 0.15;
  bottom: -80px;
  right: -80px;
  pointer-events: none;
}

/* ─── Hero Inner Layout ─────────────────── */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Full hero layout: text left, optional visual right */
.hero--full .hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: center;
}

.hero--split .hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: center;
}

/* ─── Hero Content ────────────────────────── */
.hero-content {
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--blue-400);
  margin-bottom: var(--s6);
  padding: var(--s2) var(--s4);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--r-full);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--blue-400);
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--white);
  margin-bottom: var(--s6);
}

.hero-title span.accent {
  color: var(--blue-400);
}

.hero-subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  line-height: var(--leading-relaxed);
  color: var(--gray-400);
  margin-bottom: var(--s10);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

/* ─── Hero Visual ─────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-dashboard {
  width: 100%;
  max-width: 560px;
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(37,99,235,0.15);
}

.hero-dashboard-bar {
  background: var(--navy-700);
  padding: var(--s4) var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero-dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
}

.hero-dashboard-dot:nth-child(1) { background: #FF5F57; }
.hero-dashboard-dot:nth-child(2) { background: #FEBC2E; }
.hero-dashboard-dot:nth-child(3) { background: #28C840; }

.hero-dashboard-title {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-left: var(--s4);
  font-family: monospace;
}

.hero-dashboard-body {
  padding: var(--s6);
}

/* Dashboard mock UI */
.dash-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-bottom: var(--s6);
}

.dash-stat {
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: var(--r-lg);
  padding: var(--s5);
}

.dash-stat-label {
  font-size: 10px;
  color: var(--gray-500);
  margin-bottom: var(--s2);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--white);
  line-height: 1;
}

.dash-stat-value.positive { color: var(--success); }
.dash-stat-value.accent   { color: var(--blue-400); }

.dash-bar-chart {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: var(--s5);
  margin-bottom: var(--s4);
}

.dash-chart-header {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-bottom: var(--s4);
  font-weight: var(--weight-medium);
}

.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--s2);
  height: 64px;
}

.dash-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgba(37,99,235,0.3);
  transition: background var(--t-base);
}

.dash-bar:nth-child(2) { background: rgba(37,99,235,0.5); }
.dash-bar:nth-child(3) { background: rgba(37,99,235,0.4); }
.dash-bar:nth-child(4) { background: rgba(37,99,235,0.7); }
.dash-bar:nth-child(5) { background: rgba(37,99,235,0.45); }
.dash-bar:nth-child(6) { background: rgba(37,99,235,0.85); }
.dash-bar:nth-child(7) { background: var(--blue-500); }

.dash-table {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.dash-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--s5);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: var(--text-xs);
  color: var(--gray-400);
}

.dash-table-row:last-child { border-bottom: none; }

.dash-table-badge {
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: var(--weight-semibold);
}

.dash-table-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.dash-table-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

/* ─── Compact Hero Text ──────────────────── */
.hero--compact .hero-inner {
  text-align: center;
}

.hero--compact .hero-content {
  margin: 0 auto;
}

.hero--compact .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ─── Hero Stats Row ──────────────────────── */
.hero-stats {
  display: flex;
  gap: var(--s8);
  margin-top: var(--s12);
  padding-top: var(--s8);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.hero-stat-item {}

.hero-stat-number {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: var(--s1);
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .hero--full .hero-inner,
  .hero--split .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero--full {
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
    padding: clamp(2.5rem, 6vw, 4rem) 0;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    gap: var(--s6);
  }
}
