/* ===========================
   BENTOPIA — Hero / Video BG
   =========================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Video Background ── */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.55) saturate(0.8);
}

/* Overlay gradient to blend video into site color */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(18, 7, 18, 0.35) 0%,
      rgba(18, 7, 18, 0.1)  40%,
      rgba(18, 7, 18, 0.65) 85%,
      var(--color-bg)        100%
    );
}

/* Scanline texture for a techy feel */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
}

/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 860px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

/* Terminal cursor blink */
.hero-typing-line {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  min-height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-typing-line .typed-text {
  /* text filled by JS */
}

.hero-typing-line .cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--color-teal);
  margin-left: 4px;
  border-radius: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text-dim);
  letter-spacing: 0.12em;
  margin-top: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

/* Highlight colors in typing text */
.hero-typing-line em {
  font-style: normal;
  color: var(--color-teal);
}
.hero-typing-line strong {
  font-weight: normal;
  color: var(--color-red);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 2s forwards;
}

.scroll-hint span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.scroll-hint .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero-typing-line {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }
}