/* ============================================================
   Influeri — Hero section variations
   Reuses brand tokens + components from styles.css
   (--grad, --primary, --text, --white, .btn, .prompt-card, .creator, .acct)
   ============================================================ */

.hv {
  position: relative;
  overflow: hidden;
  background: var(--white);
  min-height: 800px;
  display: flex;
  align-items: center;
  padding: 110px 24px 84px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.hv__label {
  position: absolute;
  top: 92px;
  left: 24px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary);
  padding: 8px 13px;
  border-radius: 999px;
}
.hv__label span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #0b0b0b;
}
.hv__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}
.hv__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-size: clamp(16px, calc(6.4vw - 2px), 38px);
  margin: 0 0 16px;
}
.hv__title-line {
  display: block;
  white-space: nowrap;
}
.hv__sub {
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 28px;
}
.hv__prompt {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  min-height: 184px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--white);
}

/* ---- suggestion chips (shared) ---- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.chip {
  font: 600 13px/1 var(--font-body);
  color: var(--primary);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: #0b0b0b; }
.chip:hover, .chip.is-active {
  border-color: transparent;
  background: #0b0b0b;
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 11, 11, 0.25);
}
.chip:hover .chip__dot, .chip.is-active .chip__dot { background: #fff; background-image: none; }

/* ============================================================
   V1 — Ambient Float + parallax
   ============================================================ */
.hv1 .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.2s ease-out;
  -webkit-mask-image: radial-gradient(ellipse 46% 58% at 50% 46%, transparent 36%, #000 82%);
          mask-image: radial-gradient(ellipse 46% 58% at 50% 46%, transparent 36%, #000 82%);
}
.hv1__featured { position: relative; max-width: 360px; margin: 22px auto 0; text-align: left; }
.hv1__match {
  position: absolute; top: 12px; right: 14px;
  padding: 3px 10px; border-radius: 999px;
  background: #0b0b0b; color: #fff;
  font-size: 11px; font-weight: 700;
}

/* ============================================================
   V2 — AI Typewriter + live match
   ============================================================ */
.hv2 {
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.05) 1px, transparent 0) 0 0 / 26px 26px,
    var(--white);
}
.hv2::before, .hv2::after {
  content: ""; position: absolute; width: 380px; height: 380px;
  border-radius: 50%; filter: blur(70px); z-index: 0; pointer-events: none;
}
.hv2::before { background: rgba(11, 11, 11, 0.16); top: -130px; left: -90px; }
.hv2::after  { background: rgba(130, 130, 130, 0.22); bottom: -150px; right: -90px; }
.hv2__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
  text-align: left;
}
.hv2__results .creator { transition: opacity 0.35s ease, transform 0.35s ease; }
.hv2__results.is-loading .creator { opacity: 0.3; transform: translateY(8px); }
.tw-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--primary); margin-left: 1px; vertical-align: -2px;
  animation: tw-blink 1s step-end infinite;
}
@keyframes tw-blink { 50% { opacity: 0; } }

/* ============================================================
   V3 — Spotlight + marquee
   ============================================================ */
.hv3__spot {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 38%),
    rgba(11, 11, 11, 0.16), rgba(130, 130, 130, 0.12) 42%, transparent 72%);
}
.marquee {
  position: relative; z-index: 1; margin-top: 30px; overflow: hidden;
  padding: 10px 0;
  --mq-gap: 16px;
  --mq-duration: 30s;
  /* Fade edges - softer gradient, more visible content area */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 16px; }
.marquee__track { display: flex; gap: var(--mq-gap); width: max-content; animation: scrollX var(--mq-duration) linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
/* Pause on hover (desktop) AND on focus/touch (mobile) */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.paused .marquee__track { animation-play-state: paused; }
/* Visual affordance: subtle shadow on pause */
.marquee:hover,
.marquee:focus-within,
.marquee.paused { box-shadow: inset 0 0 0 1px rgba(11, 11, 11, 0.06); }
.marquee .acct {
  position: static; animation: none; transform: none; flex: none;
  box-shadow: 0 1px 2px rgba(11, 11, 11, 0.05), 0 6px 16px -8px rgba(11, 11, 11, 0.14);
  /* Slightly slower transition for smoother pause */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.marquee .acct:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 11, 11, 0.1), 0 8px 24px -8px rgba(11, 11, 11, 0.18);
}
/* The track is one set + one duplicate separated by --mq-gap, so a set advances
   by half the track PLUS half a gap. Travelling a bare -50% lands 8px short and
   the row visibly jumps at every wrap. */
@keyframes scrollX { to { transform: translateX(calc(-50% - var(--mq-gap) / 2)); } }

/* Reduced motion: freeze animation, show as scrollable strip */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
            mask-image: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .marquee__track { animation: none; display: flex; gap: var(--mq-gap); width: max-content; }
  .marquee::-webkit-scrollbar { height: 6px; }
  .marquee::-webkit-scrollbar-track { background: transparent; }
  .marquee::-webkit-scrollbar-thumb {
    background: var(--line); border-radius: 999px; border: 2px solid transparent;
    background-clip: content-box;
  }
}

/* ============================================================
   V4 — Chat with AI
   ============================================================ */
.hv4__chat {
  max-width: 560px; margin: 0 auto; text-align: left;
  background: var(--white); border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.10); padding: 18px;
}
.hv4__log { display: flex; flex-direction: column; gap: 12px; min-height: 230px; }
.bubble {
  max-width: 82%; padding: 11px 15px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.5;
  opacity: 0; transform: translateY(8px); animation: rise 0.4s forwards;
}
.bubble--user { align-self: flex-end; background: #0b0b0b; color: #fff; border-bottom-right-radius: 5px; }
.bubble--ai   { align-self: flex-start; background: #f4f4f5; color: var(--primary); border-bottom-left-radius: 5px; }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 13px 15px; background: #f4f4f5; border-radius: 16px; border-bottom-left-radius: 5px; align-self: flex-start; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #bbb; display: inline-block; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.hv4__results { display: flex; flex-direction: column; gap: 10px; }
.hv4__results .creator { opacity: 0; transform: translateY(10px); animation: rise 0.45s forwards; }
.hv4__composer { display: flex; gap: 10px; margin-top: 14px; }
.hv4__composer input {
  flex: 1; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 12px;
  padding: 0 14px; height: 48px; font: 400 15px var(--font-body);
  color: var(--primary); outline: none; transition: border-color 0.15s ease;
}
.hv4__composer input:focus { border-color: #0b0b0b; }
.hv4__send { height: 48px; padding: 0 18px; flex: none; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .hv { min-height: auto; padding: 72px 18px 56px; }
  .hv__label { top: 70px; }
  .hv1 .hero__bg { display: none; }
  .hv2__results { grid-template-columns: 1fr; }
  .hv__prompt, .hv1__featured { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ============================================================
   Showcase — embedded Influeri Studio review deck (iframe).
   The deck reports its own height (see standalone/influeri-studio.html),
   and home/hero-gsap.js sets the exact height; min-height avoids a
   layout jump before that first message arrives.
   ============================================================ */
.studio-embed {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  min-height: 860px;
  overflow: hidden;
}
@media (max-width: 880px) {
  .studio-embed { min-height: 1180px; }
}
