/* ══════════════════════════════════════════
   LINEIGE — HERO
══════════════════════════════════════════ */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-height) var(--section-pad-x) 0;
  position: relative;
  overflow: hidden;
}

/* ── Background layers ── */
.h-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Animated gradient orbs */
.h-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.h-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 106, 245, 0.18) 0%, transparent 65%);
  top: -15%;
  right: -8%;
  animation: orb1 14s ease-in-out infinite alternate;
}

.h-orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--glow2) 0%, transparent 65%);
  bottom: 5%;
  left: 2%;
  animation: orb2 18s ease-in-out infinite alternate;
}

.h-orb-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(165, 148, 255, 0.1) 0%, transparent 65%);
  top: 40%;
  left: 45%;
  animation: orb3 22s ease-in-out infinite alternate;
}

/* Dot grid */
.h-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(124, 106, 245, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 75%);
  will-change: transform;
}

/* Diagonal accent lines */
.h-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, transparent 40%, color-mix(in srgb, var(--accent) 5%, transparent) 40%, color-mix(in srgb, var(--accent) 5%, transparent) 41%, transparent 41%),
    linear-gradient(135deg, transparent 60%, color-mix(in srgb, var(--acid) 5%, transparent) 60%, color-mix(in srgb, var(--acid) 5%, transparent) 61%, transparent 61%);
}

/* ── Content ── */
.h-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.h-eye {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--acid);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  opacity: 0;
  animation: slide-up 0.7s var(--ease-out-quint) 0.1s both;
}

.h-eye::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--acid);
  flex-shrink: 0;
}

.h-name {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 400;
  line-height: 0.88;
  color: var(--snow);
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: slide-up 0.85s var(--ease-out-quint) 0.22s both;
}

.h-name .it {
  font-style: italic;
  color: var(--accent2);
  margin-right: 0.08em;
}

.h-desc {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.85;
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: slide-up 0.85s var(--ease-out-quint) 0.38s both;
}

/* Canvas Background */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.h-typing-box {
  display: inline-flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.8rem 1.4rem;
  border-radius: 100px; /* Pill shape */
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: slide-up 0.85s var(--ease-out-quint) 0.5s both;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.h-typing-box:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow);
}

.h-typing-box .pr {
  color: var(--accent);
  font-size: 0.9em;
}

.h-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--acid);
  margin-left: 3px;
  animation: blink 1s step-end infinite;
}

.h-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: slide-up 0.85s var(--ease-out-quint) 0.66s both;
}

/* Scroll indicator */
.h-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: slide-up 1s var(--ease-out-quint) 1.1s both;
}

.h-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--acid), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

.h-scroll-label {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Light theme adjustments */
[data-theme="light"] .h-name .it {
  color: var(--accent);
}