/**
 * Animated Hero Banner Styles
 * Location: /assets/landing/banner-hero-animated/banner-hero-animated.css
 * 
 * All selectors prefixed with "zc-hero" to avoid conflicts with existing styles.
 * This file is completely isolated and won't affect the main landing page CSS.
 */

.zc-hero {
  --zc-lilac: #BBA4E6;
  --zc-purple: #9673D9;
  --zc-navy: #080E49;

  position: relative;
  width: 100%;
  height: 760px;
  overflow: hidden;
  background: var(--zc-navy);
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #ffffff;
  box-sizing: border-box;
}

.zc-hero *,
.zc-hero *::before,
.zc-hero *::after {
  box-sizing: border-box;
}

/* ===== VIDEO BACKGROUND ===== */
.zc-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Soft navy fade on the left so white text stays readable */
.zc-hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(8, 14, 73, 0.55) 0%,
    rgba(8, 14, 73, 0.32) 34%,
    rgba(8, 14, 73, 0) 62%
  );
}

/* ===== LAYOUT ===== */
.zc-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
}

.zc-hero-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 480px;
}

.zc-hero-group {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.zc-hero-group.zc-ready {
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.zc-hero-group.is-intro {
  transform: translateY(var(--zc-shift, 0px));
}

/* ===== EYEBROW ===== */
.zc-hero-eyebrow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(150, 115, 217, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ===== HEADLINE ===== */
.zc-hero-h1-static {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.zc-hero-h1,
.zc-hero-h1-static.zc-visible {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* ===== KINETIC TEXT ANIMATION ===== */
.zc-hero-kinetic {
  display: grid;
}

.zc-hk-stage {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.zc-hk-stage.is-on {
  opacity: 1;
  transform: none;
}

.zc-hk-stage.is-past {
  opacity: 0;
  transform: translateY(-0.35em);
}

.zc-hk-line {
  white-space: nowrap;
}

.zc-hk-slot {
  display: inline-grid;
  vertical-align: baseline;
}

.zc-hk-word {
  grid-area: 1 / 1;
  color: var(--zc-lilac);
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.zc-hk-word.is-on {
  opacity: 1;
  transform: none;
}

.zc-hk-word.is-past {
  opacity: 0;
  transform: translateY(-0.6em);
}

/* ===== BODY COPY ===== */
.zc-hero-para {
  font-size: 17px;
  line-height: 1.55;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease 0.35s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

/* ===== CTA BUTTON ===== */
.zc-hero-btn {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 9999px;
  background: var(--zc-lilac);
  color: var(--zc-navy);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: opacity 0.8s ease 0.6s, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s, visibility 0s linear 0.6s, background 0.2s ease, color 0.2s ease;
}

.zc-hero-btn:hover {
  background: var(--zc-purple);
  color: #ffffff;
}

.zc-hero-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.zc-hero.is-final .zc-hero-para,
.zc-hero.is-final .zc-hero-btn {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* ===== PLAY/PAUSE TOGGLE ===== */
.zc-hero-toggle {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 14, 73, 0.35);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
}

.zc-hero-toggle:hover {
  background: rgba(8, 14, 73, 0.6);
}

.zc-hero-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.zc-hero-toggle svg {
  width: 12px;
  height: 13px;
  fill: currentColor;
}

.zc-hero-toggle .zc-icon-play {
  display: none;
}

.zc-hero-toggle.is-paused .zc-icon-play {
  display: block;
}

.zc-hero-toggle.is-paused .zc-icon-pause {
  display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .zc-hero {
    height: auto;
    min-height: 620px;
    display: flex;
  }

  .zc-hero-inner {
    padding: 120px 20px 72px;
    height: auto;
    width: 100%;
  }

  .zc-hero-h1,
  .zc-hero-h1-static.zc-visible {
    font-size: 38px;
  }

  .zc-hero-para {
    font-size: 16px;
  }

  .zc-hero-scrim {
    background: linear-gradient(180deg, rgba(8, 14, 73, 0.35) 0%, rgba(8, 14, 73, 0.55) 100%);
  }

  .zc-hero-toggle {
    right: 20px;
    bottom: 20px;
  }
}

/* ===== ACCESSIBILITY: PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .zc-hero-kinetic {
    display: none;
  }

  .zc-hero-h1-static {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    font-size: 52px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.5);
  }

  .zc-hero-group.is-intro {
    transform: none;
  }

  .zc-hero-para,
  .zc-hero-btn {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: none;
  }
}