/* MCP landing page */

.mcp-page {
  --mcp-cta: #ce7c5e;
  --mcp-cta-hover: #d98a6b;
  --mcp-cta-text: #ffffff;
  --mcp-bg: #ffffff;
  --mcp-text: #121014;
  --mcp-muted: #5f5b66;
  --mcp-hero-bg: #faf9fc;
  --mcp-glow: rgba(149, 54, 236, 0.14);
  --mcp-glow-mid: rgba(149, 54, 236, 0.09);
  --mcp-glow-edge: rgba(149, 54, 236, 0.04);
  --mcp-title-grad: linear-gradient(90deg, #2a2432 0%, #4d4259 100%);
  --mcp-tabs-bg: linear-gradient(180deg, #e9e4f1, #f4f1f8);
  --mcp-tabs-shadow: inset 0 1px 2px rgba(45, 20, 80, 0.08), -2px 3px 10px rgba(45, 20, 80, 0.06);
  --mcp-tabs-rim: conic-gradient(
    rgba(40, 20, 70, 0.14) 0deg, rgba(40, 20, 70, 0.07) 62deg, rgba(40, 20, 70, 0.02) 74deg,
    rgba(40, 20, 70, 0.02) 88deg, rgba(40, 20, 70, 0.20) 102deg, rgba(40, 20, 70, 0.14) 180deg,
    rgba(40, 20, 70, 0.07) 242deg, rgba(40, 20, 70, 0.02) 254deg, rgba(40, 20, 70, 0.02) 268deg,
    rgba(40, 20, 70, 0.20) 282deg, rgba(40, 20, 70, 0.14) 360deg);
  --mcp-tab-text: #5f5968;
  --mcp-tab-hover-text: #121014;
  --mcp-tab-active-bg: linear-gradient(180deg, #ffffff, #fbfafd);
  --mcp-tab-active-shadow: 0 1px 2px rgba(45, 20, 80, 0.10), -1px 3px 8px rgba(45, 20, 80, 0.10);
  --mcp-tab-active-text: #121014;
  --mcp-prompt-bg: #ffffff;
  --mcp-prompt-border: rgba(147, 52, 235, 0.35);
  --mcp-prompt-glow: rgba(147, 52, 235, 0.1);
  --mcp-prompt-stack: #f1eef5;
  --mcp-prompt-stack-border: rgba(147, 52, 235, 0.14);
  --mcp-code-bg: #f7f5fa;
  --mcp-code-border: #ebe7f0;
  --mcp-code-text: #4a4650;
  --mcp-code-fade: rgba(247, 245, 250, 0.9);
  --mcp-highlight: #b26a12;
  --mcp-dim: #9a96a1;
  --mcp-card: #f5f3f8;
  --mcp-card-shadow: 0 8px 30px rgba(20, 10, 40, 0.06);
  --mcp-media-bg: #e9e6ee;
  --mcp-divider: #e4e0e9;
  --mcp-step: #e9e6ee;
  --mcp-focus: #9334eb;
  --mcp-dots: #d9d5df;
  background: var(--mcp-bg);
  color: var(--mcp-text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

.mcp-page[data-mcp-tab="chatgpt"] {
  --mcp-cta: #0d0d0d;
  --mcp-cta-hover: #2f2f2f;
  --mcp-cta-text: #ffffff;
}
.dark .mcp-page[data-mcp-tab="chatgpt"] {
  --mcp-cta: #ffffff;
  --mcp-cta-hover: #e5e5e5;
  --mcp-cta-text: #0d0d0d;
}

.dark .mcp-page {
  --mcp-bg: #000000;
  --mcp-text: #ffffff;
  --mcp-muted: #b1afb4;
  --mcp-hero-bg: #0a090d;
  --mcp-glow: rgba(149, 54, 236, 0.22);
  --mcp-glow-mid: rgba(149, 54, 236, 0.14);
  --mcp-glow-edge: rgba(149, 54, 236, 0.06);
  --mcp-title-grad: linear-gradient(90deg, #dcd3ee 0%, #f7f4fc 100%);
  --mcp-tabs-bg: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.08) 14%, transparent 35%, transparent 65%, rgba(255, 255, 255, 0.032)), #190f22;
  --mcp-tabs-shadow: -4px 6px 14px rgba(0, 0, 0, 0.35);
  --mcp-tabs-rim: conic-gradient(
    rgba(255, 255, 255, 0.40) 0deg, rgba(255, 255, 255, 0.04) 62deg, rgba(255, 255, 255, 0) 74deg,
    rgba(255, 255, 255, 0) 88deg, rgba(255, 255, 255, 0.75) 102deg, rgba(255, 255, 255, 0.45) 112deg,
    rgba(255, 255, 255, 0.35) 180deg, rgba(255, 255, 255, 0.04) 242deg, rgba(255, 255, 255, 0) 254deg,
    rgba(255, 255, 255, 0) 268deg, rgba(255, 255, 255, 0.77) 282deg, rgba(255, 255, 255, 0.50) 292deg,
    rgba(255, 255, 255, 0.40) 360deg);
  --mcp-tab-text: #ffffff;
  --mcp-tab-hover-text: #ffffff;
  --mcp-tab-active-bg: linear-gradient(180deg, #251e2d, #27202f 40%, #27202f 70%, #2a2332);
  --mcp-tab-active-shadow: -2px 3px 6px rgba(0, 0, 0, 0.35);
  --mcp-tab-active-text: #ffffff;
  --mcp-prompt-bg: #0a0a0a;
  --mcp-prompt-border: rgba(147, 52, 235, 0.45);
  --mcp-prompt-glow: rgba(147, 52, 235, 0.18);
  --mcp-prompt-stack: #141018;
  --mcp-prompt-stack-border: rgba(147, 52, 235, 0.18);
  --mcp-code-bg: #110d15;
  --mcp-code-border: #1c1720;
  --mcp-code-text: #a7a5ab;
  --mcp-code-fade: rgba(17, 13, 21, 0.9);
  --mcp-highlight: #e0a44a;
  --mcp-dim: #6b6870;
  --mcp-card: #121014;
  --mcp-card-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  --mcp-media-bg: #1a171d;
  --mcp-divider: #211e24;
  --mcp-step: #232024;
  --mcp-focus: #b78bf0;
  --mcp-dots: #2b2a2f;
}

/* ---------- Hero ---------- */

.mcp-hero {
  position: relative;
  height: 520px;
  isolation: isolate;
  overflow: hidden;
  background: var(--mcp-hero-bg);
}

.mcp-hero-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 46% 95% at 50% 40%, var(--mcp-glow) 0%, var(--mcp-glow-mid) 45%, var(--mcp-glow-edge) 75%, rgba(149, 54, 236, 0) 100%);
}

.mcp-hero-inner {
  position: relative;
  max-width: 2000px;
  margin: 0 auto;
  padding: 117px 24px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mcp-tabs { order: 1; }
.mcp-title { order: 2; }
.mcp-prompt-wrap,
.mcp-hero-ctas { order: 3; }

.mcp-hero-ascii {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.26;
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 35%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.1) 90%, transparent 100%);
  mask-image: radial-gradient(50% 50% at 50% 50%, #000 35%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.1) 90%, transparent 100%);
}
.dark .mcp-hero-ascii {
  opacity: 0.34;
  filter: none;
  mix-blend-mode: screen;
}

/* Tabs */

.mcp-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 42px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 21px;
  background: var(--mcp-tabs-bg);
  box-shadow: var(--mcp-tabs-shadow);
}

.mcp-tabs::after,
.mcp-tab[aria-selected='true']::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: var(--mcp-tabs-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.mcp-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 34px;
  padding: 0 15px;
  border-radius: 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--mcp-tab-text);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.mcp-tab svg { width: 16px; height: 16px; flex: none; color: currentColor; }
.mcp-tab:hover { color: var(--mcp-tab-hover-text); }
.mcp-tab[aria-selected='true'] {
  background: var(--mcp-tab-active-bg);
  box-shadow: var(--mcp-tab-active-shadow);
  color: var(--mcp-tab-active-text);
}
.mcp-tab[aria-selected='true']::before { opacity: 0.9; }
.mcp-tab .mcp-ic-orange { color: #D97757; }
@media (min-width: 761px) and (max-width: 900px) {
  .mcp-tab { padding: 0 9px; gap: 6px; font-size: 13px; }
}

/* Title */

.mcp-title {
  margin: 38px auto 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  background-image: var(--mcp-title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--mcp-text);
}

/* Prompt card */

.mcp-prompt-wrap {
  position: relative;
  width: 705px;
  max-width: 100%;
  margin: 24px auto 0;
  text-align: left;
}

.mcp-prompt-wrap::before {
  content: '';
  position: absolute;
  top: 136px;
  right: -16px;
  bottom: 0;
  width: 40px;
  border-radius: 0 12px 12px 0;
  background: var(--mcp-prompt-stack);
  border: 1px solid var(--mcp-prompt-stack-border);
  border-left: 0;
  z-index: 0;
}

.mcp-prompt {
  position: relative;
  z-index: 1;
  background: var(--mcp-prompt-bg);
  border-radius: 12px;
  padding: 10px 12px 12px;
  border: 1px solid var(--mcp-prompt-border);
  box-shadow: 0 0 28px var(--mcp-prompt-glow);
}

.mcp-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 8px 0;
}

.mcp-prompt-head h2 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--mcp-text);
  margin: 0;
}

.mcp-npm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  margin-left: auto;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid var(--mcp-code-border);
  background: var(--mcp-code-bg);
  color: var(--mcp-text);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  text-decoration: none;
  flex: none;
  transition: border-color 0.15s ease;
}
.mcp-npm:hover { border-color: #cb3837; }
.mcp-npm[hidden] { display: none; }
.mcp-npm svg { width: 16px; height: 16px; }

.mcp-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 16px;
  background: #9334eb;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease;
  flex: none;
}
.mcp-copy:hover { background: #a24df3; }
.mcp-copy svg { width: 16px; height: 16px; }

.mcp-code {
  position: relative;
  margin: 0;
  padding: 16px 18px 20px;
  border-radius: 8px;
  background: var(--mcp-code-bg);
  border: 1px solid var(--mcp-code-border);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 21px;
  color: var(--mcp-code-text);
  white-space: pre-wrap;
  word-break: break-word;
  height: 148px;
  overflow: hidden;
}
.mcp-code .hl { color: var(--mcp-highlight); }
.mcp-code .dim { color: var(--mcp-dim); }
.mcp-code::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent 0%, var(--mcp-code-fade) 100%);
  pointer-events: none;
}

/* Hero CTAs */

.mcp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.mcp-hero-ctas[hidden] { display: none; }
.mcp-hero-ctas .mcp-cta { margin: 0; font-size: 16px; }

.mcp-copy-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px 0 20px;
  border-radius: 12px;
  background: #231530;
  color: #ffffff;
  border: 1px solid #32223f;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mcp-copy-url:hover { background: #2b1b3a; border-color: #3e2b4e; }
.mcp-copy-url:disabled { opacity: 0.5; cursor: not-allowed; }
.mcp-copy-url svg { width: 20px; height: 20px; }

/* ---------- Cards ---------- */

.mcp-card {
  max-width: 1628px;
  margin: 0 auto 48px;
  background: var(--mcp-card);
  border-radius: 24px;
  box-shadow: var(--mcp-card-shadow);
}

/* ---------- Connect card ---------- */

.mcp-connect {
  padding: 32px 30px 36px;
  display: grid;
  grid-template-columns: 780px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: 'photo title' 'photo steps';
  column-gap: 32px;
}

.mcp-card-photo {
  grid-area: photo;
  width: 780px;
  height: 439px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--mcp-media-bg);
}
.mcp-card-photo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mcp-steps-col { grid-area: steps; }

.mcp-steps-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 42px;
  letter-spacing: -0.01em;
  margin: 6px 0 30px;
  color: var(--mcp-text);
  grid-area: title;
}

.mcp-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 0 22px;
}
.mcp-step + .mcp-step {
  padding-top: 24px;
  border-top: 1px solid var(--mcp-divider);
}

.mcp-step-num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mcp-step);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--mcp-text);
  margin-top: 2px;
}

.mcp-step-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--mcp-text);
  margin: 0 0 6px;
}
.mcp-step-desc {
  font-size: 15px;
  line-height: 23px;
  color: var(--mcp-muted);
  margin: 0;
  max-width: 600px;
}

.mcp-step-link {
  color: var(--mcp-text);
  text-decoration: underline;
  text-decoration-color: var(--mcp-focus);
  text-underline-offset: 3px;
}
.mcp-step-link:hover { color: var(--mcp-focus); }

.mcp-inline-code,
.mcp-url-chip code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.mcp-inline-code { color: var(--mcp-highlight); }

.mcp-url-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 2px 0;
  padding: 3px 8px 3px 10px;
  border-radius: 8px;
  background: var(--mcp-code-bg);
  border: 1px solid var(--mcp-code-border);
  color: var(--mcp-text);
  font-family: inherit;
  vertical-align: middle;
  cursor: pointer;
}
.mcp-url-chip code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcp-url-chip svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--mcp-muted);
  transition: color 0.15s ease;
}
.mcp-url-chip:hover { border-color: var(--mcp-focus); }
.mcp-url-chip:hover svg { color: var(--mcp-text); }

.mcp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px 0 20px;
  margin: 12px 0 0 64px;
  border-radius: 12px;
  background: var(--mcp-cta);
  color: var(--mcp-cta-text);
  font-size: 18px;
  font-weight: 500;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mcp-cta:hover { background: var(--mcp-cta-hover); }
.mcp-cta svg { width: 22px; height: 22px; }

/* ---------- Create content card ---------- */

.mcp-create {
  padding: 36px 24px 24px;
  text-align: center;
}
.mcp-create-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--mcp-text);
  margin: 0 0 8px;
}
.mcp-create-lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--mcp-muted);
  margin: 0 0 32px;
}
.mcp-create-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  text-align: left;
}
.mcp-tile {
  position: relative;
  grid-column: span 2;
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--mcp-media-bg);
  isolation: isolate;
}
.mcp-tile-wide { grid-column: span 3; height: 400px; }
.mcp-tile img,
.mcp-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.mcp-tile:hover img,
.mcp-tile:hover video { transform: scale(1.03); }
.mcp-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 12, 0) 40%, rgba(10, 8, 12, 0.55) 70%, rgba(10, 8, 12, 0.92) 100%);
  z-index: 1;
  transition: background 0.25s ease;
}
.mcp-tile:hover::after {
  background: linear-gradient(180deg, rgba(10, 8, 12, 0.05) 20%, rgba(10, 8, 12, 0.7) 55%, rgba(10, 8, 12, 0.96) 100%);
}
.mcp-tile-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 20px 20px;
}
.mcp-tile-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
}
.mcp-tile-body p {
  font-size: 16px;
  line-height: 24px;
  color: #c9c7cc;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.mcp-tile:hover .mcp-tile-body p,
.mcp-tile:focus-within .mcp-tile-body p {
  white-space: normal;
  max-width: 400px;
}
.mcp-tile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.mcp-tile:hover .mcp-tile-actions,
.mcp-tile:focus-within .mcp-tile-actions {
  max-height: 60px;
  opacity: 1;
  overflow: visible;
}
.mcp-tile-guide,
.mcp-tile-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 14px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.mcp-tile-guide { background: var(--mcp-cta); color: var(--mcp-cta-text); }
.mcp-tile-guide:hover { background: var(--mcp-cta-hover); }
.mcp-tile-copy { background: #fff; color: #0a0a0a; }
.mcp-tile-copy:hover { background: #ededed; }
.mcp-tile-guide svg, .mcp-tile-copy svg { width: 18px; height: 18px; }

@media (hover: none) {
  .mcp-tile-actions { max-height: 60px; opacity: 1; overflow: visible; }
  .mcp-tile-body p { white-space: normal; }
}

.mcp-tab:focus-visible,
.mcp-copy:focus-visible,
.mcp-npm:focus-visible,
.mcp-copy-url:focus-visible,
.mcp-url-chip:focus-visible,
.mcp-step-link:focus-visible,
.mcp-cta:focus-visible,
.mcp-tile-guide:focus-visible,
.mcp-tile-copy:focus-visible,
.mcp-other-tab:focus-visible,
.mcp-other-close:focus-visible,
.mcp-other-copy:focus-visible {
  outline: 2px solid var(--mcp-focus);
  outline-offset: 2px;
}

/* Other agents modal */

.mcp-other {
  width: min(900px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  box-sizing: border-box;
  padding: 16px 16px 24px;
  border: 1px solid var(--mcp-divider);
  border-radius: 28px;
  background: var(--mcp-bg);
  color: var(--mcp-text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.mcp-other::backdrop { background: rgba(0, 0, 0, 0.6); }

.mcp-other-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.mcp-other-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mcp-other-tab {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--mcp-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.mcp-other-tab:hover { color: var(--mcp-text); }
.mcp-other-tab[aria-selected='true'] { background: var(--mcp-text); color: var(--mcp-bg); }

.mcp-other-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--mcp-step);
  color: var(--mcp-muted);
  cursor: pointer;
}
.mcp-other-close:hover { color: var(--mcp-text); }
.mcp-other-close svg { width: 16px; height: 16px; }

.mcp-other-body {
  padding: 24px;
  border-radius: 20px;
  background: var(--mcp-card);
}
.mcp-other-step { display: flex; gap: 16px; }
.mcp-other-step + .mcp-other-step { margin-top: 28px; }
.mcp-other-step .mcp-step-num { width: 42px; height: 42px; margin-top: 0; }
.mcp-other-main { flex: 1; min-width: 0; }
.mcp-other-title {
  margin: 10px 0 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
}
.mcp-other-desc {
  margin: 0;
  font-size: 15px;
  line-height: 23px;
  color: var(--mcp-muted);
}

.mcp-other-code {
  position: relative;
  border: 1px solid var(--mcp-code-border);
  border-radius: 12px;
  background: var(--mcp-code-bg);
}
.mcp-other-code pre {
  margin: 0;
  padding: 16px 52px 16px 16px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 21px;
  color: var(--mcp-code-text);
  white-space: pre-wrap;
  word-break: break-word;
}
.mcp-other-code .hl { color: var(--mcp-highlight); }
.mcp-other-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mcp-muted);
  cursor: pointer;
}
.mcp-other-copy:hover { color: var(--mcp-text); }
.mcp-other-copy svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  .mcp-tile img, .mcp-tile video, .mcp-tile::after, .mcp-tile-actions { transition: none; }
  .mcp-tile:hover img, .mcp-tile:hover video { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1700px) {
  .mcp-card { max-width: calc(100% - 48px); }
  .mcp-connect { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); }
  .mcp-card-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

@media (max-width: 1100px) {
  .mcp-connect {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: 'title' 'photo' 'steps';
    row-gap: 24px;
  }
  .mcp-steps-title { margin: 0; }
  .mcp-tile, .mcp-tile-wide { grid-column: span 3; height: 300px; }
}

@media (max-width: 760px) {
  .mcp-hero { height: auto; padding-bottom: 36px; }
  .mcp-hero-glow, .mcp-hero-ascii { display: none; }
  .mcp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle, var(--mcp-dots) 1.3px, transparent 1.9px);
    background-size: 26px 26px;
    background-position: 8px 8px;
  }
  .mcp-hero-inner { padding: 56px 16px 0; }
  .mcp-title { order: 1; margin: 0; font-size: 24px; font-weight: 500; line-height: 1.22; }
  .mcp-tabs { order: 2; margin-top: 28px; }
  .mcp-tab[data-tab="claude"] { order: -1; }
  .mcp-tab[data-tab="claude"] svg { color: #ce7c5e; }
  .mcp-tab:not([data-mobile]) { display: none; }
  .mcp-prompt-wrap { display: none; }
  .mcp-hero-ctas { margin-top: 24px; gap: 10px; }
  .mcp-hero-ctas .mcp-cta, .mcp-copy-url { height: 42px; padding: 0 18px 0 16px; }
  .mcp-card { max-width: calc(100% - 24px); border-radius: 16px; margin-bottom: 24px; }
  .mcp-connect { padding: 24px 16px 20px; row-gap: 22px; }
  .mcp-steps-title { font-size: 16px; line-height: 32px; font-weight: 500; letter-spacing: 0; }
  .mcp-card-photo { border-radius: 16px; }
  .mcp-step { gap: 18px; padding-bottom: 22px; }
  .mcp-step + .mcp-step { padding-top: 22px; }
  .mcp-step-num { width: 48px; height: 48px; font-size: 20px; margin-top: 0; }
  .mcp-step-title { font-size: 14px; line-height: 21px; margin-bottom: 8px; }
  .mcp-step-desc { font-size: 16px; line-height: 25px; }
  .mcp-cta { margin-left: 0; height: 42px; font-size: 16px; }
  .mcp-create {
    max-width: calc(100% - 32px);
    padding: 12px 0 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .mcp-create-title { font-size: 24px; font-weight: 600; }
  .mcp-create-lead { font-size: 14px; line-height: 21px; margin-bottom: 20px; }
  .mcp-create-grid { gap: 16px; }
  .mcp-tile, .mcp-tile-wide { grid-column: span 6; height: auto; aspect-ratio: 574 / 440; border-radius: 16px; }
  .mcp-tile::after,
  .mcp-tile:hover::after {
    background: linear-gradient(180deg, rgba(10, 8, 12, 0.25) 0%, rgba(10, 8, 12, 0.45) 45%, rgba(10, 8, 12, 0.85) 100%);
  }
  .mcp-tile-body { padding: 0 16px 16px; }
  .mcp-tile-body h3 { font-size: 14px; font-weight: 600; line-height: 21px; margin-bottom: 4px; }
  .mcp-tile-body p,
  .mcp-tile:hover .mcp-tile-body p {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    white-space: normal;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .mcp-tile-actions { max-height: 60px; opacity: 1; overflow: visible; }
  .mcp-tile-guide, .mcp-tile-copy { height: 36px; font-size: 12px; font-weight: 500; line-height: 20px; padding: 0 16px 0 12px; }
}
