/* ============================================================
   HERO — Split-screen asymmetric · Stats row
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55fr 45fr;
  padding-top: 72px; /* nav height offset */
  overflow: visible;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 72px 0 0;
  background:
    radial-gradient(circle at 18% 15%, rgba(37,99,235,0.08), transparent 46%),
    radial-gradient(circle at 82% 78%, rgba(29,78,216,0.10), transparent 44%);
  pointer-events: none;
}

/* ── Hero Load Animations ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroRevealRight {
  from { opacity: 0; transform: scale(1.05); clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%); }
  to { opacity: 1; transform: scale(1); clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%); }
}

/* ── Left panel ── */
.hero-left {
  background: transparent;
  display: flex;
  align-items: center;
  padding: var(--sp-2xl) var(--sp-xl) var(--sp-2xl) 0;
  position: relative;
  z-index: 1;
}

.hero-left-inner {
  width: min(620px, 100%);
  margin-left: auto;
  padding-right: var(--sp-xl);
}

.hero-left-inner > * {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero-left-inner .eyebrow { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-rule { animation-delay: 0.3s; }
.hero-sub { animation-delay: 0.4s; }
.hero-cta-row { animation-delay: 0.5s; }
.hero-stats { animation-delay: 0.6s; }

.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--divider);
  margin: var(--sp-md) 0;
}

.hero-title {
  margin-bottom: 0;
}

.hero-sub {
  font-size: 18px;
  color: var(--body-text);
  max-width: 480px;
  margin-top: var(--sp-sm);
  line-height: 1.72;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

/* ── Stats row ── */
.hero-stats {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 44px;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--divider);
  background: rgba(255,255,255,0.5);
  border-radius: 12px;
  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 14px;
}

.hero-stat {
  flex: 1;
  padding-right: var(--sp-md);
  position: relative;
}

.hero-stat + .hero-stat {
  padding-left: var(--sp-md);
  border-left: 1px solid var(--divider);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--meta);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
  line-height: 1.4;
}

/* ── Right panel ── */
.hero-right {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  align-self: start;
  overflow: hidden;
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
  animation: heroRevealRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero-right::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(15,23,42,0.44) 0%, rgba(15,23,42,0.06) 42%, rgba(15,23,42,0.0) 62%);
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: grayscale(10%) contrast(1.08) brightness(0.88);
  transform: scale(1);
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-right {
    position: relative;
    clip-path: none;
    height: 40vh;
    min-height: 300px;
  }

  .hero-left {
    padding: var(--sp-xl) 0 var(--sp-lg);
  }

  .hero-left-inner {
    margin-left: 0;
    padding-right: 0;
    max-width: 100%;
    width: 100%;
  }

  .hero-stats {
    background: transparent;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  .hero-bg-image {
    background-attachment: scroll;
  }

}

@media (max-width: 600px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--sp-sm);
  }

  .hero-stat {
    flex: 1 1 calc(50% - var(--sp-sm));
    padding-right: 0;
  }

  .hero-stat + .hero-stat {
    padding-left: 0;
    border-left: none;
  }

  .hero-stat:nth-child(odd) {
    border-right: 1px solid var(--divider);
    padding-right: var(--sp-sm);
  }

  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) {
    border-top: 1px solid var(--divider);
    padding-top: var(--sp-sm);
    margin-top: var(--sp-xs);
  }
}
