.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--space-32);
  padding-bottom: var(--space-20);
}

/* ---- 2-column grid layout ---- */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-8);
  position: relative;
  z-index: var(--z-base);
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: var(--z-base);
  min-width: 0;
  overflow: hidden;
}

.hero__title {
  font-size: clamp(var(--text-4xl), 4.5vw, var(--text-6xl));
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  white-space: nowrap;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-accent-300);
  margin-bottom: var(--space-8);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent-400);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__subtitle {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--color-text-secondary);
  max-width: 640px;
  margin-bottom: var(--space-10);
  line-height: var(--leading-relaxed);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

/* Hero entrance animation */
.hero__badge,
.hero__title,
.hero__subtitle,
.hero__actions,
.hero__stats {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__badge { animation-delay: 0.1s; }
.hero__title { animation-delay: 0.25s; }
.hero__subtitle { animation-delay: 0.4s; }
.hero__actions { animation-delay: 0.55s; }
.hero__stats { animation-delay: 0.7s; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__stat-number {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================
   ILLUSTRATION — Neural Orb
   ============================================ */
.hero__illustration {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 640px;
  justify-self: center;
  pointer-events: none;
  /* Entrance + float */
  opacity: 0;
  animation: heroIllustrationIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes heroIllustrationIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Continuous float after entrance (applied via JS class or always-on) */
.hero__illustration canvas {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  filter: blur(0);
  animation: heroOrbFloat 7s ease-in-out infinite alternate;
}

@keyframes heroOrbFloat {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-14px) scale(1.02); }
  100% { transform: translateY(10px) scale(0.98); }
}

/* Back glow — large, deep cloud */
.hero__illustration-glow-back {
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(16, 70, 155, 0.7) 0%,
    rgba(10, 50, 120, 0.35) 30%,
    rgba(6, 30, 80, 0.12) 55%,
    transparent 75%
  );
  filter: blur(50px);
  pointer-events: none;
  animation: heroGlowPulse 8s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.06); }
}

/* Front glow — frosted depth overlay */
.hero__illustration-glow-front {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(30, 140, 230, 0.18) 0%,
    rgba(20, 110, 200, 0.08) 40%,
    transparent 70%
  );
  filter: blur(20px);
  pointer-events: none;
  z-index: 2;
  animation: heroGlowFrontPulse 6s ease-in-out infinite alternate;
}

@keyframes heroGlowFrontPulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Old visual element — no longer needed */
.hero__visual {
  display: none;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__illustration {
    max-width: 380px;
    margin: 0 auto;
    order: -1;
  }

  .hero__stats {
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--space-32) + var(--space-8));
  }

  .hero__illustration {
    max-width: 280px;
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-6);
  }
}

@media (max-width: 480px) {
  .hero__illustration {
    display: none;
  }
}
