/* Shared visual system for the six MECH Orbit module hero pages. */
.module-page {
  --module-accent: #2bd576;
  --module-rgb: 43, 213, 118;
}

.module-video { --module-accent: #2bd576; --module-rgb: 43, 213, 118; }
.module-planner { --module-accent: #7187ff; --module-rgb: 113, 135, 255; }
.module-work { --module-accent: #20b9f2; --module-rgb: 32, 185, 242; }
.module-stock { --module-accent: #e8c449; --module-rgb: 232, 196, 73; }
.module-finance { --module-accent: #29c99a; --module-rgb: 41, 201, 154; }
.module-book { --module-accent: #b895ff; --module-rgb: 184, 149, 255; }

.module-page .hero {
  background: #080a0d;
}

.module-page .hero-img {
  filter: saturate(.86) contrast(1.05) brightness(.9);
}

.module-page.module-planner .hero-img {
  filter: saturate(.78) contrast(1.06) brightness(.84);
}

.module-page .hero-fade {
  background:
    linear-gradient(to top, rgba(6, 8, 11, .98) 0%, rgba(6, 8, 11, .76) 31%, rgba(6, 8, 11, .12) 64%, rgba(6, 8, 11, .58) 100%),
    linear-gradient(90deg, rgba(6, 8, 11, .74) 0%, rgba(6, 8, 11, .42) 39%, rgba(6, 8, 11, .04) 75%);
}

@media (min-width: 900px) and (max-width: 1099px) {
  .module-page .hero-panel-slot {
    display: none;
  }
}

@media (min-width: 1100px) {
  .module-page .hero-panel-slot {
    left: auto;
    right: clamp(28px, 3vw, 52px);
    width: clamp(300px, 19vw, 336px);
  }

  .module-page.module-video .hero-panel-slot,
  .module-page.module-finance .hero-panel-slot {
    top: 51%;
    transform: translateY(-50%);
  }

  .module-page.module-planner .hero-panel-slot,
  .module-page.module-book .hero-panel-slot {
    top: 44%;
    transform: translateY(-50%);
  }

  .module-page.module-work .hero-panel-slot,
  .module-page.module-stock .hero-panel-slot {
    top: 58%;
    transform: translateY(-50%);
  }

  .module-page .hero-copy {
    top: 92px;
    bottom: 0;
    padding: 0 32px;
  }

  .module-page .hero-copy .wrap {
    position: relative;
    height: 100%;
  }

  .module-page .hero-copy h1 {
    max-width: min(860px, 61vw);
    font-size: clamp(48px, 4.1vw, 64px);
  }

  .module-page .hero-copy .lead {
    max-width: min(640px, 48vw);
  }

  .module-page .hero-cta-row {
    position: absolute;
    left: 32px;
    bottom: 68px;
    margin-top: 0;
  }
}

.module-page .stage-panel {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 20px;
  border: 1px solid rgba(var(--module-rgb), .32);
  border-left: 3px solid var(--module-accent);
  background: linear-gradient(145deg, rgba(12, 14, 18, .98), rgba(24, 27, 33, .95));
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(16px) saturate(.82);
}

.module-page .stage-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0 0, rgba(var(--module-rgb), .14), transparent 46%);
}

.module-page .stage-panel > * {
  position: relative;
  z-index: 1;
}

.module-page .stage-panel .lbl {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--module-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.module-page .stage-panel .lbl::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(var(--module-rgb), .72);
}

.module-page .stage-panel .lbl.live {
  color: var(--module-accent);
}

.module-page .stage-panel .lbl.brand {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: #ff9147;
}

.module-page .stage-panel .ttl {
  margin: 9px 0 0;
  color: #fffdf7;
  font-size: clamp(20px, 1.45vw, 25px);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}

.module-page .stage-panel .row {
  gap: 14px;
  margin-top: 11px;
  color: #c4c9d1;
  font-size: 11px;
  line-height: 1.4;
}

.module-page .stage-panel .row span:last-child {
  color: #eef0f4;
  text-align: right;
}

.module-page .hero-copy .eyebrow {
  color: var(--module-accent);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}

.module-page .hero-copy h1 {
  color: #f7f4ec;
  max-width: min(880px, 64vw);
  text-shadow: 0 3px 22px rgba(0, 0, 0, .85), 0 1px 2px rgba(0, 0, 0, .96);
  text-wrap: balance;
}

.module-page .hero-copy .lead {
  max-width: 640px;
  color: #e1e4e8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .95);
}

.module-page .hero-copy .hero-cta-row {
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, .7));
}

@media (max-width: 899px) {
  .module-page .hero-fade {
    background:
      linear-gradient(to top, rgba(6, 8, 11, .99) 0%, rgba(6, 8, 11, .75) 35%, rgba(6, 8, 11, .12) 66%, rgba(6, 8, 11, .62) 100%),
      linear-gradient(90deg, rgba(6, 8, 11, .52), rgba(6, 8, 11, .08));
  }

  .module-page .hero-copy h1 {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .module-page .hero-img {
    filter: saturate(.82) contrast(1.04) brightness(.86);
  }

  .module-page .hero-copy h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: .98;
  }

  .module-page .hero-copy .lead {
    color: #f0f1f3;
    font-size: 15px;
    line-height: 1.55;
  }
}
