/*
  REVALYTICS — HERO SECTION
  Homepage hero: image card, counter, copy grid, CTAs.
  The .live-dot animation keyframe is defined in wirebar.css (shared).
*/

/* ─── Wrapper ────────────────────────────────────────── */
.hero-wrap {
  margin: 90px 30px 0;
}

/* ─── Card ───────────────────────────────────────────── */
.hero-card {
  position: relative;
  border-radius: var(--rev-radius-lg);
  overflow: hidden;
  background: url('../../images/hero-section-backgroud-blue-gradient.webp') center center / cover no-repeat;
  min-height: 820px;
  padding: 160px 80px 60px;
  box-shadow: var(--rev-shadow-card);
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4,18,45,0.55) 0%, rgba(4,18,45,0.15) 50%, rgba(4,18,45,0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-card > * {
  position: relative;
  z-index: 2;
}

/* ─── Background image overlay (alternate structure) ─── */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../../images/hero-section-backgroud-blue-gradient.webp');
  background-size: cover;
  background-position: center center;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(4,18,45,0.82) 0%,
    rgba(4,18,45,0.68) 35%,
    rgba(4,18,45,0.35) 65%,
    rgba(4,18,45,0.55) 100%);
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(4,18,45,0.35) 0%,
    transparent 25%,
    transparent 75%,
    rgba(4,18,45,0.25) 100%);
  z-index: 2;
}

/* ─── Decorative orb ─────────────────────────────────── */
.hero-orb {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 1400px;
  height: 560px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--rev-blue-orb-30);
  filter: blur(60px);
  pointer-events: none;
}

/* ─── Content area ───────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── Eyebrow with live dot ──────────────────────────── */
.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rev-blue-300);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Hero-specific live dot size */
.hero-eyebrow .live-dot {
  width: 8px;
  height: 8px;
}

.hero-counter-meta .live-dot {
  width: 7px;
  height: 7px;
}

/* ─── Counter ────────────────────────────────────────── */
.hero-counter-label {
  font-family: var(--rev-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rev-text-on-dark-muted);
  margin-bottom: 16px;
}

.hero-counter {
  font-family: var(--rev-font-sans);
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 500;
  line-height: 0.9;
  color: #fff;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.hero-counter-meta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--rev-font-mono);
  font-size: 13px;
  color: var(--rev-text-on-dark-muted);
  font-variant-numeric: tabular-nums;
}

/* ─── Copy grid (headline + CTA) ─────────────────────── */
.hero-copy {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  text-align: left;
  align-items: end;
}

.hero-headline {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}

.hero-headline .muted {
  color: rgba(255, 255, 255, 0.92);
}

/* ─── CTA area ───────────────────────────────────────── */
.hero-cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-meta-line {
  font-family: var(--rev-font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Stat labels (below CTA) ────────────────────────── */
.stat-cut-label {
  font-size: 10px;
  color: var(--rev-text-muted);
  margin-top: 4px;
  text-align: center;
}

.stat-val {
  margin-top: 6px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
}

.stat-head {
  font-family: var(--rev-font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rev-text-muted);
  text-align: center;
}

/* ─── Dashboard image (if used) ──────────────────────── */
.hero-dashboard {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  padding: 0 100px;
}

.hero-dashboard img {
  width: 100%;
  display: block;
  border-radius: var(--rev-radius-md);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

.hero-dashboard-fade {
  position: absolute;
  left: 100px;
  right: 100px;
  bottom: 0;
  height: 120px;
  border-radius: 0 0 var(--rev-radius-md) var(--rev-radius-md);
  background: linear-gradient(180deg, rgba(4,18,45,0) 0%, rgba(4,18,45,0.6) 100%);
  pointer-events: none;
}

/* ─── Tablet overrides (≤1024px) ─────────────────────── */
@media (max-width: 1024px) {
  .hero-card {
    padding: 140px 40px 60px !important;
    min-height: auto !important;
    text-align: center !important;
  }

  .hero-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    max-width: 800px !important;
    margin: 48px auto 0 !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .hero-title,
  .hero-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-cta-group {
    justify-content: center !important;
    width: 100% !important;
  }

  .hero-dashboard {
    padding: 0 20px !important;
  }

  .hero-dashboard-fade {
    left: 20px !important;
    right: 20px !important;
  }
}

/* ─── Mobile overrides (≤640px) ──────────────────────── */
@media (max-width: 640px) {
  .hero-wrap {
    margin: 75px 0 0 !important;
    padding: 0 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .hero-card {
    padding: 40px 20px 32px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-copy {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-top: 40px !important;
  }

  .hero-cta-area {
    align-items: center !important;
  }

  .hero-meta-line {
    font-size: 11px !important;
    text-align: left !important;
    white-space: nowrap !important;
  }

  .hero-content {
    padding: 0 4px !important;
  }

  .hero-eyebrow {
    font-size: 11px !important;
    margin-bottom: 16px !important;
  }

  .hero-counter {
    font-size: clamp(36px, 10vw, 60px) !important;
    line-height: 1 !important;
  }

  .hero-counter-label {
    font-size: 10px !important;
  }

  .hero-counter-meta {
    font-size: 11px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: center !important;
  }

  .hero-headline {
    font-size: clamp(20px, 5.5vw, 30px) !important;
    text-align: left !important;
  }

  .hero-dashboard {
    padding: 0 !important;
  }

  .hero-dashboard-fade {
    left: 0 !important;
    right: 0 !important;
  }
}

main {
  margin-top: 0 !important;
}
