/* Fallback font ajustado pras métricas do Inter — evita "salto" quando a Google Font carrega */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Segoe UI'), local('Arial');
  ascent-override: 90%;
  descent-override: 22.4%;
  line-gap-override: 0%;
  size-adjust: 107%;
}

:root {
  --bg: #ffffff;
  --bg-elev: #f7f8fb;
  --bg-card: #ffffff;
  --border: #e5e8ee;
  --border-strong: #d6dae2;
  --text: #0f172a;
  --text-dim: #4b5563;
  --text-mute: #8892a4;
  --accent: #4f8cff;
  --accent-2: #a855f7;
  --accent-glow: rgba(79, 140, 255, 0.22);
  --success: #16a34a;
  --grad: linear-gradient(135deg, #4f8cff 0%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(79,140,255,0.08) 0%, rgba(168,85,247,0.08) 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 60px rgba(79, 140, 255, 0.15);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at var(--mesh-x1, 15%) var(--mesh-y1, 5%), rgba(79,140,255,0.10) 0%, transparent 40%),
    radial-gradient(circle at var(--mesh-x2, 85%) var(--mesh-y2, 40%), rgba(168,85,247,0.08) 0%, transparent 40%),
    radial-gradient(circle at var(--mesh-x3, 50%) var(--mesh-y3, 90%), rgba(34,197,94,0.05) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
  animation: mesh-move 18s ease-in-out infinite;
}
@keyframes mesh-move {
  0%, 100% { --mesh-x1: 15%; --mesh-y1: 5%; --mesh-x2: 85%; --mesh-y2: 40%; --mesh-x3: 50%; --mesh-y3: 90%; }
  33% { --mesh-x1: 80%; --mesh-y1: 20%; --mesh-x2: 20%; --mesh-y2: 60%; --mesh-x3: 70%; --mesh-y3: 80%; }
  66% { --mesh-x1: 40%; --mesh-y1: 70%; --mesh-x2: 60%; --mesh-y2: 10%; --mesh-x3: 20%; --mesh-y3: 50%; }
}
@property --mesh-x1 { syntax: '<percentage>'; inherits: false; initial-value: 15%; }
@property --mesh-y1 { syntax: '<percentage>'; inherits: false; initial-value: 5%; }
@property --mesh-x2 { syntax: '<percentage>'; inherits: false; initial-value: 85%; }
@property --mesh-y2 { syntax: '<percentage>'; inherits: false; initial-value: 40%; }
@property --mesh-x3 { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --mesh-y3 { syntax: '<percentage>'; inherits: false; initial-value: 90%; }

/* Barra de progresso de scroll */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Tilt 3D cards */
.tilt { transform-style: preserve-3d; transition: transform 0.15s ease-out; will-change: transform; }

/* Botão voltar ao topo */
.to-top {
  position: fixed;
  bottom: 100px;
  right: 26px;
  width: 44px; height: 44px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, color 0.2s;
  z-index: 199;
  box-shadow: var(--shadow);
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { color: var(--accent); }
.to-top svg { width: 20px; height: 20px; }

/* Toggle tema */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s;
  margin-right: 4px;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============ Header ============ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}
.logo img { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-weight: 700;
  font-size: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.02em;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 30px var(--accent-glow); }
.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ============ Hero ============ */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
}
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero .badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 40px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 72px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats .stat span {
  font-size: 13px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trust-bars {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.trust-label-block {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 4px;
}
.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.85;
}
.marquee-item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.trust-label {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.trust-names {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.trust-names .dot { color: var(--text-mute); }

/* ============ Section base ============ */
section { padding: 100px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}
.section-head p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ Services grid ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,140,255,0.4);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px var(--accent-glow);
}
.service-icon svg { width: 24px; height: 24px; color: white; }
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.service-card p {
  color: var(--text-dim);
  font-size: 14px;
}
.service-card .learn {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* ============ Feature strip (CERC highlight) ============ */
.feature-strip {
  background: linear-gradient(135deg, #f6f8ff 0%, #faf5ff 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.feature-strip::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.feature-strip .eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.feature-strip h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.15;
  color: var(--text);
}
.feature-strip p { color: var(--text-dim); margin-bottom: 28px; }
.feature-strip ul { list-style: none; margin-bottom: 32px; }
.feature-strip li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--text);
  font-size: 15px;
}
.feature-strip li::before {
  content: '';
  width: 20px; height: 20px;
  background: var(--grad);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M8.5 13.5L5 10l-1.5 1.5L8.5 16.5 17 8l-1.5-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M8.5 13.5L5 10l-1.5 1.5L8.5 16.5 17 8l-1.5-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.feature-visual {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: #94a3b8;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}
.feature-visual .code-line { padding: 3px 0; }
.feature-visual .code-line.ok { color: #4ade80; }
.feature-visual .code-line.key { color: #60a5fa; }
.feature-visual .code-line.mute { color: #64748b; }

/* ============ How it works / steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-block;
  width: 40px; height: 40px;
  background: var(--grad);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  line-height: 40px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px var(--accent-glow);
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step p { color: var(--text-dim); font-size: 14px; }

/* ============ Cases ============ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}
.case-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.case-thumb {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: white;
  padding: 24px;
  background: white;
  border-bottom: 1px solid var(--border);
}
.case-thumb.gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--case-c1, #4f8cff), var(--case-c2, #a855f7));
}
.case-thumb.gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3), transparent 50%);
}
.case-thumb .initials {
  position: relative;
  z-index: 1;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.case-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.case-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.case-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.case-body p { color: var(--text-mute); font-size: 13px; flex: 1; }
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.case-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.case-card:hover .case-link svg { transform: translate(2px, -2px); }

/* ============ Marquee Tech Stack (K) ============ */
.marquee-tech .marquee-track { animation: marquee 24s linear infinite; }
.marquee-tech .marquee-item { color: var(--text); font-size: 15px; }
.marquee-tech .marquee-item::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tech-color, var(--accent));
  margin-right: 8px;
}

/* ============ NearMax ao vivo (J + I) ============ */
.aovivo-section { background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%); }
.aovivo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.aovivo-card {
  background: linear-gradient(135deg, #0d1220 0%, #1a1730 100%);
  border-radius: 20px;
  padding: 28px;
  color: white;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,23,42,0.15);
}
.aovivo-card h3 {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.aovivo-card .subtitle {
  color: #8b95a5;
  font-size: 13px;
  margin-bottom: 24px;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: auto;
}
.live-dot::before {
  content: '';
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Dashboard mini */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.dash-kpi {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
}
.dash-kpi .lbl {
  font-size: 10px;
  color: #8b95a5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.dash-kpi .val {
  font-size: 20px;
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.dash-kpi .val.g { color: #4ade80; }
.dash-kpi .val.b { color: #60a5fa; }
.dash-kpi .val.p { color: #c084fc; }
.dash-chart {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px;
}
.dash-chart .lbl {
  font-size: 10px;
  color: #8b95a5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
}
.dash-bar {
  flex: 1;
  background: linear-gradient(180deg, #4f8cff, #a855f7);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: dashGrow 1.5s ease-out forwards;
}
@keyframes dashGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Notifications stack */
.notif-stack {
  position: relative;
  height: 260px;
}
.notif {
  position: absolute;
  left: 0; right: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #e6edf3;
  animation: notifSlide 6s infinite;
  opacity: 0;
}
.notif .ic {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(74,222,128,0.15);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: bold;
}
.notif.blue .ic { background: rgba(96,165,250,0.15); color: #60a5fa; }
.notif.purple .ic { background: rgba(192,132,252,0.15); color: #c084fc; }
.notif .body { flex: 1; min-width: 0; }
.notif .body strong {
  display: block;
  font-weight: 600;
  color: #e6edf3;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif .body span {
  color: #8b95a5;
  font-size: 11px;
}
@keyframes notifSlide {
  0% { transform: translateY(-15px); opacity: 0; }
  10% { transform: translateY(0); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(0); opacity: 0.25; }
}

@media (max-width: 900px) {
  .aovivo-grid { grid-template-columns: 1fr; }
  .aovivo-card { min-height: auto; }
  .notif-stack { height: 300px; }
}

/* ============ CERC Processor (H) ============ */
.cerc-processor {
  background: #0a0d14;
  border-radius: 20px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  box-shadow: 0 20px 60px rgba(15,23,42,0.15);
  margin-top: 32px;
}
.cerc-side {
  background: #0d1220;
  border: 1px solid #1e2836;
  border-radius: 12px;
  padding: 18px 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #8b95a5;
  min-height: 240px;
}
.cerc-side-title {
  color: var(--accent);
  font-size: 11px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cerc-side-title::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.cerc-side.output .cerc-side-title { color: #4ade80; }
.cerc-side.output .cerc-side-title::before { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.cerc-line {
  padding: 3px 0;
  opacity: 0;
  animation: cercIn 0.3s forwards;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cerc-line.processed { color: #4ade80; }
.cerc-line .amount { color: #fbbf24; }
.cerc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--accent);
  animation: cercFlow 2s infinite;
  padding: 0 8px;
}
@keyframes cercIn { to { opacity: 1; } }
@keyframes cercFlow {
  0%,100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(6px); opacity: 1; }
}
@media (max-width: 720px) {
  .cerc-processor { grid-template-columns: 1fr; padding: 20px; }
  .cerc-arrow { transform: rotate(90deg); font-size: 24px; padding: 8px 0; }
  @keyframes cercFlow {
    0%,100% { transform: rotate(90deg) translateX(0); opacity: 0.5; }
    50% { transform: rotate(90deg) translateX(6px); opacity: 1; }
  }
}

/* ============ Sistemas em ação ============ */
.sistemas-section { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sistemas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
  gap: 28px;
  justify-content: center;
}
.sistema-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.sistema-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.sistema-visual {
  background: linear-gradient(135deg, #f6f8ff 0%, #faf5ff 100%);
  padding: 24px;
  border-bottom: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.sistema-visual img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.sistema-visual.no-image::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: white;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 20px;
}
.sistema-visual.no-image img { display: none; }
.sistema-info { padding: 24px 28px 28px; }
.sistema-info .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding: 4px 10px;
  background: var(--grad-soft);
  border-radius: 999px;
}
.sistema-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.sistema-info p { color: var(--text-dim); font-size: 14px; }

/* ============ About ============ */
.about {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 20px; letter-spacing: -0.02em; color: var(--text); }
.about p { color: var(--text-dim); margin-bottom: 16px; }
.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.about-pillar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.about-pillar strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--text); }
.about-pillar span { font-size: 13px; color: var(--text-mute); }

/* ============ Contact ============ */
.contact-box {
  background: linear-gradient(135deg, #f6f8ff 0%, #faf5ff 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.contact-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79,140,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.contact-box h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative; z-index: 1;
  color: var(--text);
}
.contact-box p { color: var(--text-dim); margin-bottom: 32px; position: relative; z-index: 1; }
.contact-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}
.contact-methods {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}
.contact-methods a {
  color: var(--text-dim);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.contact-methods a:hover { color: var(--accent); }

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 60px;
  color: var(--text-mute);
  font-size: 13px;
  background: var(--bg);
}
.footer-row .social { padding-right: 80px; }
@media (max-width: 720px) {
  .footer-row { flex-direction: column; text-align: center; padding-bottom: 60px; }
  .footer-row .social { padding-right: 0; }
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-row a { color: var(--text-dim); }
.footer-row a:hover { color: var(--accent); }
.social {
  display: flex;
  gap: 14px;
}
.social a {
  width: 36px; height: 36px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  color: var(--text-dim);
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 16px; height: 16px; }

/* ============ CERC page specific ============ */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}
.page-hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero .lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 40px;
}
.page-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.problem-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  border-left: 3px solid #ef4444;
  box-shadow: var(--shadow-sm);
}
.problem-item strong { display: block; font-size: 15px; margin-bottom: 6px; color: var(--text); }
.problem-item span { color: var(--text-dim); font-size: 14px; }

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.solution-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.solution-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.solution-item .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.solution-item .icon svg { width: 22px; height: 22px; color: var(--accent); }
.solution-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.solution-item p { color: var(--text-dim); font-size: 14px; }

.audience {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.audience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.audience-item {
  padding: 24px;
}
.audience-item .num {
  font-size: 40px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 8px;
}
.audience-item strong { display: block; font-size: 16px; margin-bottom: 6px; color: var(--text); }
.audience-item span { color: var(--text-dim); font-size: 14px; }

/* ============ Botão flutuante WhatsApp ============ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  z-index: 200;
  transition: transform 0.2s;
  animation: wa-pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.08); animation: none; }
.wa-float svg { width: 32px; height: 32px; color: white; }
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: wa-ring 2s infinite;
}
.wa-float .wa-tooltip {
  position: absolute;
  right: 76px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wa-float .wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 6px solid var(--text);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.wa-float:hover .wa-tooltip { opacity: 1; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 8px 40px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.15); }
}
@keyframes wa-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (max-width: 720px) {
  .wa-float { width: 56px; height: 56px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float .wa-tooltip { display: none; }
}

/* ============ Dark theme (toggle) ============ */
[data-theme="dark"] {
  --bg: #0b0f17;
  --bg-elev: #10151f;
  --bg-card: #141a25;
  --border: #1f2836;
  --border-strong: #2a3444;
  --text: #e6edf3;
  --text-dim: #a3adbd;
  --text-mute: #6b7688;
  --grad-soft: linear-gradient(135deg, rgba(79,140,255,0.15) 0%, rgba(168,85,247,0.15) 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] header { background: rgba(11, 15, 23, 0.75); }
[data-theme="dark"] .btn-secondary { background: var(--bg-card); }
[data-theme="dark"] .hero .badge,
[data-theme="dark"] .page-hero .badge { background: var(--bg-card); }
[data-theme="dark"] .trust-bar { background: var(--bg-card); }
[data-theme="dark"] .about-pillar,
[data-theme="dark"] .sistema-card,
[data-theme="dark"] .problem-item,
[data-theme="dark"] .to-top { background: var(--bg-card); }
[data-theme="dark"] .feature-strip,
[data-theme="dark"] .contact-box { background: linear-gradient(135deg, #131a26 0%, #1a1730 100%); }
[data-theme="dark"] .nav-links { background: var(--bg-elev); }
[data-theme="dark"] .sistema-visual { background: linear-gradient(135deg, #131a26 0%, #1a1730 100%); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .feature-strip { grid-template-columns: 1fr; padding: 40px 28px; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-box { padding: 40px 24px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); gap: 16px; align-items: flex-start; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin-left: 0; width: 100%; justify-content: center; }
  .menu-toggle { display: block; }
  section { padding: 70px 0; }
  .hero { padding: 130px 0 70px; }
  .hero-stats { gap: 24px; margin-top: 48px; }
  .about-pillars { grid-template-columns: 1fr; }
}
