/* ==========================================================================
   LexTecMind — Legal Intelligence Console
   Azure / Cyan / Violet plasma · Tema escuro e claro · Sem amarelo
   Author: Jonathan Gadelha
   ========================================================================== */

/* ---------------------------- TEMA ESCURO (padrão) ---------------------------- */
:root {
  --bg:          #04060D;
  --surface:     #0A0F1C;
  --surface-2:   #0E1526;
  --glass:       rgba(255, 255, 255, 0.028);
  --glass-hover: rgba(255, 255, 255, 0.055);

  --line:        rgba(146, 178, 232, 0.11);
  --line-strong: rgba(146, 178, 232, 0.22);

  --azure:   #4C8DFF;
  --cyan:    #22D3EE;
  --violet:  #8B7BFF;
  --emerald: #35D6A2;
  --plasma:  linear-gradient(120deg, #4C8DFF 0%, #22D3EE 48%, #8B7BFF 100%);
  --grad-primary: linear-gradient(120deg, #6BA1FF, #37D9F0);

  --fg-azure:   #9DC0FF;
  --fg-cyan:    #86E7F7;
  --fg-violet:  #C3B8FF;
  --fg-emerald: #7CEBC6;

  --head:  #FFFFFF;
  --text:  #E9EFFA;
  --soft:  #B4C3DA;
  --muted: #8194B0;
  --dim:   #5F7291;

  --sheen-a: rgba(255, 255, 255, .045);
  --sheen-b: rgba(255, 255, 255, .012);
  --row-bg:       rgba(255, 255, 255, .022);
  --row-bg-hover: rgba(255, 255, 255, .052);
  --row-line:     rgba(146, 178, 232, .08);

  --nav-bg:       rgba(4, 6, 13, .72);
  --input-bg:     rgba(10, 15, 28, .92);
  --panel-solid:  #0C1220;
  --panel-solid-2:#080C16;
  --orb-bg:       #070C18;

  --btn-fg:  #04060D;
  --mark-bg: rgba(76, 141, 255, .26);
  --mark-fg: #CFE0FF;

  --grid-line: rgba(160, 190, 240, .045);
  --aurora:
    radial-gradient(58% 42% at 50% -8%,  rgba(76, 141, 255, .20), transparent 70%),
    radial-gradient(40% 32% at 88% 12%,  rgba(139, 123, 255, .14), transparent 70%),
    radial-gradient(46% 34% at 8%  38%,  rgba(34, 211, 238, .09),  transparent 70%),
    linear-gradient(180deg, #04060D 0%, #05080F 55%, #04060D 100%);

  --catL: 72%;   /* luminosidade do acento de cada categoria */
  --catA: .11;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .9);

  --display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --body:    'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
}

/* ---------------------------- TEMA CLARO ---------------------------- */
[data-theme="light"] {
  --bg:          #F3F6FC;
  --surface:     #FFFFFF;
  --surface-2:   #FFFFFF;
  --glass:       rgba(18, 42, 84, 0.038);
  --glass-hover: rgba(18, 42, 84, 0.075);

  --line:        rgba(22, 50, 96, 0.13);
  --line-strong: rgba(22, 50, 96, 0.24);

  --azure:   #2F6BFF;
  --cyan:    #0891B2;
  --violet:  #6D53F0;
  --emerald: #059669;
  --plasma:  linear-gradient(120deg, #2F6BFF 0%, #0891B2 48%, #6D53F0 100%);
  --grad-primary: linear-gradient(120deg, #3B7BFF, #06AFD0);

  --fg-azure:   #1D4ED8;
  --fg-cyan:    #0E7490;
  --fg-violet:  #5B45D6;
  --fg-emerald: #047857;

  --head:  #08111F;
  --text:  #16233A;
  --soft:  #33445F;
  --muted: #5A6C87;
  --dim:   #8092AB;

  --sheen-a: rgba(255, 255, 255, .95);
  --sheen-b: rgba(240, 245, 253, .75);
  --row-bg:       rgba(20, 48, 95, .028);
  --row-bg-hover: rgba(20, 48, 95, .065);
  --row-line:     rgba(22, 50, 96, .10);

  --nav-bg:      rgba(243, 246, 252, .82);
  --input-bg:    #FFFFFF;
  --panel-solid: #FFFFFF;
  --panel-solid-2:#F7FAFF;
  --orb-bg:      #070C18;

  --btn-fg:  #FFFFFF;
  --mark-bg: rgba(47, 107, 255, .18);
  --mark-fg: #123A96;

  --grid-line: rgba(30, 64, 120, .07);
  --aurora:
    radial-gradient(58% 42% at 50% -8%,  rgba(47, 107, 255, .16), transparent 70%),
    radial-gradient(40% 32% at 88% 12%,  rgba(109, 83, 240, .12), transparent 70%),
    radial-gradient(46% 34% at 8%  38%,  rgba(8, 145, 178, .10),  transparent 70%),
    linear-gradient(180deg, #F5F8FE 0%, #EDF2FB 55%, #F4F7FD 100%);

  --catL: 42%;
  --catA: .10;
  --shadow: 0 24px 50px -28px rgba(18, 42, 84, .35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:root { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--soft);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--mark-bg); color: var(--head); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--azure); }

.mono { font-family: var(--mono); }

/* ============================ ATMOSFERA ============================ */
.bg-aurora,
.bg-grid { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.bg-aurora { background: var(--aurora); transition: background .3s ease; }

.bg-grid {
  background-size: 46px 46px;
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 78% 55% at 50% 0%, #000 20%, transparent 92%);
          mask-image: radial-gradient(ellipse 78% 55% at 50% 0%, #000 20%, transparent 92%);
}

/* ============================ LAYOUT ============================ */
.shell { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
main { position: relative; z-index: 1; }

.section { padding: 46px 0; }
.section--tight { padding: 30px 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 20px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700; color: var(--head); letter-spacing: -.02em;
}
.section-head p { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.section-head .mono { font-size: .72rem; color: var(--dim); letter-spacing: .08em; }

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 50px; height: 50px; flex: none;
  border-radius: 14px;
  background: var(--orb-bg);
  border: 1px solid var(--line-strong);
  position: relative; overflow: hidden;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .8);
  transition: border-color .25s, box-shadow .25s;
}
.brand__mark img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.38) translateY(-5%);
  filter: saturate(1.15) contrast(1.05);
}
.brand__mark::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 50% 45%, rgba(76, 141, 255, .22), transparent 70%);
}
.brand:hover .brand__mark { border-color: var(--azure); box-shadow: 0 0 26px -6px var(--azure); }

.brand__name {
  font-family: var(--display); font-weight: 800; font-size: 1.08rem;
  color: var(--head); letter-spacing: -.03em; line-height: 1; display: block;
}
.brand__name em {
  font-style: normal;
  background: var(--plasma); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__sub {
  display: block; font-family: var(--mono); font-size: .58rem;
  letter-spacing: .26em; text-transform: uppercase; color: var(--dim); margin-top: 4px;
}

.nav__side { display: flex; align-items: center; gap: 10px; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link {
  font-size: .82rem; font-weight: 600; color: var(--muted);
  padding: 8px 13px; border-radius: var(--r-sm);
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--head); background: var(--glass); }

/* Alternador de tema */
.theme-toggle {
  width: 38px; height: 38px; flex: none; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--line); color: var(--muted);
  transition: color .2s, background .2s, border-color .2s, transform .25s;
}
.theme-toggle:hover { color: var(--head); background: var(--glass-hover); border-color: var(--line-strong); transform: rotate(-18deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav__burger {
  display: none; width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--glass); border: 1px solid var(--line); color: var(--soft);
  align-items: center; justify-content: center;
}
.nav__mobile {
  display: none; border-top: 1px solid var(--line);
  background: var(--nav-bg); padding: 10px 22px 16px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.nav__mobile.open { display: block; }
.nav__mobile a {
  display: block; padding: 11px 12px; border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 600; color: var(--soft);
}
.nav__mobile a:hover { background: var(--glass); color: var(--head); }

/* ============================ BOTÕES ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--body); font-weight: 700; font-size: .8rem;
  padding: 10px 16px; border-radius: var(--r-sm);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .22s, background .22s, border-color .22s, color .22s;
}
.btn svg { width: 15px; height: 15px; flex: none; }

.btn--primary {
  color: var(--btn-fg);
  background: var(--grad-primary);
  box-shadow: 0 8px 24px -12px rgba(76, 141, 255, .9);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgba(76, 141, 255, .95); }

.btn--ghost {
  color: var(--soft); background: var(--glass); border-color: var(--line); font-weight: 600;
}
.btn--ghost:hover { color: var(--head); background: var(--glass-hover); border-color: var(--line-strong); }

.btn--sm { padding: 7px 12px; font-size: .74rem; }
.btn--block { width: 100%; }

/* ============================ CHIPS ============================ */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: .63rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px;
  background: var(--glass); border: 1px solid var(--line); color: var(--muted);
}
.chip svg { width: 12px; height: 12px; }
.chip--azure   { color: var(--fg-azure);   background: rgba(76,141,255,.10);  border-color: rgba(76,141,255,.3); }
.chip--cyan    { color: var(--fg-cyan);    background: rgba(34,211,238,.09);  border-color: rgba(34,211,238,.3); }
.chip--violet  { color: var(--fg-violet);  background: rgba(139,123,255,.11); border-color: rgba(139,123,255,.34); }
.chip--emerald { color: var(--fg-emerald); background: rgba(53,214,162,.09);  border-color: rgba(53,214,162,.3); }

/* ============================ PAINÉIS ============================ */
.panel {
  position: relative;
  background: linear-gradient(168deg, var(--sheen-a), var(--sheen-b));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .25s, transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, background .3s;
}
.panel:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

.panel--feature {
  border-color: rgba(139, 123, 255, .3);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(76,141,255,.14), transparent 60%),
    radial-gradient(100% 130% at 100% 0%, rgba(139,123,255,.14), transparent 60%),
    linear-gradient(168deg, var(--sheen-a), var(--sheen-b));
  overflow: hidden;
}
.panel--feature::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: var(--plasma); opacity: .9;
}

/* ============================ HERO ============================ */
.hero { padding: 56px 0 30px; text-align: center; }

.hero__orb { position: relative; width: 210px; height: 210px; margin: 0 auto 30px; }
.hero__orb::after {
  content: ''; position: absolute; inset: -70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 141, 255, .28), rgba(139, 123, 255, .10) 45%, transparent 70%);
  pointer-events: none;
}
.hero__orb-ring {
  position: absolute; inset: -12px; border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0 42%, rgba(76, 141, 255, .95) 60%,
    rgba(34, 211, 238, 1) 74%, rgba(139, 123, 255, .95) 88%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: orbit 7s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }

.hero__orb-img {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; z-index: 1;
  border: 1px solid rgba(146, 178, 232, .3);
  box-shadow: 0 0 70px -14px rgba(76, 141, 255, .85), inset 0 0 44px rgba(0, 0, 0, .7);
  background: var(--orb-bg);
}
.hero__orb-img img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.3) translateY(-5%);
  filter: saturate(1.2) contrast(1.06);
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-azure); padding: 6px 14px; border-radius: 999px;
  background: rgba(76, 141, 255, .08); border: 1px solid rgba(76, 141, 255, .26);
}
.hero__eyebrow svg { width: 13px; height: 13px; }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.05rem, 5.6vw, 3.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.045em;
  color: var(--head); margin: 20px auto 0; max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  background: var(--plasma); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 56ch; margin: 16px auto 0; font-size: .95rem; color: var(--muted); }
.hero__lead strong { color: var(--soft); font-weight: 700; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }

/* ============================ BUSCA ============================ */
.search { position: relative; width: 100%; }
.search input {
  width: 100%; font-family: var(--body); font-size: .92rem; color: var(--head);
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 14px 96px 14px 46px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus {
  outline: none; border-color: var(--azure);
  box-shadow: 0 0 0 4px rgba(76, 141, 255, .14), 0 18px 40px -24px rgba(76, 141, 255, .7);
}
.search__icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  display: flex; color: var(--muted); pointer-events: none;
}
.search__icon svg { width: 18px; height: 18px; }
.search__kbd {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: .66rem; color: var(--muted);
  padding: 4px 7px; border-radius: 6px;
  background: var(--glass); border: 1px solid var(--line);
}
.search__clear {
  position: absolute; right: 62px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--glass-hover); color: var(--muted);
}
.search__clear.show { display: flex; }
.search__clear:hover { color: var(--head); }
.search__clear svg { width: 13px; height: 13px; }

/* ============================ EXTENSÃO PJE ============================ */
.bridge { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; padding: 28px; align-items: center; }
.bridge h2 {
  font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800; color: var(--head); letter-spacing: -.03em; margin: 12px 0 4px;
}
.bridge__sub { font-size: .84rem; font-weight: 700; color: var(--fg-violet); margin-bottom: 10px; }
.bridge p { font-size: .88rem; color: var(--muted); }
.bridge p strong { color: var(--soft); }
.bridge__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.bridge__actions { display: flex; flex-direction: column; gap: 9px; }

/* ============================ MÓDULOS ============================ */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.tool__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool h3 { font-family: var(--display); font-size: 1rem; font-weight: 700; color: var(--head); letter-spacing: -.02em; }
.tool p { font-size: .83rem; color: var(--muted); flex: 1; }
.tool__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 13px; border-top: 1px solid var(--line);
}
.tool__foot .mono { font-size: .67rem; color: var(--dim); }

/* ============================ ACORDEÃO ============================ */
.cat-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin: 14px 0 16px;
}
.cat-toolbar__count { font-family: var(--mono); font-size: .73rem; color: var(--muted); }
.cat-toolbar__count b { color: var(--cyan); font-weight: 600; }
.cat-toolbar__actions { display: flex; gap: 8px; }

.acc { display: flex; flex-direction: column; gap: 11px; }

.acc__item {
  --h: 214;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, var(--sheen-a), var(--sheen-b));
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, background .3s;
}
.acc__item:hover { border-color: var(--line-strong); }
.acc__item.open {
  border-color: hsla(var(--h), 88%, 60%, .45);
  box-shadow: 0 0 0 1px hsla(var(--h), 88%, 60%, .10), 0 30px 60px -34px hsla(var(--h), 88%, 50%, .5);
}

.acc__head { width: 100%; display: flex; align-items: center; gap: 15px; padding: 17px 20px; text-align: left; }
.acc__icon {
  width: 42px; height: 42px; flex: none; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--h), 88%, var(--catL));
  background: hsla(var(--h), 90%, 55%, var(--catA));
  border: 1px solid hsla(var(--h), 90%, 60%, .28);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
.acc__icon svg { width: 19px; height: 19px; }
.acc__item.open .acc__icon { box-shadow: 0 0 24px -6px hsla(var(--h), 90%, 55%, .7); transform: scale(1.04); }

.acc__text { flex: 1; min-width: 0; }
.acc__title {
  display: block; font-family: var(--display); font-size: .98rem; font-weight: 700;
  color: var(--head); letter-spacing: -.02em; line-height: 1.25;
}
.acc__desc {
  display: block; font-size: .79rem; color: var(--muted); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc__count {
  flex: none; font-family: var(--mono); font-size: .7rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  color: hsl(var(--h), 88%, var(--catL));
  background: hsla(var(--h), 90%, 55%, var(--catA));
  border: 1px solid hsla(var(--h), 90%, 60%, .26);
}
.acc__chev { flex: none; display: flex; color: var(--muted); transition: transform .3s cubic-bezier(.16,1,.3,1), color .25s; }
.acc__chev svg { width: 18px; height: 18px; }
.acc__item.open .acc__chev { transform: rotate(180deg); color: hsl(var(--h), 88%, var(--catL)); }

.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.16,1,.3,1); }
.acc__item.open .acc__body { grid-template-rows: 1fr; }
.acc__bodyInner { overflow: hidden; min-height: 0; }
.acc__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px;
  padding: 4px 18px 20px;
}

/* LINHA DO AGENTE */
.agent {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 13px; border-radius: var(--r-md);
  background: var(--row-bg);
  border: 1px solid var(--row-line);
  transition: background .2s, border-color .2s, transform .2s cubic-bezier(.16,1,.3,1);
}
.agent:hover {
  background: var(--row-bg-hover);
  border-color: hsla(var(--h), 88%, 60%, .4);
  transform: translateX(2px);
}
.agent__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: hsl(var(--h), 88%, 58%);
  box-shadow: 0 0 10px hsla(var(--h), 90%, 55%, .8);
}
.agent__body { flex: 1; min-width: 0; cursor: pointer; }
.agent__title {
  font-size: .86rem; font-weight: 700; color: var(--text);
  line-height: 1.3; transition: color .2s;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.agent__body:hover .agent__title { color: hsl(var(--h), 88%, var(--catL)); }
.agent__meta {
  display: block; font-family: var(--mono); font-size: .66rem; color: var(--dim);
  margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.agent__actions { display: flex; align-items: center; gap: 5px; flex: none; }
.agent__act {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); border: 1px solid var(--line); background: var(--glass);
  transition: color .2s, background .2s, border-color .2s;
}
.agent__act svg { width: 14px; height: 14px; }
.agent__act:hover { color: var(--head); background: var(--glass-hover); border-color: var(--line-strong); }
.agent__act--go:hover {
  color: hsl(var(--h), 88%, var(--catL));
  border-color: hsla(var(--h), 88%, 60%, .5);
  background: hsla(var(--h), 88%, 55%, .14);
}

mark { background: var(--mark-bg); color: var(--mark-fg); border-radius: 3px; padding: 0 2px; }

.empty { padding: 46px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty p { font-size: .87rem; color: var(--muted); margin-bottom: 14px; }
.hidden { display: none !important; }

/* ============================ ETAPAS ============================ */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 22px; }
.step__n {
  width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  color: var(--btn-fg); background: var(--grad-primary); margin-bottom: 14px;
}
.step:nth-child(2) .step__n { background: linear-gradient(135deg, var(--cyan), var(--violet)); }
.step:nth-child(3) .step__n { background: linear-gradient(135deg, var(--violet), var(--emerald)); }
.step h3 { font-family: var(--display); font-size: .95rem; font-weight: 700; color: var(--head); margin-bottom: 5px; letter-spacing: -.02em; }
.step p { font-size: .82rem; color: var(--muted); }

/* ============================ SERVIDOR MCP (NOVO ECOSSISTEMA) ============================ */
.mcp-ecosystem {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.25fr);
  gap: 22px;
  align-items: stretch;
}

.mcp-ecosystem__visual {
  display: flex;
  flex-direction: column;
}

.mcp-visual-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(168deg, var(--panel-solid), var(--panel-solid-2));
  border-color: var(--line-strong);
  height: 100%;
}

.mcp-visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 50% at 50% 10%, rgba(34, 211, 238, .16), transparent 75%);
}

.mcp-visual-card > * {
  position: relative;
  z-index: 1;
}

.mcp-visual-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.mcp-visual-card__frame {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(0, 0, 0, .4);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, .65), 0 0 36px -14px rgba(34, 211, 238, .25);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.mcp-visual-card:hover .mcp-visual-card__frame {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, .45);
  box-shadow: 0 16px 44px -12px rgba(0, 0, 0, .75), 0 0 46px -10px rgba(34, 211, 238, .4);
}

.mcp-visual-card__img {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: calc(var(--r-md) - 2px);
}

.mcp-visual-card__platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding-top: 4px;
}

.mcp-ecosystem__content {
  display: flex;
  flex-direction: column;
}

.mcp-content-card {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(168deg, var(--panel-solid), var(--panel-solid-2));
  border-color: var(--line-strong);
  height: 100%;
}

.mcp-content-card > * {
  position: relative;
  z-index: 1;
}

.mcp-content-card__head h3 {
  font-family: var(--display);
  font-size: 1.34rem;
  font-weight: 700;
  color: var(--head);
  letter-spacing: -.025em;
  line-height: 1.3;
  margin-top: 10px;
  margin-bottom: 8px;
}

.mcp-content-card__lead {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}

.mcp-content-card__lead strong {
  color: var(--soft);
  font-weight: 700;
}

.mcp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.mcp-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--glass);
  border: 1px solid var(--line);
  transition: border-color .2s, background .2s, transform .2s;
}

.mcp-feature:hover {
  background: var(--glass-hover);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.mcp-feature__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(34, 211, 238, .28);
}

.mcp-feature__icon svg {
  width: 16px;
  height: 16px;
}

.mcp-feature:nth-child(2) .mcp-feature__icon {
  color: var(--violet);
  background: rgba(139, 123, 255, .12);
  border-color: rgba(139, 123, 255, .28);
}

.mcp-feature:nth-child(3) .mcp-feature__icon {
  color: var(--emerald);
  background: rgba(52, 211, 153, .12);
  border-color: rgba(52, 211, 153, .28);
}

.mcp-feature h4 {
  font-family: var(--display);
  font-size: .84rem;
  font-weight: 700;
  color: var(--head);
  margin-bottom: 2px;
  line-height: 1.25;
}

.mcp-feature p {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Card VIP de Agendamento */
.mcp-schedule-card {
  margin-top: auto;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(145deg, rgba(37, 211, 102, .09), rgba(34, 211, 238, .05));
  border: 1px solid rgba(37, 211, 102, .32);
  box-shadow: 0 10px 28px -12px rgba(37, 211, 102, .25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mcp-schedule-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #25D366;
}

.mcp-schedule-card__badge svg {
  width: 14px;
  height: 14px;
}

.mcp-schedule-card h4 {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--head);
  letter-spacing: -.02em;
  margin: 0;
}

.mcp-schedule-card p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.mcp-schedule-card__action {
  margin-top: 4px;
}

.btn--whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff !important;
  border: 1px solid rgba(37, 211, 102, .5);
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, .65);
  font-size: .85rem;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  text-decoration: none;
}

.btn--whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .85);
  color: #ffffff !important;
}

.btn--whatsapp svg {
  width: 16px;
  height: 16px;
}

.mcp-schedule-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  color: var(--dim);
  margin-top: 2px;
}

.mcp-schedule-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mcp-schedule-card__meta svg {
  width: 12px;
  height: 12px;
  color: var(--emerald);
}

.mcp-schedule-card__meta b {
  color: var(--line-strong);
  font-weight: 400;
}

.mcp__platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 2px; }
.mcp__plat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; color: var(--soft);
  background: var(--glass); border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s;
}
.mcp__plat svg { width: 13px; height: 13px; color: var(--cyan); }
.mcp__plat:hover { color: var(--head); background: var(--glass-hover); border-color: var(--line-strong); }

.mcp__tagline {
  margin-top: 22px; text-align: center;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--dim);
}

/* ============================ MODAL ============================ */
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(2, 4, 9, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__panel {
  width: 100%; max-width: 590px; max-height: 86vh; overflow-y: auto;
  background: linear-gradient(168deg, var(--panel-solid), var(--panel-solid-2));
  border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  padding: 26px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
  transform: translateY(14px) scale(.98); transition: transform .28s cubic-bezier(.16,1,.3,1);
}
.modal.open .modal__panel { transform: translateY(0) scale(1); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.modal__head h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 700; color: var(--head); letter-spacing: -.025em; margin: 9px 0 5px; }
.modal__head .mono { font-size: .7rem; color: var(--dim); }
.modal__close {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--line); color: var(--muted);
}
.modal__close:hover { color: var(--head); background: var(--glass-hover); }
.modal__close svg { width: 15px; height: 15px; }
.modal__body { padding: 18px 0; display: flex; flex-direction: column; gap: 14px; }
.modal__body > p { font-size: .87rem; color: var(--soft); }
.modal__note { padding: 14px; border-radius: var(--r-md); background: rgba(76, 141, 255, .07); border: 1px solid rgba(76, 141, 255, .2); }
.modal__note b { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-azure); margin-bottom: 6px; }
.modal__note p { font-size: .83rem; color: var(--muted); }
.modal__keys { display: flex; flex-wrap: wrap; gap: 6px; }
.modal__keys span { font-family: var(--mono); font-size: .66rem; color: var(--dim); padding: 3px 8px; border-radius: 6px; background: var(--glass); border: 1px solid var(--line); }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ============================ TOAST / TOPO ============================ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 140;
  display: flex; align-items: center; gap: 9px;
  padding: 13px 18px; border-radius: var(--r-md);
  background: var(--panel-solid); border: 1px solid rgba(53, 214, 162, .45);
  color: var(--head); font-size: .84rem; font-weight: 600;
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .5);
  transform: translateY(90px); opacity: 0;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 16px; height: 16px; color: var(--emerald); }

.totop {
  position: fixed; bottom: 24px; left: 24px; z-index: 50;
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-solid); border: 1px solid var(--line); color: var(--muted);
  backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: all .25s;
}
.totop.show { opacity: 1; visibility: visible; }
.totop:hover { color: var(--head); border-color: var(--azure); box-shadow: 0 0 20px -6px var(--azure); }
.totop svg { width: 16px; height: 16px; }

/* ============================ RODAPÉ ============================ */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 26px 0; margin-top: 30px; }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.foot__inner img { width: 28px; height: 28px; object-fit: cover; border-radius: 8px; }
.foot__brand { display: flex; align-items: center; gap: 10px; }
.foot__links { display: flex; gap: 18px; }
.foot__links a:hover { color: var(--cyan); }

/* ============================ MOVIMENTO ============================ */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================ RESPONSIVO ============================ */
@media (max-width: 1024px) {
  .bridge { grid-template-columns: 1fr; }
  .mcp-ecosystem { grid-template-columns: 1fr; gap: 20px; }
  .mcp-visual-card__frame { max-width: 520px; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .acc__grid { grid-template-columns: minmax(0, 1fr); }
  .tools { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shell { padding: 0 16px; }
  .hero { padding: 40px 0 24px; }
  .hero__orb { width: 168px; height: 168px; margin-bottom: 24px; }
  .hero__actions .btn { width: 100%; }
  .search input { padding: 13px 46px 13px 44px; font-size: .88rem; }
  .search__kbd { display: none; }
  .search__clear { right: 14px; }
  .cat-toolbar { justify-content: center; }
  .acc__head { padding: 14px 15px; gap: 12px; }
  .acc__desc { display: none; }
  .acc__grid { padding: 2px 13px 16px; }
  .bridge { padding: 20px; }
  .mcp-visual-card { padding: 16px; }
  .mcp-content-card { padding: 20px 16px; }
  .mcp-features { grid-template-columns: 1fr; }
  .btn--whatsapp { font-size: .8rem; padding: 10px 14px; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
  .totop { display: none; }
  .foot__inner { flex-direction: column; text-align: center; }
}
