/* =========================================================
   Complex — versão Antigravity
   Seções da versão premium + identidade visual Antigravity:
   fundo claro, tipografia grande e compacta, superfícies
   cinza suaves, botões pílula e campos de partículas.
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #f1f3f6;
  --surface-2: #e8ebf0;
  --ink: #121317;
  --ink-2: #45474d;
  --ink-3: #6f7279;   /* 4.82:1 sobre #fff — antes #797c84 = 3.87:1 */
  --line: #e1e4ea;

  --accent: #3e6bff;
  --accent-2: #7b5cff;
  --accent-3: #00b3ff;
  --good: #0f9d58;
  --bad: #d93025;

  --dark: #0b0c10;
  --dark-2: #16181e;

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;

  --font: "Inter Tight", "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(96px, 12vw, 160px);
}

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

/* [hidden] precisa vencer os display: flex/grid dos componentes */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
figure, blockquote, dl, dd { margin: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(38px, 5.6vw, 72px); letter-spacing: -0.045em; line-height: 1; }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.soft { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }

.grad {
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.eyebrow::before { content: "● "; color: var(--accent); }
.eyebrow--light { color: #9ea3ae; }

.caption { font-size: 13px; color: var(--ink-3); font-family: var(--mono); letter-spacing: .01em; }
.micro { font-size: 12px; color: var(--ink-3); }
.lead { margin-top: 24px; max-width: 620px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }

.tag {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  white-space: nowrap;
}
.tag--accent { background: var(--accent); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  transition: transform .3s var(--ease), background-color .25s, box-shadow .3s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 15px; }
.btn--lg { --h: 56px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; max-width: 100%; white-space: normal; text-align: center; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2c33; box-shadow: 0 8px 24px -8px rgba(18, 19, 23, .45); }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { box-shadow: 0 10px 40px -10px rgba(62, 107, 255, .7); }

.btn__icon { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Toque: elimina o atraso de ~300ms em alvos interativos */
a, button, summary, label, input[type="range"], select { touch-action: manipulation; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0);
  transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 21px; letter-spacing: -0.03em; }
.logo__mark { width: 28px; height: 28px; color: var(--ink); }
.logo__mark svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.logo:hover .logo__mark svg { transform: rotate(180deg); }

.nav__links { display: flex; gap: 2px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  transition: background .2s, color .2s;
}
.nav__links a:hover { background: var(--surface); color: var(--ink); }

.nav__cta { display: flex; align-items: center; gap: 8px; }
/* Acesso à conta (cliente e operador): discreto ao lado dos botões; no
   celular vira um botão redondo, par do menu. */
.nav__entrar {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 14px 0 11px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  transition: background .2s, color .2s;
}
.nav__entrar svg { width: 20px; height: 20px; flex: none; }
.nav__entrar:hover { background: var(--surface); color: var(--ink); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--surface);
  position: relative;
  flex: none;
}
.nav__burger span {
  position: absolute; left: 13px; right: 13px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.nav__mobile {
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a:not(.btn) { padding: 14px 4px; font-size: 20px; border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 0;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 36% at 50% 26%, rgba(255,255,255,.88) 0%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 78%),
    linear-gradient(180deg, rgba(255,255,255,0) 70%, #fff 100%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(241, 243, 246, .85);
  backdrop-filter: blur(8px);
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 100%;
  transition: background .2s;
}
.chip:hover { background: var(--surface-2); }
.chip__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(62,107,255,.18); animation: pulse 2s infinite; }
.chip__arrow { transition: transform .3s var(--ease); }
.chip:hover .chip__arrow { transform: translateX(3px); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(62,107,255,0); } }

.hero__title {
  font-size: clamp(46px, 8.4vw, 120px);
  letter-spacing: -0.055em;
  line-height: .95;
  font-weight: 500;
}
.hero__sub {
  max-width: 660px;
  margin-top: 28px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.hero__meta li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }

/* dashboard */
.hero__boardwrap { position: relative; z-index: 2; margin-top: 72px; }
.board {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 50px 100px -40px rgba(62, 107, 255, .35), 0 20px 40px -30px rgba(18, 19, 23, .25);
  overflow: hidden;
}
.board__bar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.board__url { flex: 1; font-family: var(--mono); font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--good); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: live 2s infinite; }
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(15, 157, 88, .5); }
  70% { box-shadow: 0 0 0 8px rgba(15, 157, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 157, 88, 0); }
}
.board__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; padding: 12px; }
.board__stack { display: grid; gap: 12px; grid-template-rows: 1fr 1fr auto; }
.btile { background: var(--surface); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.btile--chart { gap: 0; }
.btile__head { display: flex; justify-content: space-between; align-items: center; }
.badge-up { font-size: 13px; font-weight: 600; color: var(--good); background: rgba(15,157,88,.1); padding: 4px 10px; border-radius: 999px; }
.big-num { font-size: clamp(48px, 6vw, 80px); letter-spacing: -0.06em; line-height: 1; margin: 14px 0 8px; font-variant-numeric: tabular-nums; }
.mid-num { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.045em; line-height: 1; margin-top: 8px; }
.chart { width: 100%; height: 160px; }
.chart-line { stroke-dasharray: 600; stroke-dashoffset: 600; }
.chart-area { opacity: 0; transition: opacity 1.2s .8s var(--ease); }
.board.is-drawn .chart-line { animation: draw 2.2s .3s var(--ease) forwards; }
.board.is-drawn .chart-area { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart-x { display: flex; justify-content: space-between; margin-top: 8px; }
.btile--notify { flex-direction: row; align-items: center; gap: 14px; background: var(--ink); color: #fff; }
.btile--notify strong { display: block; font-weight: 500; font-size: 15px; }
.btile--notify .micro { color: #a8acb6; }
.check { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-size: 14px; font-weight: 700; }

/* ---------- Logos marquee ---------- */
.logos { padding: 72px 0 0; }
.marquee {
  margin-top: 24px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; color: #aeb2bb; white-space: nowrap; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
[data-motion="paused"] .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { padding-top: var(--section); }
.section--tight { padding-top: 72px; }

.split-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.split-head .lead { margin-top: 0; }

/* ---------- Resultados ---------- */
.stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.stat__num {
  display: flex; align-items: baseline; gap: 4px;
  font-size: clamp(48px, 5.2vw, 76px);
  letter-spacing: -0.06em;
  line-height: .95;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: .38em; letter-spacing: -0.03em; color: var(--ink-3); }
.stat__label { color: var(--ink-2); font-size: 15px; line-height: 1.4; max-width: 230px; }
.stat:first-child { background: var(--ink); color: #fff; }
.stat:first-child .stat__num span { background: linear-gradient(92deg, #8fb0ff, #b9a4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat:first-child .stat__num small, .stat:first-child .stat__label { color: #a8acb6; }

/* ---------- Problema ---------- */
.compare { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ccard { background: var(--surface); border-radius: var(--radius-lg); padding: 36px; }
.ccard--featured {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(62,107,255,.14), transparent 60%),
    radial-gradient(80% 80% at 0% 100%, rgba(123,92,255,.12), transparent 60%),
    #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(62,107,255,.5);
}
.ccard__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: 20px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.list li:last-child { border-bottom: 0; padding-bottom: 0; }
.list li::before {
  flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; margin-top: 1px;
}
.list--x li { color: var(--ink-3); }
.list--x li::before { content: "✕"; background: var(--surface-2); color: var(--ink-3); }
.list--check li::before { content: "✓"; background: var(--ink); color: #fff; }
.list--light li { color: #e6e8ee; border-color: rgba(255,255,255,.1); }
.list--light li::before { content: "✓"; background: var(--accent); color: #fff; }

/* ---------- Spotlight cards ---------- */
.spot {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.spot__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.spot--blue {
  background:
    radial-gradient(90% 90% at 0% 100%, #1d3fd6 0%, transparent 60%),
    radial-gradient(80% 90% at 100% 0%, #7b5cff 0%, transparent 60%),
    var(--accent);
}
.spot--dark {
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(62,107,255,.35) 0%, transparent 60%),
    radial-gradient(60% 80% at 0% 0%, rgba(123,92,255,.25) 0%, transparent 65%),
    var(--dark);
}
.spot .caption { color: rgba(255, 255, 255, .75); }
.spot__title { font-size: clamp(28px, 3vw, 40px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 500; }
.spot__sub { color: rgba(255,255,255,.88); }

/* ---------- Método ---------- */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.method__intro {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas:
    "cap cap"
    "title sub"
    "title btn";
  column-gap: 48px;
  row-gap: 18px;
  padding: 48px;
  min-height: 320px;
  align-content: space-between;
}
.method__intro .caption { grid-area: cap; }
.method__intro .spot__title { grid-area: title; font-size: clamp(32px, 4.4vw, 58px); align-self: end; }
.method__intro .spot__sub { grid-area: sub; align-self: end; }
.method__intro .btn { grid-area: btn; justify-self: start; }

.step {
  display: flex; flex-direction: column; gap: 14px;
  min-height: 360px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: background-color .3s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.step:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(18,19,23,.35); }
.step p { color: var(--ink-2); font-size: 16px; }
.step__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 56px; }
.step__n {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: 13px;
  transition: background .3s;
}
.step:hover .step__n { background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chips li { font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--ink-2); }
.step:hover .chips li { background: var(--surface); }

/* ---------- Serviços ---------- */
.services { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 280px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.service p { color: var(--ink-2); font-size: 16px; }
.icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  background: #fff;
  margin-bottom: auto;
  transition: background .3s, color .3s;
}
.service:hover .icon { background: var(--ink); color: #fff; }
.icon + h3 { margin-top: 48px; }

.service--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.service__copy { display: flex; flex-direction: column; gap: 12px; }

.mock { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(18, 19, 23, .25); align-self: center; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2); }
.mock__bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.mock__body { padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.mock__h { height: 20px; width: 88%; border-radius: 6px; background: var(--ink); }
.mock__h--short { width: 56%; }
.mock__p { height: 9px; width: 80%; border-radius: 5px; background: var(--surface-2); margin-top: 6px; }
.mock__p--short { width: 55%; margin-top: 0; }
.mock__btn {
  margin-top: 14px; align-self: flex-start;
  font-size: 13px; font-weight: 500; color: #fff;
  background: var(--accent); border-radius: 999px;
  padding: 9px 16px;
  animation: nudge 3s var(--ease) infinite;
}
@keyframes nudge {
  0%, 80%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(62, 107, 255, .45); }
  88% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(62, 107, 255, 0); }
}

.service--report {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: 48px;
  min-height: 280px;
  padding: 48px;
}
.service--report .spot__title { font-size: clamp(28px, 3.6vw, 48px); margin-top: 14px; max-width: 620px; }
.report {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 6px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.report__row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #a8acb6; }
.report__row:last-child { border-bottom: 0; }
.report__row strong { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; color: #fff; }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case {
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex; flex-direction: column;
}
.case:hover { box-shadow: 0 40px 70px -50px rgba(18,19,23,.45); }
.case__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}
.case__visual::before {
  content: "";
  position: absolute; inset: -20%;
  z-index: -1;
  filter: blur(34px);
  opacity: .5;
  transition: opacity .5s, transform .8s var(--ease);
}
.case:hover .case__visual::before { opacity: .85; transform: scale(1.08); }
.cv-1::before { background: radial-gradient(closest-side at 35% 60%, var(--accent), transparent); }
.cv-2::before { background: radial-gradient(closest-side at 65% 40%, var(--accent-2), transparent); }
.cv-3::before { background: radial-gradient(closest-side at 50% 65%, var(--accent-3), transparent); }
.case__visual span { font-size: clamp(48px, 5vw, 72px); letter-spacing: -0.06em; font-weight: 500; }
.case__body { padding: 22px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case__body h3 { font-size: 22px; }
.case__metrics { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case__metrics dt { font-size: 12px; color: var(--ink-3); }
.case__metrics dd { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }

.quotes { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote { background: var(--surface); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 28px; justify-content: space-between; }
.quote blockquote { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; letter-spacing: -0.025em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.35; }
.quote strong { font-weight: 500; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-3)); }
.avatar--violet { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }

/* ---------- Calculadora ---------- */
.calc {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 64px);
}
.calc__copy h2 { font-size: clamp(38px, 4.8vw, 64px); }
.calc__copy p { margin-top: 24px; color: var(--ink-2); max-width: 440px; }
.calc__copy, .calc__form { min-width: 0; }
.calc__form { background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 30px 60px -40px rgba(18,19,23,.3); }
.range label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.range output { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

input[type="range"] {
  --fill: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)) 0 / var(--fill) 100% no-repeat, var(--surface-2);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 0;
  box-shadow: 0 0 0 1px var(--line), 0 4px 10px rgba(18,19,23,.2);
  cursor: grab;
  transition: transform .2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: 0 0 0 1px var(--line), 0 4px 10px rgba(18,19,23,.2);
  cursor: grab;
}
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.calc__result { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin-top: 4px; }
.calc__result > div { border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); }
.calc__result strong { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc__result > .calc__main { background: var(--ink); color: #fff; }
.calc__main .caption { color: #a8acb6; }
.calc__main strong { background: linear-gradient(92deg, #8fb0ff, #b9a4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc__main .micro { color: #7fe0a8; }

/* ---------- Credibilidade ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust__item { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.trust__item p { font-size: 15px; color: var(--ink-3); }
.trust__k { font-weight: 500; font-size: 18px; letter-spacing: -0.02em; margin-top: 10px; }
.trust__badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
.seal__g { background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); }
.seal__m { background: #0866ff; font-size: 18px; }
.seal__r { background: #1a2a4a; font-size: 11px; }
.seal__c { background: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__head h2 { font-size: clamp(38px, 4.6vw, 60px); }
.faq__head p { margin-top: 24px; color: var(--ink-2); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 56px 26px 0;
  position: relative;
  font-size: 21px; font-weight: 500; letter-spacing: -0.02em;
  transition: color .2s;
}
.faq__list summary:hover { color: var(--accent); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  width: 36px; height: 36px; margin-top: -18px;
  border-radius: 50%; background: var(--surface);
  display: grid; place-items: center;
  font-size: 20px; font-weight: 400; color: var(--ink);
  transition: transform .3s var(--ease), background .2s, color .2s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq__list details p { padding: 0 56px 26px 0; color: var(--ink-2); }

/* ---------- CTA final ---------- */
.final {
  position: relative;
  margin: 0 12px;
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  padding: clamp(72px, 9vw, 120px) 0;
}
.final__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.final::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 70% at 20% 50%, rgba(11,12,16,.9), rgba(11,12,16,0) 70%);
}
.final__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.final__copy, .form { min-width: 0; }
.final__copy h2 { font-size: clamp(38px, 5vw, 66px); margin-bottom: 28px; }

.form {
  background: rgba(22, 24, 30, .72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px;
  display: grid; gap: 16px;
}
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 14px; color: #a8acb6; }
.field .opt { color: #9aa0ab; }
.field input,
.field select {
  height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background-color: rgba(255,255,255,.05);
  color: #fff;
  font: inherit; font-size: 16px;
  transition: border-color .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
  width: 100%;
  min-width: 0;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, #a8acb6 50%), linear-gradient(135deg, #a8acb6 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field select option { color: var(--ink); }
.field input::placeholder { color: #9aa0ab; }
.field input:focus,
.field select:focus { border-color: var(--accent); background-color: rgba(62,107,255,.08); }
.field input:focus:not(:focus-visible),
.field select:focus:not(:focus-visible) { outline: none; }
.field input:focus-visible,
.field select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.field.invalid input,
.field.invalid select { border-color: #ff6b5e; }
.field__error { margin: 0; font-size: 14px; line-height: 1.4; color: #ff9d93; }
.form__errors {
  display: grid; gap: 8px;
  padding: 16px 18px; margin-bottom: 4px;
  border: 1px solid rgba(255,107,94,.5); border-radius: 14px;
  background: rgba(255,107,94,.1);
  color: #ffc7c1; font-size: 15px;
}
.form__errors strong { color: #fff; font-weight: 500; }
.form__errors ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.form__errors a { color: #ffc7c1; text-underline-offset: 3px; }
.form__errors:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.form .btn { margin-top: 8px; }
.form .btn:disabled { opacity: .7; cursor: progress; }
.form__msg { min-height: 1em; text-align: center; color: #ff8a80; }
.form__msg.ok { color: #7fe0a8; font-size: 15px; }
.form__foot { text-align: center; color: #969ba5; }

/* ---------- Formulário em etapas ---------- */
.form--steps {
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
/* Altura estável entre as etapas: o cartão não pula ao avançar */
@media (min-width: 721px) { .form--steps { min-height: 552px; } }
.form--steps .form__nav { margin-top: auto; }

.form__head { display: grid; gap: 10px; }
.form__progress { display: flex; align-items: center; gap: 14px; }
.form__bar {
  flex: 1; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,.12); overflow: hidden;
}
.form__bar span {
  display: block; height: 100%; width: 33.33%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transition: width .45s var(--ease);
}
.form__count { color: #a8acb6; white-space: nowrap; margin: 0; }
.form__status { margin: 0; min-height: 0; font-size: 14px; color: #ff9d93; }

.fstep { min-width: 0; display: grid; gap: 14px; align-content: start; }
.fstep__q {
  margin: 0; font-weight: 500;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.25; letter-spacing: -.01em; color: #fff;
}
.fstep__hint { margin: -8px 0 2px; color: #969ba5; }
.fstep__sub { font-size: 14px; color: #a8acb6; }

/* URL e problema aparecem juntos, so para quem tem site */
#wrap-site { display: grid; gap: 14px; min-width: 0; }

.form__alert {
  margin: 0; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255,107,94,.4); background: rgba(255,107,94,.1);
  color: #ffb3ab; font-size: 14px; line-height: 1.4;
}
.fstep.is-active { animation: stepIn .4s var(--ease) both; }
.fstep.is-back { animation: stepInBack .4s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

.choices { display: grid; gap: 10px; }
.choices--tight { gap: 8px; }
.choice { display: block; cursor: pointer; }
.choice input {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden;
}
.choice__box {
  display: grid; gap: 3px;
  min-height: 56px; padding: 13px 52px 13px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
  position: relative;
}
.choice__title { color: #fff; font-size: 16px; line-height: 1.3; }
.choice__sub { color: #969ba5; font-size: 14px; line-height: 1.35; }
.choice__box::after {
  content: ""; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice:hover .choice__box { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.choice input:checked + .choice__box {
  border-color: var(--accent);
  background: rgba(62,107,255,.14);
}
.choice input:checked + .choice__box::after {
  border-color: var(--accent);
  background: var(--accent) no-repeat center / 10px 8px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.6 6.8 9 1.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.choice input:focus-visible + .choice__box { outline: 2px solid #fff; outline-offset: 2px; }
.choices.invalid .choice__box { border-color: #ff6b5e; }

.field--reveal { animation: stepIn .3s var(--ease) both; }

.form__nav { display: flex; gap: 10px; margin-top: 4px; }
.btn--grow { flex: 1; white-space: normal; text-align: center; }
.btn--quiet {
  background: rgba(255,255,255,.07); color: #fff;
  border-color: rgba(255,255,255,.12);
  padding: 0 20px;
}
.btn--quiet:hover { background: rgba(255,255,255,.13); }
.btn__icon--back { transition: transform .3s var(--ease); }
.btn--quiet:hover .btn__icon--back { transform: translateX(-4px); }
.form__nav .btn:disabled { opacity: .7; cursor: progress; }

.form__done {
  display: grid; gap: 10px; justify-items: center; text-align: center;
  padding: 16px 4px 8px;
  animation: stepIn .4s var(--ease) both;
}
.form__check {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(127,224,168,.14); color: #7fe0a8;
  font-size: 24px; line-height: 1;
}
.form__done h3 { margin: 0; font-size: 22px; color: #fff; font-weight: 500; }
.form__done p { margin: 0; color: #a8acb6; font-size: 15px; }
.form__done:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 14px; }

@media (max-width: 720px) {
  .btn--quiet { flex: 0 0 auto; padding: 0 16px; }
  .btn--grow { flex: 1 1 auto; min-width: 0; padding: 0 16px; }
  .choice__box { padding-right: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .fstep, .fstep.is-back, .field--reveal, .form__done { animation: none; }
  .form__bar span { transition: none; }
}

/* ---------- Footer ---------- */
.footer { padding: 96px 0 32px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand { max-width: 340px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.footer__brand p { color: var(--ink-2); }
.footer__cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer__cols div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols h4 { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-bottom: 6px; }
.footer__cols a { color: var(--ink-2); font-size: 15px; transition: color .2s; }
.footer__cols a:hover { color: var(--ink); }
.footer__word {
  margin-top: 80px;
  font-size: clamp(80px, 23vw, 330px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: .8;
  text-align: center;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 40%, #c9ccd4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
  padding-bottom: .08em;
}
.footer__bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }

/* ---------- CTA flutuante (mobile) ---------- */
.float-cta {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 40;
  display: none;
  transform: translateY(140%);
  transition: transform .4s var(--ease);
  box-shadow: 0 16px 40px -12px rgba(18,19,23,.5);
}
.float-cta.show { transform: none; }

/* ---------- Animações de entrada ---------- */
/* Hero: anima sozinho no carregamento */
.rise { animation: rise .9s var(--ease) both; }
.hero__content .rise:nth-child(2) { animation-delay: .06s; }
.hero__content .rise:nth-child(3) { animation-delay: .12s; }
.hero__content .rise:nth-child(4) { animation-delay: .18s; }
.hero__content .rise:nth-child(5) { animation-delay: .24s; }
.board.rise { animation-delay: .35s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Demais seções: revelação ao rolar (escalonada por grupo) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), background-color .3s, box-shadow .5s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in.lift:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav__links a { padding: 8px 10px; }
  .hide-sm { display: none; }
}

@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .method { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .service--wide { grid-column: 1 / -1; }
  .cases { grid-template-columns: 1fr; }
  .case { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .calc, .faq, .final__inner { grid-template-columns: 1fr; gap: 40px; }
  .faq__head { position: static; }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .float-cta { display: inline-flex; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__cta .btn { display: none; }
  .nav__entrar { width: 44px; height: 44px; padding: 0; justify-content: center; background: var(--surface); color: var(--ink); }
  .nav__entrar span { display: none; }
  .chip { font-size: 13px; }
  .chip .long { display: none; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; white-space: normal; text-align: center; }
  .hero__boardwrap { margin-top: 48px; }
  .board__grid { grid-template-columns: 1fr; }
  .board__stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .btile--notify { grid-column: 1 / -1; }
  .live { display: none; }
  .split-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .stat { min-height: 170px; padding: 22px 18px; }
  .compare, .quotes { grid-template-columns: 1fr; }
  .ccard, .quote { padding: 26px; }
  .method, .services { grid-template-columns: 1fr; }
  .method__intro { grid-template-columns: 1fr; grid-template-areas: "cap" "title" "sub" "btn"; padding: 30px; min-height: 0; }
  .step { min-height: 0; }
  .step__top { padding-bottom: 32px; }
  .service, .step { padding: 26px; }
  .service--wide { grid-template-columns: 1fr; }
  .icon + h3 { margin-top: 32px; }
  .service--report { grid-template-columns: 1fr; gap: 28px; padding: 30px; }
  .case { grid-template-columns: 1fr; }
  .calc__form { padding: 20px; }
  .calc__result { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .faq__list summary { font-size: 18px; }
  .final { margin: 0 8px; border-radius: 28px; }
  .form { padding: 22px; }
  .footer { padding-bottom: 96px; }
  .footer__cols { gap: 40px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .board__stack { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .chart-line { stroke-dashoffset: 0; }
  .chart-area { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .motion-toggle { display: none; }
}

/* =========================================================
   Portfólio — galeria circular 3D guiada pelo scroll
   (adaptação do componente "Circular Gallery")
   ========================================================= */
.portfolio {
  position: relative;
  height: 320vh;               /* distância de rolagem que gira a galeria */
  margin-top: var(--section);
}
.portfolio__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.portfolio__sticky::before {
  /* "chão" suave que ancora o anel */
  content: "";
  position: absolute;
  left: 50%; bottom: 6%;
  width: min(1400px, 140vw); height: 46%;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(62, 107, 255, .16), rgba(123, 92, 255, .08) 45%, transparent 75%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
.portfolio__head {
  position: relative;
  z-index: 3;
  padding-top: clamp(84px, 11vh, 120px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.portfolio__head h2 { font-size: clamp(34px, 4.6vw, 60px); }
.portfolio__hint {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-3);
}
.portfolio__mouse {
  position: relative;
  width: 16px; height: 24px;
  border: 1.5px solid var(--ink-3);
  border-radius: 10px;
}
.portfolio__mouse::after {
  content: "";
  position: absolute; left: 50%; top: 5px;
  width: 2px; height: 5px; margin-left: -1px;
  border-radius: 2px; background: var(--ink-3);
  animation: wheel 1.6s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(6px); } }

.gallery {
  position: relative;
  container-type: size;   /* os cartões medem o espaço real disponível */
  flex: 1;
  min-height: 0;
  perspective: 2000px;
  perspective-origin: 50% 40%;
}
.gallery__ring {
  --card-h: min(500px, 88cqh);
  --card-w: calc(var(--card-h) * .75);
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.gcard {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--card-w);
  height: var(--card-h);
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(18, 19, 23, .45), 0 12px 24px -12px rgba(18, 19, 23, .2);
  transition: opacity .3s linear;
  will-change: transform, opacity;
}
.gcard img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gcard:hover img { transform: scale(1.04); }
.gcard__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 56px 18px 18px;
  display: flex; flex-direction: column; gap: 2px;
  color: #fff;
  background: linear-gradient(to top, rgba(11, 12, 16, .88) 0%, rgba(11, 12, 16, .55) 55%, transparent 100%);
}
.gcard__kind {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: 11px;
}
.gcard__name { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.gcard__seg { font-size: 13px; opacity: .8; }

.portfolio__foot {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(24px, 5vh, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.portfolio__count { font-size: 14px; color: var(--ink-3); }
.portfolio__count b { color: var(--ink); font-weight: 600; }

@media (max-width: 720px) {
  .portfolio { height: 260vh; }

  /* cabeçalho mais compacto para não encostar na galeria */
  .portfolio__head { padding-top: 84px; }
  .portfolio__head .eyebrow { margin-bottom: 12px; }
  .portfolio__head h2 { font-size: clamp(28px, 8vw, 34px); line-height: 1.05; }
  .portfolio__hint { margin-top: 10px; font-size: 12px; }

  /* cartões proporcionais à altura da tela */
  .gallery__ring { --card-h: min(400px, 95cqh); }
  .gallery {
    perspective: 1200px;
    margin: 4px 0;
  }
  .gcard { border-radius: 16px; background: #fff; }
  .gcard__info { padding: 40px 12px 12px; gap: 1px; }
  .gcard__kind {
    max-width: 100%;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
  }
  .gcard__name { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gcard__seg { font-size: 11px; line-height: 1.3; }

  /* só o cartão da frente mostra texto (evita textos espelhados sobrepostos) */
  .gcard .gcard__info { transition: opacity .25s linear; }
  .gcard.is-back .gcard__info { opacity: 0; }

  .portfolio__foot { flex-direction: column; gap: 10px; text-align: center; }
  .portfolio__foot .btn { width: 100%; }
  .portfolio__count { font-size: 13px; }
}
@media (max-height: 700px) and (min-width: 721px) {
  .portfolio__head { padding-top: 76px; }
}

/* =========================================================
   Depoimentos — colunas com rolagem vertical infinita
   (adaptação do componente "Testimonials Columns")
   ========================================================= */
.testimonials__head {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.testimonials__badge {
  padding: 5px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  background: #fff;
}
.testimonials__head h2 { margin-top: 20px; font-size: clamp(32px, 4.4vw, 56px); }
.motion-toggle {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-2);
  font: inherit; font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.motion-toggle:hover { border-color: var(--ink-3); color: var(--ink); }
.motion-toggle__icon {
  width: 10px; height: 12px; flex: none;
  border-left: 3px solid currentColor; border-right: 3px solid currentColor;
}
[data-motion="paused"] .motion-toggle__icon {
  border: 0;
  width: 0; height: 0;
  border-left: 11px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.testimonials__head p { margin-top: 18px; color: var(--ink-2); }

.testimonials__cols {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 24px;
  max-height: 740px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}
.tcol { flex: 0 1 340px; min-width: 0; }
.tcol__track {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  animation: tscroll var(--dur, 15s) linear infinite;
}
.testimonials__cols:hover .tcol__track,
.testimonials__cols:focus-within .tcol__track,
[data-motion="paused"] .tcol__track { animation-play-state: paused; }
@keyframes tscroll { to { transform: translateY(-50%); } }

.tcard {
  margin: 0;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 32px -14px rgba(62, 107, 255, .22);
}
.tcard blockquote { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }
.tcard figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.tcard img {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}
.tcard figcaption > span { display: flex; flex-direction: column; line-height: 1.3; }
.tcard strong { font-weight: 500; letter-spacing: -0.01em; }
.tcard figcaption > span > span { font-size: 14px; color: var(--ink-3); letter-spacing: -0.01em; }

@media (max-width: 1024px) { .tcol--lg { display: none; } }
@media (max-width: 720px) {
  .tcol--md { display: none; }
  .testimonials__cols { margin-top: 36px; max-height: 620px; }
  .tcol { flex-basis: 100%; max-width: 380px; }
  .tcard { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .tcol__track { animation: none; }
  .testimonials__cols { overflow-y: auto; }
}
