/* ==========================================
   Premium Hero Section Styles
   ========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-4xl) 0;
  background: var(--bg-primary);
}

/* Animated Mesh Gradient Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(168, 85, 247, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(34, 211, 238, 0.2) 0%, transparent 45%),
    radial-gradient(ellipse 50% 60% at 60% 80%, rgba(244, 114, 182, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(168, 85, 247, 0.2) 0%, transparent 40%);
  animation: heroGradientPulse 15s ease-in-out infinite;
}

@keyframes heroGradientPulse {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  33% {
    transform: scale(1.1) rotate(120deg);
    opacity: 0.8;
  }

  66% {
    transform: scale(0.95) rotate(240deg);
    opacity: 1;
  }
}

/* Floating Orbs */
.hero-background::before,
.hero-background::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: floatOrb 20s ease-in-out infinite;
}

.hero-background::before {
  width: 500px;
  height: 500px;
  background: rgba(168, 85, 247, 0.3);
  top: 10%;
  left: 15%;
  animation-delay: -5s;
}

.hero-background::after {
  width: 400px;
  height: 400px;
  background: rgba(34, 211, 238, 0.25);
  bottom: 10%;
  right: 20%;
  animation-delay: -10s;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(-30px, -20px) scale(1.02);
  }
}

/* Animated Particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(168, 85, 247, 0.4), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(34, 211, 238, 0.4), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(244, 114, 182, 0.4), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(168, 85, 247, 0.3), transparent),
    radial-gradient(1px 1px at 160px 30px, rgba(34, 211, 238, 0.4), transparent),
    radial-gradient(2px 2px at 200px 60px, rgba(244, 114, 182, 0.3), transparent);
  background-repeat: repeat;
  background-size: 220px 120px;
  animation: particlesFloat 25s linear infinite;
  opacity: 0.8;
}

@keyframes particlesFloat {
  0% {
    transform: translateY(0) translateX(0);
  }

  100% {
    transform: translateY(-120px) translateX(-50px);
  }
}

/* Grid Lines Overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

/* Hero Container */
.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4xl);
  align-items: center;
  z-index: 2;
  position: relative;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Hero Content */
.hero-content {
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

/* Premium Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  animation: badgePulse 3s ease-in-out infinite, fadeInUp 1s ease-out;
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
  }

  50% {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
  }
}

.badge-icon {
  font-size: var(--text-lg);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.badge-text {
  background: linear-gradient(135deg, var(--electric-purple-light), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Title with Glow */
.hero-title {
  font-family: var(--font-outfit);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  line-height: 1.05;
  letter-spacing: -0.03em;
  animation: slideInLeft 1s ease-out 0.2s both;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-6xl);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--text-7xl);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Glowing Accent Text */
.hero-title-accent {
  background: linear-gradient(135deg, var(--electric-purple) 0%, var(--neon-cyan) 50%, var(--electric-purple-light) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: gradientFlow 4s ease infinite;
  position: relative;
  text-shadow: 0 0 80px rgba(168, 85, 247, 0.5);
}

@keyframes gradientFlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Improved Typewriter */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--electric-purple);
  white-space: nowrap;
  animation: typing 3s steps(20, end), blinkCaret 0.8s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blinkCaret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: var(--electric-purple);
  }
}

/* Hero Description */
.hero-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.4s both;
  max-width: 540px;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: var(--text-xl);
  }
}

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  animation: fadeInUp 1s ease-out 0.6s both;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* Premium Stats */
.hero-stats {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.8s both;
}

@media (min-width: 768px) {
  .hero-stats {
    justify-content: flex-start;
  }
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  min-width: 110px;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.15);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--electric-purple), var(--neon-cyan));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-number {
  font-family: var(--font-outfit);
  font-size: var(--text-3xl);
  font-weight: 800;
  background: linear-gradient(135deg, var(--electric-purple), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero Visual Card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out 1s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-card {
  padding: var(--space-xl);
  max-width: 420px;
  width: 100%;
  background: rgba(15, 15, 25, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.2);
  animation: float 6s ease-in-out infinite;
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(34, 211, 238, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity var(--transition-normal);
}

.hero-card:hover::before {
  opacity: 1;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-8px) rotate(0.5deg);
  }

  75% {
    transform: translateY(8px) rotate(-0.5deg);
  }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.dot:hover {
  transform: scale(1.2);
}

.dot-red {
  background: linear-gradient(135deg, #ff6b6b, #ff5f57);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.dot-yellow {
  background: linear-gradient(135deg, #ffd93d, #ffbd2e);
  box-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

.dot-green {
  background: linear-gradient(135deg, #6bcb77, #28ca42);
  box-shadow: 0 0 10px rgba(107, 203, 119, 0.5);
}

.card-title {
  font-family: var(--font-outfit);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.workflow-node {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.workflow-node:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateX(8px);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.node-icon {
  font-size: var(--text-xl);
}

.node-text {
  font-weight: 600;
}

.workflow-arrow {
  text-align: center;
  font-size: var(--text-xl);
  font-weight: bold;
  background: linear-gradient(135deg, var(--electric-purple), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {

  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: 0.5;
    transform: translateY(-3px);
  }
}