/* ==========================================================================
   WebArt Atelier & Studio — estilos
   ========================================================================== */

:root {
  --ink: #0b1020;
  --navy: #0f172a;
  --navy-2: #0a0f1e;
  --text: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e8edf3;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --orange: #ff5a2d;
  --orange-d: #f04a1c;
  --blue: #0b6fbf;
  --blue-l: #38bdf8;
  --brand: #2a8bf7;
  --brand-d: #1a6fe0;
  --green: #10a368;
  --green-l: #34d399;
  --yellow: #fbbf24;
  --purple: #8b5cf6;

  --f-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(24, 60, 120, .05), 0 6px 18px rgba(24, 60, 120, .07);
  --shadow-md: 0 2px 4px rgba(24, 60, 120, .05), 0 22px 44px -14px rgba(24, 60, 120, .2);
  --radius: 16px;
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Envoltório da página: só carrega o brilho azul suave do topo */
.frame {
  position: relative; display: flow-root; overflow: hidden; overflow: clip;
  background:
    radial-gradient(760px 460px at 82% 4%, rgba(110, 175, 255, .28), transparent 70%),
    radial-gradient(560px 380px at 6% 22%, rgba(190, 215, 255, .45), transparent 70%),
    linear-gradient(#f1f7ff 0, #fff 780px), #fff;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.ico { flex: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 32px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* utilitários de cor */
.c-orange { color: var(--orange); }
.c-blue   { color: var(--blue); }
.c-green  { color: var(--green); }
.c-yellow { color: #f5a70a; }
.c-purple { color: var(--purple); }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; line-height: 1.2; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 11px; font-weight: 800; border-radius: 9px; letter-spacing: .01em; }
.btn-lg { padding: 15px 24px; font-size: 14px; border-radius: 12px; }
.btn-primary { background: linear-gradient(180deg, #4aa0ff, var(--brand-d)); color: #fff; box-shadow: 0 10px 22px -8px rgba(26, 111, 224, .7); }
.btn-primary:hover { background: linear-gradient(180deg, #5aaaff, #1565d4); box-shadow: 0 12px 26px -8px rgba(26, 111, 224, .8); }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { border-color: #cfd8e3; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-green { background: var(--green); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; box-shadow: 0 8px 18px -8px rgba(16, 163, 104, .6); }
.btn-green:hover { background: #0d8f5b; }
.btn-ghost { background: #eef2f7; color: var(--text); font-size: 12px; font-weight: 600; }
.btn-ghost:hover { background: #e3e9f1; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 14px; z-index: 50; width: min(calc(100% - 64px), calc(var(--container) - 64px)); margin: 14px auto 0; border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 10px 34px -16px rgba(24, 78, 160, .3);
}
.site-header .header-inner { display: flex; align-items: center; gap: 28px; height: 64px; padding-inline: 14px; }

.brand { display: inline-flex; align-items: center; flex: none; padding-left: 6px; }
.brand-logo { display: block; height: 36px; width: auto; }
.site-footer .brand { padding-left: 0; }
.site-footer .brand-logo { height: 38px; }

.main-nav { display: flex; align-items: center; gap: 34px; margin-left: 28px; }
.main-nav a { font-size: 12.5px; font-weight: 500; color: var(--muted); transition: color .15s; }
.main-nav a:hover { color: var(--ink); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; gap: 10px; margin-left: auto; }

.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Elementos compartilhados
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-family: var(--f-mono); font-size: 10.5px; color: var(--muted);
}
.pill b { color: var(--ink); font-weight: 600; }
.pill i { color: #cbd5e1; font-style: normal; }
.pill-orange { background: #fff4ee; border-color: #ffe0d2; color: var(--orange); font-weight: 700; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }

.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green-l); display: inline-block; position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--green-l); opacity: 0; animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dot-o, .dot-b { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.dot-o { background: var(--orange); }
.dot-b { background: var(--blue); }

.h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; color: var(--ink); }
.h2.sm { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.03em; }
.sub { font-size: 14.5px; color: var(--muted); max-width: 560px; }
.sub.sm { font-size: 12px; max-width: 520px; margin-inline: auto; }
.lead { font-size: 15px; color: var(--muted); max-width: 520px; }

.center-head { text-align: center; max-width: 720px; margin-inline: auto; }
.center-head .eyebrow { margin-bottom: 14px; }
.center-head .h2 { margin-bottom: 18px; }
.center-head .sub { margin-inline: auto; max-width: 640px; }
.center-head.tight .h2 { margin-bottom: 12px; }
.center-head.tight .eyebrow { margin-bottom: 10px; }




/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: 36px 0 128px; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
.hero h1 {
  font-size: clamp(36px, 4vw, 52px); line-height: 1.04; letter-spacing: -.04em;
  font-weight: 800; color: var(--ink); margin-bottom: 26px;
}
.hero h1 .accent, .contact h2 .accent { background: linear-gradient(90deg, #0b6fbf, #2aa0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .dot { margin-left: .18em; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 14px 28px; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.dot-g { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(16, 163, 104, .15); }
.hero-proof .bolt { color: var(--orange); display: inline-flex; }
.hero-proof .award { color: var(--blue); display: inline-flex; }

/* Visual do hero: navegador com o site do case + elementos flutuantes */
.hero-visual { --mx: 0; --my: 0; position: relative; padding: 38px 30px 60px; }

.device {
  position: relative; z-index: 2; overflow: hidden; border-radius: 20px;
  background: rgba(255, 255, 255, .92); border: 1px solid #fff;
  box-shadow: 0 46px 70px -30px rgba(24, 78, 160, .5), 0 12px 26px -14px rgba(24, 78, 160, .28);
  transform: perspective(1500px) rotateY(-8deg) rotateX(3deg) rotate(-1.5deg);
  translate: calc(var(--mx) * -10px) calc(var(--my) * -8px);
  transition: translate .3s ease-out;
}
.device-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(#fff, #f3f7fc); border-bottom: 1px solid #e6edf6; }
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.device-url {
  display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 0; max-width: 62%; margin-inline: auto;
  padding: 5px 12px; border-radius: 999px; background: #eef3fa;
  font-family: var(--f-mono); font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.device-url .ico { color: var(--green); }
.device-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; color: var(--green); }

/* A página do case rola sozinha dentro da tela do navegador */
.device-screen { --screen-h: 340px; display: block; width: 100%; height: var(--screen-h); padding: 0; border: 0; overflow: hidden; background: #eef3fa; cursor: zoom-in; }
.device-img { width: 100%; height: auto; max-width: none; animation: shot-scroll var(--dur, 16s) ease-in-out infinite alternate; will-change: transform; }
.device-screen:hover .device-img, .device-screen:focus-visible .device-img { animation-play-state: paused; }
@keyframes shot-scroll { from { transform: translateY(0); } to { transform: translateY(min(0px, calc(var(--screen-h) - 100%))); } }

.device-caption { position: relative; z-index: 2; margin-top: 24px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink); }
.device-caption b { margin-right: 8px; padding: 4px 10px; border-radius: 999px; background: #e3efff; color: var(--blue); font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .03em; }

/* Cards, selos e bolhas que flutuam ao redor (a posição reage ao mouse) */
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) + 1.5deg)); }
}
.float-card {
  position: absolute; z-index: 3; width: 138px; padding: 6px 6px 8px; text-align: left; cursor: zoom-in;
  background: rgba(255, 255, 255, .84); border: 1px solid #fff; border-radius: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 34px -16px rgba(24, 78, 160, .5);
  animation: bob var(--t, 7s) ease-in-out var(--dl, 0s) infinite;
  translate: calc(var(--mx) * var(--k, 16) * 1px) calc(var(--my) * var(--k, 16) * 1px);
  transition: translate .3s ease-out;
}
.float-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 9px; }
.float-card span { display: block; margin-top: 6px; padding-inline: 2px; font-size: 10px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-0 { top: -2%; left: -5%; --r: -6deg; --t: 7s; --k: 22; }
.fc-1 { top: 7%; right: -4%; width: 122px; --r: 5deg; --t: 8s; --dl: -2s; --k: 30; }
.fc-2 { bottom: 16%; left: -7%; width: 128px; --r: 4deg; --t: 9s; --dl: -4s; --k: 18; }
.fc-3 { bottom: 10%; right: -8%; width: 150px; --r: -4deg; --t: 7.5s; --dl: -1s; --k: 26; }

.float-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); border: 1px solid #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px -14px rgba(24, 78, 160, .45);
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; color: var(--ink); white-space: nowrap;
  animation: bob 8s ease-in-out infinite;
}
.float-chip .ico { color: var(--blue); }
.fch-1 { top: 2px; left: 30%; animation-delay: -3s; }
.fch-2 { top: 46%; left: -6%; animation-delay: -5s; }

.float-bubble {
  position: absolute; z-index: 4; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: 1px solid #fff; box-shadow: 0 14px 26px -12px rgba(24, 78, 160, .5);
  animation: bob 6s ease-in-out infinite;
}
.fb-1 { top: 3%; right: 24%; color: var(--orange); animation-delay: -1s; }
.fb-2 { top: 46%; right: 8%; color: var(--blue); animation-delay: -3s; }

/* Anel de vidro e esferas atrás do navegador */
.hv-ring {
  position: absolute; z-index: 1; top: -34px; right: -46px; width: 290px; height: 290px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, .98), rgba(125, 185, 255, .6), rgba(255, 255, 255, .25), rgba(255, 255, 255, .98));
  -webkit-mask-image: radial-gradient(circle, transparent 55%, #000 57%, #000 68%, transparent 70%);
  mask-image: radial-gradient(circle, transparent 55%, #000 57%, #000 68%, transparent 70%);
  filter: drop-shadow(0 10px 16px rgba(24, 78, 160, .25));
  transform: perspective(700px) rotateX(68deg) rotateZ(0deg);
  animation: ring-spin 22s linear infinite;
}
@keyframes ring-spin { to { transform: perspective(700px) rotateX(68deg) rotateZ(360deg); } }
.hv-orb { position: absolute; z-index: 1; border-radius: 50%; animation: bob 10s ease-in-out infinite; }
.hv-orb-a {
  width: 76px; height: 76px; left: -12px; bottom: 28%; animation-delay: -2s;
  background: radial-gradient(circle at 32% 28%, #fff 0, rgba(255, 255, 255, 0) 28%), radial-gradient(circle at 50% 50%, #ffd54a, #ff9a1f);
  box-shadow: 0 18px 28px -10px rgba(255, 150, 30, .55);
}
.hv-orb-b {
  width: 56px; height: 56px; right: 3%; bottom: 8px; animation-delay: -6s;
  background: radial-gradient(circle at 32% 28%, #fff 0, rgba(255, 255, 255, 0) 30%), radial-gradient(circle at 50% 50%, #5ec8ff, #2a7bf0);
  box-shadow: 0 16px 26px -10px rgba(42, 123, 240, .55);
}

/* --------------------------------------------------------------------------
   Métricas
   -------------------------------------------------------------------------- */
.metrics { position: relative; z-index: 3; margin-top: -76px; padding: 0 0 64px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric {
  display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px;
  background: rgba(255, 255, 255, .94); border: 1px solid #e7eff9; border-radius: 18px;
  box-shadow: 0 24px 40px -24px rgba(24, 78, 160, .4);
}
.metric-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #eaf3ff; color: var(--blue); }
.metric.tone-orange .metric-ico { background: #fff1ea; color: var(--orange); }
.metric.tone-green .metric-ico { background: #e8f8f1; color: var(--green); }
.metric.tone-purple .metric-ico { background: #f3eefe; color: var(--purple); }
.metric-value { font-family: var(--f-mono); font-size: 32px; line-height: 1.1; font-weight: 500; color: var(--ink); letter-spacing: -.03em; }
.metric-value .word { font-size: 18px; font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.metric-label { margin-top: 8px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.metric-text { margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--faint); }

/* --------------------------------------------------------------------------
   Portfólio
   -------------------------------------------------------------------------- */
.portfolio { background: var(--bg-soft); padding: 72px 0 80px; }
.portfolio-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 40px;
}
.portfolio-head .eyebrow { margin-bottom: 14px; }
.portfolio-head .h2 { max-width: 520px; margin-bottom: 12px; }


/* Modal de case (print completo do site) */
.case-modal {
  width: min(960px, calc(100% - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 0;
  border-radius: 16px; background: #fff; color: var(--ink); overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .55);
}
.case-modal[open] { display: flex; flex-direction: column; }
.case-modal::backdrop { background: rgba(11, 16, 32, .72); backdrop-filter: blur(3px); }
.case-modal-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); flex: none; }
.case-modal-bar h2 { margin-right: auto; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.case-modal-close { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 20px; line-height: 1; color: var(--muted); }
.case-modal-close:hover { color: var(--ink); border-color: #c7d2df; }
.case-modal-body { overflow-y: auto; background: #eef2f7; overscroll-behavior: contain; }
.case-modal-body img { width: 100%; height: auto; }
body.modal-open { overflow: hidden; }

.portfolio-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 56px; }
.ask {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: border-color .15s;
}
.ask .ico { color: var(--orange); }
.ask:hover { border-color: #c7d2df; }

/* --------------------------------------------------------------------------
   Galeria completa
   -------------------------------------------------------------------------- */
.gallery { padding: 80px 0 32px; background: #fff; }
.gallery .center-head { margin-bottom: 44px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.g-card {
  display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.g-card:hover { border-color: #c7d2df; box-shadow: var(--shadow-md); }
.g-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f7; border-bottom: 1px solid var(--line); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.g-card:hover .g-thumb img { transform: scale(1.04); }
.g-info { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.g-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; letter-spacing: -.01em; }
.g-host { font-family: var(--f-mono); font-size: 9.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Soluções
   -------------------------------------------------------------------------- */
.solutions { padding: 80px 0 90px; }
.solutions .center-head { margin-bottom: 52px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.service {
  display: flex; flex-direction: column; padding: 24px 22px 20px; background: var(--bg-soft);
  border: 1px solid #eef2f6; border-radius: 16px;
}
.ico-box {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #fff;
  box-shadow: var(--shadow-sm); margin-bottom: 28px; border: 1px solid #f0f3f7;
}
.ico-box.sm { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 20px; box-shadow: none; border: 0; }
.tone-blue .ico-box { color: var(--blue); } .tone-orange .ico-box { color: var(--orange); }
.tone-green .ico-box { color: var(--green); } .tone-purple .ico-box { color: var(--purple); }
.code-label { font-family: var(--f-mono); font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.service.tone-blue .code-label { color: var(--blue); } .service.tone-orange .code-label { color: var(--orange); } .service.tone-green .code-label { color: var(--green); }
.service h3 { font-size: 15px; line-height: 1.35; letter-spacing: -.01em; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.service > p:not(.code-label) { font-size: 11.5px; line-height: 1.7; color: var(--muted); margin-bottom: 26px; }
.service-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 9.5px; color: var(--muted);
}
.service.tone-blue .service-foot .ico { color: var(--blue); } .service.tone-orange .service-foot .ico { color: var(--orange); } .service.tone-green .service-foot .ico { color: var(--green); }

/* --------------------------------------------------------------------------
   Diferenciais
   -------------------------------------------------------------------------- */
.diffs { background: var(--bg-soft); padding: 64px 0 90px; border-bottom: 1px solid #eef2f6; }
.diffs .center-head { margin-bottom: 40px; }
.diff { background: #fff; border-radius: 14px; padding: 22px 22px 26px; box-shadow: var(--shadow-sm); border: 1px solid rgba(232, 237, 243, .7); }
.diff .ico-box.sm { background: #eef6fd; }
.diff.tone-orange .ico-box { background: #fff1ea; } .diff.tone-green .ico-box { background: #e8f8f1; } .diff.tone-purple .ico-box { background: #f3eefe; }
.diff h3 { font-size: 12.5px; line-height: 1.45; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.diff p { font-size: 10.5px; line-height: 1.7; color: var(--muted); }

/* --------------------------------------------------------------------------
   Contato
   -------------------------------------------------------------------------- */
.contact { padding: 72px 0 90px; }
.contact-card {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center;
  padding: 64px 56px; border-radius: 24px; border: 1px solid #eef2f6;
  background:
    radial-gradient(520px 300px at 0% 0%, rgba(11, 111, 191, .08), transparent 70%),
    radial-gradient(520px 320px at 100% 100%, rgba(120, 140, 255, .14), transparent 70%),
    #fff;
  box-shadow: var(--shadow-md);
}
.contact-copy .pill { margin-bottom: 22px; }
.contact h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.contact h2 { max-width: 640px; }
.contact .lead { font-size: 14px; margin: 0 auto 28px; max-width: 520px; }
.agent { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 24px; text-align: left; }
.agent-ico { position: relative; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #2aa0e8, #0b6fbf); box-shadow: 0 10px 22px -8px rgba(11, 111, 191, .6); }
.badge-dot { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; }
.agent-title { font-size: 12px; font-weight: 700; color: var(--ink); }
.agent-sub { font-family: var(--f-mono); font-size: 9px; color: var(--faint); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { padding: 52px 0 32px; border-top: 1px solid #eef2f6; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 11px; line-height: 1.7; color: var(--muted); max-width: 340px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--faint); background: var(--bg-soft); transition: color .15s, border-color .15s; }
.socials a:hover { color: var(--ink); border-color: #c7d2df; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h2 { font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.footer-col a { font-size: 10.5px; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--ink); }
.footer-col .muted { font-size: 10.5px; line-height: 1.6; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.footer-col .open { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; color: var(--green); line-height: 1.4; margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; font-family: var(--f-mono); font-size: 9px; color: var(--faint); }
.footer-bottom strong { color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .main-nav { gap: 22px; margin-left: 12px; }
  .header-actions .btn-light { display: none; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { padding: 48px 32px; }
}

@media (max-width: 900px) {
  .container { padding-inline: 20px; }
  .site-header { width: calc(100% - 40px); }
  .menu-toggle { display: block; }
  .header-actions { display: none; }
  .main-nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0; padding: 12px 20px 20px;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 1px solid #e7eff9; border-radius: 20px;
    box-shadow: 0 24px 40px -20px rgba(24, 78, 160, .35);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav a:not(.btn) { padding: 13px 0; font-size: 14px; border-bottom: 1px solid #f1f4f8; }
  .nav-cta-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .nav-cta-mobile .btn { padding: 12px 10px; font-size: 12px; }

  .hero { padding: 28px 0 112px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-visual { width: 100%; max-width: 580px; margin-inline: auto; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio { padding: 56px 0 64px; }
  .portfolio-head { flex-direction: column; align-items: flex-start; }
  .contact-card { padding: 36px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .g-info { padding: 10px 12px 12px; }
  .cards-4 { grid-template-columns: 1fr; }
  .metric { padding: 16px; }
  .metric-ico { display: none; }
  .metric-value { font-size: 26px; }
  .site-header { margin-top: 10px; top: 10px; }
  .hero-visual { padding: 30px 12px 50px; }
  .device-screen { --screen-h: 250px; }
  .float-card { width: 96px; }
  .fc-1, .fc-2, .fc-3, .fch-1, .fch-2, .fb-2 { display: none; }
  .hv-ring { width: 200px; height: 200px; right: -30px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* --------------------------------------------------------------------------
   Página de cases
   -------------------------------------------------------------------------- */
.page-hero { padding: 40px 0 44px; }
.crumbs { display: flex; gap: 8px; margin-bottom: 28px; font-family: var(--f-mono); font-size: 10.5px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-title { max-width: 720px; margin-bottom: 14px; }
.portfolio-all { padding-top: 40px; border-top: 0; }
.count { margin-bottom: 20px; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.count strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Animações
   -------------------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Entrada do hero: uma sequência única ao carregar a página */
.hero-copy > *, .hero-visual { animation: rise .75s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(1) { animation-delay: .08s; }
.hero-copy > :nth-child(2) { animation-delay: .2s; }
.hero-copy > :nth-child(3) { animation-delay: .32s; }
.hero-copy > :nth-child(4) { animation-delay: .44s; }
.hero-visual { animation-delay: .3s; }


/* Elementos que aparecem ao rolar (só com JS ativo) */
.js .reveal { opacity: 0; transform: translateY(16px); }
/* a transição fica só no estado final: esconder é instantâneo, mostrar anima */
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}

/* Header ganha sombra ao rolar */
.site-header { transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .25); }

/* Hover */
.g-card { transition: border-color .2s, box-shadow .2s, transform .25s ease; }
.g-card:hover { transform: translateY(-4px); }
.service, .diff { transition: transform .25s ease, box-shadow .25s ease; }
.service:hover, .diff:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.btn .ico { transition: transform .2s ease; }
.btn-lg:hover .ico { transform: translateX(3px); }

/* Métricas: barra de progresso e "pulo" do símbolo ao terminar a contagem */
.metric { position: relative; overflow: hidden; }
.metric::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand);
  transform: scaleX(0); transform-origin: left;
}
.metric.tone-orange::after { background: var(--orange); }
.metric.tone-green::after { background: var(--green); }
.metric.tone-purple::after { background: var(--purple); }
.metric.is-counting::after { transform: scaleX(1); transition: transform 2s cubic-bezier(.16, 1, .3, 1); }
.metric-value > span:not(.num) { display: inline-block; }
.metric.is-done .metric-value > span:not(.num) { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ---------- Toque e legibilidade no celular/tablet ---------- */
@media (max-width: 900px), (pointer: coarse) {
  /* alvos de toque >= 44px */
  .btn, .btn-sm, .btn-lg { min-height: 44px; }
  .menu-toggle { width: 44px; height: 44px; }
  .case-modal-close { width: 44px; height: 44px; }
  .socials a { width: 44px; height: 44px; }
  .footer-col a { display: inline-flex; align-items: center; min-height: 44px; }
  .main-nav a { min-height: 44px; display: flex; align-items: center; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 900px) {
  /* piso de 12px nos textos menores */
  .sub.sm, .metric-text, .service > p:not(.code-label), .diff p,
  .footer-brand p, .footer-col a, .footer-col .muted,
  .hero-proof, .crumbs, .count, .device-url, .device-caption,
  .float-card span, .float-chip { font-size: 12px; }
  .pill-orange, .eyebrow, .device-live, .device-caption b, .g-host,
  .code-label, .service-foot, .metric-label, .agent-sub,
  .footer-col h2, .footer-col .open, .footer-bottom { font-size: 12px; }
  .btn-sm { font-size: 12px; }
}
