/* ============================================================
   LANGWIZARD — Estilos & Classes
   Conteúdo LangWizard · estética Buildkite
   Aeonik + Input Mono · roxo/navy sobre quase-branco
   ============================================================ */

/* ---- reset & base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--jade-soft); color: #fff; }

/* ---- atmosfera ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 80% -10%, var(--atmos-1), transparent 60%),
    radial-gradient(48vw 48vw at 4% 14%, var(--atmos-2), transparent 62%);
  transition: opacity .5s ease;
}
body::after { content: none; }

/* ---- barra de progresso de scroll ---- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 1000;
  width: var(--scroll, 0%);
  background: linear-gradient(90deg, var(--jade), var(--gold));
  box-shadow: 0 0 10px var(--glow);
  transition: width .08s linear;
}

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
.display {
  font-family: "Aeonik", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.04;
}
.mono {
  font-family: "Input Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.eyebrow {
  font-family: "Input Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: .84rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--jade-soft);
  font-weight: 400;
}
.grad-text {
  background: linear-gradient(120deg, #ff8e30 8%, #3c51c2 52%, #00b2ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
:root[data-theme="dark"] .grad-text {
  background: linear-gradient(120deg, #ffb15f 6%, #7d8bff 52%, #5ccbff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  position: relative;
  z-index: 1;
}
section { position: relative; z-index: 1; }

/* bloco de título de seção */
.head { max-width: 46rem; margin-bottom: 2px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin: 14px 0 18px; }
.head p { font-size: clamp(1rem, 1.5vw, 1.16rem); color: var(--text-dim); }

/* ============================================================
   NAV (pílula flutuante)
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  pointer-events: none;
  padding: 14px clamp(10px, 3vw, 18px);
  transition: padding .35s ease;
}
nav.scrolled { padding-top: 10px; }
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  max-width: 1080px; margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 11px 9px 20px;
  box-shadow: var(--shadow);
  transition: box-shadow .35s ease, padding .35s ease;
}
nav.scrolled .nav-inner {
  box-shadow: 0 6px 22px -6px rgba(21,64,212,.28), 0 0 0 1px rgba(14,47,168,.06);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Aeonik", sans-serif;
  font-weight: 500; font-size: 1.18rem; letter-spacing: -.02em;
  color: var(--text); text-decoration: none;
}
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-mark circle, .brand-mark path { transition: all .4s ease; }
.brand b { color: var(--jade-soft); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a:not(.btn):not(.gh) {
  color: var(--text-dim); text-decoration: none;
  font-size: .9rem; font-weight: 500;
  transition: color .25s ease, background .25s ease;
  padding: 8px 13px; border-radius: 999px;
}
.nav-links a:not(.btn):not(.gh):hover { color: var(--jade); background: var(--surface-2); }
@media (max-width: 900px) {
  .nav-links a:not(.btn):not(.theme):not(.gh) { display: none; }
}

/* ---- botões ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; font-weight: 500; font-size: .9rem;
  padding: 11px 20px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  font-family: "Aeonik", sans-serif;
  transition:
    transform .22s cubic-bezier(.2,.8,.2,1),
    box-shadow .3s ease,
    background .25s ease,
    border-color .25s ease,
    color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--jade); color: #fff; box-shadow: 0 1px 2px rgba(14,47,168,.3); }
.btn-primary:hover { background: var(--jade-deep); transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(21,64,212,.6); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--jade-soft); color: var(--jade); transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dim);
  cursor: pointer; transition: all .3s ease;
}
.icon-btn:hover { color: var(--jade); border-color: var(--jade-soft); }
.theme svg { width: 17px; height: 17px; }
.gh { display: flex; align-items: center; gap: 7px; }
.gh svg { width: 17px; height: 17px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 2px;
  background: linear-gradient(var(--bg-2) 0, var(--bg) 640px);
}
.hero .wrap { display: block; text-align: center; }
.hero-copy { position: relative; max-width: 900px; margin-inline: auto; }
.hero-copy .sub { margin-inline: auto; }
.hero-copy .hero-cta, .hero-copy .hero-trust { justify-content: center; }

.hero h1 { font-size: clamp(2.8rem, 7.6vw, 5.6rem); margin-bottom: 24px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span {
  display: block; transform: translateY(110%);
  animation: riseIn .9s cubic-bezier(.16,1,.3,1) forwards;
}
.hero h1 .line:nth-child(2) span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) span { animation-delay: .24s; }
@keyframes riseIn { to { transform: translateY(0); } }

.hero p.sub {
  font-size: clamp(1.05rem, 1.7vw, 1.26rem); color: var(--text-dim);
  max-width: 46em; margin-bottom: 32px;
  opacity: 0; animation: fadeUp .8s ease .55s forwards;
}
@media (max-width: 920px) { .hero p.sub { margin-inline: auto; } }

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .8s ease .7s forwards;
}
@media (max-width: 920px) { .hero-cta { justify-content: center; } }

.hero-trust {
  margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap;
  color: var(--text-faint); font-size: .85rem;
  opacity: 0; animation: fadeUp .8s ease .9s forwards;
}
@media (max-width: 920px) { .hero-trust { justify-content: center; } }
.hero-trust b { color: var(--text); font-weight: 600; font-family: "Aeonik", sans-serif; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SEÇÃO: COMECE A USAR AGORA
   ============================================================ */
.how-connect-sec {
  padding: clamp(80px, 13vh, 150px) 0;
  background: var(--bg-2);
}
.connect-diagram {
  margin-top: clamp(34px, 6vh, 64px);
  max-width: 850px; margin-inline: auto;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: clamp(18px, 3.5vw, 44px);
}
.connect-agent { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; }
.connect-agent img {
  width: clamp(118px, 15vw, 172px); height: auto;
  filter: drop-shadow(0 18px 42px rgba(21,64,212,.32));
}
.connect-agent figcaption {
  font-family: "Input Mono", "JetBrains Mono", monospace;
  font-size: .76rem; letter-spacing: .1em; color: var(--text-dim);
}
.connect-link { display: flex; align-items: center; color: var(--gold); }
.connect-link .cl-line {
  width: clamp(18px, 3.5vw, 56px); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--jade), var(--gold));
}
.connect-link svg { width: 24px; height: 24px; margin-left: -3px; }
.connect-code { margin-top: 0; min-width: 0; }
@media (max-width: 820px) {
  .connect-diagram { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .connect-link { transform: rotate(90deg); margin: 6px 0; }
  .connect-code { width: 100%; }
}

/* ============================================================
   SEÇÃO: PRODUTO LW-MCP
   ============================================================ */
.product {
  padding-block: clamp(90px, 13vw, 150px);
  background: var(--bg);
}
.product-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; align-items: stretch; margin-top: 40px;
}
@media (max-width: 920px) { .product-grid { grid-template-columns: 1fr; margin-top: 40px; } }

.offer {
  border-radius: 24px; padding: 34px;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface); box-shadow: var(--shadow);
}
.offer.featured {
  border-color: transparent;
  background: linear-gradient(165deg, var(--surface-2), var(--surface) 60%);
  box-shadow: 0 1px 3px rgba(21,64,212,.17), 0 0 0 1.5px rgba(21,64,212,.5);
}
.offer .ribbon {
  position: absolute; top: 18px; right: -36px; rotate: 45deg;
  background: var(--jade); color: #fff;
  font-size: .66rem; font-weight: 500; letter-spacing: .12em;
  padding: 5px 44px;
  font-family: "Input Mono", "JetBrains Mono", monospace;
}
.offer h3 {
  font-family: "Aeonik", sans-serif; font-size: 1.6rem;
  font-weight: 500; letter-spacing: -.02em; margin-bottom: 8px;
}
.offer .lead { color: var(--text-dim); margin-bottom: 22px; }
.offer ul { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; }
.offer li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; color: var(--text-dim); }
.offer li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #00b368; }
.offer .btn { margin-top: auto; justify-content: center; }

/* ---- bloco de código ---- */
.code-card {
  margin-top: 26px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(182,84,251,.2); background: var(--code-bg);
  box-shadow: var(--code-glow);
}
.code-top {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 17px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.code-top .tl { width: 11px; height: 11px; border-radius: 50%; background: #2b58e8; }
.code-top .tl:nth-child(2) { background: #c84197; }
.code-top .tl:nth-child(3) { background: #ce505d; }
.code-top span {
  margin-left: 10px;
  font-family: "Input Mono", "JetBrains Mono", monospace;
  font-size: .78rem; color: #9e99c4;
}
.code-body {
  padding: 22px 20px;
  font-family: "Input Mono", "JetBrains Mono", monospace;
  font-size: .86rem; line-height: 1.9; color: #e2dff1;
  overflow-x: auto; white-space: pre;
}
.code-body .c { color: #9e99c4; }
.code-body .k { color: #a8bfff; }
.code-body .s { color: #ffc976; }
.code-body .f { color: #7a90fe; }
.code-body .p { color: #e2dff1; }

/* ============================================================
   SEÇÃO: MARKETPLACE / GUILDA
   ============================================================ */
.market {
  padding-block: clamp(90px, 13vw, 150px);
  background: var(--bg-2);
}
.skill-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 20px;
}
@media (max-width: 920px) { .skill-grid { grid-template-columns: 1fr 1fr; margin-top: 20px; } }
@media (max-width: 600px) { .skill-grid { grid-template-columns: 1fr; margin-top: 20px; } }

.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px; box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column; gap: 14px; cursor: default;
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.skill-card .sk-top { display: flex; align-items: center; justify-content: space-between; }
.skill-card .sk-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--surface-2); border: 1px solid var(--border);
}
.skill-card .ver { font-family: "Input Mono", "JetBrains Mono", monospace; font-size: .72rem; color: var(--text-faint); }
.skill-card h4 { font-family: "Aeonik", sans-serif; font-size: 1.2rem; font-weight: 500; letter-spacing: -.01em; }
.skill-card p { font-size: .9rem; color: var(--text-dim); flex: 1; }
.skill-card .sk-meta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 13px;
  font-size: .8rem; color: var(--text-faint);
}
.skill-card .sk-meta .au { display: flex; align-items: center; gap: 7px; }
.skill-card .av {
  width: 21px; height: 21px; border-radius: 50%;
  background: linear-gradient(135deg, var(--jade-soft), var(--gold));
}
.skill-card .dl { display: flex; align-items: center; gap: 5px; }
.skill-card .dl svg { width: 14px; height: 14px; color: var(--jade); }

/* ============================================================
   SEÇÃO: STATS
   ============================================================ */
.stats { padding-block: clamp(60px, 9vw, 100px); background: var(--bg); }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; text-align: center;
}
@media (max-width: 760px) { .stat-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
.stat .n {
  font-family: "Aeonik", sans-serif; font-weight: 500;
  font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.02em; line-height: 1;
  background: linear-gradient(120deg, #1540d4, #4a6ef5 60%, #7baaf7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
:root[data-theme="dark"] .stat .n {
  background: linear-gradient(120deg, #7baaf7, #c0d2ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .l { color: var(--text-dim); font-size: .92rem; margin-top: 10px; }

/* ============================================================
   SEÇÃO: DEPOIMENTOS
   ============================================================ */
.voices { padding-block: clamp(70px, 11vw, 130px); background: var(--bg-2); }
.voices .voice-grid { margin-top: 40px; }
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .voice-grid { grid-template-columns: 1fr; } }
.voice {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px;
  position: relative; box-shadow: var(--shadow);
}
.voice .q {
  font-family: "Aeonik", sans-serif; font-weight: 500;
  font-size: 1.08rem; line-height: 1.5; margin-bottom: 20px; letter-spacing: -.01em;
}
.voice .who { display: flex; align-items: center; gap: 12px; }
.voice .av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--jade-soft), var(--gold)); flex: none;
}
.voice .who b { display: block; font-size: .92rem; font-weight: 600; }
.voice .who span { font-size: .8rem; color: var(--text-faint); font-family: "Input Mono", "JetBrains Mono", monospace; }
.disclaimer { text-align: center; color: var(--text-faint); font-size: .78rem; margin-top: 26px; font-style: italic; }

/* ============================================================
   SEÇÃO: FINAL CTA
   ============================================================ */
.finale {
  padding-block: clamp(90px, 14vw, 170px);
  text-align: center; position: relative; overflow: hidden;
  background: var(--bg);
}
.finale-card {
  position: relative; border: 1px solid var(--border); border-radius: 28px;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 60px); overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(165deg, var(--surface-2), var(--surface) 62%);
}
.finale-card::before {
  content: ""; position: absolute; width: 140%; height: 140%; top: -20%; left: -20%; z-index: 0;
  background: radial-gradient(circle at 30% 20%, var(--glow), transparent 45%);
  opacity: .7; animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(12%, 8%) scale(1.1); } }
.finale-card > * { position: relative; z-index: 1; }
.finale h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin-bottom: 18px; }
.finale p { color: var(--text-dim); font-size: clamp(1.02rem, 1.7vw, 1.2rem); max-width: 34em; margin: 0 auto 34px; }
.signup {
  display: flex; gap: 12px; max-width: 480px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.signup input {
  flex: 1; min-width: 220px; padding: 14px 20px;
  border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  font-size: .96rem; font-family: inherit; outline: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.signup input:focus {
  border-color: var(--jade-soft);
  box-shadow: 0 0 0 3px rgba(74,110,245,.18);
}
.signup .msg {
  flex-basis: 100%; color: var(--jade); font-size: .9rem;
  font-family: "Input Mono", "JetBrains Mono", monospace; min-height: 1.2em;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  /* sobrescreve tokens para manter dark sempre no footer */
  --text:          #fdfdff;
  --text-dim:      #c3cade;
  --text-faint:    #9aa2bb;
  --border:        rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.18);
  --jade:          #7baaf7;
  --jade-soft:     #c0d2ff;
  --surface:       #0b1535;

  border-top: 1px solid rgba(255,255,255,.08);
  padding: 60px 0 40px;
  margin-top: 0;
  background: #020a1c;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand p { color: var(--text-dim); font-size: .9rem; max-width: 24em; margin-top: 14px; }
.foot-col h5 {
  font-size: .8rem; letter-spacing: .02em; text-transform: none;
  color: var(--jade-soft); margin-bottom: 16px;
  font-family: "Input Mono", "JetBrains Mono", monospace;
}
.foot-col a {
  display: block; color: var(--text-dim); text-decoration: none;
  font-size: .92rem; margin-bottom: 11px; transition: color .25s ease;
}
.foot-col a:hover { color: var(--jade); }
.foot-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; color: var(--text-faint); font-size: .84rem;
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.js-enabled .reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.js-enabled .reveal.in { opacity: 1; transform: none; }
.js-enabled .reveal.d1 { transition-delay: .08s; }
.js-enabled .reveal.d2 { transition-delay: .16s; }
.js-enabled .reveal.d3 { transition-delay: .24s; }
.js-enabled .reveal.d4 { transition-delay: .32s; }
.js-enabled .reveal.d5 { transition-delay: .40s; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero h1 .line span { transform: none; }
  .tri-fig { animation: none !important; }
}

/* ============================================================
   FIGURAS — elenco do LangWizard (pixel-art wizards)
   ============================================================ */
img.wiz { display: block; -webkit-user-drag: none; user-select: none; image-rendering: auto; }
.brand-mark.wiz { width: 30px; height: 34px; object-fit: contain; }
.foot-brand .brand-mark.wiz { width: 34px; height: 40px; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-15px); }
}

/* ============================================================
   TRINDADE — as três figuras
   ============================================================ */
.trinity { padding-block: clamp(82px, 12vw, 140px); background: var(--bg); }
.tri-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 40px;
}
@media (max-width: 860px) { .tri-grid { grid-template-columns: 1fr; } }
.tri-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 24px;
  padding: 34px 30px 30px; background: var(--surface); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: flex-start; min-height: 330px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.tri-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tri-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s ease;
}
.tri-card:hover::before { transform: scaleX(1); }
.tri-card.tool   { --accent: var(--purple-soft); }
.tri-card.skill  { --accent: var(--gold-deep); }
.tri-card.prompt { --accent: var(--ember); }
.tri-fig {
  position: absolute; right: -14px; bottom: -12px; width: 40%; max-width: 185px;
  pointer-events: none; filter: drop-shadow(0 16px 26px rgba(20,13,48,.26)); z-index: 0;
}
.tri-card > * { position: relative; z-index: 1; }
.tri-card .kicker {
  font-family: "Input Mono", "JetBrains Mono", monospace;
  font-size: .74rem; letter-spacing: .05em; color: var(--accent); margin-bottom: 14px;
}
.tri-card h3 {
  font-family: "Aeonik", sans-serif; font-weight: 500;
  font-size: 1.55rem; letter-spacing: -.02em; margin-bottom: 10px;
}
.tri-card p { color: var(--text-dim); font-size: .95rem; max-width: 15.5em; }
.tri-card .chip {
  margin-top: auto;
  font-family: "Input Mono", "JetBrains Mono", monospace; font-size: .71rem;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-faint); background: var(--surface);
}

/* ============================================================
   DIAGRAMA 1 — agentes → hub MCP → figuras
   ============================================================ */
.diag { padding-block: clamp(78px, 11vw, 130px); background: var(--bg); }
.diag-stage {
  position: relative; display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: stretch; height: clamp(380px, 46vw, 470px); margin-top: 20px;
}
.diag-col { display: flex; flex-direction: column; justify-content: space-around; align-items: center; gap: 10px; }
.diag-col.hub-col { justify-content: center; }
.diag-cap {
  position: absolute; top: -30px;
  font-family: "Input Mono", "JetBrains Mono", monospace;
  font-size: .72rem; letter-spacing: .05em; color: var(--text-faint); white-space: nowrap;
}
.diag-cap.c1 { left: 0; }
.diag-cap.c2 { left: 50%; transform: translateX(-50%); }
.diag-cap.c3 { right: 0; }

.diag-agent {
  position: relative; z-index: 2;
  width: clamp(58px, 7vw, 76px); height: clamp(58px, 7vw, 76px);
  border-radius: 18px; background: #ffffff;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: grid; place-items: center;
  transition: transform .25s ease, border-color .25s ease;
}
.diag-agent:hover { transform: scale(1.06); border-color: var(--jade-soft); }
.diag-agent img { width: 58%; height: 58%; object-fit: contain; }

.diag-col.agents-col {
  display: flex; flex-direction: column;
  justify-content: space-around; align-items: center; gap: 12px; padding-block: 6px;
}
.diag-col.agents-col .diag-agent {
  width: clamp(48px, 5.4vw, 62px); height: clamp(48px, 5.4vw, 62px); border-radius: 16px;
}

.diag-link { position: relative; }
.diag-link svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.diag-link .wire { fill: none; stroke: var(--diag-wire); stroke-width: 1.6; opacity: .5; vector-effect: non-scaling-stroke; }
.diag-link .flow {
  fill: none; stroke: var(--diag-flow); stroke-width: 2; opacity: .85;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 5 13; stroke-linecap: round; animation: wireflow 1.4s linear infinite;
}
.diag-link.out .flow { stroke: var(--diag-flow-out); }
.diag-stage:has(.diag-col:last-child .diag-wiz:hover) .diag-link.out .flow { animation-direction: reverse; }

.diag-wires {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; overflow: visible;
}
.diag-wires .wire { fill: none; stroke: var(--diag-wire); stroke-width: 1.6; opacity: .5; vector-effect: non-scaling-stroke; }
.diag-wires .flow {
  fill: none; stroke: var(--diag-flow); stroke-width: 2; opacity: .85;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 5 13; stroke-linecap: round; animation: wireflow 1.4s linear infinite;
}
@media (max-width: 820px) { .diag-wires { display: none; } }
@media (prefers-reduced-motion: reduce) { .diag-wires .flow { animation: none; } }
@keyframes wireflow { to { stroke-dashoffset: 18; } }
@keyframes wireflow-dia3 { to { stroke-dashoffset: 23; } }

.diag-hub {
  position: relative; z-index: 3;
  width: clamp(108px, 13vw, 148px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 46px -16px rgba(21,64,212,.5);
}
.diag-hub::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1.5px dashed var(--jade-soft); opacity: .5; animation: spin 30s linear infinite;
}
.diag-hub img { width: 48%; height: 48%; object-fit: contain; }
html[data-theme="dark"] .diag-hub img { filter: invert(1); }
.diag-hub .hub-lbl {
  position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-family: "Input Mono", "JetBrains Mono", monospace;
  font-size: .72rem; color: var(--jade-soft); font-weight: 700;
}

.diag-wiz {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 18px 9px 11px; border-radius: 18px; background: #ffffff;
  border: 1px solid var(--accent); border-left: 3px solid var(--accent);
  box-shadow: var(--shadow); min-width: clamp(150px, 19vw, 210px);
  transition: transform .25s ease;
}
.diag-wiz:hover { transform: translateX(-4px); }
.diag-wiz.tool   { --accent: var(--purple-soft); }
.diag-wiz.skill  { --accent: var(--gold-deep); }
.diag-wiz.prompt { --accent: var(--ember); }
.diag-wiz img { width: 38px; height: 46px; object-fit: contain; flex: none; }
.diag-wiz .wz {
  font-family: "Aeonik", sans-serif; font-weight: 500;
  font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.1; color: #06103a;
}
.diag-wiz .wz small {
  display: block; font-family: "Input Mono", "JetBrains Mono", monospace;
  font-weight: 400; font-size: .66rem; letter-spacing: .03em;
  color: #5a6480; margin-top: 3px;
}

/* ============================================================
   DIAGRAMA 2 — Especificação centralizada na nuvem
   ============================================================ */
.dia2-board { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); margin-top: 52px; }
.dia2-row {
  display: grid;
  grid-template-columns: minmax(0,200px) minmax(26px,1fr) auto minmax(26px,1fr) minmax(0,216px);
  align-items: center;
}
.dia2-cell { display: flex; align-items: center; }
.dia2-cell--left  { justify-content: center; }
.dia2-cell--mcp   { justify-content: center; }
.dia2-cell--right { justify-content: flex-start; }

.dia2-mcp { position: relative; display: flex; align-items: center; justify-content: center; }
.dia2-mcp-orb {
  width: clamp(50px, 6vw, 64px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 28px -14px rgba(21,64,212,.55);
}
.dia2-mcp-orb img { width: 54%; height: 54%; object-fit: contain; }
html[data-theme="dark"] .dia2-mcp-orb img { filter: invert(1); }
.dia2-mcp-lbl {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  font-family: "Input Mono", "JetBrains Mono", monospace;
  font-size: .98rem; font-weight: 700; color: var(--text-dim); white-space: nowrap;
}

.dia2-creator { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.dia2-create-lbl {
  background: var(--surface); border: 1px solid var(--purple-soft); border-radius: 10px;
  font-family: "Input Mono", "JetBrains Mono", monospace;
  font-size: .62rem; color: var(--purple-soft);
  padding: 5px 11px; text-align: center; line-height: 1.6;
  box-shadow: 0 0 0 3px rgba(167,66,237,.07);
}
.dia2-create-lbl em { font-style: normal; color: var(--text-dim); }

.dia2-row--create .dia2-creator { position: relative; gap: 0; }
.dia2-row--create .dia2-create-lbl {
  position: absolute; bottom: calc(100% + 10px);
  left: 50%; transform: translateX(-50%); white-space: nowrap;
}
.dia2-row--create { padding-top: 56px; }
.dia2-row--create .dia2-cell--left { justify-content: flex-end; }

.dia2-agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dia2-agents-grid .diag-agent {
  width: clamp(42px, 5vw, 56px); height: clamp(42px, 5vw, 56px); border-radius: 13px;
}

/* fios dia2 */
.dia2-wire { width: 100%; }
.dia2-wire-svg { width: 100%; height: 26px; display: block; overflow: visible; }
.dia2-wtrack { fill: none; stroke-width: 1.4; opacity: .22; vector-effect: non-scaling-stroke; }
.dia2-wtrack--purple { stroke: var(--purple-soft); }
.dia2-wtrack--gold   { stroke: var(--gold-deep); }
.dia2-wflow { fill: none; stroke-width: 3.8; stroke-dasharray: 8 15; stroke-linecap: round; opacity: .88; vector-effect: non-scaling-stroke; }
.dia2-wflow--purple { stroke: var(--purple-soft); }
.dia2-wflow--gold   { stroke: var(--gold-deep); }
.dia2-arrow--purple { fill: var(--purple-soft); }
.dia2-arrow--gold   { fill: var(--gold-deep); }
@keyframes wireflow-dia2 { to { stroke-dashoffset: 23; } }
.dia2-wflow--purple { animation: wireflow-dia2 .85s linear infinite reverse; }
.dia2-wflow--gold   { animation: wireflow-dia2 .85s linear infinite; }
@media (prefers-reduced-motion: reduce) { .dia2-wflow { animation: none; } }

@media (max-width: 760px) {
  .dia2-board { gap: 30px; margin-top: 34px; }
  .dia2-row { display: flex; flex-direction: column; gap: 10px; }
  .dia2-row--fetch { flex-direction: column-reverse; }
  .dia2-cell { justify-content: center; }
  .dia2-cell--right { justify-content: center; }
  .dia2-wire { width: auto; display: flex; justify-content: center; }
  .dia2-wire-svg { display: none; }
  .dia2-wire::after { content: ""; width: 2px; height: 24px; border-radius: 2px; }
  .dia2-row--create .dia2-wire::after {
    background: repeating-linear-gradient(var(--purple) 0 4px, transparent 4px 9px);
  }
  .dia2-row--fetch .dia2-wire::after {
    background: repeating-linear-gradient(var(--gold-deep) 0 4px, transparent 4px 9px);
  }
  .dia2-mcp { margin-block: 2px; }
  .dia2-mcp-lbl { font-size: .62rem; }
  .dia2-create-lbl { max-width: 240px; }
}
@media (max-width: 380px) { .dia2-agents-grid .diag-agent { width: 40px; height: 40px; } }

/* ============================================================
   DIAGRAMA 3 — Multi-verso de servidores MCP
   ============================================================ */
.dia3-stage {
  position: relative; display: grid; isolation: isolate;
  grid-template-columns: 1fr 1fr; align-items: stretch;
  column-gap: clamp(30px, 4vw, 50px); margin-top: 56px;
  max-width: 70%; margin-right: auto; margin-left: auto;
}
.dia3-wires {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none; overflow: visible;
}
.dia3-wires .wire { fill: none; stroke: var(--diag-wire); stroke-width: 1.6; opacity: .42; vector-effect: non-scaling-stroke; }
.dia3-wires .flow {
  fill: none; stroke-width: 3.8; stroke-dasharray: 8 15; stroke-linecap: round;
  opacity: .9; vector-effect: non-scaling-stroke; animation: wireflow-dia3 1.4s linear infinite;
}
.dia3-flow-claude    { stroke: #b84400; }
.dia3-flow-openclaw  { stroke: #8b1010; }
.dia3-flow-opencode  { stroke: #111111; }
.dia3-flow-hermes    { stroke: #8f1150; }
.dia3-flow-manus     { stroke: #0d2860; }
@media (max-width: 820px) { .dia3-wires { display: none; } }
@media (prefers-reduced-motion: reduce) { .dia3-wires .flow { animation: none; } }

.dia3-cloud, .dia3-world {
  position: relative; border: 1.5px dashed var(--jade-soft); border-radius: 24px;
  padding: 54px 22px 44px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface) 70%);
  box-shadow: 0 14px 40px -22px rgba(21,64,212,.5);
  display: flex; flex-direction: column;
}
.dia3-world {
  border-color: var(--gold-deep);
  box-shadow: 0 14px 40px -22px rgba(230,167,4,.5);
}
.dia3-mid { display: none; }
.dia3-box-title {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 16px; border-radius: 999px;
  background: var(--jade); color: #fff;
  box-shadow: 0 6px 18px -8px rgba(21,64,212,.7);
  font-family: "Input Mono", "JetBrains Mono", monospace;
  font-size: .74rem; font-weight: 700; letter-spacing: .03em;
}
.dia3-world .dia3-box-title {
  background: var(--gold-deep);
  box-shadow: 0 6px 18px -8px rgba(230,167,4,.7);
}
.dia3-box-title svg { width: 14px; height: 14px; }

.dia3-agents { display: flex; flex-direction: column; flex: 1; justify-content: space-evenly; gap: 10px; }
.dia3-agent-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; position: relative; z-index: 3;
}
.dia3-agent-orb {
  width: clamp(52px, 6vw, 66px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface);
  border: 1px solid var(--gold-deep);
  box-shadow: 0 12px 28px -14px rgba(230,167,4,.55);
  transition: transform .25s ease, border-color .25s ease;
}
.dia3-agent-item:hover .dia3-agent-orb { transform: scale(1.06); border-color: var(--gold); }
.dia3-agent-orb img { width: 52%; height: 52%; object-fit: contain; }
.dia3-agent-lbl { font-family: "Aeonik", sans-serif; font-weight: 700; font-size: .92rem; letter-spacing: -.01em; color: var(--text); }

.dia3-servers { display: flex; flex-direction: column; flex: 1; justify-content: space-evenly; gap: 10px; }
.dia3-server {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; position: relative; z-index: 3;
}
.dia3-server-orb {
  width: clamp(52px, 6vw, 66px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 28px -14px rgba(21,64,212,.55);
  transition: transform .25s ease, border-color .25s ease;
}
.dia3-server:hover .dia3-server-orb { transform: scale(1.06); border-color: var(--jade-soft); }
.dia3-server-orb img { width: 52%; height: 52%; object-fit: contain; }
html[data-theme="dark"] .dia3-server-orb img { filter: invert(1); }
html[data-theme="dark"] .dia3-agent-orb img { filter: invert(1); }

.dia3-server.admin .dia3-server-orb {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(21,64,212,.10), 0 12px 28px -14px rgba(21,64,212,.6);
}
.dia3-server-lbl { line-height: 1.25; }
.dia3-server-type { font-family: "Aeonik", sans-serif; font-weight: 700; font-size: .92rem; letter-spacing: -.01em; color: var(--text); }
.dia3-server.admin .dia3-server-type { color: var(--jade-soft); }
.dia3-server-url {
  display: block; font-family: "Input Mono", "JetBrains Mono", monospace;
  font-size: .72rem; color: var(--text-faint); margin-top: 2px;
}

@media (max-width: 820px) {
  .dia3-stage { grid-template-columns: 1fr; column-gap: 0; row-gap: 24px; margin-top: 40px; max-width: 100%; }
  .dia3-mid { display: none; }
  .dia3-agents { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px; flex: none; }
  .dia3-servers { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px; flex: none; }
}

/* responsive dia1 */
@media (max-width: 820px) {
  .diag-stage { grid-template-columns: 1fr; height: auto; gap: 8px; margin-top: 54px; }
  .diag-col { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .diag-col.agents-col { flex-direction: row; flex-wrap: wrap; }
  .diag-cap { position: static; transform: none; text-align: center; margin-bottom: 4px; }
  .diag-cap.c2 { left: auto; }
  .diag-cap.c3 { right: auto; }
  .diag-link { display: flex; justify-content: center; height: 34px; }
  .diag-link svg { display: none; }
  .diag-link::after {
    content: ""; width: 2px; height: 100%;
    background: repeating-linear-gradient(var(--jade-soft) 0 4px, transparent 4px 9px); opacity: .6;
  }
  .diag-hub .hub-lbl { position: static; transform: none; margin-top: 8px; }
  .diag-wiz { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .diag-link .flow { animation: none; }
  .diag-hub::before { animation: none; }
}

/* ---- badge MCP ---- */
.mcp-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  padding: 8px 16px 8px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow);
  font-family: "Input Mono", "JetBrains Mono", monospace;
  font-size: .78rem; letter-spacing: .02em; color: var(--text-dim);
}
.mcp-badge img { width: 24px; height: 24px; object-fit: contain; }
.mcp-badge b { color: var(--text); font-weight: 700; }
html[data-theme="dark"] .mcp-badge img { filter: invert(1); }

/* ============================================================
   ECOSSISTEMA
   ============================================================ */
.eco {
  padding-block: clamp(78px, 11vw, 140px);
  position: relative; overflow: hidden; background: var(--bg-2);
}
.eco-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
@media (max-width: 860px) { .eco-cats { grid-template-columns: 1fr; } }
.eco-cat {
  border: 1px solid var(--border); border-radius: 22px; padding: 26px 26px 28px;
  background: var(--surface); box-shadow: var(--shadow);
}
.eco-cat h4 {
  font-family: "Input Mono", "JetBrains Mono", monospace;
  font-size: .78rem; letter-spacing: .04em; color: var(--jade-soft); margin-bottom: 6px;
}
.eco-cat .desc { font-size: .86rem; color: var(--text-faint); margin-bottom: 20px; }
.eco-row { display: flex; flex-wrap: wrap; gap: 11px; }
.eco-tile {
  position: relative; width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.eco-tile:hover {
  transform: translateY(-3px); border-color: var(--jade-soft);
  box-shadow: 0 8px 18px -8px rgba(21,64,212,.4);
}
.eco-tile img { width: 31px; height: 31px; object-fit: contain; }
.eco-tile::after {
  content: attr(data-name);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px); white-space: nowrap;
  font-family: "Input Mono", "JetBrains Mono", monospace; font-size: .68rem;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 7px;
  padding: 4px 8px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 5;
}
.eco-tile:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   SOLUÇÃO
   ============================================================ */
.solution { padding-block: clamp(90px, 13vw, 150px); background: var(--bg-2); }
.sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 14px; }
@media (max-width: 760px) { .sol-grid { grid-template-columns: 1fr; } }
.sol-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 30px; position: relative; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .35s ease, box-shadow .35s ease;
}
.sol-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.sol-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #ff8e30, #3c51c2, #00b2ff);
  transform: scaleX(0); transform-origin: left; transition: transform .5s ease;
}
.sol-card:hover::before { transform: scaleX(1); }
.sol-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--surface-2); color: var(--jade); border: 1px solid var(--border);
}
.sol-icon svg { width: 24px; height: 24px; }
.sol-card h3 {
  font-family: "Aeonik", sans-serif; font-size: 1.4rem;
  font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px;
}
.sol-card p { color: var(--text-dim); font-size: .97rem; }

/* ---- cabeçalho marketplace ---- */
.market-head-wrap {
  display: flex; align-items: flex-end; gap: 22px;
  justify-content: space-between; flex-wrap: wrap;
}
.market-head-wrap .head { margin-bottom: 0; }
.market-fig {
  width: 96px; flex: none;
  filter: drop-shadow(0 14px 24px rgba(230,167,4,.3));
  animation: floaty 6s ease-in-out infinite;
}
@media (max-width: 600px) { .market-fig { display: none; } }
