/* =============================================
   TONARHA — Hero Section
   ============================================= */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem var(--container-px) 5rem;
  text-align: center;
  overflow: hidden;
}

/* ===== Background watermark logo ===== */
.hero-logo-bg {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 38vw, 520px);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero-logo-bg img {
  width: 100%;
  height: auto;
  display: block;
  filter: invert(1);
  opacity: 0.045;
  mix-blend-mode: screen;
}

/* ===== Radial glow behind content ===== */
#hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 101, 0, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  width: 100%;
}

/* ===== Tag line ===== */
.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;

  /* Initial state — animated in by JS */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-tag.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Headline ===== */
.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  margin-bottom: 2rem;
  min-height: 4em; /* prevent layout shift during typewriter */
}

.hero-line {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  opacity: 0; /* shown by typewriter JS */
  word-break: break-word;
}

/* Cursor shown during typing — added/removed via JS */
.hero-line.typing::after {
  content: '_';
  color: var(--color-orange);
  animation: blink-cursor 0.7s step-end infinite;
}

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

/* ===== Sub-headline ===== */
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;

  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-sub.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CTA Buttons ===== */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;

  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-actions.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Scroll arrow ===== */
.hero-scroll-arrow {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  animation: bounce-arrow 2.2s ease-in-out infinite;
}

.hero-scroll-arrow:hover {
  opacity: 1;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .hero-logo-bg {
    display: none;
  }

  #hero {
    padding: 6rem var(--container-px) 5rem;
  }

  .hero-headline {
    gap: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }
}
