/* Designers Hub — página do MCP (/mcp/). Usa os tokens e componentes de /styles.css. */

/* ── Hero ── */
.mcp-hero { position: relative; padding: 150px 0 110px; }
.mcp-hero::before { content: ''; position: absolute; inset: 0 0 auto; height: 720px; z-index: -1; background: radial-gradient(50% 60% at 50% 25%, rgba(var(--accent-rgb), 0.09), transparent 70%); pointer-events: none; }
.mcp-hero-grid { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mcp-hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 820px; }
.mcp-hero .lead { margin-inline: auto; max-width: 640px; }
.mcp-h1 { font-size: clamp(40px, 5.6vw, 68px); }
.mcp-h1 em { display: block; }
.mcp-badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 13px; font-weight: 500; color: var(--muted); }
.mcp-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15); animation: mcpBlink 2.4s ease-in-out infinite; }
@keyframes mcpBlink { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.05); } }
.mcp-actions { justify-content: center; margin-top: 32px; }

.mcp-url { width: min(100%, 480px); margin-top: 30px; text-align: left; }
.mcp-url-label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.mcp-url-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); }
.mcp-url-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 13.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); }
.mcp-copy { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.07); font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s; }
.mcp-copy:hover { background: rgba(255, 255, 255, 0.12); }
.mcp-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mcp-copy.is-done { background: #34d399; color: #0a0b0d; }

/* Hub: a marca na frente, no centro; as IAs abrem para os lados e vão para trás
   (cada passo: menor, mais alta, mais apagada e girada em direção ao centro) */
.mcp-hub { --tilt: 28deg; display: flex; align-items: flex-end; justify-content: center; margin: 0 auto 54px; perspective: 900px; }
.mcp-node { position: relative; display: grid; justify-items: center; gap: 10px; transform-style: preserve-3d; }
.mcp-node img { box-sizing: content-box; display: block; width: 34px; height: 34px; padding: 25px; border-radius: 24px; border: 1px solid var(--line-2); background: linear-gradient(150deg, #1d1f23, #111214); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6); animation: mcpFloat 6s ease-in-out infinite; }
.mcp-node b { font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
/* perto do centro */
.mcp-node:nth-child(2), .mcp-node:nth-child(4) { z-index: 2; }
.mcp-node:nth-child(2) { margin-right: 26px; transform: translateY(-34px) rotateY(var(--tilt)) scale(0.9); }
.mcp-node:nth-child(4) { margin-left: 26px; transform: translateY(-34px) rotateY(calc(var(--tilt) * -1)) scale(0.9); }
/* mais ao fundo */
.mcp-node:nth-child(1), .mcp-node:nth-child(5) { z-index: 1; opacity: 0.85; }
.mcp-node:nth-child(1) { margin-right: 6px; transform: translateY(-74px) rotateY(calc(var(--tilt) * 1.3)) scale(0.74); }
.mcp-node:nth-child(5) { margin-left: 6px; transform: translateY(-74px) rotateY(calc(var(--tilt) * -1.3)) scale(0.74); }
.mcp-node:nth-child(2) img { animation-delay: -1.5s; }
.mcp-node:nth-child(4) img { animation-delay: -3s; }
.mcp-node:nth-child(5) img { animation-delay: -4.5s; }
@keyframes mcpFloat { 50% { transform: translateY(-6px); } }
.mcp-core { position: relative; z-index: 3; display: grid; flex-shrink: 0; place-items: center; width: 148px; height: 148px; margin-bottom: 4px; border-radius: 42px; background: linear-gradient(150deg, #2a2c31, #0f1012); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(var(--accent-rgb), 0.24), 0 30px 70px rgba(0, 0, 0, 0.75), 0 0 90px rgba(var(--accent-rgb), 0.28); }
.mcp-core::before { content: ''; position: absolute; inset: -14px; border-radius: 52px; border: 1px dashed rgba(var(--accent-rgb), 0.18); animation: mcpSpin 40s linear infinite; }
.mcp-core::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -26px; height: 20px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.22), transparent); filter: blur(4px); }
@keyframes mcpSpin { to { rotate: 360deg; } }
.mcp-core img { width: 68px; height: 68px; filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.9)); }

/* ── Apps compatíveis ── */
.mcp-app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mcp-app { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s; }
.mcp-app:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-4px); }
.mcp-app-logo { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(150deg, #1d1f23, #121316); }
.mcp-app-logo img { width: 26px; height: 26px; }
.mcp-app h3 { font-size: 19px; }
.mcp-app p { flex: 1; margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.mcp-tag { align-self: flex-start; margin-top: 20px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 500; color: var(--muted); }
.mcp-tag-on { border-color: rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }
.mcp-more { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; font-size: 14px; color: var(--muted); text-align: center; }
.mcp-more svg { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Demonstração (chat) ── */
.mcp-demo-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.mcp-demo .head { margin-bottom: 0; }
.mcp-checks { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.mcp-checks li { position: relative; padding-left: 30px; font-size: 15px; color: var(--text); }
.mcp-checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: rgba(52, 211, 153, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.mcp-chat { overflow: hidden; border-radius: 24px; border: 1px solid var(--line-2); background: #0d0e11; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4); }
.mcp-chat-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #131418; }
.mcp-chat-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2c2f35; }
.mcp-chat-bar b { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--dim); }
.mcp-chat-body { display: grid; gap: 14px; padding: 24px 22px 10px; }
.mcp-msg { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.55; }
.mcp-msg-user { justify-self: end; border-bottom-right-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.mcp-msg-ai { padding-inline: 2px; color: var(--muted); }
.mcp-tool { display: inline-flex; justify-self: start; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.mcp-tool-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1d1f23; }
.mcp-tool-icon img { width: 12px; height: 12px; filter: brightness(0) invert(1); }
.mcp-tool-ok { padding: 2px 8px; border-radius: 999px; background: rgba(52, 211, 153, 0.12); font-size: 11px; color: #6ee7b7; }
.mcp-result { justify-self: start; width: min(240px, 66%); margin: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); }
.mcp-result img { width: 100%; height: auto; }
.mcp-chat-input { display: flex; align-items: center; justify-content: space-between; margin: 10px 16px 16px; padding: 8px 8px 8px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); font-size: 13.5px; color: var(--dim); }
.mcp-chat-input i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); }
.mcp-chat-input svg { width: 16px; height: 16px; fill: none; stroke: #0a0b0d; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Conversa entra em sequência quando aparece na tela */
.mcp-chat.reveal .mcp-chat-body > * { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.mcp-chat.reveal.is-in .mcp-chat-body > * { opacity: 1; transform: none; }
.mcp-chat.is-in .mcp-chat-body > :nth-child(2) { transition-delay: 0.7s; }
.mcp-chat.is-in .mcp-chat-body > :nth-child(3) { transition-delay: 1.5s; }
.mcp-chat.is-in .mcp-chat-body > :nth-child(4) { transition-delay: 2.2s; }

/* ── Ferramentas ── */
.mcp-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mcp-feat { padding: 28px 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); transition: border-color 0.3s, background 0.3s; }
.mcp-feat:hover { border-color: var(--line-2); background: var(--card-2); }
.mcp-feat-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 14px; background: rgba(var(--accent-rgb), 0.07); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.14); }
.mcp-feat-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mcp-feat h3 { font-size: 18px; }
.mcp-feat p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ── Passos ── */
.mcp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.mcp-steps li { position: relative; padding: 26px 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.mcp-steps li:not(:last-child)::after { content: ''; position: absolute; top: 46px; right: -17px; width: 18px; height: 1px; background: var(--line-2); }
.mcp-step-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 12px; background: var(--accent); color: #0a0b0d; font-size: 16px; font-weight: 600; }
.mcp-steps h3 { font-size: 17.5px; }
.mcp-steps p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ── Segurança: texto + prévia da tela de permissão e dos apps conectados ── */
.mcp-safe-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.mcp-safe .head { margin-bottom: 0; }
.mcp-safe-points { display: grid; gap: 22px; margin: 36px 0 0; padding: 0; list-style: none; }
.mcp-safe-points li { display: flex; gap: 16px; align-items: flex-start; }
.mcp-safe-pi { display: grid; flex-shrink: 0; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(150deg, #25272c, #121316); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(var(--accent-rgb), 0.16); }
.mcp-safe-pi svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mcp-safe-points b { display: block; font-size: 16px; font-weight: 600; }
.mcp-safe-points p { margin-top: 3px; font-size: 14.5px; color: var(--muted); }

.mcp-safe-mock { position: relative; padding: 0 0 250px; }
.mcp-safe-mock::before { content: ''; position: absolute; inset: 10% 5% 0; z-index: -1; background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.12), transparent); filter: blur(20px); }
.mcp-consent { position: relative; z-index: 2; width: min(92%, 400px); padding: 30px 28px 26px; border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #17181c, #0f1013); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); text-align: center; }
.mcp-consent-logos { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.mcp-cl { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; border: 1px solid var(--line-2); }
.mcp-cl img { width: 22px; height: 22px; }
.mcp-cl-claude { background: linear-gradient(150deg, #2a1d18, #15100e); border-color: rgba(217, 119, 87, 0.4); }
.mcp-cl-dh { background: linear-gradient(150deg, #2a2c31, #111214); box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.2); }
.mcp-cl-dh img { filter: brightness(0) invert(1); }
.mcp-cl-link svg { display: block; width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round; }
.mcp-consent-title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.mcp-consent-sub { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.mcp-consent-perms { display: grid; gap: 10px; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; text-align: left; font-size: 13.5px; color: var(--muted); }
.mcp-consent-perms li { display: flex; gap: 10px; align-items: center; }
.mcp-consent-perms svg { flex-shrink: 0; width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mcp-consent-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 22px; }
.mcp-cbtn { display: grid; place-items: center; height: 44px; border-radius: 13px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--muted); }
.mcp-cbtn-primary { border: 0; background: var(--accent); color: #0a0b0d; font-weight: 600; box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.25); }

.mcp-connected { position: absolute; z-index: 3; right: 0; bottom: 0; width: min(80%, 340px); padding: 18px 18px 8px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(19, 20, 24, 0.94); backdrop-filter: blur(12px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.mcp-connected-title { margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.mcp-app-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.mcp-app-row + .mcp-app-row { border-top: 1px solid var(--line); }
.mcp-app-row > div { flex: 1; min-width: 0; }
.mcp-app-row b { display: block; font-size: 13.5px; font-weight: 500; }
.mcp-app-row small { font-size: 11.5px; color: var(--dim); }
.mcp-ar-logo { display: grid; flex-shrink: 0; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line-2); background: #141518; }
.mcp-ar-logo img { width: 16px; height: 16px; }
.mcp-ar-logo:has(img[src$="chatgpt.svg"]) { border-color: rgba(16, 163, 127, 0.55); background: linear-gradient(150deg, #19c37d, #0b8a68); }
.mcp-ar-logo:has(img[src$="claude.svg"]) { border-color: rgba(217, 119, 87, 0.4); background: linear-gradient(150deg, #2a1d18, #15100e); }
.mcp-ar-btn { padding: 6px 11px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 11.5px; color: var(--muted); }

/* ── Chamada final ── */
.mcp-final { align-items: center; text-align: center; background: radial-gradient(70% 90% at 50% 120%, rgba(var(--accent-rgb), 0.16), transparent 70%), #0b0b0d; }
.mcp-final::before { display: none; }
.mcp-final .title { max-width: 640px; margin-inline: auto; }
.mcp-final .hero-actions { justify-content: center; margin-top: 30px; }

/* ── Responsivo ── */
@media (max-width: 1080px) {
  .mcp-app-grid, .mcp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mcp-steps li::after { display: none; }
  .mcp-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mcp-safe-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .mcp-safe-mock { max-width: 460px; }
  .mcp-hero { padding: 130px 0 70px; }
  .mcp-demo-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .mcp-hub { margin-bottom: 40px; }
  .mcp-node img { width: 24px; height: 24px; padding: 17px; border-radius: 18px; }
  .mcp-core { width: 112px; height: 112px; border-radius: 32px; }
  .mcp-core::before { inset: -10px; border-radius: 40px; }
  .mcp-core img { width: 52px; height: 52px; }
}
@media (max-width: 560px) {
  .mcp-app-grid, .mcp-steps, .mcp-tool-grid { grid-template-columns: minmax(0, 1fr); }
  .mcp-actions .btn { width: 100%; }
  .mcp-safe-mock { padding-bottom: 0; }
  .mcp-consent { width: 100%; }
  .mcp-connected { position: relative; width: 100%; margin-top: 14px; }
  .mcp-final { padding: 44px 22px; }
  .mcp-final .hero-actions .btn { width: 100%; }
  .mcp-hub { --tilt: 22deg; }
  .mcp-node img { width: 18px; height: 18px; padding: 12px; border-radius: 14px; }
  .mcp-node b { font-size: 10.5px; }
  .mcp-node:nth-child(2) { margin-right: 12px; transform: translateY(-22px) rotateY(var(--tilt)) scale(0.9); }
  .mcp-node:nth-child(4) { margin-left: 12px; transform: translateY(-22px) rotateY(calc(var(--tilt) * -1)) scale(0.9); }
  .mcp-node:nth-child(1) { margin-right: 0; transform: translateY(-48px) rotateY(calc(var(--tilt) * 1.3)) scale(0.74); }
  .mcp-node:nth-child(5) { margin-left: 0; transform: translateY(-48px) rotateY(calc(var(--tilt) * -1.3)) scale(0.74); }
  .mcp-core { width: 84px; height: 84px; border-radius: 24px; }
  .mcp-core::before { inset: -8px; border-radius: 30px; }
  .mcp-core img { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .mcp-dot, .mcp-node img, .mcp-core::before { animation: none; }
  .mcp-chat.reveal .mcp-chat-body > * { opacity: 1; transform: none; transition: none; }
}

/* Cores oficiais de cada marca (a do Designers Hub segue em prata) */
.mcp-node img[src$="chatgpt.svg"], .mcp-app-logo:has(img[src$="chatgpt.svg"]) { border-color: rgba(16, 163, 127, 0.55); background: linear-gradient(150deg, #19c37d, #0b8a68); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 34px rgba(16, 163, 127, 0.28); }
.mcp-node img[src$="claude.svg"], .mcp-app-logo:has(img[src$="claude.svg"]) { border-color: rgba(217, 119, 87, 0.4); background: linear-gradient(150deg, #2a1d18, #15100e); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 34px rgba(217, 119, 87, 0.22); }
.mcp-node img[src$="cursor.svg"], .mcp-app-logo:has(img[src$="cursor.svg"]) { border-color: rgba(255, 255, 255, 0.16); background: linear-gradient(150deg, #1b1b1b, #050505); }
.mcp-node img[src$="vscode.svg"], .mcp-app-logo:has(img[src$="vscode.svg"]) { border-color: rgba(60, 169, 245, 0.4); background: linear-gradient(150deg, #13202c, #0b1219); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 34px rgba(0, 122, 204, 0.25); }
