/* ============================================================
   AGENCI AI — extras CSS
   Ładowane RAZEM z ai-classic.css (które dostarcza globalny layout,
   .container, .btn, .header, .nav, .section, .footer, .digit-banner,
   .process, .case-study, .faq, .contact-form, .form-toast, .related)

   Zawartość TYLKO unikalne klasy dla LP /agenci-ai-dla-firm/
   ============================================================ */

/* ────────── Nadpisania kolorów / paleta ────────── */
:root {
  --agent-purple: #7C3AED;
  --agent-blue:   #3B82F6;
  --agent-cyan:   #06B6D4;
  --agent-green:  #22C55E;
  --agent-pink:   #EC4899;
  --agent-amber:  #F59E0B;
  --agent-bg-dark:#0B1020;
  --agent-bg-darker:#070A18;
}

/* ============================================================
   HERO --agents
   ============================================================ */
.hero--agents {
  position: relative;
  min-height: 100vh;
  padding: 100px 0 60px;
  background: radial-gradient(ellipse at top, #0F172A 0%, #070A18 60%, #050714 100%);
  overflow: hidden;
  isolation: isolate;
}

.agents-hero__canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Subtelna grid w tle */
.agents-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  z-index: 1;
  pointer-events: none;
}

.agents-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.agents-hero__content { color: #F1F5F9; }

.agents-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #C4B5FD;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.agents-hero__title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem 0;
  color: #fff;
}
.agents-hero__title .gradient-text {
  background: linear-gradient(135deg, #C4B5FD 0%, #60A5FA 40%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.agents-hero__lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #CBD5E1;
  margin-bottom: 1.4rem;
  max-width: 540px;
}

.agents-hero__bullets {
  list-style: none;
  margin: 0 0 1.8rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.agents-hero__bullets li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.98rem;
  color: #E2E8F0;
}
.agents-hero__bullets li i {
  color: var(--agent-cyan);
  width: 22px;
  text-align: center;
}

.agents-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.agents-hero__trust {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.agents-hero__trust-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94A3B8;
}
.agents-hero__trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.agents-hero__trust-tags em {
  font-style: normal;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #CBD5E1;
}

/* ────────── Constellation visual ────────── */
.agents-hero__visual {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.constellation {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 540px;
}

/* Rdzeń */
.constellation__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.constellation__core-inner {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #C4B5FD, #7C3AED 60%, #4C1D95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.7),
              inset 0 4px 20px rgba(255,255,255,0.25);
  position: relative;
  z-index: 6;
  animation: corePulse 3.5s ease-in-out infinite;
}
.constellation__core-inner i {
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.constellation__core-inner span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes corePulse {
  0%, 100% {
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.7),
                inset 0 4px 20px rgba(255,255,255,0.25);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 90px rgba(124, 58, 237, 1),
                0 0 140px rgba(59, 130, 246, 0.5),
                inset 0 4px 25px rgba(255,255,255,0.35);
    transform: scale(1.04);
  }
}

/* Pulsujące pierścienie wokół rdzenia */
.constellation__core-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(124, 58, 237, 0.5);
  border-radius: 50%;
  animation: ringExpand 4s ease-out infinite;
}
.constellation__core-ring--2 { animation-delay: 1.3s; }
.constellation__core-ring--3 { animation-delay: 2.6s; }

@keyframes ringExpand {
  0% { transform: scale(0.8); opacity: 0.8; border-width: 3px; }
  100% { transform: scale(2.4); opacity: 0; border-width: 1px; }
}

/* Satelity — orbitują wokół rdzenia */
.satellite {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  z-index: 4;
  animation: orbit 28s linear infinite;
}
.satellite__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(124, 58, 237, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4),
              0 0 30px rgba(124, 58, 237, 0.3);
  /* counter-rotation - utrzymuje ikonkę "do góry" */
  animation: counterOrbit 28s linear infinite;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
}
.satellite__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.5);
  animation: satelliteRing 2.4s ease-out infinite;
}

.satellite:hover .satellite__avatar {
  transform: scale(1.15);
  box-shadow: 0 4px 25px rgba(0,0,0,0.5),
              0 0 50px rgba(124, 58, 237, 0.8);
}
/* Tooltip data-attr */
.satellite::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #1E293B;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.satellite:hover::after { opacity: 1; }

/* Każdy satelita ma swoje --orbit-radius i --start-angle */
.satellite--1 { --start-angle: 0deg;   --orbit-radius: 200px; }
.satellite--2 { --start-angle: 60deg;  --orbit-radius: 220px; }
.satellite--3 { --start-angle: 120deg; --orbit-radius: 200px; }
.satellite--4 { --start-angle: 180deg; --orbit-radius: 220px; }
.satellite--5 { --start-angle: 240deg; --orbit-radius: 200px; }
.satellite--6 { --start-angle: 300deg; --orbit-radius: 220px; }

@keyframes orbit {
  from { transform: rotate(var(--start-angle)) translateX(var(--orbit-radius)) rotate(0deg); }
  to   { transform: rotate(calc(var(--start-angle) + 360deg)) translateX(var(--orbit-radius)) rotate(0deg); }
}
@keyframes counterOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes satelliteRing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Scroll hint */
.agents-hero__scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  z-index: 3;
}
.agents-hero__scroll-hint span {
  display: block;
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  margin: 6px auto;
  animation: scrollHint 1.8s infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* ============================================================
   AGENT VS CHATBOT (czym jest sekcja)
   ============================================================ */
.agent-vs-chatbot {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 50px;
}

.vs-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  border: 2px solid #E2E8F0;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  position: relative;
  transition: transform 0.4s, box-shadow 0.4s;
}
.vs-card--new {
  border-color: rgba(124, 58, 237, 0.4);
  background: linear-gradient(180deg, #FAF5FF 0%, #F3E8FF 100%);
}
.vs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}
.vs-card__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #F1F5F9;
  color: #64748B;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.vs-card__label--new {
  background: linear-gradient(135deg, var(--agent-purple), var(--agent-blue));
  color: #fff;
}
.vs-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #94A3B8;
  margin-bottom: 16px;
}
.vs-card__icon--new {
  background: linear-gradient(135deg, var(--agent-purple), var(--agent-blue));
  color: #fff;
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.vs-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: #1E293B;
  font-weight: 800;
}
.vs-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vs-card ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #475569;
}
.vs-card ul li i.fa-xmark { color: #EF4444; }
.vs-card ul li i.fa-check { color: var(--agent-green); }

.vs-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--agent-purple);
}
.vs-arrow i {
  font-size: 2rem;
  animation: vsArrowPulse 1.8s ease-in-out infinite;
}
.vs-arrow span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--agent-purple);
  margin-top: 6px;
}
@keyframes vsArrowPulse {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(8px); opacity: 0.6; }
}

/* ============================================================
   ZESPÓŁ AGENTÓW
   ============================================================ */
.agents-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.agent-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 22px;
  padding: 28px 24px;
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s,
              box-shadow 0.4s;
  overflow: hidden;
  isolation: isolate;
}

/* Gradient blob za kartą */
.agent-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.25), transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}

.agent-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
              0 0 50px rgba(124, 58, 237, 0.3);
}
.agent-card:hover::before { opacity: 1; }

.agent-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86EFAC;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: absolute;
  top: 18px;
  right: 18px;
}
.agent-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: statusBlink 1.4s ease-in-out infinite;
}
@keyframes statusBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.agent-card__avatar {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 16px;
  position: relative;
  animation: avatarFloat 4.5s ease-in-out infinite;
}
.agent-card__avatar::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  border: 2px solid currentColor;
  opacity: 0.25;
  animation: avatarRing 3s ease-out infinite;
}
@keyframes avatarRing {
  0% { transform: scale(0.85); opacity: 0.4; }
  100% { transform: scale(1.2); opacity: 0; }
}
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Per-agent kolory */
.agent-card__avatar--sales     { background: linear-gradient(135deg, #F59E0B, #EF4444); color: #FED7AA; }
.agent-card__avatar--support   { background: linear-gradient(135deg, #3B82F6, #06B6D4); color: #BAE6FD; }
.agent-card__avatar--recruiter { background: linear-gradient(135deg, #EC4899, #8B5CF6); color: #FBCFE8; }
.agent-card__avatar--research  { background: linear-gradient(135deg, #10B981, #06B6D4); color: #A7F3D0; }
.agent-card__avatar--ops       { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #C7D2FE; }
.agent-card__avatar--finance   { background: linear-gradient(135deg, #F59E0B, #84CC16); color: #FEF3C7; }

.agent-card__name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #F1F5F9;
  margin-bottom: 4px;
}
.agent-card__role {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-bottom: 12px;
  font-weight: 500;
}
.agent-card__desc {
  font-size: 0.92rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 16px;
}

.agent-card__typing {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  min-height: 60px;
}
.agent-card__typing-label {
  display: block;
  color: var(--agent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
  margin-bottom: 4px;
}
.agent-card__typing-text {
  display: block;
  color: #E2E8F0;
  font-family: "JetBrains Mono", "Consolas", monospace;
  line-height: 1.5;
  min-height: 1em;
}
.agent-card__typing-text::after {
  content: "▋";
  color: var(--agent-cyan);
  animation: blinkCaret 0.9s steps(1) infinite;
  margin-left: 2px;
}
@keyframes blinkCaret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.agent-card__tools {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.agent-card__tools li {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  font-size: 0.85rem;
  transition: transform 0.25s, background 0.25s;
}
.agent-card:hover .agent-card__tools li {
  background: rgba(124, 58, 237, 0.2);
}
.agent-card__tools li:hover {
  transform: translateY(-3px) rotate(-5deg);
}

.agents-team__cta {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
}
.agents-team__cta p {
  color: #CBD5E1;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

/* ============================================================
   AGENT VS HUMAN — animowane słupki
   ============================================================ */
.section--vs {
  background: radial-gradient(ellipse at top, #1E1B4B 0%, #0B1020 60%, #050714 100%);
  position: relative;
  overflow: hidden;
}
.vs-bg-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}
.vs-content {
  position: relative;
  z-index: 1;
}

.vs-table {
  margin-top: 50px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 20px;
  padding: 12px 24px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  backdrop-filter: blur(10px);
}
.vs-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: center;
}
.vs-row:last-child { border-bottom: none; }
.vs-row--head { padding: 14px 0 12px; border-bottom-width: 2px; border-bottom-color: rgba(124, 58, 237, 0.4); }
.vs-row--head .vs-row__col {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vs-row--head .vs-row__col--human { color: #FCA5A5; }
.vs-row--head .vs-row__col--agent { color: #86EFAC; }

.vs-row__label {
  font-weight: 700;
  color: #F1F5F9;
  font-size: 0.95rem;
}
.vs-row__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #CBD5E1;
}
.vs-row__col strong {
  font-size: 0.95rem;
  font-weight: 700;
}
.vs-row__col--human strong { color: #FCA5A5; }
.vs-row__col--agent strong { color: #86EFAC; }

/* Słupki */
.vs-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.vs-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #F87171, #EF4444);
  border-radius: 3px;
  transition: width 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vs-bar--green > span {
  background: linear-gradient(90deg, #34D399, #10B981);
}
/* Animacja wjazdu kontroluje class .is-visible dodawany przez JS */
.vs-row.is-visible .vs-bar > span {
  width: var(--bar-final, 0);
}

.vs-disclaimer {
  margin-top: 32px;
  padding: 22px 28px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 14px;
  color: #E2E8F0;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
}

/* ============================================================
   PIPELINE — kroki agenta
   ============================================================ */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 50px 0 30px;
  position: relative;
}
.pipeline__line {
  position: absolute;
  top: 90px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--agent-purple) 20%,
    var(--agent-blue) 50%,
    var(--agent-cyan) 80%,
    transparent 100%);
  z-index: 0;
}

.pipeline-step {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px 18px 22px;
  text-align: center;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.pipeline-step:hover {
  transform: translateY(-8px);
  border-color: var(--agent-purple);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.18);
}
.pipeline-step__num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--agent-purple), var(--agent-blue));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}
.pipeline-step__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #F3E8FF, #DBEAFE);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--agent-purple);
  margin: 8px auto 14px;
}
.pipeline-step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 8px;
}
.pipeline-step p {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.55;
}

.pipeline__example {
  background: linear-gradient(135deg, #F3E8FF 0%, #DBEAFE 100%);
  border-left: 4px solid var(--agent-purple);
  padding: 22px 28px;
  border-radius: 12px;
  font-size: 0.97rem;
  color: #334155;
  line-height: 1.7;
  margin-top: 30px;
}
.pipeline__example strong i { color: var(--agent-amber); margin-right: 4px; }

/* ============================================================
   STACK GRID
   ============================================================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 50px;
}
.stack-cat {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 18px;
  padding: 24px 22px;
  backdrop-filter: blur(10px);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.stack-cat:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.stack-cat__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #F1F5F9;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stack-cat__title i { color: var(--agent-cyan); }

.stack-cat__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #E2E8F0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.25s;
}
.stack-pill img {
  width: 14px;
  height: 14px;
  display: inline-block;
}
.stack-pill:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: var(--agent-purple);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .agents-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .agents-hero__visual { height: 480px; }
  .satellite--1 { --orbit-radius: 170px; }
  .satellite--2 { --orbit-radius: 190px; }
  .satellite--3 { --orbit-radius: 170px; }
  .satellite--4 { --orbit-radius: 190px; }
  .satellite--5 { --orbit-radius: 170px; }
  .satellite--6 { --orbit-radius: 190px; }

  .agent-vs-chatbot {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .vs-arrow {
    transform: rotate(90deg);
    margin: 8px auto;
  }

  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline__line { display: none; }
}

@media (max-width: 768px) {
  .hero--agents { padding: 80px 0 40px; min-height: auto; }
  .agents-hero__visual { height: 380px; }

  .satellite { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .satellite__avatar { font-size: 1.1rem; }
  .satellite--1 { --orbit-radius: 130px; }
  .satellite--2 { --orbit-radius: 150px; }
  .satellite--3 { --orbit-radius: 130px; }
  .satellite--4 { --orbit-radius: 150px; }
  .satellite--5 { --orbit-radius: 130px; }
  .satellite--6 { --orbit-radius: 150px; }

  .constellation__core { width: 110px; height: 110px; }
  .constellation__core-inner { width: 90px; height: 90px; }

  .vs-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0;
  }
  .vs-row__label { font-size: 1rem; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .vs-row--head { display: none; }
  .vs-row__col::before {
    content: attr(data-vs-label);
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .pipeline { grid-template-columns: 1fr; }

  .agents-team { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .satellite,
  .satellite__avatar,
  .constellation__core-inner,
  .constellation__core-ring,
  .agent-card__avatar,
  .agent-card__avatar::after,
  .agents-hero__scroll-hint span,
  .vs-arrow i {
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   FIX-PACK v2  — poprawki po pierwszej iteracji
   ════════════════════════════════════════════════════════════════ */

/* ── 1. CASE-STUDY na jasnym tle ──────────────────────────────
   ai-classic.css ma .case-study zaprojektowane pod ciemne tło
   (color: rgba(255,255,255,0.6)). Nadpisujemy KOLORY tylko gdy
   case-study znajduje się wewnątrz section--light. Tło zostaje białe. */
.section--light .case-study {
  background: #fff;
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow: 0 10px 40px -15px rgba(15, 23, 42, 0.12),
              0 4px 12px -4px rgba(124, 58, 237, 0.08);
}
.section--light .case-study__header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
.section--light .case-study__problem,
.section--light .case-study__solution {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}
.section--light .case-study__problem h3,
.section--light .case-study__solution h3,
.section--light .case-study__results h3 {
  color: #0F172A;
  font-size: 1rem;
}
.section--light .case-study__problem p,
.section--light .case-study__solution p {
  color: #334155;
  font-size: 0.95rem;
}
.section--light .case-study__metric {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.15);
}
.section--light .case-study__metric strong {
  /* gradient text już działa */
}
.section--light .case-study__metric span {
  color: #475569;
  font-size: 0.78rem;
}
.section--light .case-study__quote {
  border-top-color: rgba(15, 23, 42, 0.06);
}
.section--light .case-study__quote blockquote {
  color: #334155;
}
.section--light .case-study__author {
  color: #64748B;
}
.section--light .case-study__cta {
  border-top-color: rgba(15, 23, 42, 0.06);
}

/* ── 2. DIGIT-BANNER — 70% w jednej linii ─────────────────────
   ai-classic.css ma .digit-banner__text strong { display:block }.
   Nasz template używa <b class="digit-banner__hi">70%</b> żeby
   uniknąć tego konfliktu. */
.digit-banner__text .digit-banner__hi {
  display: inline;
  font-weight: 800;
  color: #FBBF24;
  font-size: 1.05em;
  padding: 0 2px;
}

/* ── 3. AGENT-CARD — stop jumping podczas typing ──────────────
   Rezerwujemy 5 linii wysokości na text żeby layout był stabilny. */
.agent-card__typing {
  min-height: auto !important;
}
.agent-card__typing-text {
  display: block;
  min-height: calc(1.5em * 5); /* 5 linii rezerwy */
  word-break: break-word;
}
@media (max-width: 768px) {
  .agent-card__typing-text {
    min-height: calc(1.5em * 6);
  }
}

/* ════════════════════════════════════════════════════════════════
   HERO — DODATKOWE WARSTWY ANIMACJI W TLE
   3 canvasy + orby + code rain
   ════════════════════════════════════════════════════════════════ */

/* Canvas: przepływ danych po całej szerokości */
.agents-hero__canvas-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Canvas: floating wykresy/sparklines w tle */
.agents-hero__canvas-charts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Stary canvas (konstelacja) podnosimy nad nowe warstwy */
.agents-hero__canvas-bg {
  z-index: 1;
}

/* ── Świetlne orby ── */
.agents-hero__orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.agents-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbDrift 22s ease-in-out infinite;
}
.agents-hero__orb--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #7C3AED, transparent 70%);
  top: -120px; left: -120px;
  animation-delay: 0s;
}
.agents-hero__orb--2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #06B6D4, transparent 70%);
  bottom: -100px; right: -80px;
  animation-delay: -7s;
  animation-duration: 28s;
}
.agents-hero__orb--3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #EC4899, transparent 70%);
  top: 40%; right: 15%;
  opacity: 0.25;
  animation-delay: -14s;
  animation-duration: 26s;
}
.agents-hero__orb--4 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, #22C55E, transparent 70%);
  bottom: 20%; left: 25%;
  opacity: 0.22;
  animation-delay: -3s;
  animation-duration: 24s;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(40px, -30px) scale(1.08); }
  50%      { transform: translate(-30px, 30px) scale(0.95); }
  75%      { transform: translate(20px, 40px) scale(1.04); }
}

/* ── Code rain — pływające snippety ── */
.agents-hero__codestream {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 0.72rem;
  color: rgba(165, 243, 252, 0.35);
  overflow: hidden;
}
.agents-hero__codestream .cs-line {
  position: absolute;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.45);
  opacity: 0;
  animation: codeFloat 18s linear infinite;
}
.cs-line--1 { top: 8%;  left: -20%; animation-delay: 0s;   color: rgba(196, 181, 253, 0.4); }
.cs-line--2 { top: 22%; left: -25%; animation-delay: -3s;  animation-duration: 22s; }
.cs-line--3 { top: 38%; left: -15%; animation-delay: -8s;  color: rgba(134, 239, 172, 0.4); animation-duration: 20s; }
.cs-line--4 { top: 60%; left: -28%; animation-delay: -12s; animation-duration: 24s; }
.cs-line--5 { top: 76%; left: -22%; animation-delay: -5s;  color: rgba(252, 211, 77, 0.35); animation-duration: 19s; }
.cs-line--6 { top: 88%; left: -18%; animation-delay: -15s; color: rgba(244, 114, 182, 0.35); }

@keyframes codeFloat {
  0%   { left: -30%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* Mobile — nie pokazuj code rain bo zaśmieca */
@media (max-width: 768px) {
  .agents-hero__codestream { display: none; }
  .agents-hero__orb--3,
  .agents-hero__orb--4 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .agents-hero__orb,
  .agents-hero__codestream .cs-line {
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE FIX-PACK v3 — wyśrodkowany hero + ukryta konstelacja
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Cały content hero idzie na środek */
  .agents-hero__inner {
    text-align: center;
    justify-items: center;
  }
  .agents-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 640px;
  }
  .agents-hero__badge {
    margin-left: auto;
    margin-right: auto;
  }
  .agents-hero__title {
    text-align: center;
  }
  .agents-hero__lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 100%;
  }
  .agents-hero__bullets {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
  }
  .agents-hero__actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  .agents-hero__trust {
    justify-content: center;
    text-align: center;
  }
  .agents-hero__trust-tags {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  /* Ukrywamy całą konstelację „Twoja firma" + jej canvas na mobile */
  .agents-hero__visual,
  .agents-hero__canvas-bg {
    display: none !important;
  }

  /* Hero zwarte, mniej oddechu, zero pustego miejsca po wizualu */
  .hero--agents {
    min-height: auto;
    padding: 90px 0 50px;
  }
  .agents-hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Code rain i orby już są chowane wcześniej — flow + charts zostawiamy
     jako delikatne tło, ale obniżamy ich intensywność */
  .agents-hero__canvas-flow,
  .agents-hero__canvas-charts {
    opacity: 0.35;
  }
}
