/* ===========================
   CRAZY HERO WITH WILD VISUALS
   =========================== */

.hero-enhanced {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05), transparent);
  min-height: 120vh;
}

/* 3D BACKGROUND STYLES */
.hero-bg-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#hero-3d-canvas {
  width: 100%;
  height: 100%;
  outline: none;
  border: none;
}


/* Hero Content */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px;
  }

  .blob-container {
    opacity: 0.4;
  }
}

.hero-content {
  max-width: 600px;
}

.hero-content.glass {
  position: relative;
  z-index: 3 !important;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  animation: underline-grow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes underline-grow {
  from {
    width: 0;
  }
  to {
    width: 60%;
  }
}

.hero-subtitle {
  margin: 24px 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  animation: fade-in-up 0.8s ease-out 0.4s both;
}

.pill {
  animation: fade-in-up 0.8s ease-out 0.6s both;
}

/* Crazy Showcase Card */
.hero-showcase {
  position: relative;
  padding: 32px;
  perspective: 1200px;
  animation: fade-in-up 0.8s ease-out 0.3s both;
}

.showcase-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateZ(0);
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.showcase-header h3 {
  margin: 0;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(56, 189, 248, 0.3));
  border: 1px solid rgba(34, 197, 94, 0.6);
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #86efac;
  font-weight: 700;
  animation: badge-bounce 2s ease-in-out infinite;
}

@keyframes badge-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.feature-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg,
      rgba(15, 23, 42, 0.6),
      rgba(31, 41, 55, 0.4));
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 16px;
  animation: feature-slide 0.8s ease-out 0.5s both;
}

@keyframes feature-slide {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  animation: item-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preview-item:nth-child(2) {
  animation-delay: 0.1s;
}

.preview-item:nth-child(4) {
  animation-delay: 0.2s;
}

.preview-item:nth-child(6) {
  animation-delay: 0.3s;
}

@keyframes item-pop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.preview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: icon-bounce 3s ease-in-out infinite;
}

.preview-item:nth-child(1) .preview-icon {
  animation-delay: 0s;
}

.preview-item:nth-child(3) .preview-icon {
  animation-delay: 1s;
}

.preview-item:nth-child(5) .preview-icon {
  animation-delay: 2s;
}

@keyframes icon-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes icon-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.preview-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.preview-value {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 600;
}

.preview-arrow {
  color: rgba(34, 197, 94, 0.7);
  font-size: 1.4rem;
  font-weight: bold;
  animation: arrow-pulse 1s ease-in-out infinite;
}

@keyframes arrow-pulse {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

.showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-mini {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.1),
      rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.stat-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(34, 197, 94, 0.2),
      transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-mini:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

.stat-mini:hover::before {
  opacity: 1;
}

.stat-mini .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Monaco', monospace;
  position: relative;
  z-index: 1;
}

.stat-mini .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-top: 6px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* Light Mode Specifics */
body.light-mode .hero-content.glass {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

body.light-mode .showcase-header h3 {
  background: linear-gradient(135deg, #0891b2, #2563eb);
  -webkit-background-clip: text;
}

body.light-mode .badge {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(8, 145, 178, 0.2));
  border-color: rgba(22, 163, 74, 0.5);
  color: #16a34a;
}

body.light-mode .feature-preview {
  background: linear-gradient(135deg,
      rgba(241, 245, 249, 0.6),
      rgba(226, 232, 240, 0.4));
  border-color: rgba(22, 163, 74, 0.2);
}

body.light-mode .stat-mini {
  background: linear-gradient(135deg,
      rgba(37, 99, 235, 0.08),
      rgba(147, 51, 234, 0.08));
  border-color: rgba(37, 99, 235, 0.2);
}

body.light-mode .stat-mini:hover {
  border-color: rgba(22, 163, 74, 0.4);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
  .hero-wrapper {
    padding: 30px 16px;
  }
  
  .hero-content.glass {
    padding: 24px;
  }

  .showcase-stats {
    grid-template-columns: 1fr;
  }

  .feature-preview {
    flex-direction: column;
    gap: 8px;
  }

  .preview-arrow {
    transform: rotate(90deg);
  }
}
