/* ==========================================================================
   ByteCore MCP Manager — Landing Page CSS
   Scoped to bmcp- prefix to avoid conflicts with theme styles.
   ========================================================================== */

/* ── Outer wrapper ─────────────────────────────────────────────────────────── */
.bpt-main:has(.bmcp-wrap) { padding-block: 0; }
.bmcp-wrap {
  margin-top:    0;
  margin-bottom: 0;
}

/* ── Shared section spacing ────────────────────────────────────────────────── */
.bmcp-hero,
.bmcp-stats,
.bmcp-features,
.bmcp-cats,
.bmcp-tools,
.bmcp-how,
.bmcp-faq,
.bmcp-cta {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* ── Section header ────────────────────────────────────────────────────────── */
.bmcp-section-head {
  text-align:    center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.bmcp-section-head h2 {
  font-size:   clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  color:       var(--bpt-text);
  line-height: 1.2;
  margin:      .75rem 0 .85rem;
}
.bmcp-section-head p {
  color:     var(--bpt-text-2);
  font-size: 1.05rem;
}
.bmcp-section-head--left { text-align: left; }
.bmcp-section-head--left h2 { margin-bottom: 0; }

/* ── Badge pill ────────────────────────────────────────────────────────────── */
.bmcp-badge {
  display:        inline-flex;
  width:          fit-content;
  align-items:    center;
  gap:            .4rem;
  padding:        .3rem .8rem;
  font-size:      .78rem;
  font-weight:    600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color:          var(--bpt-accent-h);
  background:     var(--bpt-accent-dim);
  border:         1px solid rgba(99, 102, 241, .3);
  border-radius:  999px;
}

/* ── Gradient text ─────────────────────────────────────────────────────────── */
.bmcp-gradient-text {
  background:              linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:         text;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.bmcp-btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             .5rem;
  padding:         .65rem 1.4rem;
  width:           100%;
  font-size:       .9rem;
  font-weight:     600;
  line-height:     1;
  border-radius:   var(--bpt-radius);
  text-decoration: none;
  white-space:     nowrap;
  cursor:          pointer;
  border:          1px solid transparent;
  transition:      background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bmcp-btn--primary {
  background:  var(--bpt-accent);
  color:       #fff;
  box-shadow:  0 0 0 0 rgba(99,102,241,0);
}
.bmcp-btn--primary:hover {
  background:  var(--bpt-accent-h);
  box-shadow:  0 4px 16px rgba(99,102,241,.35);
}
.bmcp-btn--ghost {
  background:   transparent;
  color:        var(--bpt-text-2);
  border-color: var(--bpt-border);
}
.bmcp-btn--ghost:hover {
  color:        var(--bpt-text);
  border-color: var(--bpt-accent);
}
.bmcp-btn--lg {
  padding:   .8rem 1.8rem;
  font-size: .95rem;
}

/* ══════════════════════════════════════════════════════════════════════════════
   1. HERO
   ══════════════════════════════════════════════════════════════════════════ */
.bmcp-hero {
  position:   relative;
  overflow:   hidden;
  padding:    calc(var(--bpt-header-h) + clamp(4rem, 9vw, 8rem)) 0 clamp(3rem, 7vw, 6rem);
  background: var(--bpt-bg);
}
.bmcp-hero__glow {
  position:         absolute;
  inset:            0;
  background:       radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,.18) 0%, transparent 65%);
  pointer-events:   none;
}
.bmcp-hero__grid {
  position:            absolute;
  inset:               0;
  background-image:    linear-gradient(var(--bpt-border) 1px, transparent 1px),
                       linear-gradient(90deg, var(--bpt-border) 1px, transparent 1px);
  background-size:     48px 48px;
  opacity:             .4;
  pointer-events:      none;
  mask-image:          radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image:  radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
}
.bmcp-hero__inner {
  display:         flex;
  align-items:     center;
  gap:             clamp(2rem, 6vw, 5rem);
  padding-bottom:  clamp(3rem, 8vw, 5rem);
  position:        relative;
  z-index:         1;
}

/* copy */
.bmcp-hero__copy { flex: 1 1 0; min-width: 0; }
.bmcp-hero__title {
  font-size:   clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  color:       var(--bpt-text);
  margin:      .85rem 0 1.1rem;
}
.bmcp-hero__desc {
  font-size:   1.05rem;
  color:       var(--bpt-text-2);
  line-height: 1.7;
  max-width:   520px;
  margin:      0 0 1.75rem;
}
.bmcp-hero__desc a { color: var(--bpt-accent-h); }
.bmcp-hero__desc a:hover { text-decoration: underline; }
.bmcp-hero__actions {
  display:        flex;
  flex-direction: row;
  align-items:    center;
  flex-wrap:      wrap;
  gap:            .85rem;
}
.bmcp-hero__actions .bmcp-btn { width: auto; }
.bmcp-hero__proof {
  display:     flex;
  flex-wrap:   wrap;
  gap:         .4rem .65rem;
  margin-top:  1.5rem;
  font-size:   .82rem;
  color:       var(--bpt-text-3);
}
.bmcp-proof-sep { opacity: .5; }

/* AI client pills */
.bmcp-hero__clients {
  display:     flex;
  flex-wrap:   wrap;
  gap:         .5rem;
  margin-top:  1.25rem;
}
.bmcp-client-pill {
  display:       inline-flex;
  align-items:   center;
  padding:       .2rem .7rem;
  border-radius: 999px;
  font-size:     .78rem;
  font-weight:   600;
}
.bmcp-client-pill--claude  { background: rgba(255,149,0,.12);  color: #f97316; border: 1px solid rgba(255,149,0,.25); }
.bmcp-client-pill--cursor  { background: rgba(99,102,241,.1);  color: #818cf8; border: 1px solid rgba(99,102,241,.25); }
.bmcp-client-pill--chatgpt { background: rgba(16,185,129,.1);  color: #10b981; border: 1px solid rgba(16,185,129,.25); }
.bmcp-client-pill--gemini  { background: rgba(59,130,246,.1);  color: #60a5fa; border: 1px solid rgba(59,130,246,.25); }
.bmcp-client-pill--wind    { background: rgba(167,139,250,.1); color: #a78bfa; border: 1px solid rgba(167,139,250,.25); }

/* ── Hero visual / mockup ─────────────────────────────────────────────────── */
.bmcp-hero__visual {
  flex:         0 0 clamp(280px, 42vw, 520px);
  width:        clamp(280px, 42vw, 520px);
}
.bmcp-mockup {
  background:   var(--bpt-surface);
  border:       1px solid var(--bpt-border);
  border-radius: calc(var(--bpt-radius) + 4px);
  overflow:     hidden;
  box-shadow:   0 20px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04);
}
.bmcp-mockup__chrome {
  display:     flex;
  align-items: center;
  gap:         .35rem;
  padding:     .55rem .85rem;
  background:  rgba(255,255,255,.03);
  border-bottom: 1px solid var(--bpt-border);
}
.bmcp-chrome__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.bmcp-chrome__dot--red    { background: #ff5f57; }
.bmcp-chrome__dot--yellow { background: #febc2e; }
.bmcp-chrome__dot--green  { background: #28c840; }
.bmcp-chrome__url {
  margin-left: .5rem;
  font-size:   .72rem;
  color:       var(--bpt-text-3);
  font-family: var(--bpt-font-mono, monospace);
}
.bmcp-mockup__body {
  display: flex;
  height:  240px;
}

/* sidebar */
.bmcp-mock-sidebar {
  width:        110px;
  flex-shrink:  0;
  border-right: 1px solid var(--bpt-border);
  padding:      .65rem .5rem;
  display:      flex;
  flex-direction: column;
  gap:          .65rem;
}
.bmcp-mock-logo {
  display:     flex;
  align-items: center;
  gap:         .35rem;
  font-size:   .72rem;
  font-weight: 600;
  color:       var(--bpt-text-2);
  padding:     0 .3rem;
  white-space: nowrap;
}
.bmcp-mock-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.bmcp-mock-nav__item {
  display:       flex;
  align-items:   center;
  gap:           .4rem;
  padding:       .3rem .5rem;
  font-size:     .7rem;
  color:         var(--bpt-text-3);
  border-radius: 4px;
}
.bmcp-mock-nav__item--active {
  background: var(--bpt-accent-dim);
  color:      var(--bpt-accent-h);
}

/* main panel */
.bmcp-mock-main {
  flex:    1;
  padding: .65rem .75rem;
  display: flex;
  flex-direction: column;
  gap:     .5rem;
  overflow: hidden;
}
.bmcp-mock-topbar {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
}
.bmcp-mock-pagetitle { font-size: .78rem; font-weight: 600; color: var(--bpt-text); }
.bmcp-status-pill {
  display:       inline-flex;
  align-items:   center;
  gap:           .3rem;
  padding:       .15rem .55rem;
  border-radius: 999px;
  font-size:     .68rem;
  font-weight:   600;
  background:    rgba(16,185,129,.12);
  color:         #10b981;
}
.bmcp-status-dot {
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    #10b981;
  animation:     bmcp-pulse 2s ease-in-out infinite;
}
@keyframes bmcp-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}
.bmcp-mock-stats {
  display: flex;
  gap:     .5rem;
}
.bmcp-mstat {
  flex:          1;
  background:    rgba(255,255,255,.03);
  border:        1px solid var(--bpt-border);
  border-radius: 5px;
  padding:       .35rem .5rem;
  display:       flex;
  flex-direction: column;
  gap:           .1rem;
}
.bmcp-mstat__val { font-size: .82rem; font-weight: 700; color: var(--bpt-text-2); }
.bmcp-mstat__val--ok  { color: #10b981; }
.bmcp-mstat__lbl { font-size: .62rem; color: var(--bpt-text-3); }
.bmcp-mock-section-title { font-size: .68rem; font-weight: 600; color: var(--bpt-text-3); text-transform: uppercase; letter-spacing: .06em; }
.bmcp-mock-logs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.bmcp-log {
  display:       flex;
  align-items:   center;
  gap:           .4rem;
  padding:       .28rem .45rem;
  border-radius: 4px;
  background:    rgba(255,255,255,.02);
  font-size:     .68rem;
  overflow:      hidden;
}
.bmcp-log__client {
  padding:       .1rem .4rem;
  border-radius: 3px;
  font-size:     .62rem;
  font-weight:   700;
  flex-shrink:   0;
}
.bmcp-log__client--claude  { background: rgba(255,149,0,.15);  color: #f97316; }
.bmcp-log__client--cursor  { background: rgba(99,102,241,.15); color: #818cf8; }
.bmcp-log__client--chatgpt { background: rgba(16,185,129,.15); color: #10b981; }
.bmcp-log__tool  { flex: 1; color: var(--bpt-text-2); font-family: var(--bpt-font-mono, monospace); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmcp-log__badge { padding: .1rem .4rem; border-radius: 3px; font-size: .62rem; font-weight: 600; flex-shrink: 0; }
.bmcp-log__badge--ok  { background: rgba(16,185,129,.12); color: #10b981; }

/* ══════════════════════════════════════════════════════════════════════════════
   2. STATS STRIP
   ══════════════════════════════════════════════════════════════════════════ */
.bmcp-stats {
  background:    var(--bpt-surface);
  border-top:    1px solid var(--bpt-border);
  border-bottom: 1px solid var(--bpt-border);
  padding:       2.25rem 0;
}
.bmcp-stats__inner {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             0;
  flex-wrap:       wrap;
}
.bmcp-stat {
  flex:            0 0 auto;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             .2rem;
  padding:         .75rem 2.5rem;
}
.bmcp-stat__num {
  font-size:   1.55rem;
  font-weight: 800;
  color:       var(--bpt-text);
  line-height: 1;
}
.bmcp-stat__lbl { font-size: .82rem; color: var(--bpt-text-3); }
.bmcp-stat__div {
  width:  1px;
  height: 2.5rem;
  background: var(--bpt-border);
}

/* ══════════════════════════════════════════════════════════════════════════════
   3. FEATURES
   ══════════════════════════════════════════════════════════════════════════ */
.bmcp-features { background: var(--bpt-bg); }
.bmcp-feat-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:                   1.25rem;
}
.bmcp-feat-card {
  background:    var(--bpt-surface);
  border:        1px solid var(--bpt-border);
  border-radius: var(--bpt-radius);
  padding:       1.5rem;
  transition:    border-color .2s ease, box-shadow .2s ease;
}
.bmcp-feat-card:hover {
  border-color: var(--bpt-accent);
  box-shadow:   0 4px 20px rgba(99,102,241,.1);
}
.bmcp-feat-card__icon {
  width:         38px;
  height:        38px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  background:    var(--bpt-accent-dim);
  border:        1px solid rgba(99,102,241,.2);
  border-radius: 8px;
  color:         var(--bpt-accent-h);
  margin-bottom: .85rem;
}
.bmcp-feat-card h3 {
  font-size:   1rem;
  font-weight: 700;
  color:       var(--bpt-text);
  margin:      0 0 .5rem;
}
.bmcp-feat-card p {
  font-size:   .88rem;
  color:       var(--bpt-text-2);
  line-height: 1.65;
  margin:      0;
}
.bmcp-feat-card code {
  font-size:   .82em;
  background:  rgba(99,102,241,.1);
  color:       var(--bpt-accent-h);
  padding:     .1em .35em;
  border-radius: 3px;
  font-family: var(--bpt-font-mono, monospace);
}

/* ══════════════════════════════════════════════════════════════════════════════
   4. TOOL CATEGORIES
   ══════════════════════════════════════════════════════════════════════════ */
.bmcp-cats { background: var(--bpt-surface); }
.bmcp-cats__grid {
  display:         flex;
  flex-wrap:       wrap;
  justify-content: center;
  gap:             .75rem;
  margin-bottom:   1.5rem;
}
.bmcp-cat-card {
  flex:            0 0 calc((100% - 5 * 0.75rem) / 6);
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             .5rem;
  padding:         1rem .75rem;
  background:      var(--bpt-bg);
  border:          1px solid var(--bpt-border);
  border-radius:   var(--bpt-radius);
  text-align:      center;
  font-size:       .83rem;
  font-weight:     600;
  color:           var(--bpt-text-2);
  cursor:          pointer;
  transition:      border-color .2s, color .2s, box-shadow .2s;
}
.bmcp-cat-card:focus-visible {
  outline:    2px solid var(--bpt-accent);
  outline-offset: 2px;
}
.bmcp-cat-card:hover {
  border-color: var(--bpt-accent);
  color:        var(--bpt-text);
}
.bmcp-cat-card__icon {
  color:       var(--bpt-text-3);
  transition:  color .2s;
}
.bmcp-cat-card:hover .bmcp-cat-card__icon { color: var(--bpt-accent-h); }
.bmcp-cat-card--woo   { border-color: rgba(150,88,255,.3); }
.bmcp-cat-card--addon { border-color: rgba(99,102,241,.25); }
.bmcp-cats__note {
  display:     flex;
  align-items: center;
  gap:         .5rem;
  font-size:   .83rem;
  color:       var(--bpt-text-3);
  text-align:  center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════════════════
   5. HOW IT WORKS
   ══════════════════════════════════════════════════════════════════════════ */
.bmcp-how { background: var(--bpt-bg); }
.bmcp-steps {
  display:         flex;
  align-items:     flex-start;
  gap:             clamp(1rem, 3vw, 2rem);
  flex-wrap:       wrap;
  justify-content: center;
}
.bmcp-step {
  flex:       1 1 200px;
  max-width:  280px;
  text-align: center;
}
.bmcp-step__num {
  font-size:   .78rem;
  font-weight: 700;
  color:       var(--bpt-accent-h);
  letter-spacing: .1em;
  margin-bottom: .5rem;
}
.bmcp-step__icon {
  width:           52px;
  height:          52px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      var(--bpt-accent-dim);
  border:          1px solid rgba(99,102,241,.2);
  border-radius:   50%;
  color:           var(--bpt-accent-h);
  margin:          0 auto .85rem;
}
.bmcp-step__title {
  font-size:   1rem;
  font-weight: 700;
  color:       var(--bpt-text);
  margin:      0 0 .45rem;
}
.bmcp-step__desc {
  font-size:   .87rem;
  color:       var(--bpt-text-2);
  line-height: 1.65;
  margin:      0;
}
.bmcp-step__desc strong { color: var(--bpt-text); }
.bmcp-step__connector {
  flex:        0 0 auto;
  color:       var(--bpt-text-3);
  margin-top:  3.5rem;
  align-self:  flex-start;
}

/* ══════════════════════════════════════════════════════════════════════════════
   6. FAQ
   ══════════════════════════════════════════════════════════════════════════ */
.bmcp-faq {
  background:    var(--bpt-bg);
  border-top:    1px solid var(--bpt-border);
  border-bottom: 1px solid var(--bpt-border);
  position:      relative;
  overflow:      hidden;
}
.bmcp-faq::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(99,102,241,.04) 18px,
    rgba(99,102,241,.04) 19px
  );
  pointer-events: none;
  z-index:        0;
}
.bmcp-faq__inner {
  display:               grid;
  grid-template-columns: 280px 1fr;
  gap:                   clamp(2rem, 5vw, 5rem);
  align-items:           start;
  position:              relative;
  z-index:               1;
}

.bmcp-faq__list { display: flex; flex-direction: column; }

.bmcp-faq__item { border-bottom: 1px solid var(--bpt-border); }
.bmcp-faq__item:first-child { border-top: 1px solid var(--bpt-border); }

.bmcp-faq__q {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1rem;
  padding:         1.1rem 0;
  font-size:       .95rem;
  font-weight:     600;
  color:           var(--bpt-text);
  cursor:          pointer;
  list-style:      none;
  user-select:     none;
}
.bmcp-faq__q::-webkit-details-marker { display: none; }
.bmcp-faq__q:hover { color: var(--bpt-accent-h); }

.bmcp-faq__chevron {
  flex-shrink: 0;
  color:       var(--bpt-text-3);
  transition:  transform var(--bpt-t), color var(--bpt-t);
}
details[open] .bmcp-faq__chevron { transform: rotate(180deg); color: var(--bpt-accent); }
details[open] > .bmcp-faq__q { color: var(--bpt-accent-h); }

.bmcp-faq__item[open] > .bmcp-faq__a,
.bmcp-faq__item[data-closing] > .bmcp-faq__a {
  display:            grid;
  grid-template-rows: 1fr;
  animation:          bmcp-faq-open .28s cubic-bezier(.4, 0, .2, 1) forwards;
  overflow:           hidden;
}
.bmcp-faq__item[data-closing] > .bmcp-faq__a {
  grid-template-rows: 0fr;
  animation:          bmcp-faq-close .28s cubic-bezier(.4, 0, .2, 1) forwards;
}

.bmcp-faq__a > * { min-height: 0; overflow: hidden; }

@keyframes bmcp-faq-open {
  from { grid-template-rows: 0fr; opacity: 0; }
  to   { grid-template-rows: 1fr; opacity: 1; }
}
@keyframes bmcp-faq-close {
  from { grid-template-rows: 1fr; opacity: 1; }
  to   { grid-template-rows: 0fr; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bmcp-faq__item[open] > .bmcp-faq__a,
  .bmcp-faq__item[data-closing] > .bmcp-faq__a { animation: none; }
}

.bmcp-faq__a { padding-bottom: 1.1rem; }
.bmcp-faq__a p {
  font-size:   .9rem;
  color:       var(--bpt-text-2);
  line-height: 1.7;
  margin:      0;
}
.bmcp-faq__a a {
  color:           var(--bpt-accent-h);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bmcp-faq__a code {
  font-family:   var(--bpt-mono);
  font-size:     .83em;
  color:         var(--bpt-accent-h);
  background:    var(--bpt-accent-dim);
  padding:       .15em .45em;
  border-radius: var(--bpt-radius-sm);
}

/* ══════════════════════════════════════════════════════════════════════════════
   7. CTA
   ══════════════════════════════════════════════════════════════════════════ */
.bmcp-cta {
  background: var(--bpt-bg);
  position:   relative;
  overflow:   hidden;
  text-align: center;
}
.bmcp-cta__glow {
  position:       absolute;
  inset:          0;
  background:     radial-gradient(ellipse 60% 80% at 50% 100%, rgba(99,102,241,.2) 0%, transparent 65%);
  pointer-events: none;
}
.bmcp-cta__inner { position: relative; z-index: 1; }
.bmcp-cta__title {
  font-size:   clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color:       var(--bpt-text);
  margin:      0 0 1rem;
}
.bmcp-cta__desc {
  font-size:   1.05rem;
  color:       var(--bpt-text-2);
  line-height: 1.7;
  margin:      0 0 2rem;
}
.bmcp-cta__actions {
  display:         flex;
  flex-direction:  row;
  align-items:     center;
  justify-content: center;
  flex-wrap:       wrap;
  gap:             1rem;
  margin:          0 auto;
}
.bmcp-cta__actions .bmcp-btn { width: auto; }

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bmcp-hero__inner {
    flex-direction: column;
    text-align:     center;
  }
  .bmcp-hero__copy    { align-items: center; }
  .bmcp-hero__desc    { max-width: 600px; margin-left: auto; margin-right: auto; }
  .bmcp-hero__actions { margin: 0 auto; justify-content: center; }
  .bmcp-hero__proof   { justify-content: center; }
  .bmcp-hero__clients { justify-content: center; }
  .bmcp-hero__visual {
    flex: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  .bmcp-faq__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .bmcp-step__connector { display: none; }
  .bmcp-cat-card { flex: 0 0 calc((100% - 3 * 0.75rem) / 4); }
}
@media (max-width: 600px) {
  .bmcp-stat__div  { display: none; }
  .bmcp-stats__inner { gap: 1rem; }
  .bmcp-stat { padding: .75rem 1.5rem; }
  .bmcp-cat-card { flex: 0 0 calc((100% - .5rem) / 2); }

  .bmcp-cta__actions {
    flex-direction: column;
    align-items:    stretch;
    width:          max-content;
    max-width:      100%;
    margin:         0 auto;
  }
  .bmcp-cta__actions .bmcp-btn { width: auto; justify-content: center; }
  .bmcp-cats__grid { gap: .5rem; }

}

/* ══════════════════════════════════════════════════════════════════════════════
   TOOL REFERENCE SECTION (.bmcp-tools)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Accordion list ─────────────────────────────────────────────────────────── */
.bmcp-tcat-list {
  display:        flex;
  flex-direction: column;
  gap:            .5rem;
}

/* ── Each category row (details element) ───────────────────────────────────── */
.bmcp-tcat {
  border:        1px solid var(--bpt-border, rgba(255,255,255,.1));
  border-radius: .75rem;
  overflow:      hidden;
  background:    var(--bpt-surface, rgba(255,255,255,.03));
  transition:    border-color .2s;
}
.bmcp-tcat[open] {
  border-color: rgba(255,255,255,.18);
}

/* ── Summary row ───────────────────────────────────────────────────────────── */
.bmcp-tcat__q {
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  padding:        .9rem 1.25rem;
  cursor:         pointer;
  list-style:     none;
  user-select:    none;
  gap:            .75rem;
}
.bmcp-tcat__q::-webkit-details-marker { display: none; }
.bmcp-tcat__q:hover { background: rgba(255,255,255,.04); }

.bmcp-tcat__left {
  display:     flex;
  align-items: center;
  gap:         .65rem;
  flex-wrap:   wrap;
}

/* ── Category icon ─────────────────────────────────────────────────────────── */
.bmcp-tcat__icon {
  width:         2rem;
  height:        2rem;
  border-radius: .45rem;
  background:    color-mix(in srgb, var(--tcat-color) 16%, transparent);
  color:         var(--tcat-color, #4f8ef7);
  display:       flex;
  align-items:   center;
  justify-content: center;
  flex-shrink:   0;
}

/* ── Category name ─────────────────────────────────────────────────────────── */
.bmcp-tcat__name {
  font-size:   .9375rem;
  font-weight: 600;
  color:       var(--bpt-text, #e8eaed);
}

/* ── Tool count badge ──────────────────────────────────────────────────────── */
.bmcp-tcat__count {
  font-size:     .75rem;
  font-weight:   500;
  padding:       .15rem .5rem;
  border-radius: 99px;
  background:    rgba(255,255,255,.08);
  color:         var(--bpt-text-muted, #9aa0a6);
  white-space:   nowrap;
}

/* ── Addon badge ───────────────────────────────────────────────────────────── */
.bmcp-tcat__addon {
  font-size:     .7rem;
  font-weight:   500;
  padding:       .15rem .5rem;
  border-radius: 99px;
  background:    rgba(168,139,250,.12);
  color:         #a78bfa;
  white-space:   nowrap;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ── Open / close keyframes ────────────────────────────────────────────────── */
@keyframes bmcp-tcat-open {
  from { grid-template-rows: 0fr; opacity: 0; }
  to   { grid-template-rows: 1fr; opacity: 1; }
}
@keyframes bmcp-tcat-close {
  from { grid-template-rows: 1fr; opacity: 1; }
  to   { grid-template-rows: 0fr; opacity: 0; }
}

/* ── Expandable body ───────────────────────────────────────────────────────── */
.bmcp-tcat[open] > .bmcp-tcat__a,
.bmcp-tcat[data-closing] > .bmcp-tcat__a {
  display:            grid;
  grid-template-rows: 1fr;
  overflow:           hidden;
  animation:          bmcp-tcat-open .28s cubic-bezier(.4, 0, .2, 1) forwards;
}
.bmcp-tcat[data-closing] > .bmcp-tcat__a {
  grid-template-rows: 0fr;
  animation:          bmcp-tcat-close .24s cubic-bezier(.4, 0, .2, 1) forwards;
}
.bmcp-tcat__a > * { min-height: 0; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .bmcp-tcat[open] > .bmcp-tcat__a,
  .bmcp-tcat[data-closing] > .bmcp-tcat__a { animation: none; }
}

/* ── Tool list ─────────────────────────────────────────────────────────────── */
.bmcp-tool-list {
  display:        flex;
  flex-direction: column;
  gap:            .25rem;
  padding:        0 .5rem 1rem;
}

/* ── Single tool row ───────────────────────────────────────────────────────── */
.bmcp-tool-row {
  display:     grid;
  grid-template-columns: minmax(160px, 1.5fr) 4.5rem minmax(160px, 2fr) 1fr;
  align-items: center;
  gap:         .5rem 1rem;
  padding:     .5rem .75rem;
  border-radius: .5rem;
  transition:  background .15s;
}
.bmcp-tool-row:hover { background: rgba(255,255,255,.04); }

/* ── Tool function name ────────────────────────────────────────────────────── */
.bmcp-tool-row__name {
  font-family:  var(--bpt-font-mono, ui-monospace, 'Cascadia Code', 'Fira Code', monospace);
  font-size:    .78rem;
  color:        var(--bpt-text, #e8eaed);
  white-space:  nowrap;
  overflow:     hidden;
  text-overflow: ellipsis;
}

/* ── HTTP method badges ────────────────────────────────────────────────────── */
.bmcp-method {
  display:       inline-flex;
  align-items:   center;
  justify-content: center;
  font-size:     .68rem;
  font-weight:   700;
  font-family:   var(--bpt-font-mono, monospace);
  letter-spacing: .04em;
  padding:       .2rem .45rem;
  border-radius: .35rem;
  white-space:   nowrap;
  width:         fit-content;
}
.bmcp-method--get    { background: rgba(79,142,247,.15); color: #7cb8ff; }
.bmcp-method--post   { background: rgba(52,211,153,.15); color: #6ee7b7; }
.bmcp-method--put    { background: rgba(251,191,36,.13); color: #fcd34d; }
.bmcp-method--delete { background: rgba(248,113,113,.13); color: #fca5a5; }

/* ── Endpoint path ─────────────────────────────────────────────────────────── */
.bmcp-tool-row__path {
  font-family:  var(--bpt-font-mono, monospace);
  font-size:    .77rem;
  color:        var(--bpt-text-muted, #9aa0a6);
  white-space:  nowrap;
  overflow:     hidden;
  text-overflow: ellipsis;
}

/* ── Description ───────────────────────────────────────────────────────────── */
.bmcp-tool-row__desc {
  font-size: .8125rem;
  color:     var(--bpt-text-muted, #9aa0a6);
  line-height: 1.4;
}

/* ── Divider between tools ─────────────────────────────────────────────────── */
.bmcp-tool-row + .bmcp-tool-row {
  border-top: 1px solid rgba(255,255,255,.05);
  border-radius: 0;
}
.bmcp-tool-row + .bmcp-tool-row:last-child,
.bmcp-tool-list > .bmcp-tool-row:last-child {
  border-radius: 0 0 .35rem .35rem;
}

/* ── Info note at the bottom ───────────────────────────────────────────────── */
.bmcp-tools__note {
  display:     flex;
  align-items: flex-start;
  gap:         .5rem;
  margin-top:  2.5rem;
  padding:     .875rem 1.125rem;
  border:      1px solid rgba(168,139,250,.2);
  border-radius: .65rem;
  background:  rgba(168,139,250,.06);
  font-size:   .8125rem;
  color:       var(--bpt-text-muted, #9aa0a6);
  line-height: 1.5;
}
.bmcp-tools__note svg {
  flex-shrink: 0;
  margin-top:  .15rem;
  color:       #a78bfa;
}

/* ── Responsive — tablet ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bmcp-tool-row {
    grid-template-columns: 1fr 4.5rem;
    grid-template-rows:    auto auto;
  }
  .bmcp-tool-row__name { grid-column: 1; grid-row: 1; }
  .bmcp-method         { grid-column: 2; grid-row: 1; justify-self: end; }
  .bmcp-tool-row__path { grid-column: 1; grid-row: 2; }
  .bmcp-tool-row__desc { grid-column: 1 / -1; grid-row: 3; }
}

/* ── Responsive — mobile ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .bmcp-tcat__q    { padding: .75rem 1rem; }
  .bmcp-tcat__a    { padding: 0 1rem .875rem; }
  .bmcp-tool-list  { padding: 0 0 .5rem; }
  .bmcp-tool-row   { padding: .5rem .5rem; gap: .35rem .75rem; }
  .bmcp-tcat__name { font-size: .875rem; }
}
