.integration-mcp-page {
  background: #f5f7fb;
  color: #162238;
}

.integration-mcp-page .page-shell {
  overflow: visible;
}

.mcp-main {
  overflow: clip;
}

.mcp-main * {
  min-width: 0;
}

.mcp-hero {
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 64px 76px;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1fr);
  gap: 52px;
  align-items: center;
}

.mcp-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #315bdc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mcp-hero h1,
.mcp-explain h2,
.mcp-layer h2,
.mcp-included h2 {
  margin: 18px 0 0;
  color: #101c31;
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: 0;
}

.mcp-hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 76px);
}

.mcp-hero p,
.mcp-explain p,
.mcp-layer p,
.mcp-included p {
  margin: 22px 0 0;
  color: #63728a;
  font-size: 17px;
  line-height: 1.65;
}

.mcp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.mcp-btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.mcp-btn-primary {
  background: #315bdc;
  color: #fff;
  box-shadow: 0 18px 34px rgba(49, 91, 220, .22);
}

.mcp-btn-secondary {
  background: #fff;
  color: #21314d;
  border: 1px solid #dfe6f2;
}

.mcp-hero-visual {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
}

.mcp-network {
  position: absolute;
  inset: 0 14px auto;
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 14px;
  align-items: center;
  z-index: 1;
}

.mcp-node,
.mcp-connector {
  min-height: 108px;
  border-radius: 8px;
  background: rgba(255,255,255,.86);
  border: 1px solid #dce5f3;
  box-shadow: 0 18px 40px rgba(27, 45, 74, .09);
}

.mcp-node {
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.mcp-node span,
.mcp-node strong,
.mcp-connector em {
  display: block;
  font-style: normal;
}

.mcp-node span {
  color: #7b8aa3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mcp-node strong {
  color: #142139;
  font-size: 20px;
}

.mcp-node-coherta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mcp-node-coherta img {
  width: 34px;
  height: 34px;
}

.mcp-connector {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}

.mcp-connector span {
  height: 2px;
  background: linear-gradient(90deg, transparent, #315bdc, transparent);
  position: relative;
}

.mcp-connector span::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #315bdc;
  animation: mcpFlow 2.4s ease-in-out infinite;
}

.mcp-connector span:first-child::after {
  right: 0;
}

.mcp-connector span:last-child::after {
  left: 0;
  animation-delay: .55s;
}

.mcp-connector em {
  color: #315bdc;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.mcp-demo-card {
  position: relative;
  z-index: 2;
  margin-top: 130px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dae4f2;
  box-shadow: 0 28px 80px rgba(27, 45, 74, .15);
  overflow: hidden;
}

.mcp-window-bar {
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e5ebf5;
  background: #fbfcff;
}

.mcp-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ccd7e8;
}

.mcp-window-bar strong {
  margin-left: 8px;
  color: #718098;
  font-size: 13px;
}

.mcp-chat {
  min-height: 428px;
  padding: 26px;
  display: grid;
  gap: 18px;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(234, 241, 255, .78), rgba(255,255,255,.8)),
    linear-gradient(135deg, #ffffff, #f5f8fd);
}

.mcp-message {
  max-width: 78%;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.mcp-user {
  justify-self: end;
  background: #142139;
  color: #fff;
}

.mcp-ai {
  justify-self: start;
  background: #fff;
  border: 1px solid #dfe6f2;
}

.mcp-thinking {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  animation: mcpHideThinking 35s linear forwards;
}

.mcp-thinking strong {
  margin-right: 6px;
  color: #42536f;
  font-size: 13px;
}

.mcp-thinking span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8ea0bc;
  animation: mcpBounce 1.1s ease-in-out infinite;
}

.mcp-thinking span:nth-child(2) {
  animation-delay: .15s;
}

.mcp-thinking span:nth-child(3) {
  animation-delay: .3s;
}

.mcp-campaigns {
  opacity: 0;
  transform: translateY(14px);
  animation: mcpRevealCampaigns 35s linear forwards;
  display: grid;
  gap: 10px;
}

.mcp-result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid #dfe6f2;
}

.mcp-result-head strong {
  color: #122039;
}

.mcp-result-head span {
  color: #22a06b;
  font-size: 13px;
  font-weight: 800;
}

.mcp-campaign-row,
.mcp-mini-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid #e1e8f3;
  border-radius: 8px;
  background: #fff;
}

.mcp-campaign-row span,
.mcp-mini-row span {
  color: #253650;
  font-weight: 750;
}

.mcp-campaign-row strong,
.mcp-mini-row strong {
  color: #315bdc;
  white-space: nowrap;
}

.mcp-explain {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 64px 92px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.mcp-explain h2,
.mcp-layer h2,
.mcp-included h2 {
  font-size: clamp(32px, 3.4vw, 54px);
}

.mcp-scroll-story {
  position: relative;
  min-height: 1620px;
  padding: 0 64px 150px;
}

.mcp-layer {
  position: sticky;
  top: 96px;
  max-width: 1360px;
  min-height: 640px;
  margin: 0 auto;
  padding: 46px;
  border-radius: 8px;
  border: 1px solid #dce5f3;
  background: #ffffff;
  box-shadow: 0 28px 76px rgba(25, 43, 72, .13);
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(520px, 1fr);
  gap: 38px;
  align-items: center;
}

.mcp-layer-one {
  z-index: 1;
}

.mcp-layer-two {
  z-index: 2;
  margin-top: 540px;
  background: #fdfefe;
}

.mcp-layer-copy {
  max-width: 520px;
}

.mcp-prompt {
  padding: 16px 18px;
  border-radius: 8px;
  background: #142139;
  color: #fff !important;
  font-weight: 720;
}

.mcp-mini-board,
.mcp-post-panel {
  display: grid;
  gap: 12px;
}

.mcp-mini-board {
  padding: 18px;
  border-radius: 8px;
  background: #f6f9fe;
  border: 1px solid #dfe7f2;
}

.mcp-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 14px 6px;
  color: #65748c;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mcp-post-panel {
  min-width: 0;
}

.mcp-post-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(31, 53, 84, .06);
}

.mcp-post-table th,
.mcp-post-table td {
  padding: 16px 14px;
  border-bottom: 1px solid #e6edf6;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
}

.mcp-post-table th {
  background: #f4f7fc;
  color: #65748c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mcp-post-table tr:last-child td {
  border-bottom: 0;
}

.mcp-post-table td:nth-child(1),
.mcp-post-table td:nth-child(3),
.mcp-post-table td:nth-child(4),
.mcp-post-table td:nth-child(5) {
  white-space: nowrap;
  font-weight: 760;
}

.mcp-viral td:nth-child(5) {
  color: #8b4b00;
  background: #fff8ec;
}

.mcp-best td {
  background: #edf8f2;
}

.mcp-best td:nth-child(3),
.mcp-best td:nth-child(4) {
  color: #168457;
}

.mcp-answer {
  padding: 18px 20px;
  border-radius: 8px;
  background: #142139;
  color: #fff;
  display: grid;
  gap: 6px;
}

.mcp-answer span {
  color: #aebbd1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mcp-answer strong {
  font-size: 18px;
  line-height: 1.45;
}

.mcp-included {
  padding: 54px 64px 96px;
}

.mcp-included-card {
  max-width: 1360px;
  margin: 0 auto;
  padding: 46px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d7e4ff;
  box-shadow: 0 24px 64px rgba(49, 91, 220, .12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.mcp-included-card p {
  max-width: 840px;
}

@keyframes mcpFlow {
  0% { opacity: 0; transform: translateX(-34px) scale(.8); }
  25%, 65% { opacity: 1; }
  100% { opacity: 0; transform: translateX(34px) scale(.8); }
}

@keyframes mcpBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes mcpHideThinking {
  0%, 14% { opacity: 1; visibility: visible; }
  16%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes mcpRevealCampaigns {
  0%, 14% { opacity: 0; transform: translateY(14px); }
  17%, 100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .mcp-hero,
  .mcp-layer {
    grid-template-columns: 1fr;
  }

  .mcp-hero-visual {
    min-height: 640px;
  }

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

@media (max-width: 760px) {
  .integration-mcp-page {
    overflow-x: hidden;
  }

  .mcp-hero,
  .mcp-explain,
  .mcp-scroll-story,
  .mcp-included {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mcp-hero {
    padding-top: 58px;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    overflow: hidden;
  }

  .mcp-hero-copy,
  .mcp-hero-visual,
  .mcp-explain > *,
  .mcp-layer,
  .mcp-included-card {
    width: 100%;
    max-width: min(330px, calc(100vw - 48px));
  }

  .mcp-hero h1 {
    font-size: 32px;
    overflow-wrap: anywhere;
  }

  .mcp-hero p,
  .mcp-explain p,
  .mcp-layer p,
  .mcp-included p {
    overflow-wrap: anywhere;
  }

  .mcp-hero-visual {
    min-height: auto;
    display: block;
  }

  .mcp-network {
    position: static;
    grid-template-columns: 1fr;
    min-height: 0;
    margin-bottom: 14px;
  }

  .mcp-connector {
    min-height: 74px;
  }

  .mcp-demo-card {
    margin-top: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .mcp-message {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .mcp-user {
    justify-self: start;
  }

  .mcp-chat {
    padding: 16px;
  }

  .mcp-result-head,
  .mcp-campaign-row,
  .mcp-mini-row,
  .mcp-included-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .mcp-scroll-story {
    min-height: auto;
    padding-bottom: 58px;
  }

  .mcp-layer {
    position: relative;
    top: auto;
    min-height: 0;
    padding: 24px;
    margin-bottom: 24px;
    grid-template-columns: minmax(0, 1fr);
  }

  .mcp-layer-two {
    margin-top: 0;
  }

  .mcp-post-panel {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .mcp-post-table {
    min-width: 720px;
  }

  .mcp-included-card {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mcp-connector span::after,
  .mcp-thinking,
  .mcp-thinking span,
  .mcp-campaigns {
    animation: none;
  }

  .mcp-thinking {
    display: none;
  }

  .mcp-campaigns {
    opacity: 1;
    transform: none;
  }
}
