/* Seção #como-atuamos — três etapas com mini-visuais animados.
   Porte do protótipo .dmie/.raw/Como Atuamos DMIE.html, com todos os
   seletores escopados sob .atuacao para não colidir com o CSS global. */

.atuacao {
  color-scheme: dark;
  --bg: #030c21;
  --line: rgba(150, 185, 255, .16);
  --fg: #f5f8ff;
  --muted: #9db0d4;
  --faint: #6d80a8;
  --blue: #5b9dff;
  --blue-deep: #1e4db7;
  --amber: #ffb02e;
  --orange: #ff7a3d;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --gap: clamp(40px, 4.4vw, 56px);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -6%, rgba(18, 70, 170, .55), transparent 62%),
    radial-gradient(700px 460px at -8% 80%, rgba(14, 46, 120, .34), transparent 60%),
    var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.atuacao,
.atuacao *,
.atuacao *::before,
.atuacao *::after { box-sizing: border-box; }

/* ---------- cabeçalho ---------- */
.atuacao .head { margin-bottom: clamp(32px, 5vw, 56px); }
.atuacao .title {
  margin: 0;
  font: 700 clamp(1.8rem, 5vw, 3.5rem)/1.12 var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.atuacao .lead { max-width: 42ch; margin: 18px 0 0; font-size: clamp(1rem, 1.7vw, 1.2rem); color: var(--muted); text-wrap: balance; }

/* ---------- etapas ---------- */
.atuacao .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.atuacao .step { position: relative; min-width: 0; }

.atuacao .card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  transition: transform .35s, border-color .35s;
}
.atuacao .card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(91, 157, 255, .14), transparent 70%);
  transition: opacity .35s;
}
@media (hover: hover) {
  .atuacao .card:hover { transform: translateY(-4px); border-color: rgba(150, 185, 255, .38); }
  .atuacao .card:hover::before { opacity: 1; }
}

.atuacao .viz {
  position: relative;
  z-index: 1;
  height: 190px;
  padding: 14px 10px 8px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(200px 100px at 50% 100%, rgba(91, 157, 255, .12), transparent 72%);
}
.atuacao .viz svg { display: block; width: 100%; height: 100%; max-width: 100%; }

.atuacao .body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; }
.atuacao .n { font: 600 13px/1 var(--font-display); letter-spacing: .14em; color: var(--blue); }
.atuacao .body h3 { margin: 0; font: 700 clamp(1.4rem, 2.2vw, 1.75rem)/1.1 var(--font-display); letter-spacing: -.02em; }
.atuacao .body p { margin: 0; font-size: 15px; color: var(--muted); }
.atuacao .gets { margin-top: 8px !important; padding-top: 14px; border-top: 1px dashed var(--line); color: #c5d3ef !important; font-size: 14px !important; }
.atuacao .gets b { display: block; margin-bottom: 8px; font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* seta de três chevrons entre as etapas */
.atuacao .link {
  position: absolute;
  top: 95px;
  right: calc(var(--gap) / -2);
  z-index: 2;
  width: 26px;
  transform: translate(50%, -50%);
  color: var(--blue);
}
.atuacao .link svg { display: block; width: 100%; height: auto; overflow: visible; }
.atuacao .link path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: atuacao-flow 2.4s ease-in-out infinite; }
.atuacao .link path:nth-child(2) { animation-delay: .25s; }
.atuacao .link path:nth-child(3) { animation-delay: .5s; }
@keyframes atuacao-flow { 0%, 100% { opacity: .22; } 40% { opacity: 1; } }

/* ---------- animações dos mini-visuais ---------- */
.atuacao .sweep { transform-origin: 120px 80px; animation: atuacao-spin 7s linear infinite; }
@keyframes atuacao-spin { to { transform: rotate(360deg); } }
.atuacao .dot { animation: atuacao-float var(--fs, 5s) ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes atuacao-float { 50% { transform: translate(var(--fx, 2px), var(--fy, -3px)); } }
.atuacao .ping { transform-box: fill-box; transform-origin: center; animation: atuacao-ping 2.6s ease-out infinite; animation-delay: var(--fd, 0s); }
@keyframes atuacao-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.3); opacity: 0; } }

.atuacao .step.in .nd { animation: atuacao-gather 1s cubic-bezier(.3, .7, .2, 1) backwards; animation-delay: calc(var(--sd, 0s) + var(--d, 0s)); }
@keyframes atuacao-gather { from { transform: translate(var(--dx), var(--dy)); } }
.atuacao .step.in .ln { animation: atuacao-draw 1s ease backwards; animation-delay: calc(var(--sd, 0s) + .8s); }
@keyframes atuacao-draw { from { stroke-dashoffset: 1; } }
.atuacao .hub { transform-box: fill-box; transform-origin: center; }
.atuacao .step.in .hub { animation: atuacao-pop .6s cubic-bezier(.3, .7, .2, 1) backwards; animation-delay: calc(var(--sd, 0s) + .7s); }
@keyframes atuacao-pop { from { opacity: 0; transform: scale(.6); } }
.atuacao .bar { transform-box: fill-box; transform-origin: bottom; }
.atuacao .step.in .bar { animation: atuacao-grow .9s cubic-bezier(.3, .7, .2, 1) backwards; animation-delay: calc(var(--sd, 0s) + var(--d, 0s)); }
@keyframes atuacao-grow { from { transform: scaleY(0); } }
.atuacao .bar.hi { filter: drop-shadow(0 0 8px rgba(91, 157, 255, .65)); }

/* ---------- botão ---------- */
.atuacao .cta-row { margin-top: clamp(36px, 5vw, 56px); }
.atuacao .cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--blue-deep);
  box-shadow: 0 12px 32px -10px rgba(30, 77, 183, .9), 0 0 0 1px rgba(255, 255, 255, .1) inset;
  color: #fff;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  transition: transform .25s, background .25s;
}
.atuacao .cta svg { width: 16px; height: 16px; transition: transform .25s; }
.atuacao .cta:hover { background: #2a5fd6; transform: translateY(-2px); }
.atuacao .cta:hover svg { transform: translateX(4px); }
.atuacao .cta:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- desktop: desenho ao lado do texto ---------- */
@media (min-width: 861px) {
  .atuacao { --gap: 48px; }
  .atuacao .steps { grid-template-columns: 1fr; }
  .atuacao .card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .atuacao .viz {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 220px;
    padding: 20px 24px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    background: radial-gradient(260px 160px at 50% 100%, rgba(91, 157, 255, .12), transparent 72%);
  }
  .atuacao .viz svg { height: auto; max-height: 200px; }
  .atuacao .body { justify-content: center; gap: 12px; padding: 32px 44px; }
  .atuacao .body p { max-width: 52ch; }
  .atuacao .link {
    top: auto;
    right: auto;
    left: 20%;
    bottom: calc(var(--gap) / -2);
    transform: translate(-50%, 50%) rotate(90deg);
  }
}

/* ---------- tablet e mobile ---------- */
@media (max-width: 860px) {
  .atuacao { --gap: 44px; }
  .atuacao .steps { grid-template-columns: 1fr; }
  .atuacao .viz { height: 150px; }
  .atuacao .body { padding: 20px 22px 24px; }
  .atuacao .link {
    top: auto;
    right: auto;
    left: 50%;
    bottom: calc(var(--gap) / -2);
    transform: translate(-50%, 50%) rotate(90deg);
  }
  .atuacao .cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .atuacao,
  .atuacao *,
  .atuacao *::before,
  .atuacao *::after { animation: none !important; transition-duration: .01ms !important; }
}
