/* ==========================================================================
   Hero Section — Full viewport with immersive gradient & particle canvas
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* ── Background Layers ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Deep gradient base */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(46, 104, 233, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(124, 92, 252, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-abyss) 0%, var(--bg-deep) 40%, var(--bg-base) 100%);
}

/* Animated aurora sweep */
.hero-bg::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background:
    radial-gradient(ellipse 40% 30% at 30% 30%, rgba(46, 104, 233, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 35% 25% at 70% 40%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
  animation: aurora-drift 20s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(3%, -2%) rotate(1deg); }
  100% { transform: translate(-2%, 3%) rotate(-1deg); }
}

/* Canvas for particle orbs */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--blue-300);
  background: rgba(46, 104, 233, 0.1);
  border: 1px solid rgba(46, 104, 233, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--blue-300), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

/* ── Install Command Block ── */
.install-block {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(10, 14, 30, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  backdrop-filter: blur(12px);
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  max-width: 100%;
  overflow-x: auto;
}

.install-block:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-sm);
}

.install-block .prompt {
  color: var(--blue-400);
  user-select: none;
}

.install-block code {
  color: var(--text-primary);
  white-space: nowrap;
}

.copy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: all var(--duration-fast) var(--ease-out);
}

.copy-btn:hover {
  color: var(--blue-400);
  border-color: var(--border-glow);
  background: var(--bg-raised);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.copy-btn svg {
  width: 16px;
  height: 16px;
}

.copy-btn.copied {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

/* ── Hero CTA Buttons ── */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

/* ── Bottom gradient fade into next section ── */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg-deep));
  z-index: 2;
  pointer-events: none;
}
