/* ============================================================
   NEXORA · Sections / Intelligence Layer (AI)
   AI as engine, not destination.
   ============================================================ */

.ai-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}

/* Orbit visual */
.orbit-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 50%, rgba(106, 99, 255, 0.08), transparent 62%),
    var(--surface);
  overflow: hidden;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
}

.orbit-ring.r1 { width: 52%; height: 52%; }
.orbit-ring.r2 { width: 80%; height: 80%; opacity: 0.6; }
.orbit-ring.r3 { width: 104%; height: 104%; opacity: 0.3; }

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 0.2rem;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 40px -6px var(--glow-accent), inset 0 0 24px rgba(106, 99, 255, 0.18);
  z-index: 2;
}

.orbit-core .avatar {
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
}

.orbit-core span {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.orbit-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-1);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.orbit-chip .icon {
  color: var(--accent-2);
  width: 0.95em;
  height: 0.95em;
}

/* Orbiting layout: each chip travels a ring */
.orbit-chip.o1 { animation: orbit 26s linear infinite; --orbit-r: 118px; }
.orbit-chip.o2 { animation: orbit 26s linear -6.5s infinite; --orbit-r: 118px; }
.orbit-chip.o3 { animation: orbit 26s linear -13s infinite; --orbit-r: 118px; }
.orbit-chip.o4 { animation: orbit 26s linear -19.5s infinite; --orbit-r: 118px; }
.orbit-chip.o5 { animation: orbit 34s linear -4s infinite reverse; --orbit-r: 178px; }
.orbit-chip.o6 { animation: orbit 34s linear -21s infinite reverse; --orbit-r: 178px; }

/* Scan line across stage */
.orbit-scan {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  box-shadow: 0 0 14px var(--glow-cyan);
  opacity: 0;
  animation: scan-y 6s var(--ease-out) infinite;
  z-index: 1;
}

/* Capability grid */
.ai-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: var(--space-8);
}

.ai-cap {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.15rem 1.2rem;
}

.ai-cap .icon-tile {
  width: 40px;
  height: 40px;
}

.ai-cap h4 {
  font-size: 0.98rem;
}

.ai-cap p {
  font-size: 0.85rem;
  line-height: 1.55;
}

/* Note banner */
.ai-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  text-align: center;
  margin-top: var(--space-10);
  padding: 1.15rem 1.6rem;
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-md);
  background: rgba(106, 99, 255, 0.05);
  color: var(--text-2);
  font-size: 0.95rem;
  width: fit-content;
  margin-inline: auto;
}

.ai-note .icon {
  color: var(--accent-2);
}

.ai-note b {
  color: var(--text-1);
}
