/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  padding: 140px 48px 80px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-gradient {
  position: absolute;
  top: -20%; right: -10%;
  width: 70%; height: 120%;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.15), transparent 60%);
  animation: drift 20s ease-in-out infinite;
}
.hero-gradient.two {
  top: auto; bottom: -20%; left: -10%; right: auto;
  background: radial-gradient(ellipse, rgba(255, 184, 0, 0.08), transparent 60%);
  animation-delay: -10s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, 5%) scale(1.1); }
}

.hero-canvas {
  position: absolute;
  inset: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s var(--ease-out) forwards;
}
.hero-meta .dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-bottom: 40px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: inline-block;
  transform: translateY(100%);
  animation: slideUp 1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.5s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.7s; }
@keyframes slideUp {
  to { transform: translateY(0); }
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cyan);
}
.hero-title .outline {
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
  font-weight: 700;
}

.hero-typer {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-mute);
  margin-bottom: 40px;
  min-height: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 1s var(--ease-out) forwards;
}
.hero-typer .prompt { color: var(--cyan); margin-right: 8px; }
.hero-typer .caret {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--gold);
  vertical-align: middle;
  margin-left: 4px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% { opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s var(--ease-out) forwards;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 500px;
  justify-self: end;
  width: 100%;
  opacity: 0;
  animation: fadeIn2 1.2s 0.8s var(--ease-out) forwards;
}
@keyframes fadeIn2 { to { opacity: 1; } }

.orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  animation: rotate 40s linear infinite;
}
.orbit.two {
  inset: 15%;
  animation-duration: 30s;
  animation-direction: reverse;
  border-style: dotted;
}
.orbit.three {
  inset: 30%;
  animation-duration: 20s;
}
@keyframes rotate {
  to { transform: rotate(360deg); }
}
.orbit-dot {
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--cyan);
  transform: translateX(-50%);
}
.orbit.two .orbit-dot { background: var(--gold); box-shadow: 0 0 20px var(--gold); }
.orbit.three .orbit-dot { background: var(--text); box-shadow: 0 0 15px var(--text); }

.hero-core {
  position: absolute;
  inset: 45%;
  background: radial-gradient(circle, var(--cyan), var(--navy));
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(0, 212, 255, 0.5), inset 0 0 30px rgba(255,255,255,0.2);
  animation: pulseCore 3s ease-in-out infinite;
}
@keyframes pulseCore {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

.hero-floating {
  position: absolute;
  padding: 10px 14px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  animation: float 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-floating .ic {
  width: 20px; height: 20px;
  background: var(--cyan);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 700;
}
.hero-floating.f1 { top: 10%; left: -10%; }
.hero-floating.f2 { top: 60%; right: -5%; animation-delay: -1s; }
.hero-floating.f3 { bottom: 10%; left: 0; animation-delay: -2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-faint);
  text-transform: uppercase;
  z-index: 2;
}
.hero-scroll .line-anim {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line-anim::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 20px;
  background: var(--cyan);
  animation: scrollIndicator 2s ease-in-out infinite;
}
@keyframes scrollIndicator {
  0% { top: -20px; }
  100% { top: 40px; }
}

@media (max-width: 968px) {
  .hero { padding: 120px 24px 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 320px; margin: 0 auto; }
  .hero-floating.f1 { left: 0; }
}

/* ============================================
   PAGE HERO (non-home pages)
   ============================================ */
.page-hero {
  padding: 180px 48px 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 16px 0 24px;
  max-width: 900px;
}
.page-hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cyan);
}
.page-hero-lead {
  font-size: 18px;
  color: var(--text-mute);
  max-width: 620px;
}
@media (max-width: 968px) {
  .page-hero { padding: 140px 24px 60px; }
}
