/* ==========================================================================
   SWCOM — Site Institucional
   Estilos principais
   ========================================================================== */

/* ---------- Fontes ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* cores de marca */
  --color-primary: #005B7F;
  --color-primary-dark: #003E57;
  --color-primary-light: #3D89A6;
  --color-secondary: #6D6E71;

  /* acento de energia — usado com moderação (linha de pulso, detalhes) */
  --color-accent: #F2A93B;
  --color-accent-2: #29C7B8;

  /* neutros */
  --color-bg: #F6F9FA;
  --color-bg-alt: #EBF2F4;
  --color-ink: #0F262E;
  --color-ink-soft: #45535A;
  --color-white: #FFFFFF;
  --color-line: #DCE5E8;

  /* tipografia */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* medidas */
  --max-width: 1180px;
  --gutter: clamp(24px, 6vw, 64px);
  --radius: 16px;
  --header-h: 84px;
  --topbar-h: 38px;

  /* movimento */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset básico ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
section { scroll-margin-top: calc(var(--header-h) + var(--topbar-h)); position: relative; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 10px;
}

.section-head p {
  color: var(--color-ink-soft);
  font-size: 1.05rem;
  margin-top: 14px;
}

/* ---------- Introdução com ilustração ao lado do texto ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 76px);
}
.intro-grid-reverse .intro-visual { order: 2; }
.intro-grid-reverse .section-head { order: 1; }

.intro-visual {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 50px -30px rgba(15, 38, 46, 0.2);
}

.text-muted { color: var(--color-ink-soft); }

/* respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* foco visível para navegação por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 10px 24px -10px rgba(0, 91, 127, 0.55);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 32px -12px rgba(0, 91, 127, 0.65); }
.btn-primary:active { transform: translateY(-1px) scale(0.99); }

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-3px); }

.btn-block { width: 100%; }

/* ---------- Fundo animado / blobs de gradiente ---------- */
.bg-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  will-change: transform;
  animation: blob-float 22s var(--ease) infinite alternate;
}
.bg-blob.b-primary { background: radial-gradient(circle, var(--color-primary-light), transparent 70%); }
.bg-blob.b-accent   { background: radial-gradient(circle, var(--color-accent), transparent 70%); opacity: 0.22; }
.bg-blob.b-teal      { background: radial-gradient(circle, var(--color-accent-2), transparent 70%); opacity: 0.22; }

@keyframes blob-float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.15); }
  100% { transform: translate(-30px, 20px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-blob { animation: none; }
}

/* ---------- Utilitário de revelação ao rolar ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/*
  Importante: o estado inicial do .reveal-mask NÃO pode deixar o conteúdo
  100% invisível. Se o JavaScript não disparar por qualquer motivo
  (bloqueador de scripts, captura de tela de página inteira, elemento
  abaixo da rolagem em ferramentas automatizadas, etc.), o conteúdo tem
  que continuar visível — a animação é só um adicional, nunca um requisito
  para ver a imagem.
*/
.reveal-mask {
  clip-path: inset(0 0 8% 0);
  transition: clip-path 0.9s var(--ease);
}
.reveal-mask.is-visible { clip-path: inset(0 0 0% 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-mask { opacity: 1; transform: none; clip-path: inset(0); transition: none; }
}

/* ==========================================================================
   Faixa superior de boas-vindas
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  background: var(--color-primary);
  color: var(--color-white);
  z-index: 101;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar span {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.topbar-link {
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  transition: border-color .25s var(--ease);
}
.topbar-link:hover { border-bottom-color: var(--color-white); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(246, 249, 250, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--color-line);
  height: 72px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- Marca ControlGym ----------
   A marca usa os arquivos originais da logo em vez de texto reconstruído em
   CSS: a fonte da logo não está disponível na web, e qualquer tentativa de
   imitá-la com letter-spacing desalinha o slogan. Com a imagem, o resultado
   é fiel em qualquer tamanho de tela.
   - cabeçalho: logo-name.png (cores originais)
   - rodapé: logo-name-white.png (mesma arte em branco, para o fundo escuro) */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* símbolo circular */
.brand-mark {
  height: 42px;
  width: auto;
  transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg); }

/* nome + slogan (imagem única, proporção travada pela própria arte) */
.brand-wordmark {
  height: 34px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--color-accent);
  transition: width .3s var(--ease);
}
.main-nav a:hover { color: var(--color-ink); }
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--color-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--color-line);
  background: var(--color-white);
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--color-ink);
  position: relative;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: calc(var(--header-h) + var(--topbar-h) + 64px) 0 80px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 22px;
  padding: 7px 16px 7px 10px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 999px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.25);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(242, 169, 59, 0.12); }
}

.hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1.06;
  max-width: 640px;
}

.hero-lead {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--color-secondary);
}

/* --- gráfico do hero: linha de pulso com tilt de mouse --- */
.hero-graphic {
  position: relative;
  perspective: 1200px;
}

/* ---------- Moldura de notebook em volta do painel do sistema ---------- */
.laptop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform .3s ease-out;
  will-change: transform;
}

.laptop-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #23343C 0%, #14232A 100%);
  border-radius: 16px 16px 4px 4px;
  padding: 16px 14px 18px;
  box-shadow: 0 30px 70px -20px rgba(0, 61, 86, 0.55);
}

/* webcam no topo da tampa */
.laptop-camera {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

/* base/teclado do notebook, mais larga que a tela */
.laptop-base {
  position: relative;
  width: 116%;
  height: 14px;
  background: linear-gradient(180deg, #2E4048 0%, #1A272E 100%);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 26px -14px rgba(0, 30, 43, 0.55);
}
.laptop-base::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 5px;
  margin: 0 6%;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 0 0 8px 8px;
}

/* recorte central da base (abertura para abrir a tampa) */
.laptop-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 5px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 6px 6px;
}

.pulse-panel {
  position: absolute;
  inset: 16px 14px 18px;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 6px;
  overflow: hidden;
}

.pulse-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.16), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(242,169,59,0.18), transparent 40%);
  pointer-events: none;
}

.pulse-panel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pulse-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-pulse 2.4s var(--ease) forwards .3s;
}

@keyframes draw-pulse {
  to { stroke-dashoffset: 0; }
}

.chart-topbar circle {
  fill: rgba(255, 255, 255, 0.55);
}

.chart-sidebar .side-slot {
  fill: rgba(255, 255, 255, 0.08);
  transition: fill .3s var(--ease);
}
.chart-sidebar .side-slot-active {
  fill: var(--color-accent);
}

.side-icon {
  fill: none;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-icon-active {
  stroke: var(--color-ink);
  stroke-width: 2.8;
}

.pulse-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

/* ---------- Gráfico de barras do painel do hero (visual mais genérico de dashboard) ---------- */
.chart-bar {
  fill: rgba(255, 255, 255, 0.22);
  transform-box: fill-box;
  transform-origin: bottom center;
  transform: scaleY(0);
  animation: bar-grow 0.8s var(--ease) forwards;
}
.chart-bar-accent { fill: var(--color-accent); }

.chart-bars .chart-bar:nth-of-type(1) { animation-delay: .15s; }
.chart-bars .chart-bar:nth-of-type(2) { animation-delay: .25s; }
.chart-bars .chart-bar:nth-of-type(3) { animation-delay: .35s; }
.chart-bars .chart-bar:nth-of-type(4) { animation-delay: .45s; }
.chart-bars .chart-bar:nth-of-type(5) { animation-delay: .55s; }
.chart-bars .chart-bar:nth-of-type(6) { animation-delay: .65s; }
.chart-bars .chart-bar:nth-of-type(7) { animation-delay: .75s; }

@keyframes bar-grow {
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .chart-bar { transform: scaleY(1); animation: none; }
}

.metric-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 16px 30px -12px rgba(0, 30, 43, 0.35);
  opacity: 0;
  transform: translateY(10px);
  animation: chip-in .6s var(--ease) forwards;
}
.metric-chip .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary);
  line-height: 1;
}
.metric-chip .label {
  font-size: 0.78rem;
  color: var(--color-secondary);
  margin-top: 2px;
}
.metric-chip.c1 { top: 14%; right: 8%; animation-delay: 1.7s; }
.metric-chip.c2 { bottom: 10%; left: 22%; animation-delay: 2.05s; }

@keyframes chip-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-line { stroke-dashoffset: 0; animation: none; }
  .metric-chip { opacity: 1; transform: none; animation: none; }
  .laptop { transform: none !important; }
}

/* ==========================================================================
   Marquee — faixa de recursos em rolagem contínua
   ========================================================================== */
.marquee {
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: 26px 0;
  overflow: hidden;
  background: var(--color-white);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: marquee-scroll 26s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-ink-soft);
  white-space: nowrap;
}
.marquee-track span svg {
  color: var(--color-primary-light);
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ==========================================================================
   Seções gerais
   ========================================================================== */
.section {
  padding: clamp(72px, 10vw, 120px) 0;
}
.section-alt { background: var(--color-bg-alt); }

/* ---------- Sobre / diferenciais ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}

.about-copy {
  position: relative;
  z-index: 1;
}

.about-motif {
  position: absolute;
  top: -36px;
  right: -20px;
  width: 190px;
  opacity: 0.06;
  color: var(--color-primary);
  pointer-events: none;
  z-index: 0;
}
.about-motif svg {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 3;
}

.about-copy p {
  position: relative;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
  margin: 0 0 18px;
}
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .section-tag,
.about-copy h2 { position: relative; }

.diff-list {
  border-top: 1px solid var(--color-line);
}
.diff-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-line);
  transition: padding-left .3s var(--ease);
}
.diff-item:hover { padding-left: 8px; }
.diff-item .diff-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.diff-item:hover .diff-icon { background: var(--color-primary); color: var(--color-white); transform: rotate(-6deg); }
.diff-item h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.diff-item p {
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Tecnologia ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tech-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.tech-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary-light);
  box-shadow: 0 24px 40px -26px rgba(0, 91, 127, 0.3);
}
.tech-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.tech-card:hover .tech-icon { background: var(--color-primary); color: var(--color-white); }
.tech-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.tech-card p {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Soluções / módulos com espinha de pulso ---------- */
.solutions-spine {
  position: relative;
}
.solutions-spine::before {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px;
  left: 27px;
  width: 2px;
  background: var(--color-line);
}

.solution-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
}

.solution-node {
  position: relative;
  width: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
}
.solution-node .dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-line);
  transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  z-index: 1;
}
.solution-row.is-active .solution-node .dot {
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(0, 91, 127, 0.14);
}

.solution-body {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.solution-row.is-active .solution-body {
  border-color: var(--color-primary-light);
  box-shadow: 0 20px 40px -28px rgba(0, 91, 127, 0.45);
  transform: translateX(6px);
}

.solution-body h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.solution-icon {
  flex-shrink: 0;
  color: var(--color-primary);
}
.solution-body p {
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  margin: 0;
  max-width: 520px;
}
.solution-index {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-secondary);
  align-self: start;
  padding-top: 4px;
}

/* ---------- Telas do sistema (mockups ilustrados) ---------- */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.screen-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.screen-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 50px -24px rgba(15, 38, 46, 0.28);
}

.screen-frame {
  background: var(--color-bg-alt);
  padding: 18px;
}

.browser-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.browser-bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-line);
}
.browser-bar span:first-child { background: var(--color-accent); }

.screen-visual {
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-white);
}
.screen-visual svg { width: 100%; height: auto; display: block; }

.screen-card .screen-caption {
  padding: 22px 24px 26px;
}
.screen-card h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.screen-card p { color: var(--color-ink-soft); font-size: 0.95rem; margin: 0; }

/* mockup de telefone dentro do card do meio */
.phone-frame {
  width: 130px;
  margin: 0 auto;
  background: var(--color-ink);
  border-radius: 22px;
  padding: 8px;
}
.phone-frame .phone-screen {
  background: var(--color-white);
  border-radius: 14px;
  overflow: hidden;
}
.phone-frame .phone-screen svg { width: 100%; display: block; }

/* ---------- Como funciona ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.process-item {
  padding: 30px 26px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.process-item:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary-light);
  box-shadow: 0 24px 40px -26px rgba(0, 91, 127, 0.35);
}
.process-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.process-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-primary);
}
.process-icon {
  color: var(--color-primary-light);
}
.process-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.process-item p {
  color: var(--color-ink-soft);
  font-size: 0.97rem;
  margin: 0;
}

/* ---------- Resultados + contadores ---------- */
.results-motif {
  position: absolute;
  top: 6%;
  left: 4%;
  width: 220px;
  opacity: 0.05;
  color: var(--color-primary);
  pointer-events: none;
  z-index: 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.result-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-white);
  transition: transform .35s var(--ease);
}
.result-card:hover { transform: translateY(-6px); }
.result-card:nth-child(2) { background: var(--color-ink); }
.result-card:nth-child(3) { background: var(--color-primary-dark); }
.result-icon {
  color: var(--color-accent);
  margin-bottom: 16px;
  display: block;
}
.result-card p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 18px;
}
.result-card span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

.counters-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}
.counter-item .counter-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--color-primary);
  display: block;
}
.counter-item .counter-label {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ---------- CTA + Contato ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 64px);
}

.contact-copy {
  position: relative;
}

.contact-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
}
.contact-copy p {
  color: var(--color-ink-soft);
  margin-top: 16px;
  font-size: 1.05rem;
  max-width: 460px;
}

.contact-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
}
.contact-list svg { flex-shrink: 0; margin-top: 3px; color: var(--color-primary); }

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 30px 60px -30px rgba(15, 38, 46, 0.25);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--color-line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--color-ink);
  background: var(--color-bg);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
  outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }

/* honeypot antispam — nunca visível para humanos */
.field-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-alert {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.form-alert.success {
  background: #E5F4EA;
  color: #1E6B3A;
  border: 1px solid #BFE4CB;
}
.form-alert.error {
  background: #FBEAEA;
  color: #A32E2E;
  border: 1px solid #F3CACA;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  font-size: 0.94rem;
}
.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.94rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--color-white); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); transform: translateY(-3px); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-graphic { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid .section-head, .intro-grid .intro-visual { order: initial; }
  .intro-visual { max-width: 420px; margin: 0 auto; }
  .contact-wrap { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
  .screens-grid { grid-template-columns: 1fr; }
  .counters-strip { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  body.nav-open .main-nav {
    display: block;
    position: fixed;
    top: calc(var(--header-h) + var(--topbar-h));
    left: 0; right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
    padding: 12px var(--gutter) 28px;
  }
  body.nav-open .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  body.nav-open .main-nav a {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
  }
  .header-actions .btn-primary { display: none; }
  body.nav-open .header-actions .btn-primary {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .solution-body { grid-template-columns: 1fr; }
  .solution-index { display: none; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .tech-grid { grid-template-columns: 1fr; }

  /* marca reduzida para não estourar a largura da tela */
  .brand-mark { height: 34px; }
  .brand-wordmark { height: 26px; }
  .topbar span { font-size: 0.76rem; }
}

/* ==========================================================================
   Formulário — estados de validação (usado por js/form.js)
   ========================================================================== */
.field { position: relative; }

.field input.is-invalid,
.field textarea.is-invalid,
.field select.is-invalid {
  border-color: #C0392B;
  background: #FDF6F5;
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.81rem;
  color: #C0392B;
  line-height: 1.35;
}

.field-counter {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--color-secondary);
  text-align: right;
}
.field-counter.is-near-limit { color: #C0392B; }

.btn:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}
