/* ============================================
   hero.css — Hero section (homepage)
   ============================================ */

.hero {
  min-height: 640px;
  display: flex;
  align-items: stretch;
  position: relative;
  background:
    linear-gradient(90deg, rgba(3, 8, 24, 0.86) 0%, rgba(3, 8, 24, 0.62) 34%, rgba(3, 8, 24, 0.18) 62%, rgba(3, 8, 24, 0) 100%),
    linear-gradient(180deg, rgba(3, 8, 24, 0) 0%, rgba(3, 8, 24, 0.05) 58%, var(--navy) 100%),
    url('../images/banner.webp');
  background-size: cover;
  background-position: center top;
  overflow: hidden;
  padding: 68px 0 128px;
}

/* Background grid overlay */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  z-index: 0;
}

/* Glow blobs */
.hero-glow {
  display: none;
}

.hero-glow2 {
  display: none;
}

/* Two-column layout (make visual column larger) */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  min-height: 500px;
  margin: 0 auto;
  padding: 86px 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  gap: 48px;
  align-items: center;
  overflow: visible;
  background: transparent;
}

.hero-inner::before {
  display: none;
}

/* Live badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue-light);
  margin-bottom: 20px;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  animation: pulse 2s infinite;
}

/* Headline */
.hero-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: 0;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.hero-title .line2 {
  display: block;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sub-text */
.hero-sub {
  max-width: 600px;
  font-size: 17px;
  color: rgba(226, 232, 240, 0.92);
  margin-bottom: 34px;
  line-height: 1.8;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.hero-sub strong {
  color: var(--text-primary);
}

/* CTA buttons row */
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Right-side visual / banner placeholder */
.hero-visual {
  background: var(--navy2);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 40px 48px;
}

.stats-bar {
  --stats-overlap: 70px;
  position: relative;
  z-index: 5;
  margin-top: calc(var(--stats-overlap) * -1);
  padding: 0 24px;
  background: linear-gradient(
    180deg,
    transparent 0,
    transparent var(--stats-overlap),
    var(--navy) var(--stats-overlap),
    var(--navy) 100%
  );
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 32px 0;
  background: rgba(8, 23, 55, 0.94);
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 48px;
  border-right: 1px solid var(--card-border);
}

.stat-item:last-child  { border-right: none; }

.stat-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 28px rgba(0, 0, 0, 0.26);
}

.stat-icon.blue   { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.stat-icon.purple { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.stat-icon.green  { background: linear-gradient(135deg, #16a34a, #86efac); }

.stat-icon-img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.stat-text h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.stat-text p  { font-size: 14px; color: rgba(203, 213, 225, 0.82); line-height: 1.7; }

.stats-bar + .bg-navy {
  padding-top: 34px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    min-height: 620px;
    background-position: 62% top;
    padding: 68px 0 92px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 460px;
    padding: 72px 20px 0;
  }

  .hero-title {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-sub {
    font-size: 15px;
  }

  .stats-bar {
    --stats-overlap: 46px;
    padding: 0 20px;
  }

  .stats-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 24px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    padding: 0 0 22px 0;
    margin-bottom: 22px;
  }

  .stat-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .stats-bar + .bg-navy {
    padding-top: 36px;
  }
}

/* Ensure content overlays the banner */
.hero-content {
  z-index: 2;
  color: #fff;
  position: relative;
  /* Constrain content width on large screens for better readability */
  max-width: 580px;
}
