/* ═══════════════════════════════════════════════
   HERO — Full-bleed Background Image Design
   ═══════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--color-deep-blue);
}

/* ── Background Layer ── */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Background image — constrained width, fades at all edges */
.hero__bg-image {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  height: 90%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
  filter: brightness(0.7) saturate(0.9) contrast(1.05);
  border-radius: var(--radius-2xl);
  /* Fade edges: top, bottom, left, right */
  -webkit-mask-image:
    linear-gradient(to right,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.4) 5%,
      rgba(0,0,0,1) 15%,
      rgba(0,0,0,1) 85%,
      rgba(0,0,0,0.4) 95%,
      rgba(0,0,0,0) 100%
    ),
    linear-gradient(to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.4) 5%,
      rgba(0,0,0,1) 12%,
      rgba(0,0,0,1) 88%,
      rgba(0,0,0,0.4) 95%,
      rgba(0,0,0,0) 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.4) 5%,
      rgba(0,0,0,1) 15%,
      rgba(0,0,0,1) 85%,
      rgba(0,0,0,0.4) 95%,
      rgba(0,0,0,0) 100%
    ),
    linear-gradient(to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.4) 5%,
      rgba(0,0,0,1) 12%,
      rgba(0,0,0,1) 88%,
      rgba(0,0,0,0.4) 95%,
      rgba(0,0,0,0) 100%
    );
  mask-composite: intersect;
}

/* Heavy dark overlay to ensure text readability + depth */
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(10,26,63,0.92) 0%,
      rgba(10,26,63,0.78) 40%,
      rgba(10,26,63,0.65) 65%,
      rgba(10,26,63,0.88) 100%
    );
}

.hero__grid {
  position: absolute;
  inset: 0;
}

/* Subtle radial glow at center-right for depth */
.hero::after {
  content: '';
  position: absolute;
  top: 15%;
  right: -5%;
  width: 55%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(0,102,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ── Content Layer ── */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-6);
  padding-right: var(--sp-6);
  padding-top: 10vh;
  padding-bottom: var(--sp-8);
  min-height: calc(100vh - var(--nav-height));
}

.hero__badge {
  margin-bottom: var(--sp-5);
  width: fit-content;
}

/* ── Title — Extra Large, same font-family as section titles ── */
.hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: var(--sp-5);
  font-size: clamp(3rem, 6vw, 5.5rem);
  max-width: 850px;
}

/* ── Subtitle ── */
.hero__subtitle {
  max-width: 560px;
  margin-bottom: var(--sp-8);
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(224, 231, 255, 0.7);
}

/* ── Action Buttons ── */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* ── Stats Bar — directly below actions ── */
.hero__stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--sp-3) var(--sp-10);
  margin-top: var(--sp-8);
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(224, 231, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__stat {
  text-align: center;
  flex: 1;
  min-width: 100px;
  padding: 0 var(--sp-6);
}

.hero__stat-divider {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(224,231,255,0.15), transparent);
  flex-shrink: 0;
}

/* ── Scroll Indicator ── */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0.5;
  z-index: 2;
  animation: fadeInUp 1s ease 1.5s both;
}

.hero__scroll span {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-400);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-vivid-cyan), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ── Animations ── */
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 0.5; transform: translateX(-50%) translateY(0); }
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  .hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }
  .hero__subtitle {
    max-width: 100%;
    font-size: 1rem;
  }
  .hero__stats-bar {
    padding: var(--sp-6) var(--sp-6);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero__content {
    padding-top: 8vh;
  }
  .hero__title {
    font-size: clamp(2rem, 7vw, 3rem);
    max-width: 100%;
  }
  .hero__subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  .hero__bg-image {
    width: 95%;
    opacity: 0.4;
  }
  .hero__stats-bar {
    flex-wrap: wrap;
    gap: var(--sp-4);
    padding: var(--sp-5) var(--sp-4);
  }
  .hero__stat-divider { display: none; }
  .hero__stat { min-width: 45%; padding: var(--sp-2); }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
