:root {
  --hillel-mint: #00d085;
  --hillel-mint-dim: rgba(0, 208, 133, 0.35);
  --bg-dark: #0a0e0c;
  --text: #f4f7f5;
  --text-muted: rgba(244, 247, 245, 0.72);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

html {
  font-size: 125%;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  overflow: hidden;
}

.deck {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.5s;
}

.slide--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
  z-index: 1;
}

.slide__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

/* Якщо браузер не відтворює .mov (часто Chrome на Windows) — хоча б не «порожній» кадр */
.slide__video.slide__video--failed {
  visibility: hidden;
}

.slide--video-fallback {
  background: linear-gradient(125deg, #071512 0%, #0c221c 45%, #051a14 100%);
}

.slide__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      125deg,
      rgba(6, 12, 10, 0.88) 0%,
      rgba(6, 14, 11, 0.55) 45%,
      rgba(4, 18, 12, 0.75) 100%
    ),
    radial-gradient(
      ellipse 80% 60% at 70% 20%,
      rgba(0, 208, 133, 0.12),
      transparent 55%
    );
  pointer-events: none;
}

.slide__scrim--plan {
  background: linear-gradient(
      110deg,
      rgba(5, 14, 11, 0.92) 0%,
      rgba(6, 16, 12, 0.72) 50%,
      rgba(4, 20, 14, 0.88) 100%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(0, 208, 133, 0.1),
      transparent 50%
    );
}

.slide__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    circle at 50% 100%,
    var(--hillel-mint-dim) 0%,
    transparent 42%
  );
  opacity: 0.45;
  pointer-events: none;
  animation: glowPulse 8s var(--ease-out) infinite alternate;
}

.slide__glow--soft {
  opacity: 0.25;
  animation-duration: 10s;
}

@keyframes glowPulse {
  from {
    transform: scale(1) translateY(0);
    opacity: 0.35;
  }
  to {
    transform: scale(1.08) translateY(-2%);
    opacity: 0.55;
  }
}

.slide__inner {
  position: relative;
  z-index: 2;
  width: min(92vw, 1100px);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.slide__inner--title {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Ширший блок під назву та текст на титульному слайді */
.slide__inner.slide__inner--title {
  width: min(94vw, 72rem);
  max-width: min(94vw, 72rem);
}

.slide__inner--title .slide__title {
  max-width: min(90vw, 38rem);
}

.slide__inner--title .slide__subtitle {
  max-width: min(90vw, 44rem);
}

.slide__inner--title .slide__hint {
  max-width: min(90vw, 36rem);
}

.slide__inner--title .slide__logo {
  width: min(90%, 360px);
}

.slide__logo {
  width: min(72vw, 320px);
  height: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}

.slide__eyebrow {
  margin: 0;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hillel-mint);
}

.slide__eyebrow--accent {
  text-align: left;
  align-self: flex-start;
}

.slide__title {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}

.slide__subtitle {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 36ch;
  line-height: 1.5;
}

.slide__hint {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: rgba(244, 247, 245, 0.45);
  font-weight: 500;
}

.slide__inner--plan {
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 5rem;
  scrollbar-width: none; /* Firefox — без смуги прокрутки */
  -ms-overflow-style: none; /* IE / старий Edge */
}

.slide__inner--plan::-webkit-scrollbar {
  display: none; /* Chrome, Safari, новий Edge */
}

.slide__heading {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.slide__inner--plan .slide__heading {
  margin-bottom: 1.35rem;
}

.slide__lead {
  margin: 0 0 1.75rem;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 62ch;
}

.plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-list__item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 208, 133, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: border-color 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.plan-list__item:hover {
  border-color: rgba(0, 208, 133, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.plan-list__num {
  display: flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--hillel-mint);
  line-height: 1;
}

.plan-list__icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem;
  border: 1px solid rgba(0, 208, 133, 0.2);
}

.plan-list__text {
  font-size: clamp(1.0625rem, 2.1vw, 1.3rem);
  line-height: 1.45;
  color: var(--text);
  font-weight: 600;
}

.nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(6, 12, 10, 0.95), transparent);
}

.nav__btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 208, 133, 0.35);
  border-radius: 50%;
  background: rgba(0, 208, 133, 0.12);
  color: var(--text);
  font-size: 1.125rem;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), transform 0.2s var(--ease-out),
    border-color 0.25s;
}

.nav__btn:hover {
  background: rgba(0, 208, 133, 0.28);
  border-color: var(--hillel-mint);
  transform: scale(1.05);
}

.nav__btn:active {
  transform: scale(0.96);
}

.nav__dots {
  display: flex;
  gap: 0.5rem;
}

.nav__progress {
  min-width: 3.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
}

.nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.nav__dot--active {
  background: var(--hillel-mint);
  transform: scale(1.25);
}

.js-reveal,
.js-reveal-plan {
  will-change: transform, opacity;
}

/* Контент-слайди (після титулів блоків) */
.slide__inner--content {
  width: min(92vw, 1100px);
}

.content-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 72ch;
}

.content-list--compact {
  gap: 0.65rem;
  margin-top: 1rem;
}

.content-list__item {
  position: relative;
  padding: 0.9rem 1.05rem 0.9rem 2.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 208, 133, 0.16);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  color: var(--text);
  line-height: 1.55;
  font-size: clamp(0.95rem, 1.55vw, 1.1rem);
}

.content-list__item::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hillel-mint);
  box-shadow: 0 0 0 6px rgba(0, 208, 133, 0.14);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  margin-top: 1.15rem;
}

@media (max-width: 920px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.content-card {
  padding: 1.15rem 1.2rem 1.25rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(0, 208, 133, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.content-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.token-grid {
  margin-top: 1.1rem;
}

.token-card {
  padding: 1.15rem 1.2rem 1.25rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(0, 208, 133, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.token-card p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.steps-span-2 {
  grid-column: 1 / -1;
}

.steps-slide .token-card {
  padding: 0.95rem 1rem 1.05rem;
}

.steps-slide .slide__inner--content {
  padding: clamp(1.05rem, 2.2vw, 2rem);
}

.slide__inner--diagram {
  max-width: min(94vw, 1120px);
  padding-top: clamp(0.75rem, 1.5vw, 1.25rem);
}

.slide--diagram .slide__heading {
  margin-bottom: 0.5rem;
}

.mcp-flow {
  margin-top: 0.65rem;
}

.mcp-flow__lane {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(11rem, 1.35fr) minmax(11rem, 1.35fr);
  align-items: center;
  gap: 0.5rem;
  min-height: min(42vh, 300px);
}

.mcp-flow__hub-group,
.mcp-flow__services-group {
  display: grid;
  grid-template-columns: minmax(2rem, 3.5rem) 1fr;
  align-items: center;
  gap: 0.35rem;
}

.mcp-flow__services-group {
  grid-template-columns: minmax(2rem, 3.5rem) 1fr;
}

.mcp-flow__agents,
.mcp-flow__services {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mcp-flow__services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mcp-flow__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.85rem 0.75rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(0, 208, 133, 0.22);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.mcp-flow__node--agent {
  padding: 1rem 0.85rem 0.9rem;
  border-color: rgba(0, 208, 133, 0.38);
  box-shadow: 0 0 28px rgba(0, 208, 133, 0.12);
}

.mcp-flow__node--service {
  padding: 0.65rem 0.5rem;
}

.mcp-flow__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--bg-dark);
  background: linear-gradient(145deg, #00f0a0, var(--hillel-mint));
  box-shadow: 0 0 0 6px rgba(0, 208, 133, 0.14);
}

.mcp-flow__service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--hillel-mint);
  background: rgba(0, 208, 133, 0.12);
  border: 1px solid rgba(0, 208, 133, 0.28);
}

.mcp-flow__label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.mcp-flow__hint,
.mcp-flow__note {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.mcp-flow__note {
  text-align: center;
  padding: 0 0.25rem;
  font-style: italic;
}

.mcp-flow__hub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.15rem;
  min-height: 7.5rem;
  padding: 1rem 0.65rem;
  border-radius: 18px;
  background: rgba(0, 208, 133, 0.1);
  border: 2px solid rgba(0, 208, 133, 0.45);
  box-shadow:
    0 0 40px rgba(0, 208, 133, 0.18),
    inset 0 0 24px rgba(0, 208, 133, 0.06);
}

.mcp-flow__hub-ring {
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  border: 1px solid rgba(0, 208, 133, 0.25);
  animation: hubPulse 2.4s var(--ease-out) infinite;
  pointer-events: none;
}

.mcp-flow__hub-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hillel-mint);
}

.mcp-flow__hub-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mcp-flow__hub-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

@keyframes hubPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

.mcp-flow__pipe {
  position: relative;
  align-self: center;
  width: 100%;
  height: 3px;
}

.mcp-flow__line {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(0, 208, 133, 0.15),
    rgba(0, 208, 133, 0.45),
    rgba(0, 208, 133, 0.15)
  );
}

.mcp-flow__dot {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--hillel-mint);
  box-shadow: 0 0 10px var(--hillel-mint);
  opacity: 0;
}

.mcp-flow--streaming .mcp-flow__dot {
  opacity: 1;
  animation: packetFlow 1.8s var(--ease-out) infinite;
}

.mcp-flow__dot--a {
  animation-delay: 0s !important;
}

.mcp-flow__dot--b {
  animation-delay: 0.55s !important;
}

.mcp-flow__dot--c {
  animation-delay: 1.1s !important;
}

.mcp-flow__pipe--right .mcp-flow__dot--a {
  animation-delay: 0.2s !important;
}

.mcp-flow__pipe--right .mcp-flow__dot--b {
  animation-delay: 0.75s !important;
}

.mcp-flow__pipe--right .mcp-flow__dot--c {
  animation-delay: 1.3s !important;
}

@keyframes packetFlow {
  0% {
    left: 0;
    opacity: 0;
    transform: scale(0.6);
  }
  8% {
    opacity: 1;
    transform: scale(1);
  }
  92% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 8px);
    opacity: 0;
    transform: scale(0.6);
  }
}

.mcp-flow__caption {
  margin: 0.85rem 0 0;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(0, 208, 133, 0.16);
  border-radius: 12px;
}

.mcp-flow__caption strong {
  color: var(--text);
}

@media (max-width: 820px) {
  .mcp-flow__lane {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.65rem;
    min-height: unset;
  }

  .mcp-flow__hub-group,
  .mcp-flow__services-group {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.5rem;
  }

  .mcp-flow__pipe {
    width: 3px;
    height: 2rem;
    justify-self: center;
  }

  .mcp-flow__line {
    width: 100%;
    height: 100%;
    background: linear-gradient(
      180deg,
      rgba(0, 208, 133, 0.15),
      rgba(0, 208, 133, 0.45),
      rgba(0, 208, 133, 0.15)
    );
  }

  .mcp-flow__dot {
    left: 50% !important;
    margin-left: -4px;
    animation-name: packetFlowVertical !important;
  }

  @keyframes packetFlowVertical {
    0% {
      top: 0;
      opacity: 0;
    }
    8% {
      opacity: 1;
    }
    92% {
      opacity: 1;
    }
    100% {
      top: calc(100% - 8px);
      opacity: 0;
    }
  }

  .mcp-flow__services {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hillel MAX visual accents — не задавати position на .slide--block-intro: ламає position:absolute у .slide */

.slide__watermark {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(38vw, 280px);
  height: auto;
  opacity: 0.07;
  pointer-events: none;
}

.slide__tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.slide__tech-chip img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem 0.35rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 208, 133, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.tech-chip img {
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
}

.slide__inner--scenario {
  max-width: min(92vw, 980px);
}

.scenario-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  margin-top: 0.5rem;
  padding: 1.1rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 208, 133, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.scenario-card__icon {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  padding: 0.35rem;
  border-radius: 12px;
  background: rgba(0, 208, 133, 0.1);
  border: 1px solid rgba(0, 208, 133, 0.28);
}

.scenario-card__body .slide__heading {
  margin-bottom: 0.65rem;
}

.scenario-card__body .slide__lead:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .scenario-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .slide__watermark {
    width: min(50vw, 180px);
    opacity: 0.05;
  }
}

.mcp-flow__agent-icon,
.mcp-flow__hub-icon {
  display: block;
  object-fit: contain;
}

.mcp-flow__hub-icon {
  margin-bottom: 0.15rem;
}

.mcp-flow__service-icon img {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
  object-fit: contain;
}

/* MCP hub — client → servers → tools/prompts */
.mcp-hub {
  margin-top: 0.75rem;
}

.mcp-hub__canvas {
  display: grid;
  grid-template-columns: minmax(9.5rem, 11.5rem) 3.25rem minmax(8.5rem, 10rem) minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(5.5rem, auto));
  grid-template-areas:
    "client wires row1 row1"
    "client wires row2 row2"
    "client wires row3 row3";
  gap: 0.65rem 0.55rem;
  align-items: center;
  width: min(100%, 54rem);
  margin: 0 auto;
  padding: 1.35rem 1.45rem;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.mcp-hub__client {
  grid-area: client;
  align-self: center;
}

.mcp-hub__wires {
  grid-area: wires;
  width: 100%;
  height: 100%;
  min-height: 12.5rem;
  overflow: visible;
}

.mcp-hub__canvas > .mcp-hub__row {
  grid-column: 3 / 5;
  display: grid;
  grid-template-columns: minmax(8.5rem, 10rem) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.mcp-hub__canvas > .mcp-hub__row:nth-child(3) {
  grid-row: 1;
}

.mcp-hub__canvas > .mcp-hub__row:nth-child(4) {
  grid-row: 2;
}

.mcp-hub__canvas > .mcp-hub__row:nth-child(5) {
  grid-row: 3;
}

.mcp-hub__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.65rem;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 22px rgba(0, 0, 0, 0.28);
}

.mcp-hub__card--client {
  min-height: 10.5rem;
  padding: 1.1rem 0.85rem;
  border-color: rgba(0, 208, 133, 0.3);
  background: linear-gradient(160deg, rgba(0, 208, 133, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.mcp-hub__card--server {
  min-height: 5rem;
  border-color: rgba(255, 200, 80, 0.35);
  background: linear-gradient(160deg, rgba(255, 200, 80, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.mcp-hub__card-icon {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
}

.mcp-hub__card-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.mcp-hub__card-hint {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.mcp-hub__wire {
  fill: none;
  stroke: rgba(0, 208, 133, 0.7);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mcp-hub__wire-label {
  fill: var(--hillel-mint);
  font-size: 9px;
  font-weight: 700;
  font-family: Manrope, system-ui, sans-serif;
  text-anchor: middle;
}

.mcp-hub__endpoints {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  min-width: 0;
}

.mcp-hub__endpoint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.72rem;
  border-radius: 10px;
  font-size: 0.86rem;
  color: var(--text);
  background: rgba(100, 160, 255, 0.1);
  border: 1px solid rgba(100, 160, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mcp-hub__endpoint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: #dce8ff;
}

.mcp-hub__endpoint--prompt {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.mcp-hub__endpoint-icon {
  flex-shrink: 0;
  display: flex;
  color: rgba(255, 255, 255, 0.88);
}

.mcp-hub__row .mcp-hub__card--server {
  position: relative;
}

.mcp-hub__row .mcp-hub__card--server::after {
  content: "";
  position: absolute;
  right: -0.45rem;
  top: 50%;
  width: 0.45rem;
  height: 2px;
  background: rgba(100, 160, 255, 0.55);
  transform: translateY(-50%);
}

.mcp-flow--streaming .mcp-hub__wire {
  stroke: rgba(0, 208, 133, 1);
  filter: drop-shadow(0 0 4px rgba(0, 208, 133, 0.45));
}

.mcp-flow--streaming .mcp-hub__wire-label {
  fill: #fff;
}

@media (max-width: 820px) {
  .mcp-hub__canvas {
    grid-template-columns: 1fr;
    grid-template-areas:
      "client"
      "wires"
      "row1"
      "row2"
      "row3";
    gap: 0.65rem;
  }

  .mcp-hub__wires {
    min-height: 3.5rem;
    transform: rotate(90deg);
    max-width: 8rem;
    margin: 0 auto;
  }

  .mcp-hub__row {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .mcp-hub__row .mcp-hub__card--server::after {
    display: none;
  }
}

/* Evolution diagrams — від чату до агента */
.evo-flow {
  margin-top: 1rem;
}

.evo-flow--chat {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0 0.5rem;
}

.evo-pipeline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 22rem);
  margin: 0 auto;
}

.evo-card {
  width: 100%;
  padding: 0.95rem 1.15rem;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 55%, rgba(0, 0, 0, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(0, 208, 133, 0.1);
  backdrop-filter: blur(14px);
}

.evo-card--model {
  padding: 1rem 1.15rem;
  background: linear-gradient(160deg, rgba(0, 208, 133, 0.12) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.1) 100%);
  border-color: rgba(0, 208, 133, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 36px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(0, 208, 133, 0.08);
}

.evo-card--output {
  border-style: dashed;
  border-color: rgba(0, 208, 133, 0.32);
}

.evo-card__eyebrow {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hillel-mint);
}

.evo-card__body {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.45;
  color: var(--text);
}

.evo-card__model-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.evo-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.evo-card__title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.evo-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3rem;
  flex-shrink: 0;
}

.evo-connector--down {
  height: 2.6rem;
}

.evo-connector__svg {
  display: block;
  width: 1.5rem;
  height: 100%;
  overflow: visible;
  color: rgba(0, 208, 133, 0.8);
}

.evo-connector__line {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.evo-connector__head {
  fill: currentColor;
}

.evo-flow__pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 208, 133, 0.14);
  border: 1px solid rgba(0, 208, 133, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hillel-mint);
}

.evo-flow__query {
  margin: 0.35rem 0 0;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text);
}

.evo-flow__vlink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  height: 2.2rem;
}

.evo-flow__vline {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 208, 133, 0.15), rgba(0, 208, 133, 0.55));
}

.evo-flow__varrow {
  font-size: 1rem;
  color: var(--hillel-mint);
  line-height: 1;
}

.evo-flow__model {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.evo-flow__model-icon {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.evo-flow__box {
  display: block;
  min-width: 9rem;
  padding: 0.55rem 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 208, 133, 0.35);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.evo-flow__output {
  padding: 0.75rem 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(0, 208, 133, 0.28);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.45vw, 1.05rem);
}

.evo-flow__output p {
  margin: 0;
}

.evo-flow--agent {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0;
}

.evo-agent-board {
  position: relative;
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    ". tools"
    "llm zone"
    ". query";
  gap: 0.45rem 0.35rem;
  width: min(100%, 50rem);
  margin: 0 auto;
  align-items: stretch;
  justify-items: center;
  overflow: visible;
  --evo-thought-lift: 2.45rem;
}

.evo-flow__step.evo-agent-zone {
  display: contents;
}

.evo-agent-zone__frame {
  grid-area: zone;
  width: 100%;
  max-width: 26rem;
  justify-self: center;
  padding: 1.5rem 1.75rem 1.35rem;
  border: 2px dashed rgba(100, 160, 255, 0.5);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(100, 160, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 55%, rgba(0, 0, 0, 0.14) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.evo-agent-llm {
  grid-area: llm;
  display: flex;
  justify-content: center;
  align-self: end;
  margin-bottom: var(--evo-thought-lift);
}

.evo-agent-bridge {
  position: absolute;
  z-index: 6;
  height: 1.5rem;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.evo-agent-bridge-step {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
}

.evo-agent-bridge__line {
  stroke: rgba(100, 160, 255, 0.75);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.evo-agent-llm__card {
  width: 5rem;
  height: 5rem;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.evo-agent-llm__card .evo-card__icon {
  width: 2.65rem;
  height: 2.65rem;
}

.evo-agent-tools {
  grid-area: tools;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  justify-self: center;
  width: 100%;
  max-width: 26rem;
  grid-column: 1 / -1;
}

.evo-agent-tools__row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.evo-agent-tool {
  width: 7.5rem;
  padding: 0.48rem 0.5rem;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 200, 80, 0.24) 0%, rgba(255, 200, 80, 0.08) 100%);
  border: 1px solid rgba(255, 200, 80, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 20px rgba(0, 0, 0, 0.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffe9b0;
  box-sizing: border-box;
}

.evo-agent-tools__drops {
  display: block;
  width: 15rem;
  height: 2.25rem;
  overflow: visible;
}

.evo-agent-tools__drop {
  fill: none;
  stroke: rgba(0, 208, 133, 0.75);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.evo-agent-tools__head {
  fill: rgba(0, 208, 133, 0.9);
}

.evo-agent-query {
  grid-area: query;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  max-width: 26rem;
  justify-self: center;
}

.evo-agent-loop {
  position: relative;
  width: 22rem;
  height: 11rem;
  margin: 0 auto;
  overflow: visible;
}

.evo-agent-loop__ring {
  position: relative;
  width: 22rem;
  height: 11rem;
  margin: 0 auto;
}

.evo-agent-loop__node {
  position: absolute;
  z-index: 3;
  width: 7.5rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--text);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.3);
}

.evo-agent-loop__node--action {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.evo-agent-loop__node--thought {
  bottom: 0;
  left: 0;
  background: linear-gradient(160deg, rgba(255, 200, 80, 0.3) 0%, rgba(255, 200, 80, 0.1) 100%);
  border-color: rgba(255, 200, 80, 0.58);
}

.evo-agent-loop__node--observation {
  bottom: 0;
  right: 0;
}

.evo-agent-loop__center {
  position: absolute;
  top: 54%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  font-size: 1.55rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.evo-agent-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.evo-agent-arrow {
  opacity: 0;
  visibility: hidden;
}

.evo-agent-arrow path {
  fill: none;
  stroke: rgba(100, 160, 255, 0.75);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.evo-agent-query__arrow {
  width: 1.5rem;
  height: 2.25rem;
  color: rgba(0, 208, 133, 0.85);
  overflow: visible;
}

.evo-agent-query__text {
  margin: 0;
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 208, 133, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.evo-flow--streaming .evo-agent-arrow path,
.evo-flow--streaming .evo-agent-bridge__line,
.evo-flow--streaming .evo-agent-tools__drop {
  stroke: rgba(0, 208, 133, 0.95);
  animation: evo-loop-pulse 1.8s ease-in-out infinite;
}

.evo-flow--streaming .evo-agent-zone__frame {
  border-color: rgba(0, 208, 133, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(0, 208, 133, 0.1);
}

.evo-flow--streaming .evo-connector__svg {
  color: rgba(0, 208, 133, 1);
  filter: drop-shadow(0 0 6px rgba(0, 208, 133, 0.45));
  animation: evo-connector-pulse 1.6s ease-in-out infinite;
}

.evo-flow--streaming .evo-card--model {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 36px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(0, 208, 133, 0.16);
}

@keyframes evo-connector-pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@keyframes evo-loop-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .evo-agent-board {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tools"
      "llm"
      "zone"
      "query";
    width: min(100%, 22rem);
  }

  .evo-agent-llm,
  .evo-agent-bridge {
    align-self: center;
    margin-bottom: 0;
  }

  .evo-agent-bridge {
    width: 60%;
    height: 1.25rem;
    transform: rotate(90deg);
    margin: 0.25rem auto;
  }

  .evo-agent-loop {
    width: 18.5rem;
    height: 10rem;
  }

  .evo-agent-loop__node,
  .evo-agent-tool {
    width: 6.25rem;
    font-size: 0.78rem;
  }

  .evo-agent-tools__row {
    gap: 0.75rem;
  }

  .evo-agent-arrows {
    left: -1.25rem;
    width: calc(100% + 1.25rem);
  }
}

.slide__code {
  margin: 0.75rem 0 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(0.62rem, 1.1vw, 0.78rem);
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  overflow-x: auto;
}

.slide__code code {
  font-family: inherit;
}
