/* ============================================================
   HERO HOME
   All rules scoped to .hero-home to avoid conflicts.
   ============================================================ */

/* ------------------------------------------------------------
   Section wrapper
   ------------------------------------------------------------ */
.hero-home {
  position: relative;
  background: #0E1438;
  min-height: 720px;
  padding: 9rem 0 11rem;
  overflow: hidden;
}

/* ------------------------------------------------------------
   Inner container — text content, sits above bull (z-index 2)
   Matches .container: max-width 1440px, padding-inline 48px
   ------------------------------------------------------------ */
.hero-home__container {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 48px;
  z-index: 2;
}

/* ------------------------------------------------------------
   Beta Badge
   ------------------------------------------------------------ */
.hero-home__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 159, 220, 0.12);
  border: 0.5px solid rgba(196, 159, 220, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 2rem;
  font-size: 11px;
  color: #C49FDC;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  font-family: Inter, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero-home__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C49FDC;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   Headline
   ------------------------------------------------------------ */
.hero-home__headline {
  font-family: 'Inter Display', Inter, -apple-system, sans-serif;
  font-size: 72px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 1.5rem;
  max-width: 1000px;
  white-space: nowrap;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------
   Rotating word container — inline-grid stacks all words
   in the same cell; only one is visible at a time via animation
   ------------------------------------------------------------ */
.hero-home__word-container {
  display: inline-grid;
  min-width: 320px;
  vertical-align: top;
}

.hero-home__rotating-word {
  grid-column: 1;
  grid-row: 1;
  color: #C49FDC;
  opacity: 0;
  animation: word-cycle 12s ease-in-out infinite;
  animation-fill-mode: both;
}

.hero-home__rotating-word:nth-child(1) { animation-delay: 0s;  }
.hero-home__rotating-word:nth-child(2) { animation-delay: 3s;  }
.hero-home__rotating-word:nth-child(3) { animation-delay: 6s;  }
.hero-home__rotating-word:nth-child(4) { animation-delay: 9s;  }

@keyframes word-cycle {
  0%   { opacity: 0; transform: translateY(20px);  }
  5%   { opacity: 1; transform: translateY(0);     }
  15%  { opacity: 1; transform: translateY(0);     }
  20%  { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* ------------------------------------------------------------
   Subhead
   ------------------------------------------------------------ */
.hero-home__subhead {
  font-family: Inter, -apple-system, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 720px;
  margin-bottom: 2rem;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------
   CTA Button
   ------------------------------------------------------------ */
.hero-home__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0E1438;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: Inter, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

.hero-home__cta:hover {
  background: #F4F4F4;
  color: #0E1438;
  text-decoration: none;
}

/* ------------------------------------------------------------
   Bull Watermark — sits at the bottom of the hero, fully visible
   ------------------------------------------------------------ */
.hero-home__bull {
  position: absolute;
  right: 4%;
  top: 6rem;        /* horns sit at badge pill height */
  width: 480px;
  height: 480px;
  opacity: 0.22;
  z-index: 1;
  pointer-events: none;
}

.hero-home__bull svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — max-width: 1024px */
@media (max-width: 1024px) {
  .hero-home {
    padding: 7rem 0 8rem;
  }

  .hero-home__headline {
    font-size: 56px;
    white-space: normal;
  }

  .hero-home__word-container {
    min-width: 240px;
  }

  .hero-home__bull {
    width: 360px;
    height: 360px;
    right: 2%;
  }
}

/* Large mobile / small tablet — up to 720px
   Bull sits at the bottom-right, same as desktop */
@media (max-width: 720px) {
  .hero-home {
    padding: 4rem 0 4rem;
    min-height: 560px;
  }

  .hero-home__bull {
    width: 160px;
    height: 160px;
    bottom: 0;
    top: auto;
    right: 0;
    opacity: 0.22;
    z-index: 0;
  }
}

/* Standard mobile — max-width: 640px */
@media (max-width: 640px) {
  .hero-home__container {
    padding-inline: 24px;
  }

  .hero-home__headline {
    font-size: 40px;
    white-space: normal;
  }

  .hero-home__word-container {
    min-width: 180px;
  }

  .hero-home__subhead {
    font-size: 17px;
    max-width: 100%;
  }

  .hero-home__bull {
    width: 150px;
    height: 150px;
  }
}

/* Very small phones — max-width: 380px */
@media (max-width: 380px) {
  .hero-home__headline {
    font-size: 36px;
  }

  .hero-home__bull {
    width: 130px;
    height: 130px;
  }
}

/* ============================================================
   ACCESSIBILITY — prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-home__rotating-word {
    animation: none;
    opacity: 0;
    transform: none;
  }
  .hero-home__rotating-word:first-child {
    opacity: 1;
  }
  .hero-home__bull svg animate {
    animation-duration: 0.01ms !important;
  }
}
