/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

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

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }

/* Hero stagger */
.hero .reveal:nth-child(1) { transition-delay: 0ms; }
.hero .reveal:nth-child(2) { transition-delay: 150ms; }
.hero .reveal:nth-child(3) { transition-delay: 300ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track { animation: none; }
  .hero__orb, .hero__orb::after, .hero__particle { animation: none; }
}

/* Particle canvas (mouse trail) */
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

/* Grid canvas (background) */
.grid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* CLI Terminal */
.cli-section {
  padding: var(--space-2xl) 0;
}

.cli-terminal {
  background: #0c0c14;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.cli-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.cli-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cli-dot--red { background: #ff5f57; }
.cli-dot--yellow { background: #febc2e; }
.cli-dot--green { background: #28c840; }

.cli-titlebar__text {
  margin-left: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cli-output {
  padding: 16px 20px 8px;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.cli-line {
  white-space: pre;
  min-height: 1.4em;
}

.cli-line--cmd {
  color: var(--text-primary);
}

.cli-line--response {
  color: var(--text-secondary);
}

.cli-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px 16px;
}

.cli-prompt {
  color: var(--cta-green);
  white-space: nowrap;
  font-size: 0.82rem;
}

.cli-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  caret-color: var(--cta-green);
}

.cli-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}
