/* ══════════════════════════════════════════
   HERO — Hybrid (copiacodice + index)
   ══════════════════════════════════════════ */

#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

#hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#bfly-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 40px 0 40px;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-tagline-dot {
  width: 8px;
  height: 8px;
  background: #8d01c6;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(141,1,198,0.7); }
  50% { box-shadow: 0 0 0 8px rgba(141,1,198,0); }
}

.hero-tagline span {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #a855f7;
  text-transform: uppercase;
}

.hero-typewriter-inline {
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 900;
  font-size: clamp(52px, 8vw, 120px);
  line-height: 0.92;
  color: #ffffff !important;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.hero-title .outline {
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.35);
  color: transparent;
}

.hero-title .purple-word {
  color: #8d01c6;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 0 40px;
  margin-top: 16px;
}

.hero-copy p {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  font-weight: 300;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 32px 40px 48px;
  position: relative;
  z-index: 3;
}

.hero-typewriter-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.typewriter-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #94a3b8;
  text-transform: uppercase;
}

.typewriter-text {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  min-height: 30px;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #8d01c6;
  vertical-align: middle;
  margin-left: 3px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-scroll-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #8d01c6, transparent);
  animation: scroll-line 1.5s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

@media (max-width: 768px) {
  #hero {
    justify-content: center;
    padding-top: 15vh;
  }
  .hero-content { padding: 0 20px; }
  .hero-copy { padding: 0 20px; }
  .hero-bottom { padding: 24px 20px 40px; flex-direction: column; gap: 24px; align-items: flex-start; }

  /* Logo bar mobile: label on row 1 centered, marquee on row 2 */
  #logo-bar-section { padding: 32px 0 !important; }
  .logo-bar-label-row { margin-bottom: 16px !important; padding: 0 20px !important; }
  #logo-bar-section > div:last-child { padding: 0 !important; }
}
