/* Ponto Virtual — estilos do site (index.html) */

:root {
  --ink: #061a40;
  --ink-2: #1f2d4d;
  --ink-3: #404858;
  --muted: #5f6880;
  --muted-2: #9aa2b5;
  --line: #eef0f4;
  --line-2: #e2e6ee;
  --bg: #ffffff;
  --bg-2: #f9fafc;
  --bg-3: #f2f4f8;
  --accent: #0050c8;
  --accent-2: #5c9dff;
  --accent-soft: #ebf2ff;
  --accent-soft-2: #d6e5ff;
  --dark: #061a40;
  --dark-2: #0b2a5e;
  --gold: #c9a456;
  --green: #10b981;
  --green-soft: #e8f8f1;
  --shadow-xs: 0 1px 2px rgba(6, 26, 64, 0.04);
  --shadow-sm: 0 4px 14px rgba(6, 26, 64, 0.06);
  --shadow: 0 14px 36px rgba(6, 26, 64, 0.08);
  --shadow-lg: 0 30px 80px rgba(6, 26, 64, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Plus Jakarta Sans",
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
video {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}
.container-wide {
  width: min(1320px, 94%);
  margin-inline: auto;
}
::selection {
  background: var(--ink);
  color: #fff;
}

/* ============ TYPOGRAPHY HELPERS ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow.light {
  color: rgba(255, 255, 255, 0.7);
}
.eyebrow.light .dot {
  background: var(--accent-2);
}
h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.1;
}
h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 800;
}
h2 {
  font-size: clamp(30px, 3.6vw, 44px);
}
h3 {
  font-size: clamp(22px, 2.4vw, 28px);
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 8px 0;
}
.site-header.dark {
  /* Marinho mais denso: mantém o texto branco legível sobre qualquer parte do vídeo */
  background: linear-gradient(
    180deg,
    rgba(6, 26, 64, 0.82) 0%,
    rgba(6, 26, 64, 0.62) 100%
  );
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-header.dark .nav-links a {
  color: rgba(255, 255, 255, 0.92);
}
.site-header.dark .nav-links a:hover,
.site-header.dark .nav-links a.active {
  color: #fff;
}
.site-header.dark .nav-cta {
  background: var(--accent);
}
.site-header.dark .nav-cta:hover {
  background: #fff;
  color: var(--ink);
}
.site-header.dark .logo {
  color: #fff;
}
.site-header.dark .menu-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.site-header.scrolled .nav-links a,
.site-header.scrolled .logo {
  color: var(--ink);
}
.site-header.scrolled .menu-toggle {
  background: var(--bg-3);
  color: var(--ink);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: color 0.25s;
  color: var(--ink);
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}
/* Cabeçalho: logo branco sobre o vídeo, logo marinho depois de rolar */
.site-header .logo-on-light,
.site-header.scrolled .logo-on-dark {
  display: none;
}
.site-header.scrolled .logo-on-light {
  display: block;
}
.site-header.dark .logo {
  color: #fff;
}
.site-header.scrolled .logo {
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}
/* Traço sob o item da seção atual */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links a.active::after {
  transform: scaleX(1);
}
/* Botão de contato dentro do menu: só aparece no menu aberto do celular */
.nav-links .nav-menu-cta {
  display: none;
}
.nav-links.open .nav-menu-cta {
  display: inline-flex;
  margin-top: 4px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
}
.nav-links.open .nav-menu-cta::after {
  display: none;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.25s;
}
.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.site-header.scrolled .nav-cta {
  background: var(--ink);
}
.site-header.scrolled .nav-cta:hover {
  background: var(--accent);
}
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-3);
  align-items: center;
  justify-content: center;
}
.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  max-height: 900px;
  overflow: hidden;
  color: #fff;
  display: grid;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-video.loaded {
  opacity: 1;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(6, 26, 64, 0.35) 0%,
      rgba(6, 26, 64, 0.55) 60%,
      rgba(6, 26, 64, 0.78) 100%
    ),
    linear-gradient(
      90deg,
      rgba(6, 26, 64, 0.62) 0%,
      rgba(6, 26, 64, 0.28) 55%,
      rgba(6, 26, 64, 0.18) 100%
    );
}
.hero-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #061a40 0%,
    #061a40 50%,
    #0b2a5e 100%
  );
}
.hero-fallback svg {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero-content {
  position: relative;
  z-index: 5;
  padding: 120px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #5c9dff;
  box-shadow: 0 0 0 4px rgba(92, 157, 255, 0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(92, 157, 255, 0);
  }
}
.hero h1 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-size: clamp(38px, 5.4vw, 68px);
}
.hero h1 .light {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
}
.hero h1 .underline {
  position: relative;
  display: inline-block;
  color: #fff;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 10px;
  z-index: -1;
  background: rgba(92, 157, 255, 0.45);
  border-radius: 3px;
}
.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  margin: 28px 0 38px;
  max-width: 580px;
  line-height: 1.65;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 80, 200, 0.4);
}
.btn-primary:hover {
  background: #0042a8;
  transform: translateY(-2px);
}
.btn-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid #fff;
}
.btn-light:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: var(--accent);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.btn svg {
  width: 18px;
  height: 18px;
}

/* ============ HERO BADGE FLOAT (CMI) ============ */
.hero-badge {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: left;
}
.hero-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(92, 157, 255, 0.18),
    transparent 60%
  );
  pointer-events: none;
}
.hero-badge .label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.hero-badge h3 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  margin-bottom: 6px;
}
.hero-badge .full-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-badge p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin-bottom: 22px;
}
.hero-badge .meta {
  display: flex;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-badge .meta .it strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.hero-badge .meta .it small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
  letter-spacing: 0.06em;
}

/* ============ SCROLL CUE ============ */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 5;
  animation: bounce-soft 2.4s ease-in-out infinite;
}
.scroll-cue .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6),
    transparent
  );
}
@keyframes bounce-soft {
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ============ COMPANY VS PRODUCT (separation) ============ */
.duo-section {
  padding: 90px 0;
  background: var(--bg);
}
.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.duo-block {
  padding: 48px 44px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: all 0.3s ease;
}
.duo-block:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.duo-block.company {
  background: var(--bg);
}
.duo-block.product {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-color: var(--accent-soft-2);
}
.duo-block .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.duo-block.company .tag {
  background: rgba(6, 26, 64, 0.06);
  color: var(--ink-2);
}
.duo-block.product .tag {
  background: var(--accent-soft);
  color: var(--accent);
}
.duo-block h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.duo-block p.intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}
.duo-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.duo-stat .num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.duo-block.company .duo-stat .num {
  color: var(--ink);
}
.duo-block.product .duo-stat .num {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.duo-stat .lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ============ SECTION BASE ============ */
section.std {
  padding: 120px 0;
}
section.tight {
  padding: 90px 0;
}
.section-head {
  max-width: 780px;
  margin: 0 auto 70px;
  text-align: center;
}
.solutions .section-head {
  max-width: 1080px;
}
.section-head .eyebrow {
  margin-bottom: 18px;
  justify-content: center;
  display: inline-flex;
}
.section-head h2 {
  font-weight: 800;
  line-height: 1.1;
}
.section-head p {
  font-size: 17px;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.65;
}
.section-head.left {
  text-align: left;
  margin: 0 0 50px;
}

/* ============ ORBITAL ============ */
.orbital {
  background: var(--bg);
  position: relative;
}
.orbital-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.orbital-graphic {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 520px;
  margin: 0 auto;
}
.orbital-svg {
  width: 100%;
  height: 100%;
}
.orbital-ring {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 1;
  opacity: 0.45;
}
.orbital-ring.dashed {
  stroke-dasharray: 3 8;
}
.orbital-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink) 0%, var(--dark-2) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 24px 60px rgba(6, 26, 64, 0.25);
}
.orbital-center::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 80, 200, 0.3);
  animation: expand 3s ease-out infinite;
}
@keyframes expand {
  0% {
    transform: scale(0.94);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
.orbital-center .label {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.04em;
}
.orbital-center .sub {
  font-size: 9px;
  opacity: 0.7;
  letter-spacing: 0.22em;
  margin-top: 2px;
}
.orbit-icon {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(6, 26, 64, 0.1);
  color: var(--ink-2);
  border: 1px solid var(--line);
  transition:
    scale 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s;
  cursor: pointer;
  /* Órbita: cada ícone parte do centro, gira até seu ângulo, sai até o
     raio do anel e desfaz a rotação para continuar em pé. */
  top: 50%;
  left: 50%;
  margin: -29px 0 0 -29px;
  transform: rotate(calc(var(--start) + var(--spin)))
    translateX(var(--radius))
    rotate(calc(-1 * (var(--start) + var(--spin))));
  animation: orbit var(--period) linear infinite;
}
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes orbit {
  to {
    --spin: 360deg;
  }
}
.orbital-graphic {
  container-type: inline-size;
}
.orbital-graphic:hover .orbit-icon {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .orbit-icon {
    animation: none;
  }
}
.orbit-icon:hover {
  scale: 1.12;
  color: var(--accent);
  box-shadow: 0 14px 30px rgba(0, 80, 200, 0.2);
  border-color: var(--accent-soft-2);
}
.orbit-icon svg {
  width: 24px;
  height: 24px;
}
.orbit-icon::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  letter-spacing: 0.04em;
}
.orbit-icon:hover::after {
  opacity: 1;
}
/* Anel externo (r=220 de 500): volta mais lenta */
.orbit-1,
.orbit-3,
.orbit-5 {
  --radius: 44cqw;
  --period: 48s;
}
/* Anel tracejado do meio (r=160 de 500): volta mais rápida */
.orbit-2,
.orbit-4,
.orbit-6 {
  --radius: 32cqw;
  --period: 30s;
}
.orbit-1 {
  --start: -90deg;
}
.orbit-3 {
  --start: 30deg;
}
.orbit-5 {
  --start: 150deg;
}
.orbit-2 {
  --start: -30deg;
}
.orbit-4 {
  --start: 90deg;
}
.orbit-6 {
  --start: 210deg;
}
.orbital-text h2 {
  letter-spacing: -0.02em;
}
.orbital-text h2 span {
  color: var(--accent);
}
.orbital-text p.lead {
  font-size: 17px;
  color: var(--ink-2);
  margin: 22px 0 28px;
  line-height: 1.65;
}
.check-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--ink-2);
}
.check-list .check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-list .check svg {
  width: 13px;
  height: 13px;
}

/* ============ SOLUTIONS GRID ============ */
.solutions {
  background: var(--bg-2);
  position: relative;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.feature-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition:
    gap 0.25s,
    color 0.25s;
}
.feature-link svg {
  width: 14px;
  height: 14px;
}
.feature-card:hover .feature-link,
.feature-link:focus-visible {
  color: var(--accent);
  gap: 10px;
}
/* ============ CRM DETAIL ============ */
.crm-detail {
  background: var(--bg);
  position: relative;
}
.crm-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 60px;
  border: 1px solid var(--line);
}
.crm-card .head {
  margin-bottom: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.crm-card .head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.crm-card .head h2 span {
  color: var(--accent);
}
.crm-card .head .tagline {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}
.crm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin: 0 0 36px;
}
.crm-grid .item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: all 0.25s ease;
}
.crm-grid .item:hover {
  border-color: var(--accent-soft-2);
  background: var(--accent-soft);
}
.crm-grid .item .num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 12px;
}
.crm-grid .item:hover .num {
  background: var(--accent);
}
.crm-grid .item span {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.crm-card .actions {
  text-align: left;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============ IA SECTION (light) ============ */
.ia-section {
  background: var(--bg);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.ia-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 75% 50%,
      rgba(0, 80, 200, 0.06),
      transparent 55%
    ),
    radial-gradient(
      circle at 25% 50%,
      rgba(0, 80, 200, 0.05),
      transparent 55%
    );
}
.ia-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.ia-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(0, 80, 200, 0.1);
  color: #0050c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.ia-text .badge .ai-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 80, 200, 0.5);
}
.ia-text h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.ia-text h2 .destaque {
  color: #0050c8;
}
.ia-text p {
  font-size: 16px;
  color: var(--ink-3);
  margin-top: 20px;
  line-height: 1.7;
  max-width: 540px;
}
.ia-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 30px;
}
.ia-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.ia-list .ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 80, 200, 0.1);
  color: #0050c8;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ia-list .ico svg {
  width: 14px;
  height: 14px;
}
.ia-visual {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
}
.code-window {
  background: #061a40;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "JetBrains Mono", "Menlo", monospace;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.code-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-header .red {
  background: #ff5f57;
}
.code-header .yellow {
  background: #ffbd2e;
}
.code-header .green {
  background: #28c840;
}
.code-header .file {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.code-body {
  padding: 18px;
}
.code-line {
  display: block;
  white-space: pre;
}
.tk-key {
  color: #a78bfa;
}
.tk-str {
  color: #86efac;
}
.tk-fn {
  color: #7dd3fc;
}
.tk-com {
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}
.tk-num {
  color: #fbbf24;
}
.cursor-line {
  position: relative;
}
.cursor-line::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 16px;
  background: #5c9dff;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.ia-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ia-stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.ia-stat strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ia-stat small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============ STEPS ============ */
.steps-section {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.step {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 26px;
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.3s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: "Inter", monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.step h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}
.step-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.step-icon svg {
  width: 20px;
  height: 20px;
}

/* ============ TIMELINE ============ */
.history {
  background: var(--bg);
}
.timeline {
  position: relative;
  margin-top: 40px;
}
.timeline-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.timeline-track::-webkit-scrollbar {
  display: none;
}
.timeline-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
}
.timeline-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft-2);
  box-shadow: var(--shadow-sm);
}
.timeline-item .year {
  font-family: "Inter", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: inline-block;
}
.timeline-item p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ============ CLIENTS ============ */
.clients {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.clients-head {
  text-align: center;
  margin-bottom: 28px;
}
.clients-head h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.clients-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  text-align: center;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.client-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-xs);
}
/* Logotipo: cinza a 70% e cor original ao passar o mouse */
.client-card img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition:
    filter 0.25s,
    opacity 0.25s;
}
.client-card:hover img {
  filter: none;
  opacity: 1;
}
/* Logotipo quase quadrado: um pouco mais alto para pesar igual aos largos */
.client-card img[src$="ticket-log.png"],
.client-card img[src$="edenred.png"] {
  height: 48px;
}
@media (max-width: 600px) {
  .client-card img[src$="ticket-log.png"],
  .client-card img[src$="edenred.png"] {
    height: 38px;
  }
}
/* Cliente sem arquivo de logotipo: nome em texto no mesmo cartão */
.client-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  transition: color 0.25s;
}
.client-card:hover .client-name {
  color: var(--ink);
}
.client-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.client-facts li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-2);
}
.client-facts strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  margin-bottom: 2px;
}
@media (max-width: 980px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .client-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .clients {
    padding: 44px 0;
  }
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .client-card {
    min-height: 64px;
  }
  .client-card img {
    height: 28px;
  }
  .client-name {
    font-size: 14.5px;
  }
  .client-facts {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ============ CONTACT ============ */
.contact {
  background: var(--bg-2);
}
.contact-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-info {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.contact-info h3 span {
  color: var(--accent);
}
.contact-info p.intro {
  color: var(--muted);
  font-size: 15px;
  margin: 18px 0 30px;
  line-height: 1.65;
}
.contact-meta {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}
.contact-meta .item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-meta .item .ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-meta .item .ico svg {
  width: 20px;
  height: 20px;
}
.contact-meta .item small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.contact-meta .item strong {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 600;
}
.contact-form {
  background: var(--ink);
  color: #fff;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 100% 0%,
    rgba(92, 157, 255, 0.18),
    transparent 50%
  );
}
.contact-form-inner {
  position: relative;
  z-index: 2;
}
.contact-form h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-form p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
  margin-bottom: 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  margin-bottom: 14px;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.25s ease;
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-2);
}
textarea.form-control {
  resize: vertical;
  min-height: 90px;
}
.form-submit {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  margin-top: 8px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form-submit:hover {
  background: #0042a8;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 80, 200, 0.4);
}
.form-submit svg {
  width: 16px;
  height: 16px;
}
.form-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.form-feedback {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  display: none;
}
.form-feedback.ok {
  background: rgba(16, 185, 129, 0.14);
  color: #5eeab7;
  display: block;
}

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: #fff;
  padding: 70px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.foot-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
}
.foot-col p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.foot-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.foot-col a:hover {
  color: #fff;
}
.social {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  margin: 0;
  transition: background 0.2s;
}
.social a:hover {
  background: var(--accent);
}
.social svg {
  width: 16px;
  height: 16px;
}
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}
.foot-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.foot-legal a,
.foot-legal button {
  color: rgba(255, 255, 255, 0.6);
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}
.foot-legal a:hover,
.foot-legal button:hover {
  color: #fff;
}
.foot-legal button[hidden] {
  display: none;
}

/* ============ COOKIE CONSENT ============ */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: 380px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.6;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner p {
  margin: 0 0 14px;
  color: #4a5263;
}
.cookie-banner p a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cookie-actions button {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  border: 1px solid #c9ced8;
  transition: all 0.2s;
}
.cookie-actions button:hover {
  border-color: var(--ink);
}
.cookie-actions .cookie-accept {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.cookie-actions .cookie-accept:hover {
  background: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 600px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
  body.cookie-open .wa-float {
    bottom: 170px;
  }
}

/* ============ FLOATING WHATSAPP ============ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease;
}
.wa-float:hover {
  transform: scale(1.08);
}
.wa-float svg {
  width: 28px;
  height: 28px;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Logos do CMI nos cartões (topo e "O produto") e no centro da órbita */
.cmi-logo-h {
  line-height: 0;
}
.cmi-logo-h img {
  display: block;
  height: auto;
  max-width: 100%;
}
.hero-badge h3.cmi-logo-h {
  margin-bottom: 20px;
}
.duo-block h3.cmi-logo-h {
  margin-bottom: 14px;
}
.orbital-center img.label {
  display: block;
  width: 88px;
  height: auto;
}

/* Logo do CMI no topo do bloco da órbita (antigo bloco de destaque) */
.orbital-cmi-logo {
  display: block;
  width: 200px;
  height: auto;
  margin-bottom: 26px;
}

/* Soluções no celular: 2 colunas só com ícone, título e link */
@media (max-width: 600px) {
  .solutions .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .solutions .feature-card {
    padding: 20px 16px;
  }
  .solutions .feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }
  .solutions .feature-icon svg {
    width: 20px;
    height: 20px;
  }
  .solutions .feature-card h3 {
    font-size: 15px;
    margin-bottom: 0;
  }
  .solutions .feature-card p {
    display: none;
  }
  .solutions .feature-link {
    margin-top: 10px;
    font-size: 12.5px;
  }
}

/* ============ EFEITOS ============ */
/* Código se digitando: cada linha é revelada letra a letra (JS define a duração). */
.code-window.typing .code-line {
  width: fit-content;
  clip-path: inset(0 100% 0 0);
}
.code-window.typing .code-line.typed {
  animation: type-line var(--dur, 0.6s) steps(var(--chars, 20)) forwards;
}
@keyframes type-line {
  to {
    clip-path: inset(0 0 0 0);
  }
}
.code-window.typing .cursor-line::after {
  opacity: 0;
}
.code-window.typing.done .cursor-line::after {
  opacity: 1;
}

/* Cards de soluções: inclinação 3D + brilho seguindo o mouse */
.feature-card.tilting {
  transition:
    transform 0.12s ease-out,
    border-color 0.3s,
    box-shadow 0.3s;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 80, 200, 0.1),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card.tilting::after {
  opacity: 1;
}

/* Partículas que viajam dos ícones até o centro da órbita */
.orbit-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0050c8, #10b981);
  box-shadow: 0 0 8px rgba(0, 80, 200, 0.5);
  pointer-events: none;
  z-index: 1;
}
.orbital-center {
  z-index: 2;
}
.orbit-icon {
  z-index: 3;
}

/* Passos: linha de progresso ligando os ícones, que se acendem em sequência */
/* Cada card desenha o próprio trecho, por trás do ícone: ::after sai do
   centro do ícone até o centro do ícone do próximo card (o próximo card
   cobre a parte final), e ::before chega da borda esquerda até o ícone. */
.step:not(:last-child)::after,
.step:not(:first-of-type)::before {
  content: "";
  position: absolute;
  top: 52px;
  height: 2px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) left / 0% 100% no-repeat,
    var(--line-2);
  transition: background-size 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.step:not(:last-child)::after {
  left: 47px;
  width: calc(100% + 20px);
}
.step:not(:first-of-type)::before {
  left: 0;
  width: 47px;
  transition-duration: 0.15s;
}
.step.lit::after,
.step.lit::before {
  background-size: 100% 100%;
}
.step-icon {
  position: relative;
  z-index: 2;
  transition:
    background 0.4s 0.15s,
    color 0.4s 0.15s,
    box-shadow 0.4s 0.15s;
}
.step.lit .step-icon {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 6px var(--accent-soft);
}

/* Linha do tempo: navegação (anos clicáveis, setas, degradê, arrastar) */
.timeline-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.timeline-years {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.timeline-years button {
  font: 600 13px/1 "Inter", sans-serif;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.timeline-years button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.timeline-years button.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.timeline-arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.tl-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    opacity 0.2s;
}
.tl-arrow svg {
  width: 18px;
  height: 18px;
}
.tl-arrow:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tl-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.timeline-viewport {
  position: relative;
}
/* Degradê nas bordas indicando que há mais cards para o lado */
.timeline-viewport::before,
.timeline-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s;
}
.timeline-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
  opacity: 0;
}
.timeline-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}
.timeline-viewport.scrolled::before {
  opacity: 1;
}
.timeline-viewport.at-end::after {
  opacity: 0;
}
.timeline-track {
  cursor: grab;
}
/* Card do ano selecionado */
.timeline-item.selected {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 80, 200, 0.12);
}
.timeline-item.selected::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft-2);
}
.timeline-item.selected .year {
  color: var(--accent);
}
.timeline-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.timeline-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}
@media (max-width: 600px) {
  .timeline-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .timeline-years {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .timeline-years::-webkit-scrollbar {
    display: none;
  }
  .timeline-years button {
    flex-shrink: 0;
  }
  .timeline-arrows {
    display: none;
  }
  .timeline-viewport::before,
  .timeline-viewport::after {
    width: 32px;
  }
}

/* Linha do tempo: trilho que se desenha e acende cada ano */
.timeline-track {
  position: relative;
  padding-top: 30px;
}
.timeline-rail {
  position: absolute;
  top: 12px;
  left: 4px;
  height: 2px;
  background: var(--line);
  pointer-events: none;
}
.timeline-rail span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0050c8, #10b981);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-2);
  transition:
    background 0.4s,
    border-color 0.4s,
    box-shadow 0.4s;
}
.timeline-item.lit::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.timeline-item .year {
  transition: color 0.4s;
}
.timeline-item:not(.lit) .year {
  color: var(--muted);
}

/* Botões magnéticos */
.btn.magnetic {
  transition:
    translate 0.2s ease-out,
    background 0.25s,
    transform 0.25s;
}

@media (max-width: 980px) {
  .step::after,
  .step::before {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .step::after,
  .step::before,
  .timeline-rail span {
    transition: none;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
    gap: 18px;
    align-items: flex-start;
    z-index: 200;
  }
  .site-header.dark .nav-links.open a,
  .site-header.scrolled .nav-links.open a,
  .nav-links.open a {
    color: var(--ink-2);
    font-size: 16px;
    font-weight: 600;
  }
  .site-header.dark .nav-links.open a:hover,
  .nav-links.open a:hover {
    color: var(--accent);
  }
  .nav-cta {
    display: none;
  }
  .hero {
    height: auto;
    min-height: auto;
    max-height: none;
    padding: 0;
  }
  .hero-content {
    padding: 128px 0 80px;
  }
  /* Itens de grid podem encolher abaixo da largura do conteúdo (ex.: código) */
  .hero-grid > *,
  .ia-grid > *,
  .orbital-grid > *,
  .crm-card .head > * {
    min-width: 0;
  }
  .code-body {
    overflow-x: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .scroll-cue {
    display: none;
  }
  section.std {
    padding: 80px 0;
  }
  .duo-grid {
    grid-template-columns: 1fr;
  }
  .duo-block {
    padding: 54px 32px;
  }
  .duo-block.company {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .orbital-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .orbital-graphic {
    order: 2;
    max-width: 400px;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .crm-card {
    padding: 40px 28px;
  }
  .crm-card .head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .crm-grid {
    grid-template-columns: 1fr;
  }
  .ia-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .steps-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-info,
  .contact-form {
    padding: 36px 28px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .steps-row {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .duo-stats {
    grid-template-columns: 1fr 1fr;
  }
  h1 {
    font-size: 38px;
  }
  .container {
    width: calc(100% - 32px);
  }

  /* Espaçamentos mais enxutos no celular */
  section.std {
    padding: 64px 0;
  }
  .duo-section {
    padding: 56px 0;
  }
  .duo-grid {
    gap: 16px;
  }
  .duo-block {
    padding: 32px 22px;
  }
  .duo-block p.intro {
    margin-bottom: 24px;
  }
  .duo-stats {
    gap: 20px 16px;
  }
  .duo-stat .num {
    font-size: 30px;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .section-head p {
    font-size: 15.5px;
  }
  .hero-content {
    padding: 128px 0 56px;
  }
  .hero-eyebrow {
    letter-spacing: 0.1em;
  }
  .hero-badge {
    padding: 26px 22px;
  }
  .hero-badge .meta {
    gap: 16px;
    justify-content: space-between;
  }
  .crm-card {
    padding: 28px 18px;
    border-radius: var(--radius-lg);
  }
  .ia-visual {
    padding: 14px;
    border-radius: 18px;
  }
  .code-window {
    font-size: 11px;
  }
  .code-body {
    padding: 14px;
  }
  .ia-stats {
    gap: 8px;
  }
  .ia-stat {
    padding: 12px 6px;
  }
  .ia-stat small {
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .step {
    padding: 26px 22px;
  }
  .timeline-item {
    flex-basis: min(280px, 82vw);
  }
  .contact-info,
  .contact-form {
    padding: 28px 20px;
  }
  footer {
    padding-top: 52px;
  }
  .foot-grid {
    gap: 32px;
    margin-bottom: 32px;
  }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .wa-float {
    width: 50px;
    height: 50px;
    right: 16px;
    bottom: 16px;
  }
  .wa-float svg {
    width: 24px;
    height: 24px;
  }
}
