/* ============================================
   iAgentMart — Hero Section
   ============================================ */

.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-24);
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
}

/* Subtle grid pattern */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,110,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,110,247,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
  animation: pulse-dot 2s infinite;
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: var(--weight-extrabold);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero__title-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  max-width: 600px;
  margin: 0 auto var(--space-10);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

/* --- Terminal preview in hero --- */
.hero__terminal {
  max-width: 560px;
  margin: 0 auto;
}

.hero__terminal .code-block {
  text-align: left;
}

/* --- Floating orbs --- */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  animation: float-orb 20s infinite ease-in-out;
}

.hero__orb--1 {
  width: 400px;
  height: 400px;
  background: rgba(79, 110, 247, 0.15);
  top: -100px;
  right: -100px;
}

.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(34, 211, 167, 0.12);
  bottom: -50px;
  left: -80px;
  animation-delay: -10s;
}

.hero__orb--3 {
  width: 200px;
  height: 200px;
  background: rgba(124, 58, 237, 0.10);
  top: 40%;
  right: 5%;
  animation-delay: -5s;
}

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

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -30px); }
  50% { transform: translate(-10px, 20px); }
  75% { transform: translate(15px, 10px); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-16);
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }

  .hero__actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: var(--text-3xl);
  }
}
