/* /mcp page. Kept separate from style.css; uses its tokens (--surface, --line, --text, --yellow…). */
.mx-hero { padding: 150px 0 20px; }
.mx-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.mx-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text); }
.mx-pill .icon { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--yellow); color: #0b0b0b; }
.mx-hero h1 { margin: 22px 0 0; font-size: clamp(40px, 4.3vw, 64px); line-height: .98; letter-spacing: -0.045em; font-weight: 500; }
.mx-hero h1 em { display: block; }
.mx-hero .lede { margin: 24px 0 0; max-width: 540px; }
.mx-hero .hero-actions { margin-top: 32px; }
.mx-works { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.mx-works > span { font: 500 12px/1 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.mx-works ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.mx-works li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.mx-works svg { width: 18px; height: 18px; fill: currentColor; }
.mx-works .icon { fill: none; }

/* Dark app window (hero chat + demo frame) */
.mx-window, .mx-video { border-radius: 22px; background: #0e0e0e; border: 1px solid #262626; color: #f4f2ed; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 210, 31, .08); overflow: hidden; }
.mx-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #222; background: #141414; }
.mx-bar i { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.mx-bar i:first-child { background: #ff6a13; } .mx-bar i:nth-child(2) { background: #ffd21f; } .mx-bar i:nth-child(3) { background: #3a3a3a; }
.mx-bar span { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; font-size: 13px; font-weight: 600; color: #a3a3a0; }
.mx-bar svg { width: 15px; height: 15px; fill: #d97757; }
.mx-chat { display: grid; gap: 16px; padding: 22px; }
.mx-you { justify-self: end; max-width: 88%; padding: 13px 16px; border-radius: 16px 16px 5px 16px; background: #262626; font-size: 15px; line-height: 1.5; }
.mx-calls { display: grid; gap: 8px; margin: 0; padding: 14px; list-style: none; border-radius: 14px; background: #141414; border: 1px solid #222; }
.mx-calls li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mx-calls .icon { width: 20px; height: 20px; flex: none; padding: 4px; border-radius: 50%; background: var(--yellow); color: #0b0b0b; }
.mx-calls code { font: 600 13px ui-monospace, "Cascadia Code", Consolas, monospace; color: #ffd21f; }
.mx-calls small { margin-left: auto; color: #8a8a85; font-size: 12.5px; white-space: nowrap; }
.mx-ai { max-width: 94%; padding: 13px 16px; border-radius: 16px 16px 16px 5px; background: #161616; border: 1px solid #262626; font-size: 15px; line-height: 1.5; color: #e7e5e0; }
.mx-track { display: flex; gap: 4px; padding: 14px 22px 20px; }
.mx-track span { height: 26px; width: var(--w); border-radius: 6px; background: linear-gradient(180deg, #3a3a3a, #2a2a2a); }
.mx-track span:nth-child(odd) { background: linear-gradient(180deg, #4a4a4a, #333); }
.mx-track .cta { background: var(--yellow); }


/* How it works: three nodes joined by flowing links */
.mx-how { padding-top: 80px; }
.mx-flow { display: grid; grid-template-columns: 1fr 96px 1fr 96px 1fr; align-items: center; margin: 0; padding: 0; list-style: none; }
.mx-node { display: grid; justify-items: start; gap: 10px; height: 100%; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.mx-node b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.mx-node p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.mx-node code { margin-top: 4px; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font: 600 12.5px ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--accent-text); }
.mx-node-hot { background: radial-gradient(120% 100% at 50% 0%, rgba(255, 210, 31, .16), transparent 70%), var(--surface); border: 2px solid var(--yellow); box-shadow: 0 30px 70px -35px rgba(255, 170, 20, .55); }
.mx-node-ic { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; min-width: 46px; padding: 0 10px; border-radius: 14px; background: #0e0e0e; color: #f4f2ed; border: 1px solid rgba(255, 255, 255, .1); }
.mx-node-ic svg { width: 18px; height: 18px; fill: currentColor; }
.mx-node-ic .icon { fill: none; width: 20px; height: 20px; color: var(--yellow); }
.mx-node-ic img { border-radius: 50%; }
.mx-mini { display: flex; gap: 3px; width: 100%; margin-top: 4px; }
.mx-mini i { height: 16px; width: var(--w); border-radius: 4px; background: var(--line); }
.mx-mini i.y { background: var(--yellow); }
.mx-link { position: relative; display: grid; justify-items: center; gap: 8px; }
.mx-link span { font: 500 11px/1 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.mx-link i { position: relative; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2, #cfc8bb) 0 6px, transparent 6px 11px); }
.mx-link i::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px rgba(255, 210, 31, .9); animation: mx-dot 1.8s cubic-bezier(.5, 0, .5, 1) infinite; }
.mx-link:last-of-type i::after { animation-delay: .9s; }
@keyframes mx-dot-v { 0% { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
@keyframes mx-dot { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mx-link i::after { animation: none; left: calc(50% - 5px); } }
.mx-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 36px 0 0; padding: 0; list-style: none; }
.mx-facts li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.mx-facts .icon { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--yellow); color: #0b0b0b; flex: none; }

/* Setup: one dark card, steps left, code right */
.mx-setup { padding-top: 60px; }
.mx-setup-card { padding: 44px; border-radius: 28px; background: radial-gradient(90% 120% at 100% 0%, rgba(255, 210, 31, .10), transparent 55%), #0e0e0e; border: 1px solid #262626; color: #f4f2ed; }
.mx-setup-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 36px; }
.mx-setup-head .eyebrow { color: #8a8a85; }
.mx-setup-head h2 { margin: 0; color: #f4f2ed; font-size: clamp(34px, 4vw, 54px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; }
.mx-setup-head p { margin: 12px 0 0; max-width: 520px; color: #a3a3a0; font-size: 16px; line-height: 1.55; }
.mx-tabs.seg-tabs { margin: 0; background: #161616; border-color: #2a2a2a; }
.mx-tabs.seg-tabs button { display: inline-flex; align-items: center; gap: 7px; color: #a3a3a0; }
.mx-tabs.seg-tabs button svg { width: 15px; height: 15px; fill: currentColor; }
.mx-tabs.seg-tabs button[aria-selected="true"] { background: var(--yellow); color: #0b0b0b; }
.mx-panel { display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: start; }
.mx-panel[hidden] { display: none; }
.mx-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; counter-reset: step; }
.mx-steps::before { content: ""; position: absolute; left: 17px; top: 34px; bottom: 34px; width: 2px; background: linear-gradient(#ffd21f, rgba(255, 210, 31, .1)); }
.mx-steps li { position: relative; counter-increment: step; display: grid; gap: 4px; padding-left: 56px; }
.mx-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: #0b0b0b; font-weight: 700; box-shadow: 0 0 0 5px #0e0e0e; }
.mx-steps b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.mx-steps span { color: #a3a3a0; font-size: 15px; line-height: 1.5; }
.mx-steps i { color: #f4f2ed; font-style: normal; font-weight: 600; }
.mx-code { border-radius: 16px; background: #050505; border: 1px solid #2a2a2a; overflow: hidden; }
.mx-code-bar { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid #1f1f1f; font: 500 12.5px ui-monospace, "Cascadia Code", Consolas, monospace; color: #8a8a85; }
.mx-code-bar .icon { width: 15px; height: 15px; }
.mx-code-bar button { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid #2f2f2f; background: #161616; color: #f4f2ed; cursor: pointer; }
.mx-code-bar button:hover { background: #222; }
.mx-code-bar button.copied { background: var(--yellow); color: #0b0b0b; border-color: var(--yellow); }
.mx-code-bar button .icon { width: 14px; height: 14px; }
.mx-code pre { margin: 0; padding: 20px; color: #f4f2ed; font: 13.5px/1.7 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Demo */
.mx-video { margin: 0 auto; max-width: 1040px; }
.mx-video video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0e0e0e; }

/* Tools */
.mx-tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mx-group { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.mx-group:hover { border-color: var(--yellow); transform: translateY(-2px); }
.mx-group header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.mx-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--yellow); color: #0b0b0b; }
.mx-ic .icon { width: 18px; height: 18px; }
.mx-group h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.mx-group header small { margin-left: auto; color: var(--dim); font-size: 12.5px; }
.mx-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mx-group li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.mx-group code { padding: 3px 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); font: 600 12.5px ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--accent-text); }
.mx-group li span { flex-basis: 100%; color: var(--muted); font-size: 14px; line-height: 1.4; }

@media (max-width: 1040px) {
  .mx-flow { grid-template-columns: 1fr; gap: 0; }
  .mx-link { height: 64px; align-content: center; }
  .mx-link i { width: 2px; height: 34px; background: repeating-linear-gradient(180deg, var(--line-2, #cfc8bb) 0 6px, transparent 6px 11px); }
  .mx-link i::after { left: -4px; animation-name: mx-dot-v; }
  .mx-link span { position: absolute; left: calc(50% + 16px); top: 50%; transform: translateY(-50%); }
  .mx-hero-grid, .mx-panel { grid-template-columns: 1fr; }
  .mx-tool-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .mx-hero { padding-top: 120px; }
  .mx-setup-card { padding: 26px 18px; border-radius: 22px; }
  .mx-tool-grid { grid-template-columns: 1fr; }
  .mx-calls small { display: none; }
  .mx-tabs.seg-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; overflow: visible; }
  .mx-tabs.seg-tabs button { justify-content: center; min-width: 0; padding-inline: 5px; font-size: 12px; }
}
