/* Landing Dropbot — Central de Robôs ao vivo (seção #robos): 9 robôs que trabalham
 * em sequência, um feed de atividade em tempo real e contadores. Movido pelo robots.js. */

.rb { position: relative; overflow: hidden; }
.rb-glow { position: absolute; left: 50%; top: 42%; width: min(1200px, 130vw); height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124, 58, 237, 0.22), transparent 70%); pointer-events: none; filter: blur(20px); }
.rb-head { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.rb-head .pill { margin-bottom: 22px; }
.rb-head .t-lead { margin: 18px auto 0; max-width: 640px; }
.pill i.live { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse-dot 1.4s ease-in-out infinite; }

/* painel */
.cc { position: relative; margin-top: clamp(32px, 4vw, 48px); border-radius: 26px; border: 1px solid rgba(167, 139, 250, 0.35); background: linear-gradient(180deg, rgba(20, 15, 46, 0.92), rgba(8, 7, 18, 0.96)); box-shadow: 0 60px 160px -50px rgba(139, 92, 246, 0.5), 0 40px 100px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07); overflow: hidden; }
.cc::before { content: ''; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, #c4b5fd, transparent); box-shadow: 0 0 14px rgba(167, 139, 250, 0.9); }
/* fundo: brilhos suaves em vez de grade */
.cc::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 12% 0%, rgba(139, 92, 246, 0.16), transparent 70%), radial-gradient(45% 55% at 100% 100%, rgba(59, 109, 251, 0.12), transparent 70%); }
.cc-bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.cc-dots { display: flex; gap: 7px; }
.cc-dots i { width: 11px; height: 11px; border-radius: 999px; }
.cc-dots i:nth-child(1) { background: #ff5f57; } .cc-dots i:nth-child(2) { background: #febc2e; } .cc-dots i:nth-child(3) { background: #28c840; }
.cc-title { font: 600 12.5px/1 ui-monospace, Menlo, monospace; color: var(--subtle); }
.cc-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; color: var(--ok); }
.cc-live i { position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }
.cc-live i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--ok); animation: cc-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes cc-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.cc-clock { padding: 5px 10px; border-radius: 8px; font: 700 12px/1 ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; color: var(--gold-hi); background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(167, 139, 250, 0.25); }

.cc-body { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 999px) { .cc-body { grid-template-columns: 1fr; } }

/* robôs */
.cc-bots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 18px; align-content: center; }
.bot {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 120px; padding: 14px; margin: 0;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); color: var(--ink); text-align: left; font: inherit; cursor: pointer; overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}
.bot:hover { border-color: rgba(167, 139, 250, 0.45); transform: translateY(-2px); }
.bot[aria-pressed="true"] { border-color: var(--gold-hi); background: rgba(139, 92, 246, 0.12); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18); }
.bot-ico { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--gold-hi); background: rgba(139, 92, 246, 0.12); transition: all 0.3s ease; }
.bot-ico > svg:not(.bot-ring) { width: 20px; height: 20px; }
/* carregamento: contorna a borda do ícone (mesmo formato), com trilho apagado por baixo */
.bot-ring { position: absolute; left: -5px; top: -5px; width: calc(100% + 10px); height: calc(100% + 10px); max-width: none; fill: none; opacity: 0; transition: opacity 0.25s ease; overflow: visible; }
.bot-ring rect { stroke-width: 2; }
.bot-ring .trk { stroke: rgba(167, 139, 250, 0.2); }
.bot-ring .prg { stroke: #d8ccff; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 3px #a78bfa); }
.bot-txt { min-width: 0; width: 100%; }
.bot-txt b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-st { display: block; margin-top: 3px; font-size: 11.5px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s ease; }
.bot-n { position: absolute; right: 12px; top: 12px; min-width: 22px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); background: rgba(226, 224, 245, 0.06); }
/* varredura enquanto trabalha */
.bot::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.16), transparent); opacity: 0; }
.bot.work { border-color: rgba(167, 139, 250, 0.7); background: rgba(139, 92, 246, 0.1); box-shadow: 0 0 30px -10px rgba(139, 92, 246, 0.9); }
.bot.work::after { opacity: 1; animation: bot-scan 1s linear infinite; }
@keyframes bot-scan { to { left: 100%; } }
.bot.work .bot-ico { color: #fff; background: var(--grad-btn); box-shadow: 0 0 22px -4px rgba(139, 92, 246, 0.95); }
.bot.work .bot-ring { opacity: 1; }
.bot.work .bot-ring .prg { animation: bot-ring var(--work, 1.3s) linear forwards; }
@keyframes bot-ring { to { stroke-dashoffset: 0; } }
/* barra fina de progresso no pé do cartão */
.bot::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); box-shadow: 0 0 10px rgba(139, 92, 246, 0.9); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.bot.work::before { opacity: 1; animation: bot-bar var(--work, 1.3s) linear forwards; }
@keyframes bot-bar { to { transform: scaleX(1); } }
.bot.work .bot-st { color: var(--gold-hi); }
.bot.done .bot-st { color: var(--ok); }
.bot.done .bot-n { color: #04130c; background: var(--ok); animation: bot-pop 0.4s var(--ease); }
.bot.warn .bot-st { color: #fbbf24; }
@keyframes bot-pop { 40% { transform: scale(1.3); } }
.bot.dim { opacity: 0.35; }

/* lado direito: detalhe + feed */
.cc-side { display: flex; flex-direction: column; height: 460px; min-height: 0; padding: 18px 18px 18px 0; }
@media (max-width: 999px) { .cc-side { height: 420px; padding: 0 18px 18px; } }
.cc-detail { margin-bottom: 12px; padding: 14px 16px; border-radius: 14px; background: radial-gradient(100% 120% at 100% 0%, rgba(139, 92, 246, 0.25), transparent 70%), rgba(255, 255, 255, 0.03); border: 1px solid rgba(167, 139, 250, 0.4); animation: msg-in 0.35s var(--ease); }
.cc-detail-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cc-detail-top b { font: 600 15px/1.2 var(--font-d); }
.cc-detail-top > span:not(.tool-price) { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--gold-hi); background: rgba(139, 92, 246, 0.14); }
.cc-detail .tool-price { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; color: #fff; background: var(--grad-btn); }
.cc-detail .tool-price small { color: rgba(255, 255, 255, 0.75); }
.cc-x { margin-left: auto; padding: 4px 9px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); background: none; cursor: pointer; }
.cc-x:hover { color: #fff; border-color: var(--gold-hi); }
.cc-detail p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.cc-feed-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 10px; }
.cc-feed-head b { font: 600 13.5px/1 var(--font-d); }
.cc-feed-head small { font-size: 11.5px; color: var(--subtle); }
.cc-feed { position: relative; display: flex; flex-direction: column; gap: 7px; flex: 1; min-height: 0; margin: 0; padding: 12px; overflow: hidden; list-style: none; border-radius: 16px; background: rgba(4, 3, 12, 0.6); border: 1px solid var(--line); -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
.cc-feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; animation: feed-in 0.5s var(--ease); }
.cc-feed li.fresh { border-color: rgba(167, 139, 250, 0.45); background: rgba(139, 92, 246, 0.1); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-14px) scale(0.98); } }
.cc-feed .fi { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--gold-hi); background: rgba(139, 92, 246, 0.14); }
.cc-feed .fi svg { width: 14px; height: 14px; }
.cc-feed li.w .fi { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
.cc-feed .fm { min-width: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.cc-feed .fm b { color: var(--ink); font-weight: 700; }
.cc-feed .fm em { font-style: normal; font-weight: 800; color: var(--ok); }
.cc-feed li.w .fm em { color: #fbbf24; }
.cc-feed .fm time { display: block; font: 600 10.5px/1.3 ui-monospace, Menlo, monospace; color: var(--subtle); }
.cc-feed .fc { display: flex; gap: 3px; }
.cc-feed .fc img { width: 18px; height: 18px; border-radius: 5px; }

/* pacote de luz do robô até o feed */
.cc-packet { position: absolute; z-index: 5; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.35), 0 0 18px 4px #a855f7; pointer-events: none; transition: transform 0.7s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.2s ease 0.6s; }

/* contadores */
.cc-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.cc-stats > div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 16px 10px; text-align: center; border-right: 1px solid var(--line); }
.cc-stats > div:nth-child(4) { border-right: 0; }
.cc-stats b { font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1 var(--font-d); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cc-stats b.bump { animation: bot-pop 0.4s var(--ease); }
.cc-stats span { font-size: 12px; font-weight: 600; color: var(--muted); }
.cc-note { grid-column: 1 / -1; margin: 0; padding: 8px 12px 12px; font-size: 11px; text-align: center; color: var(--subtle); }

/* rodapé da seção */
.rb-cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 22px 26px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(20, 16, 44, 0.6); }
.rb-cta p { margin: 0; max-width: 640px; color: var(--muted); }
.rb-cta p b { color: var(--ink); }

/* celular */
@media (max-width: 640px) {
  .cc-bar { padding: 11px 14px; gap: 8px; }
  .cc-title { display: none; }
  .cc-bots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px; }
  .bot { align-items: center; justify-content: flex-start; gap: 8px; min-height: 0; padding: 12px 6px 10px; text-align: center; }
  .bot-txt b { font-size: 11px; white-space: normal; line-height: 1.2; }
  .bot-st { display: none; }
  .bot-n { position: absolute; right: 5px; top: 5px; padding: 1px 5px; font-size: 10px; }
  .bot-ico { width: 38px; height: 38px; border-radius: 12px; }
  .cc-feed { padding: 8px; }
  .cc-side { height: 380px; }
  .cc-feed .fc { display: none; }
  .cc-stats { grid-template-columns: 1fr 1fr; }
  .cc-stats > div:nth-child(2) { border-right: 0; }
  .cc-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rb-cta .btn { width: 100%; justify-content: space-between; }
}
