/* css/hero.css: owned by step hero. Mission Control hero. */
.hero { position: relative; padding-block: var(--s-6) var(--s-7); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 40% at 75% 40%, rgba(62, 230, 224, 0.16), transparent 70%),
    radial-gradient(35% 35% at 20% 75%, rgba(255, 154, 77, 0.1), transparent 70%);
}
.hero-grid { display: grid; gap: var(--s-6); align-items: center; }
.hero-eyebrow { margin-bottom: var(--s-3); }
.hero-title { font-family: var(--font-display); font-size: clamp(2rem, 7.6vw, 3.1rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.hero-title .w { display: inline-block; animation: heroWord 0.9s var(--ease-out) both; animation-delay: calc(var(--i) * 110ms + 150ms); }
.hero-grad .w { background: linear-gradient(90deg, var(--cyan), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes heroWord {
  0% { opacity: 0; transform: translateY(0.35em); text-shadow: 0 0 0 transparent; }
  55% { opacity: 1; text-shadow: 0 0 22px rgba(62, 230, 224, 0.85); }
  100% { opacity: 1; transform: none; text-shadow: 0 0 0 transparent; }
}
.hero-sub { margin-top: var(--s-4); }
.hero-actions { margin-top: var(--s-5); }

.hero-stage { position: relative; width: 100%; max-width: 440px; margin-inline: auto; padding: 36px 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
.holo { position: relative; width: min(78vw, 340px); margin-inline: auto; aspect-ratio: 1; animation: holoFloat 6s ease-in-out infinite;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform var(--t-med) var(--ease-out); }
.holo.is-tilting { animation: none; transition: transform 80ms linear; }
@keyframes holoFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.holo-frame { position: relative; width: 100%; height: 100%; border-radius: var(--r-xl); padding: 4px; overflow: hidden;
  background: var(--bg-1); box-shadow: var(--glow-cyan), inset 0 0 0 1px var(--line); }
.holo-frame::before { /* rotating conic border */
  content: ""; position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; margin: -80% 0 0 -80%;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--cyan) 75%, var(--orange) 90%, transparent 100%);
  animation: holoSpin 5s linear infinite;
}
.holo-img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r-xl) - 4px); }
.holo-scan { position: absolute; z-index: 2; left: 4px; right: 4px; top: 0; height: 36%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(62, 230, 224, 0.28) 70%, rgba(255, 255, 255, 0.35) 100%);
  border-bottom: 1px solid rgba(62, 230, 224, 0.8); animation: holoScan 3.8s ease-in-out infinite; }
.holo-lines { position: absolute; z-index: 3; inset: 4px; border-radius: calc(var(--r-xl) - 4px); pointer-events: none; opacity: 0.35; mix-blend-mode: overlay;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0 1px, transparent 1px 4px); }
@keyframes holoSpin { to { transform: rotate(360deg); } }
@keyframes holoScan { 0% { transform: translateY(-100%); } 100% { transform: translateY(300%); } }
.hud { position: absolute; z-index: 4; width: 22px; height: 22px; border: 0 solid var(--cyan); filter: drop-shadow(0 0 4px var(--cyan)); pointer-events: none; }
.hud-tl { left: 12px; top: 12px; border-width: 2px 0 0 2px; }
.hud-tr { right: 12px; top: 12px; border-width: 2px 2px 0 0; }
.hud-bl { left: 12px; bottom: 12px; border-width: 0 0 2px 2px; }
.hud-br { right: 12px; bottom: 12px; border-width: 0 2px 2px 0; }

.hero-chips { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.status-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 6px 10px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: rgba(7, 20, 22, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.2; color: var(--cream); white-space: nowrap; min-height: 28px; }
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex: none; animation: dotPulse 1.6s ease-in-out infinite; }
.status-chip .t { display: inline-block; min-width: 20ch; }
.chip-2 .dot, .chip-4 .dot { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.chip-1 { left: 0; top: 4px; }
.chip-2 { right: 0; top: 40px; }
.chip-3 { left: 0; bottom: 40px; }
.chip-4 { right: 0; bottom: 4px; }
@keyframes dotPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.6); opacity: 0.6; } }

.hero-cue { display: none; }
.hero > .divider-beam { margin-top: var(--s-6); }

@media (min-width: 900px) {
  .hero { min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: center; padding-block: var(--s-8) var(--s-8); }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-8); }
  .hero-title { font-size: clamp(2.8rem, 4.2vw, 4.2rem); }
  .holo { width: 400px; }
  .hero-stage { max-width: 520px; padding: 64px 0; }
  .chip-1, .chip-2 { top: 8px; }
  .chip-3, .chip-4 { bottom: 8px; }
  .status-chip { font-size: 0.8rem; padding: 8px 14px; }
  .hero > .divider-beam { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); margin: 0; }
  .hero-cue { display: flex; flex-direction: column; align-items: center; gap: 8px; position: absolute; left: 50%; bottom: var(--s-5); transform: translateX(-50%);
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; }
  .hero-cue i { width: 2px; height: 28px; background: linear-gradient(var(--cyan), transparent); animation: cueDrop 1.8s ease-in-out infinite; transform-origin: top; }
  @keyframes cueDrop { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  #hero *, #hero *::before, #hero *::after { animation: none !important; transition: none !important; }
  #hero .holo { transform: none; }
  #hero .holo-scan { display: none; }
}
