/* Launch Intelligence — Hero Control Bar (scoped to #page-ai-insights only) */

#page-ai-insights .li-hero {
  position: relative;
  margin-bottom: 18px;
  padding: 14px 16px 12px;
  background: var(--surface-card-grad);
  border: 1px solid rgba(15, 168, 157, 0.16);
  border-radius: 12px;
  box-shadow:
    var(--surface-shadow),
    var(--surface-glow),
    0 6px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(15, 168, 157, 0.07);
  overflow: hidden;
  isolation: isolate;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Launch grid — teal/cyan lines + node points */
#page-ai-insights .li-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(15, 168, 157, 0.16) 0.8px, transparent 0.8px),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(15, 168, 157, 0.05) 23px,
      rgba(15, 168, 157, 0.05) 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 23px,
      rgba(56, 189, 181, 0.04) 23px,
      rgba(56, 189, 181, 0.04) 24px
    ),
    linear-gradient(118deg, rgba(15, 168, 157, 0.055), transparent 50%);
  background-size: 24px 24px, 100% 100%, 100% 100%, 100% 100%;
  opacity: 0.7;
}

/* Connection-line glow — very low opacity ambient layer */
#page-ai-insights .li-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      128deg,
      transparent 38%,
      rgba(15, 168, 157, 0.045) 48%,
      transparent 58%
    ),
    linear-gradient(
      52deg,
      transparent 52%,
      rgba(56, 189, 181, 0.035) 60%,
      transparent 68%
    ),
    radial-gradient(ellipse 42% 55% at 50% 42%, rgba(15, 168, 157, 0.09), transparent 62%),
    radial-gradient(ellipse 75% 45% at 12% 88%, rgba(15, 168, 157, 0.07), transparent 58%),
    radial-gradient(ellipse 55% 38% at 92% 12%, rgba(15, 168, 157, 0.055), transparent 52%);
  opacity: 0.58;
  animation: li-hero-ambient-pulse 16s ease-in-out infinite;
}

@keyframes li-hero-ambient-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.68;
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-ai-insights .li-hero::after {
    animation: none;
    opacity: 0.58;
  }
}

#page-ai-insights .li-hero > * {
  position: relative;
  z-index: 1;
}

#page-ai-insights .li-hero-kicker {
  position: relative;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-teal-hover);
  margin-bottom: 14px;
  padding-bottom: 10px;
  line-height: 1.25;
  text-shadow:
    0 0 16px rgba(15, 168, 157, 0.2),
    0 0 2px rgba(15, 168, 157, 0.1);
  border-bottom: 1px solid rgba(15, 168, 157, 0.2);
  box-shadow: 0 1px 0 rgba(15, 168, 157, 0.28);
}

#page-ai-insights .li-hero-kicker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 52px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(15, 168, 157, 0.7), rgba(15, 168, 157, 0.12));
}

#page-ai-insights .li-hero-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.12fr)
    minmax(0, 0.92fr)
    minmax(0, 1.02fr)
    minmax(0, 0.86fr);
  gap: 1px;
  background: rgba(15, 168, 157, 0.12);
  border: 1px solid rgba(15, 168, 157, 0.16);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
}

#page-ai-insights .li-hero-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(11, 23, 26, 0.98), rgba(7, 17, 20, 0.98));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#page-ai-insights .li-hero-panel-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.2;
}

#page-ai-insights .li-hero-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#page-ai-insights .li-hero-field-k {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

#page-ai-insights .li-hero-field-v {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  word-break: break-word;
}

#page-ai-insights .li-hero-field-v.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
}

#page-ai-insights .li-hero-field-v.muted {
  color: var(--text-dim);
  font-weight: 500;
}

#page-ai-insights .li-hero-utility-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

#page-ai-insights .li-hero-utility-chip:not(.muted) {
  color: var(--accent-teal-hover);
  background: rgba(15, 168, 157, 0.08);
  border-color: rgba(15, 168, 157, 0.18);
}

/* Collection status — launch state indicator */
#page-ai-insights .li-hero-state-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#page-ai-insights .li-hero-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-teal);
  box-shadow: 0 0 8px rgba(15, 168, 157, 0.35);
}

#page-ai-insights .li-hero-state-dot.is-draft {
  background: rgba(148, 163, 184, 0.85);
  box-shadow: 0 0 6px rgba(148, 163, 184, 0.2);
}

#page-ai-insights .li-hero-state-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-teal-hover);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 168, 157, 0.1);
  border: 1px solid rgba(15, 168, 157, 0.18);
}

#page-ai-insights .li-hero-state-pill.is-draft {
  color: var(--text-dim);
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.16);
}

#page-ai-insights .li-hero-state-dot.is-awaiting {
  background: rgba(56, 189, 181, 0.85);
  box-shadow: 0 0 8px rgba(56, 189, 181, 0.3);
}

#page-ai-insights .li-hero-state-pill.is-awaiting {
  color: #5eead4;
  background: rgba(56, 189, 181, 0.1);
  border-color: rgba(56, 189, 181, 0.28);
}

#page-ai-insights .li-hero-core-state-pill.is-awaiting {
  box-shadow:
    0 0 12px rgba(56, 189, 181, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Launch Core — central mission focal */
#page-ai-insights .li-hero-core {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 10px 12px 11px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  background:
    linear-gradient(165deg, rgba(14, 32, 36, 0.97) 0%, rgba(8, 20, 24, 0.98) 48%, rgba(7, 17, 20, 0.99) 100%);
  border-inline: 1px solid rgba(15, 168, 157, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 0 28px rgba(15, 168, 157, 0.06),
    0 0 24px rgba(15, 168, 157, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#page-ai-insights .li-hero-core::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 70% at 50% 38%, rgba(15, 168, 157, 0.14), transparent 68%);
  opacity: 0.85;
}

#page-ai-insights .li-hero-core-label {
  position: relative;
  z-index: 1;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-teal-hover);
  text-align: center;
  line-height: 1.2;
}

#page-ai-insights .li-hero-core-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

#page-ai-insights .li-hero-core-ring-stage {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

#page-ai-insights .li-hero-core-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  pointer-events: none;
}

#page-ai-insights .li-hero-core-ring--outer {
  inset: 0;
  border: 1px solid rgba(15, 168, 157, 0.22);
  background: radial-gradient(circle at 50% 42%, rgba(15, 168, 157, 0.08), transparent 62%);
  opacity: 0.75;
}

#page-ai-insights .li-hero-core-ring--mid {
  inset: 9px;
  border: 1px solid rgba(56, 189, 181, 0.18);
  opacity: 0.55;
}

#page-ai-insights .li-hero-core-ring--inner {
  inset: 18px;
  border: 1px solid rgba(15, 168, 157, 0.28);
  box-shadow: inset 0 0 10px rgba(15, 168, 157, 0.05);
  opacity: 0.65;
}

#page-ai-insights .li-hero-core-ring-glow {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 168, 157, 0.12) 0%, transparent 70%);
  animation: li-hero-core-pulse 14s ease-in-out infinite;
}

@keyframes li-hero-core-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.72;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-ai-insights .li-hero-core-ring-glow {
    animation: none;
    opacity: 0.58;
    transform: none;
  }
}

#page-ai-insights .li-hero-core-focus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  min-width: 0;
  width: 100%;
}

#page-ai-insights .li-hero-core-state-k {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.2;
}

#page-ai-insights .li-hero-core-state-row {
  justify-content: center;
}

#page-ai-insights .li-hero-core-state-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  letter-spacing: 0.03em;
  box-shadow:
    0 0 12px rgba(15, 168, 157, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#page-ai-insights .li-hero-core-state-pill.is-draft {
  box-shadow:
    0 0 8px rgba(148, 163, 184, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#page-ai-insights .li-hero-core-verify {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  line-height: 1.35;
  max-width: 11rem;
}

/* Trust score panel */
#page-ai-insights .li-hero-trust-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

#page-ai-insights .li-hero-trust-ring {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px dashed rgba(15, 168, 157, 0.28);
  background: rgba(7, 17, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 12px rgba(15, 168, 157, 0.06);
}

#page-ai-insights .li-hero-trust-ring span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.15;
  padding: 0 4px;
}

#page-ai-insights .li-hero-trust-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#page-ai-insights .li-hero-trust-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

#page-ai-insights .li-hero-trust-status {
  font-size: 11px;
  color: var(--amber);
  font-weight: 500;
  line-height: 1.35;
}

#page-ai-insights .li-hero-trust-note {
  font-size: 10px;
  color: var(--text-faint);
  line-height: 1.35;
}

/* Marketplace readiness */
#page-ai-insights .li-hero-mp-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

#page-ai-insights .li-hero-mp-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(7, 17, 20, 0.85);
  border: 1px dashed rgba(148, 163, 184, 0.22);
}

/* Deployment actions */
#page-ai-insights .li-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  flex: 1;
}

#page-ai-insights .li-hero-actions .btn {
  width: 100%;
  justify-content: center;
  font-size: 12px;
  padding: 9px 12px;
}

#page-ai-insights .li-hero-btn-disabled,
#page-ai-insights .li-hero-btn-disabled:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(7, 17, 20, 0.75);
  color: var(--text-faint);
  box-shadow: none;
  transform: none;
}

#page-ai-insights .li-hero-action-hint {
  font-size: 10px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.35;
}

/* Quick metrics strip */
#page-ai-insights .li-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 168, 157, 0.1);
}

#page-ai-insights .li-hero-metric {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(7, 17, 20, 0.72);
  border: 1px solid rgba(15, 168, 157, 0.1);
  min-width: 0;
}

#page-ai-insights .li-hero-metric-k {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
}

#page-ai-insights .li-hero-metric-v {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

#page-ai-insights .li-hero-metric-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(148, 163, 184, 0.55);
}

#page-ai-insights .li-hero-metric-dot.is-pending {
  background: var(--amber);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.25);
}

#page-ai-insights .li-hero-metric-dot.is-neutral {
  background: rgba(148, 163, 184, 0.5);
}

#page-ai-insights .li-hero-metric-dot.is-configured {
  background: rgba(15, 168, 157, 0.9);
  box-shadow: 0 0 6px rgba(15, 168, 157, 0.28);
}

#page-ai-insights .li-hero-metric-v.is-set {
  color: var(--accent-teal-hover);
}

/* Responsive — stack panels cleanly */
@media (max-width: 1100px) {
  #page-ai-insights .li-hero-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #page-ai-insights .li-hero-core {
    grid-column: 1 / -1;
    border-inline: none;
    border-block: 1px solid rgba(15, 168, 157, 0.2);
    padding: 12px 14px;
  }

  #page-ai-insights .li-hero-core-body {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }

  #page-ai-insights .li-hero-core-focus {
    align-items: flex-start;
    text-align: left;
    flex: 0 1 auto;
  }

  #page-ai-insights .li-hero-core-state-row {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  #page-ai-insights .li-hero {
    padding: 12px 12px 10px;
    margin-bottom: 16px;
  }

  #page-ai-insights .li-hero::before {
    background-size: 20px 20px, 100% 100%, 100% 100%, 100% 100%;
    opacity: 0.52;
  }

  #page-ai-insights .li-hero-kicker {
    letter-spacing: 0.18em;
  }

  #page-ai-insights .li-hero-kicker::after {
    width: 40px;
  }

  #page-ai-insights .li-hero-bar {
    grid-template-columns: 1fr;
  }

  #page-ai-insights .li-hero-core {
    grid-column: auto;
    padding: 11px 12px 10px;
  }

  #page-ai-insights .li-hero-core-body {
    flex-direction: column;
    gap: 8px;
  }

  #page-ai-insights .li-hero-core-ring-stage {
    width: 58px;
    height: 58px;
  }

  #page-ai-insights .li-hero-core-ring--mid {
    inset: 7px;
  }

  #page-ai-insights .li-hero-core-ring--inner {
    inset: 14px;
  }

  #page-ai-insights .li-hero-core-ring-glow {
    inset: 11px;
  }

  #page-ai-insights .li-hero-core-focus {
    align-items: center;
    text-align: center;
  }

  #page-ai-insights .li-hero-core-state-row {
    justify-content: center;
  }

  #page-ai-insights .li-hero-core-verify {
    max-width: none;
  }

  #page-ai-insights .li-hero-panel {
    padding: 11px 12px;
  }

  #page-ai-insights .li-hero-metrics {
    gap: 6px;
  }

  #page-ai-insights .li-hero-metric {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
    justify-content: space-between;
  }
}
