/* ===== AI Agents Hero — ipg_ai_agents_hero ===== */

.ipg-hero-block {
  --ipg-bg: #121212;
  --ipg-card: #1e1e1e;
  --ipg-card-inner: #262626;
  --ipg-text: #ffffff;
  --ipg-text-muted: #b0b0b0;
  --ipg-accent: #00c8d7;
  --ipg-accent-green: #4caf50;
  --ipg-accent-blue: #2196f3;
  --ipg-radius: 12px;
  --ipg-radius-sm: 8px;

  background: var(--ipg-bg);
  padding: 64px 20px 72px;
  font-family: inherit;
  color: var(--ipg-text);
}

.ipg-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* --- Left column --- */

.ipg-hero-title {
  margin: 0 0 24px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ipg-text);
}

.ipg-hero-title__accent {
  color: var(--ipg-accent);
}

.ipg-hero-text {
  margin: 0 0 32px;
  max-width: 540px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ipg-text-muted);
}

.ipg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.ipg-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--ipg-radius-sm);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ipg-hero-btn:hover {
  opacity: 0.9;
}

.ipg-hero-btn--primary {
  background: var(--ipg-accent);
  color: #0a0a0a;
  border: 1px solid var(--ipg-accent);
}

.ipg-hero-btn--secondary {
  background: transparent;
  color: var(--ipg-text);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ipg-hero-btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- Stats --- */

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

.ipg-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--ipg-radius-sm);
  background: var(--ipg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ipg-hero-stat__value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ipg-text);
}

.ipg-hero-stat__label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ipg-text-muted);
}

/* --- LIVE card --- */

.ipg-hero-live {
  padding: 24px;
  border-radius: var(--ipg-radius);
  background: var(--ipg-card);
  border: 1px solid rgba(0, 200, 215, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 200, 215, 0.08),
    0 0 32px rgba(0, 200, 215, 0.12);
}

.ipg-hero-live__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.ipg-hero-live__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.6);
  animation: ipg-hero-pulse 1.8s ease-in-out infinite;
}

@keyframes ipg-hero-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.92);
  }
}

.ipg-hero-live__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ipg-text);
}

.ipg-hero-live__tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ipg-hero-live__task {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--ipg-radius-sm);
  background: var(--ipg-card-inner);
  list-style: none;
}

.ipg-hero-live__task[data-task-state="active"] {
  gap: 12px;
}

.ipg-hero-live__task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ipg-hero-live__task-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ipg-text);
}

.ipg-hero-live__badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.ipg-hero-live__task[data-task-state="done"] .ipg-hero-live__badge {
  background: rgba(33, 150, 243, 0.18);
  color: #64b5f6;
}

.ipg-hero-live__task[data-task-state="active"] .ipg-hero-live__badge {
  background: rgba(76, 175, 80, 0.18);
  color: #81c784;
}

.ipg-hero-live__task[data-task-state="planned"] .ipg-hero-live__badge {
  background: rgba(255, 255, 255, 0.06);
  color: #888;
}

.ipg-hero-live__progress {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  opacity: 0;
}

.ipg-hero-live__task[data-task-state="active"] .ipg-hero-live__progress {
  opacity: 1;
}

.ipg-hero-live__progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--ipg-accent);
  will-change: width;
}

@media (prefers-reduced-motion: reduce) {
  .ipg-hero-live__dot {
    animation: none;
  }

  .ipg-hero-live__progress-bar {
    transition: none !important;
  }
}

.ipg-hero-live__footer {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--ipg-radius-sm);
  background: var(--ipg-card-inner);
}

.ipg-hero-live__footer-title {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ipg-text-muted);
}

.ipg-hero-live__footer-text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ipg-text);
}

.ipg-hero-live__footer-accent {
  font-weight: 700;
  color: var(--ipg-accent-green);
}

/* --- Responsive --- */

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

  .ipg-hero-live {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .ipg-hero-block {
    padding: 40px 16px 48px;
  }

  .ipg-hero-title {
    margin-bottom: 16px;
    font-size: 28px;
  }

  .ipg-hero-text {
    margin-bottom: 24px;
    font-size: 15px;
  }

  .ipg-hero-actions {
    flex-direction: column;
    margin-bottom: 32px;
  }

  .ipg-hero-btn {
    width: 100%;
  }

  .ipg-hero-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ipg-hero-stat {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  .ipg-hero-stat__value {
    min-width: 56px;
    font-size: 24px;
  }

  .ipg-hero-live {
    padding: 18px;
  }

  .ipg-hero-live__task {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .ipg-hero-live__task-row {
    flex-wrap: wrap;
  }
}
