/* AdSoft Code v2: preto + azul da logo, luz vinda de cima, vidro só onde mostra trabalho */

:root {
  --black: #000;
  --ink: #eef2f7;
  --muted: #8b96a7;
  --faint: #5d6776;
  --blue: #3a86d0;      /* azul da logo */
  --blue-hi: #79b8ff;
  --blue-deep: #0b2a55;
  --line: rgba(255, 255, 255, .08);
  --glass-line: rgba(255, 255, 255, .13);
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 80px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Menu ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.menu { display: flex; gap: 28px; font-size: 14px; }
.menu a { color: var(--muted); text-decoration: none; transition: color .2s; }
.menu a:hover { color: var(--ink); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #4b95e6, #2a6fc0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 30px -8px rgba(58, 134, 208, .6);
}
.btn-primary:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 12px 38px -6px rgba(58, 134, 208, .85); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .03); border: 1px solid var(--glass-line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .28); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- Luz e grade (topo, contato e páginas legais) ---------- */
.lit { position: relative; overflow: hidden; isolation: isolate; }
.spot {
  position: absolute;
  left: 50%;
  top: -420px;
  width: 1400px;
  height: 860px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(58, 134, 208, .55), rgba(11, 42, 85, .32) 50%, transparent);
  z-index: -2;
  pointer-events: none;
}
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 25%, transparent 75%);
  pointer-events: none;
}
.lit-bottom .spot { top: auto; bottom: -460px; }
.lit-bottom .grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 100%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 100%, #000 25%, transparent 75%);
}

/* ---------- Tipografia ---------- */
.display {
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 700;
  margin: 0 0 24px;
  padding-bottom: .06em; /* não corta descendentes no texto com gradiente */
  background: linear-gradient(180deg, #fff 35%, #6f86a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--muted); max-width: 32em; margin: 0 0 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; color: #b6c2d2; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }

/* ---------- Topo ---------- */
.hero { padding: 96px 0 128px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.byline { font-size: 15px; font-weight: 500; color: var(--blue-hi); margin: 0 0 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .chips { margin-top: 44px; }
.hero-copy { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- Telas em vidro ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .08);
  border-radius: 18px;
}
.scene, .visual { position: relative; isolation: isolate; }
.scene::before, .visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 134, 208, .6), transparent 65%);
  filter: blur(40px);
}
.scene { height: 470px; }
.scene::before { animation: drift 14s ease-in-out infinite alternate; }
.scene .glass { position: absolute; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.scene .win { left: 0; top: 20px; width: 80%; animation-delay: .15s; }
.scene .phone { right: 0; top: 110px; animation-delay: .35s; }
.scene .flow { left: 6%; bottom: 12px; animation-delay: .55s; }

.win { padding: 14px 16px 18px; }
.win-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.win-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.win-bar em { margin-left: 8px; font-style: normal; font-size: 12px; color: var(--muted); }
.kb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kb p { margin: 0; font-size: 11px; color: var(--muted); }
.kb i, .phone i { display: block; position: relative; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); }
.kb i { height: 46px; margin-top: 8px; }
.kb i::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 13px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-hi), var(--blue-deep));
}
.kb i::after, .phone i::after {
  content: "";
  position: absolute;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .2);
}
.kb i::after { left: 36px; right: 14px; top: 15px; box-shadow: 0 9px 0 -1px rgba(255, 255, 255, .08); }

.phone { width: 158px; height: 310px; border-radius: 30px; padding: 12px 12px 16px; overflow: hidden; }
.phone::before { content: ""; display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.phone p { margin: 0 4px 10px; font-size: 11px; font-weight: 600; }
.phone i { height: 48px; margin-bottom: 8px; border-radius: 12px; }
.phone i::after { left: 10px; top: 13px; width: 55%; box-shadow: 0 12px 0 0 rgba(121, 184, 255, .55); }

.flow { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; font-size: 12px; color: #c9d5e4; }
.flow b { font-weight: 500; padding: 5px 10px; border-radius: 8px; background: rgba(58, 134, 208, .2); border: 1px solid rgba(58, 134, 208, .45); }
.flow span { width: 34px; height: 1px; background: linear-gradient(90deg, var(--blue-hi), transparent); }

/* ---------- Seções ---------- */
.section { position: relative; padding: 120px 0; }
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58, 134, 208, .5), transparent);
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { margin: 0; font-size: 18px; color: var(--muted); }

/* ---------- Projetos ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project {
  --pad-x: 36px;
  --pad-y: 36px;
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  overflow: hidden;
  transition: border-color .2s;
}
.project:has(.card-hit:hover), .project:has(.card-hit:focus-visible) { border-color: rgba(121, 184, 255, .4); }
/* cards lado a lado esticam até a mesma altura: o bolso vai para o pé de cada um */
.project:not(.project-featured) { display: flex; flex-direction: column; }
.project:not(.project-featured) > .chips { margin-bottom: 32px; }
.project:not(.project-featured) > .pocket { margin-top: auto; }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: center; }
.project-logo { margin: 0 0 12px; }
.project-logo img { display: block; width: auto; height: 32px; }
.project .kind { margin: 0 0 16px; font-size: 15px; font-weight: 500; color: var(--blue-hi); }
.project .origem {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  margin: -4px 0 20px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, .05);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.origem img { width: 24px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }

/* a folha: a primeira tela sai de um bolso de vidro no pé do card; passar o mouse puxa a folha */
.pocket {
  position: relative;
  grid-column: 1 / -1;
  height: 200px;
  margin: 32px calc(-1 * var(--pad-x)) calc(-1 * var(--pad-y));
  overflow: hidden;
}
.sheet {
  position: absolute;
  left: 50%;
  top: 24px;
  width: min(100% - 2 * var(--pad-x), 640px);
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--glass-line);
  box-shadow: 0 -16px 48px -20px rgba(58, 134, 208, .7);
  transform: translateX(-50%) rotate(-1.5deg);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.project:has(.card-hit:hover) .sheet, .project:has(.card-hit:focus-visible) .sheet { transform: translateX(-50%) translateY(-16px); }
.pocket-lip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 68px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .85));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.pocket-lip svg { width: 18px; height: 18px; color: var(--blue-hi); }
.pocket-count { color: var(--muted); font-weight: 500; }
/* o botão cobre o card inteiro: clicar em qualquer parte abre o visualizador */
.card-hit { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.card-hit:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: -3px; border-radius: 24px; }
.project p { margin: 0 0 24px; color: var(--muted); }

.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.parts li { padding: 20px; border-radius: 16px; box-shadow: none; }
.parts strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.parts span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }

.visual { height: 230px; margin-bottom: 28px; }
.visual .glass { position: absolute; }
.visual .win { left: 0; top: 18px; width: 74%; }
.visual .phone { right: 4%; top: 0; width: 118px; height: 230px; border-radius: 24px; }
.visual .phone i { height: 38px; }
.doc { width: 150px; height: 190px; padding: 22px 18px; }
.doc i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); margin-bottom: 12px; }
.doc i:first-child { width: 60%; height: 8px; background: rgba(121, 184, 255, .6); margin-bottom: 20px; }
.doc i:last-child { width: 45%; }
.doc-back { left: 22px; top: 10px; transform: rotate(-6deg); }
.doc-front { left: 48px; top: 28px; }
.tasks { right: 2%; top: 46px; width: 52%; padding: 16px; display: grid; gap: 10px; }
.tasks span { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.tasks span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--blue-hi); }
.tasks span:first-child::before { background: var(--blue-hi); }
.tasks span::after { content: ""; flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.link-arrow { position: absolute; left: 41%; top: 112px; width: 9%; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-hi)); }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--black), var(--black)) padding-box,
    linear-gradient(150deg, rgba(121, 184, 255, .65), rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, .04)) border-box;
}
.service svg { width: 28px; height: 28px; margin-bottom: 20px; color: var(--blue-hi); }
.service h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.service p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
/* serviço com página própria: ocupa a linha toda, com a folha da página saindo do bolso */
.service-featured {
  --pad-x: 32px;
  --pad-y: 32px;
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  align-items: center;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 24px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.service-featured h3 { font-size: 26px; letter-spacing: -.02em; }
.service .pocket-lip svg { width: 18px; height: 18px; margin: 0; }
.service-featured p { margin-bottom: 22px; font-size: 16px; }
.service-featured:has(.card-hit:hover), .service-featured:has(.card-hit:focus-visible) { box-shadow: 0 0 0 1px rgba(121, 184, 255, .35); }
.service-featured:has(.card-hit:hover) .sheet, .service-featured:has(.card-hit:focus-visible) .sheet { transform: translateX(-50%) translateY(-16px); }

/* ---------- Integrações ---------- */
/* um painel só, com linhas internas finas: as sombras de 1px viram a grade e o overflow corta a borda de fora */
.integrations {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(70% 120% at 50% 0%, rgba(58, 134, 208, .16), transparent 65%), rgba(255, 255, 255, .012);
}
.integration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 148px;
  padding: 24px 12px;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.integration svg { width: 36px; height: 36px; fill: #fff; } /* branco puro: as marcas pedem branco, não cinza */
.integration svg.wide { width: 50px; } /* símbolos largos e baixos, como o do n8n, ficam com o mesmo peso visual */
.integration .wordmark { display: flex; align-items: center; height: 36px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: rgba(238, 242, 247, .88); }
.integration-any {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 12px;
  padding: 26px 24px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}
.integration-any strong { font-size: 17px; font-weight: 600; color: var(--ink); }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0;
  padding: 60px 28px 28px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, .2); /* tracejado enquanto for exemplo */
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
}
.case blockquote { flex: 1; margin: 0; font-size: 18px; line-height: 1.55; color: #c3ccd8; }
.case figcaption { display: flex; align-items: center; gap: 14px; }
.case strong { display: block; font-size: 15px; font-weight: 600; }
.case small { display: block; font-size: 14px; color: var(--muted); }
.case-tag { position: absolute; top: 14px; right: 14px; padding: 2px 10px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .25); font-size: 12px; color: var(--muted); }
.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }
.avatar svg { width: 22px; height: 22px; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.about-text p { max-width: 36em; color: #c3ccd8; margin: 0 0 18px; }
.facts { margin: 0; padding: 28px; border-radius: 20px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 18px; font-size: 16px; }
.facts dd:last-child { margin-bottom: 0; }
.facts a { text-decoration: none; }
.facts a:hover { color: var(--blue-hi); }

/* ---------- Contato ---------- */
.contact { padding: 150px 0; text-align: center; }
.contact .h2 { font-size: clamp(36px, 5.4vw, 64px); }
.contact .lead { margin-inline: auto; }
.contact .actions { justify-content: center; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--faint); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 24px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }

/* ---------- Páginas legais ---------- */
.legal-hero { padding: 88px 0 40px; overflow: visible; } /* topo curto: a luz desce sobre o texto em vez de ser cortada */
.legal-hero .legal { padding-bottom: 0; }
.legal-hero .display { font-size: clamp(40px, 6vw, 64px); margin-bottom: 12px; }
.updated { margin: 0; color: var(--muted); }
.legal { width: min(760px, 100% - 40px); margin: 0 auto; padding-bottom: 120px; }
.legal section { padding: 40px 0; border-top: 1px solid var(--line); }
.legal h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.25; letter-spacing: -.015em; }
.legal h3 { margin: 28px 0 10px; font-size: 18px; color: var(--blue-hi); }
.legal p, .legal li { color: #c3ccd8; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--blue-hi); }
.note { margin: 20px 0; padding: 20px 24px; border-radius: 16px; background: rgba(58, 134, 208, .08); border: 1px solid rgba(58, 134, 208, .3); }
.note p:last-child { margin-bottom: 0; }
.back { padding-top: 24px; }

/* ---------- Página de rastreio ---------- */
.r-hero { padding: 88px 0 112px; }
.r-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.r-hero .display { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; }
.r-benefits, .r-apps { display: grid; gap: 12px; margin: 0 0 32px; padding: 0; list-style: none; color: #c3ccd8; }
.r-benefits li, .r-apps li { display: flex; gap: 14px; }
.r-benefits li::before, .r-apps li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: .62em;
  border-radius: 50%;
  background: var(--blue-hi);
  box-shadow: 0 0 12px var(--blue-hi);
}
.r-apps { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
.r-hero-chips { margin-top: 36px; }
.r-hero-card { margin: 0; padding: 24px; border-radius: 24px; }
.r-hero-card img { display: block; width: 100%; height: auto; margin-bottom: 18px; }
.r-hero-card h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; letter-spacing: -.015em; }
.r-hero-card p { margin: 0 0 18px; font-size: 16px; color: var(--muted); }

.r-tag { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--blue-hi); }
.r-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.r-split.reverse { grid-template-columns: .85fr 1.15fr; }
.r-split .lead { margin-bottom: 0; }
.r-stack { display: grid; gap: 14px; margin-top: 32px; }
.r-figure { position: sticky; top: 96px; margin: 0; padding: 16px; border-radius: 22px; }
.r-figure img { display: block; width: 100%; height: auto; border-radius: 12px; }

.r-cards { display: grid; gap: 16px; }
.r-cards-4 { grid-template-columns: repeat(4, 1fr); }
.r-cards-3 { grid-template-columns: repeat(3, 1fr); }
.r-gallery { margin-top: 40px; }
.r-card { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); }
.r-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.r-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.r-card ul, .r-card ol { display: grid; gap: 8px; margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.r-card strong { font-weight: 600; color: var(--ink); }
/* fotos preenchem o quadro; produtos e diagramas ficam inteiros sobre um brilho azul */
.r-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  border-radius: 12px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 45%, rgba(58, 134, 208, .22), rgba(255, 255, 255, .02) 70%);
}
.r-media.photo { object-fit: cover; }
.r-compare h3 { margin-bottom: 6px; font-size: 24px; }
.r-compare dl { display: grid; gap: 4px; margin: 0; }
.r-compare dt { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--blue-hi); }
.r-compare dd { margin: 0; font-size: 15px; line-height: 1.55; color: #c3ccd8; }

/* ---------- Visualizador de telas ---------- */
html:has(.viewer[open]) { overflow: hidden; }
.viewer {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 18px 16px 20px;
  border: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font);
  background: radial-gradient(70% 55% at 50% 0%, rgba(58, 134, 208, .3), transparent 70%), rgba(0, 0, 0, .78);
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 18px; animation: fade .25s ease-out; }
.viewer::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.viewer-top { display: flex; align-items: center; gap: 14px; }
.viewer-project { margin: 0; font-size: 17px; font-weight: 700; }
.viewer-count { margin: 0; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.viewer-close, .viewer-nav {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.viewer-close { margin-left: auto; }
.viewer-close:hover, .viewer-nav:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.viewer-close svg, .viewer-nav svg { width: 20px; height: 20px; }
.viewer-stage { position: relative; min-height: 0; touch-action: pan-y pinch-zoom; }
/* absoluta e centralizada: o max-height passa a valer sobre a altura do palco, e a imagem nunca passa dele */
.viewer-img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  border: 1px solid var(--glass-line);
  box-shadow: 0 40px 120px -40px rgba(58, 134, 208, .55), 0 30px 80px -30px rgba(0, 0, 0, .9);
  transition: opacity .2s;
  user-select: none;
}
.viewer-img.is-changing { opacity: 0; }
/* altura fixa para três linhas de legenda: a imagem não pula de tamanho de uma tela para outra */
.viewer-caption { position: relative; z-index: 1; width: 100%; max-width: 62ch; min-height: 140px; margin: 0 auto; text-align: center; } /* acima da sombra da imagem */
.viewer-step { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.viewer-text { margin: 0; font-size: 16px; color: var(--muted); }
.viewer-note { margin: 8px 0 0; font-size: 13px; color: var(--faint); }
.viewer-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.viewer-dots { position: relative; z-index: 1; display: flex; gap: 4px; }
.viewer-dots button {
  width: 30px;
  height: 24px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: linear-gradient(rgba(255, 255, 255, .22), rgba(255, 255, 255, .22)) center / 100% 3px no-repeat;
}
.viewer-dots button[aria-current="step"] { background-image: linear-gradient(90deg, var(--blue-hi), var(--blue)); }
@media (min-width: 761px) {
  .viewer { padding-inline: clamp(24px, 7vw, 104px); }
  .viewer-nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; }
  .viewer-prev { left: clamp(12px, 2vw, 28px); }
  .viewer-next { right: clamp(12px, 2vw, 28px); }
}

/* ---------- Movimento ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes drift { to { transform: translate(40px, 24px) scale(1.1); } }
@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Telas menores ---------- */
@media (max-width: 1000px) {
  .hero .wrap, .project-featured, .about { grid-template-columns: 1fr; }
  .project-featured { row-gap: 28px; }
  .service-featured { grid-template-columns: 1fr; row-gap: 28px; }
  .scene { max-width: 560px; }
  .services { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr; max-width: 640px; }
  .r-hero .wrap, .r-split, .r-split.reverse { grid-template-columns: 1fr; }
  .r-figure { position: static; max-width: 640px; }
  .r-split.reverse .r-figure { order: 2; }
  .r-cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .menu { display: none; }
}
@media (max-width: 760px) {
  .hero { padding: 64px 0 88px; }
  .section { padding: 88px 0; }
  .projects, .parts { grid-template-columns: 1fr; }
  .project, .service-featured { --pad-x: 22px; --pad-y: 28px; }
  .pocket { height: 172px; }
  .r-hero { padding: 64px 0 88px; }
  .r-cards-3 { grid-template-columns: 1fr; }
  .contact { padding: 110px 0; }
  .viewer-caption { min-height: 180px; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .r-cards-4 { grid-template-columns: 1fr; }
  .integrations { grid-template-columns: repeat(2, 1fr); }
  .integration { min-height: 124px; }
  .integration-any { padding-inline: 22px; }
  .scene { height: 400px; }
  .scene .win { width: 92%; }
  .scene .phone { width: 124px; height: 220px; top: 100px; }
  .scene .flow { left: 0; }
  .kb p { font-size: 10px; }
  .footer nav { gap: 18px; }
}
