/* Expert-kit style hero for Training landing */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700&display=swap");

.apex-ek-hero {
  --ek-ink: #0a0a0a;
  --ek-accent: #523bfd;
  --ek-badge: #6b5cff;
  --ek-muted: #111;
  --ek-split: 50%;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  height: min(100svh, 980px);
  padding-top: 72px;
  background: #ffffff;
  overflow: hidden;
  font-family: Inter, "Inter Display", system-ui, sans-serif;
  color: var(--ek-ink);
  box-sizing: border-box;
}

/* White stage like Expert-kit (raw video is dark — invert to chrome-on-white) */
.apex-ek-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #ffffff;
  overflow: hidden;
}

.apex-ek-hero__video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.apex-ek-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  opacity: 0.85;
  /* Flip dark footage → light chrome form on white */
  filter: invert(1);
  mix-blend-mode: normal;
  transform: none;
}

/* Keep slot for JS refresh detection; unused visually */
.apex-ek-hero__mask {
  display: none;
}

/* Soft right half (Expert-kit blur panel) */
.apex-ek-hero__media-blur {
  position: absolute;
  top: 0;
  left: var(--ek-split);
  right: 0;
  bottom: 0;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.12);
}

.apex-ek-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100% - 72px);
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 56px clamp(24px, 4vw, 64px) 72px;
  /* Sit text in the blurred half with breathing room from the split */
  padding-left: max(32px, calc(var(--ek-split) + clamp(36px, 5vw, 72px)));
  box-sizing: border-box;
}

.apex-ek-hero__content {
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
}

.apex-ek-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--ek-badge);
  border-radius: 999px;
  box-sizing: border-box;
  color: var(--ek-badge);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  background: rgba(255, 255, 255, 0.35);
}

.apex-ek-hero__title {
  margin: 0;
  padding: 0;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.apex-ek-hero__title-accent {
  color: var(--ek-accent);
  display: block;
}

.apex-ek-hero__sub {
  margin: 0;
  padding: 0;
  max-width: 36ch;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ek-muted);
}

.apex-ek-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.apex-ek-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.apex-ek-hero__btn:hover {
  transform: translateY(-1px);
}

.apex-ek-hero__btn--primary {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}

.apex-ek-hero__btn--primary:hover {
  background: #1d1d1f;
}

.apex-ek-hero__btn--secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #0a0a0a;
  border: 1px solid rgba(29, 29, 31, 0.45);
}

.apex-ek-hero__btn--secondary:hover {
  border-color: #0a0a0a;
}

@media (max-width: 900px) {
  .apex-ek-hero {
    height: auto;
    min-height: auto;
  }

  .apex-ek-hero__media {
    position: relative;
    height: min(42vw, 260px);
    min-height: 200px;
  }

  .apex-ek-hero__video-wrap {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .apex-ek-hero__media-blur {
    left: 0;
    top: 42%;
  }

  .apex-ek-hero__media video {
    object-position: 50% 40%;
    opacity: 0.85;
  }

  .apex-ek-hero__inner {
    display: block;
    min-height: 0;
    height: auto;
    padding: 24px 20px 48px;
  }

  .apex-ek-hero__content {
    width: 100%;
    gap: 14px;
  }

  .apex-ek-hero__title {
    font-size: clamp(32px, 9vw, 42px);
  }

  .apex-ek-hero__sub {
    max-width: none;
    font-size: 15px;
  }

  .apex-ek-hero__actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .apex-ek-hero__btn {
    width: 100%;
    min-width: 0;
    flex: none;
  }
}

@media (max-width: 480px) {
  .apex-ek-hero__media {
    height: 200px;
  }

  .apex-ek-hero__badge {
    font-size: 10px;
    padding: 7px 12px;
  }
}
