/* ============================================
   HERO — Immersive Warehouse Operating System
   ============================================ */

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

/* ── Hero ambient glow ── */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(0, 163, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ── Left: Content ── */
.hero__content {
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  animation: fade-up 0.8s var(--ease-out) both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--blue-electric);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 163, 255, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-8);
  animation: fade-up 0.8s var(--ease-out) 0.1s both;
}

.hero__title-gradient {
  background: linear-gradient(135deg, var(--blue-electric) 0%, var(--blue-cyan) 50%, var(--blue-electric) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: var(--space-10);
  animation: fade-up 0.8s var(--ease-out) 0.2s both;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fade-up 0.8s var(--ease-out) 0.3s both;
}

/* ── Right: Visualization ── */
.hero__visual {
  position: relative;
  width: 100%;
  height: 600px;
  perspective: 1200px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── AI Core ── */
.hero__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  z-index: 5;
}

.hero__core-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.4) 0%, rgba(0, 102, 255, 0.1) 50%, transparent 70%);
  box-shadow: var(--glow-blue-xl);
  animation: core-pulse 4s ease-in-out infinite;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__core-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-cyan);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.hero__core-ring {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1px solid rgba(0, 163, 255, 0.2);
  animation: rotate-slow 20s linear infinite;
}

.hero__core-ring--2 {
  inset: -30px;
  border-color: rgba(0, 163, 255, 0.1);
  animation: rotate-reverse 30s linear infinite;
}

.hero__core-ring--3 {
  inset: -50px;
  border-color: rgba(0, 163, 255, 0.06);
  animation: rotate-slow 40s linear infinite;
  border-style: dashed;
}

.hero__core-pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 163, 255, 0.3);
  animation: pulse-ring 3s ease-out infinite;
}

.hero__core-pulse-ring--2 {
  animation-delay: 1s;
}

.hero__core-pulse-ring--3 {
  animation-delay: 2s;
}

/* ── Floating Module Cards ── */
.hero__module {
  position: absolute;
  z-index: 10;
  background: rgba(7, 17, 30, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 163, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: default;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.hero__module:hover {
  border-color: rgba(0, 163, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 163, 255, 0.15);
  transform: scale(1.05) !important;
}

.hero__module-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(0, 163, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.hero__module-icon svg {
  width: 16px;
  height: 16px;
}

.hero__module-info {
  display: flex;
  flex-direction: column;
}

.hero__module-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-primary);
}

.hero__module-stat {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Module positions — arranged around center */
.hero__module--inventory   { top: 8%;  left: 50%; animation: float-centered 6s ease-in-out infinite; }
.hero__module--orders      { top: 20%; right: 2%; animation: float 7s ease-in-out infinite 0.5s; }
.hero__module--forecast    { top: 55%; right: 0; animation: float 6.5s ease-in-out infinite 1s; }
.hero__module--transfers   { bottom: 8%; right: 15%; animation: float 7.5s ease-in-out infinite 1.5s; }
.hero__module--analytics   { bottom: 5%; left: 15%; animation: float 6s ease-in-out infinite 2s; }
.hero__module--procurement { top: 55%; left: 0; animation: float 7s ease-in-out infinite 2.5s; }
.hero__module--barcode     { top: 20%; left: 2%; animation: float 6.5s ease-in-out infinite 3s; }

/* ── Floating stat cards ── */
.hero__stat-card {
  position: absolute;
  z-index: 12;
  background: rgba(7, 17, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 163, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  animation: float-slow 8s ease-in-out infinite;
}

.hero__stat-card--accuracy {
  top: -10%;
  right: 0;
}

.hero__stat-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-electric);
  margin-bottom: var(--space-1);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
}

.hero__stat-sub {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    height: 500px;
    margin-top: var(--space-8);
  }

  .hero__stat-card--accuracy {
    top: 2%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: var(--space-20);
  }

  .hero__visual {
    height: 400px;
  }

  .hero__module {
    padding: var(--space-2) var(--space-3);
  }

  .hero__module-icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .hero__module-name {
    font-size: 10px;
  }

  .hero__module-stat {
    display: none;
  }

  .hero__stat-card {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__module--orders  { right: 8%; }
  .hero__module--forecast { right: 8%; }
}

@media (max-width: 390px) {
  .hero__visual {
    height: 300px;
  }

  .hero__module--procurement,
  .hero__module--analytics,
  .hero__module--barcode {
    display: none;
  }
}
