/* MCP page */

/* ---------- Hero + logo ticker ---------- */
.mcp-hero__inner { padding: 60px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mcp-hero__title { max-width: 660px; margin-top: 20px; }
.mcp-hero__lead { max-width: 660px; margin-top: 12px; }
.mcp-hero__cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mcp-hero__note { font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); }

.mcp-logos { display: flex; align-items: center; border-top: 1px solid var(--line); }
.mcp-logos__title {
  flex: none; width: 240px; padding: 48px; border-right: 1px solid var(--line);
  font-size: 16px; line-height: 21px; letter-spacing: -0.16px; font-weight: 400; color: var(--ink);
}
.mcp-logos__track {
  flex: 1; min-width: 0; overflow: hidden; padding: 48px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.mcp-logos__marquee { display: flex; align-items: center; gap: 96px; }
.mcp-logos__marquee img { flex: none; height: auto; object-fit: cover; }

/* ---------- Quick start ---------- */
.quickstart { border-top: 1px solid var(--line); }
.quickstart .title-wrapper__row .t-h2 { color: var(--ink); }
.qs-tabs__list { display: flex; justify-content: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qs-tab {
  position: relative; width: 165px; height: 48px; padding: 10px 14px;
  background: var(--surface); border-right: 1px solid var(--line);
  font-size: 14px; line-height: 17px; font-weight: 400; color: var(--muted);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.qs-tab:first-child { border-left: 1px solid var(--line); }
.qs-tab:hover { color: var(--ink); background: #f3f3f3; }
.qs-tab[aria-selected="true"] { background: var(--white); color: var(--ink); font-weight: 500; }
.qs-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }

.qs-panel__inner { max-width: 780px; margin: 0 auto; padding: 60px; display: flex; flex-direction: column; gap: 32px; }
.qs-step { display: flex; flex-direction: column; gap: 32px; }
.qs-step__title { font-size: 16px; line-height: 25px; letter-spacing: -0.16px; font-weight: 500; color: var(--ink); }

.cmd { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.cmd__bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.cmd__opts { display: flex; gap: 8px; align-items: center; }
.cmd__opt, .cmd__line, .qs-note code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cmd__opt {
  padding: 6px 8px; border-radius: 4px; border: 1px solid transparent;
  font-size: 13px; line-height: 13px; font-weight: 400; color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.cmd__opt:hover { color: var(--ink); }
.cmd__opt[aria-selected="true"] { background: var(--white); border-color: var(--line); color: var(--ink); font-weight: 500; }
.cmd__copy { position: relative; width: 30px; height: 30px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; transition: opacity 0.2s var(--ease); }
.cmd__copy:hover, .cmd__copy:focus-visible { opacity: 0.72; }
.cmd__copy-icon { width: 18px; height: 18px; transition: opacity 0.3s linear, transform 0.3s linear; }
.cmd__check {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; color: var(--ink);
  opacity: 0; transform: scale(0.3); transition: opacity 0.3s linear, transform 0.3s linear;
}
.cmd__copy.is-copied .cmd__check { opacity: 1; transform: none; }
.cmd__copy.is-copied .cmd__copy-icon { opacity: 0; transform: scale(0.3); }
.cmd__line { display: block; padding: 15px 12px; font-size: 13px; line-height: 18px; color: var(--ink); white-space: pre-wrap; }
.cmd__line[hidden] { display: none; }

.qs-prompts { display: flex; flex-direction: column; gap: 15px; }
.qs-prompts__title { font-size: 16px; line-height: 22px; font-weight: 400; color: var(--ink); }
.qs-prompts__text { font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); max-width: 660px; }
.qs-note { margin-top: 8px; font-size: 14px; line-height: 17px; font-weight: 400; color: var(--muted); }
.qs-note strong { font-weight: 500; color: var(--ink); }
.qs-note code { display: inline-block; margin: 0 6px; padding: 3px; background: var(--surface); border-radius: 4px; font-size: 13px; line-height: 13px; color: var(--muted); }

.api-doc { display: flex; align-items: center; gap: 24px; padding: 24px; background: var(--surface); border-top: 1px solid var(--line); }
.api-doc__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.api-doc__title { font-size: 16px; line-height: 25px; font-weight: 500; color: var(--ink); }
.api-doc__desc { font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); }
.api-doc__btn { flex: none; min-width: 161px; min-height: 42px; }

/* ---------- Compatible AI tools ---------- */
.ai-tools { display: flex; align-items: center; justify-content: space-between; gap: 0; padding: 40px; border-top: 1px solid var(--line); }
.ai-tools__title { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ai-tools__heading { font-size: 22px; line-height: 29px; letter-spacing: -0.5px; font-weight: 500; color: var(--ink); }
.ai-tools__track {
  flex: 1 1 0; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 96px, #000 calc(100% - 96px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 96px, #000 calc(100% - 96px), transparent);
  transition: opacity 0.8s var(--ease);
}
.ai-tools__track.is-hidden { opacity: 0; }
.ai-tools__marquee { display: flex; align-items: center; gap: 12px; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; line-height: 17px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.chip img { width: 17px; height: 17px; object-fit: cover; }

/* ---------- How it works ---------- */
.mcp-how { border-top: 1px solid var(--line); }

/* ---------- Steps ---------- */
.step { display: grid; grid-template-columns: 660px 1fr; gap: 40px; align-items: center; min-height: 537px; border-top: 1px solid var(--line); overflow: hidden; }
.step--visual-left { grid-template-columns: 1fr 660px; }
.step--visual-left .step__visual { order: -1; }
.step__content { padding: 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.step__content .t-h3, .step__content .t-small { max-width: 380px; }
.step__content .t-h3 { margin-top: 0; }
.step__content .t-small { margin-top: -4px; }
.step__visual { position: relative; align-self: stretch; min-height: 537px; overflow: hidden; }
.step__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Features (auto tabs) ---------- */
.mcp-features { border-top: 1px solid var(--line); }
.mcp-features__title { max-width: 640px !important; }
.mcp-features .title-wrapper__row .t-lead { max-width: 640px; }
.mcp-features__frame { border-top: 1px solid var(--line); }
.mcp-features__tabs { display: flex; justify-content: center; border-bottom: 1px solid var(--line); }
.autotabs__tab {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-right: 1px solid var(--line);
  font-size: 14px; line-height: 14px; letter-spacing: -0.14px; font-weight: 400; color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.autotabs__tab:first-child { border-left: 1px solid var(--line); }
.autotabs__tab:hover { color: var(--ink); background: var(--surface); }
.autotabs__tab[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.autotabs__bar {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink);
  transform-origin: left center; transform: scaleX(var(--progress, 0)); opacity: 0;
}
.autotabs__tab[aria-selected="true"] .autotabs__bar { opacity: 1; }
.mcp-features__panel img { width: 100%; height: auto; aspect-ratio: 1398 / 771; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 520px 1fr; border-top: 1px solid var(--line); }
.faq__intro { padding: 80px 60px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.faq__title { max-width: 400px; }
.faq__title .ink { display: block; }
.faq__list { border-left: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__item h5 { font: inherit; }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px; text-align: left;
  font-size: 18px; line-height: 29px; font-weight: 500; color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.faq__q:hover { background: var(--surface); }
.faq__icon { width: 14px; height: 14px; flex: none; transition: transform 0.3s var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 32px 32px; max-width: 760px; font-size: 16px; line-height: 25px; font-weight: 400; color: var(--ink-60); }

/* ---------- Banner ---------- */
.banner { position: relative; overflow: hidden; padding: 120px 60px; display: flex; justify-content: center; border-top: 1px solid var(--line); }
.banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.banner__inner { position: relative; max-width: 500px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.banner__title { font-size: 44px; line-height: 48px; letter-spacing: -1.76px; font-weight: 500; color: var(--ink); }
.banner__text { margin-top: 12px; font-size: 16px; line-height: 21.7px; font-weight: 400; color: var(--ink); }
.banner .btn { margin-top: 32px; }

/* ================= Tablet ================= */
@media (max-width: 1199px) {
  .mcp-tag { display: none; }
  .mcp-hero__lead { max-width: 660px; font-size: 18px; line-height: 24px; }
  .mcp-logos__title { width: 194px; padding: 32px; }
  .mcp-logos__track { padding: 40px 0; }

  .quickstart .title-wrapper { padding: 32px 20px 40px; }
  .qs-tab { width: 161px; }
  .qs-panel__inner { padding: 60px 20px; max-width: 684px; }

  .ai-tools { flex-direction: column; align-items: stretch; gap: 24px; }
  .ai-tools__heading { font-size: 20px; }
  .ai-tools__title, .ai-tools__track { flex: none; }

  .step, .step--visual-left { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .step__visual, .step--visual-left .step__visual { order: -1; min-height: 0; aspect-ratio: 960 / 663; }
  .step__content { padding: 40px 20px; min-height: 296px; }
  .step__content .t-h3, .step__content .t-small { max-width: none; }

  .faq { grid-template-columns: 1fr; }
  .faq__intro { padding: 40px 20px; }
  .faq__list { border-left: 0; border-top: 1px solid var(--line); }
  .faq__q { padding: 19px 20px; }
  .faq__a { padding: 0 20px 20px; }

  .banner__title { font-size: 36px; line-height: 40px; letter-spacing: -1.4px; }
}

/* ================= Phone ================= */
@media (max-width: 809px) {
  .mcp-hero__inner { padding: 130px 16px 56px; }
  .mcp-hero__title { font-size: 40px; line-height: 44px; letter-spacing: -1.6px; margin-top: 24px; }
  .mcp-hero__lead { font-size: 18px; line-height: 24px; margin-top: 16px; }
  .mcp-hero__cta { width: 100%; }
  .mcp-hero__btn { width: 100%; max-width: 298px; }
  .mcp-hero__note { font-size: 12px; line-height: 18px; }

  .mcp-logos { flex-direction: column; align-items: stretch; }
  .mcp-logos__title { width: auto; padding: 32px 20px 0; border-right: 0; text-align: center; }
  .mcp-logos__track { padding: 24px 0 32px; }
  .mcp-logos__marquee { gap: 56px; }

  .quickstart .title-wrapper { padding: 20px 20px 40px; gap: 16px; }
  .quickstart .t-h2 { font-size: 28px; line-height: 34px; }
  .qs-tabs__list { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .qs-tab { width: auto; padding: 10px 6px; font-size: 14px; }
  .qs-tab:first-child { border-left: 0; }
  .qs-tab:last-child { border-right: 0; }
  .qs-panel__inner { padding: 20px 20px 28px; gap: 40px; }
  .qs-step { gap: 22px; }
  .qs-step__title { font-size: 16px; line-height: 25px; }
  .qs-prompts__title { font-size: 16px; line-height: 22px; }
  .qs-prompts__text { font-size: 14px; line-height: 19px; }
  .cmd__opt { font-size: 13px; }
  .cmd__line { font-size: 13px; }
  .qs-note { font-size: 14px; line-height: 19px; }
  .api-doc { flex-direction: column; align-items: stretch; padding: 24px 24px 28px; gap: 20px; }
  .api-doc__title { font-size: 16px; line-height: 25px; }
  .api-doc__desc { font-size: 14px; line-height: 19px; }

  .ai-tools { padding: 24px 20px; gap: 20px; }
  .ai-tools__title { text-align: center; }
  .ai-tools__track { margin: 0 -20px; }

  .mcp-how { padding: 20px 20px 40px; gap: 24px; }
  .mcp-how .mcp-tag { display: inline-flex; }
  .mcp-how .t-h2 { font-size: 28px; line-height: 34px; }
  .mcp-how .t-lead { font-size: 14px; line-height: 19px; }

  .step__visual, .step--visual-left .step__visual { aspect-ratio: 356 / 271; }
  .step__content { padding: 40px 20px 42px; min-height: 0; }
  .step__content .t-small { letter-spacing: -0.3px; }

  .mcp-features .title-wrapper { padding: 20px 20px 40px; gap: 16px; }
  .mcp-features__frame { display: flex; flex-direction: column; }
  .mcp-features__tabs { display: contents; }
  .mcp-features .autotabs__tab {
    display: block; height: auto; padding: 20px; text-align: left; pointer-events: none;
    border-left: 0; border-right: 0; border-bottom: 1px solid var(--line); background: none;
    font-size: 18px; line-height: 23px; letter-spacing: -0.4px; font-weight: 500; color: var(--ink);
  }
  .mcp-features .autotabs__bar { display: none; }
  #feat-tab-1 { order: 1; } #feat-panel-1 { order: 2; }
  #feat-tab-2 { order: 3; } #feat-panel-2 { order: 4; }
  #feat-tab-3 { order: 5; } #feat-panel-3 { order: 6; }
  #feat-tab-4 { order: 7; } #feat-panel-4 { order: 8; }
  .mcp-features .mcp-features__panel, .mcp-features .mcp-features__panel[hidden] { display: block !important; border-bottom: 1px solid var(--line); }
  .mcp-features__panel img { aspect-ratio: 356 / 194; }

  .faq__intro { padding: 20px 20px 40px; }
  .faq__q { padding: 20px; font-size: 16px; line-height: 19px; }
  .faq__a { padding: 0 20px 20px; font-size: 14px; line-height: 21px; }

  .banner { padding: 48px 20px 40px; }
  .banner__title { font-size: 36px; line-height: 39px; }
  .banner__text { font-size: 16px; line-height: 21.3px; margin-top: 16px; }
  .banner .btn { margin-top: 28px; }
}
