/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === TOKENS === */
:root {
  --med-950: #243a4d;
  --med-900: #2f4d63;
  --med-800: #395f78;
  --med-700: #3d6688;
  --med-600: #4a87a8;
  --med-500: #5fa3c4;
  --med-400: #87ceeb;
  --med-300: #b7e3f2;
  --med-100: #d8eef5;
  --med-50:  #eaf6fb;
  --clinical: #eaf6fb;
  --clinical-light: #f2fafd;
  --clinical-xlight: #f8fcfe;
  --teal-500: #4a87a8;
  --teal-400: #87ceeb;
  --green-500: #22c55e;
  --white: #ffffff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --grad-brand:  linear-gradient(135deg, #4a87a8 0%, #87ceeb 100%);
  --grad-dark:   linear-gradient(160deg, #243a4d 0%, #3d6688 100%);
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.18);
  --shadow-blue: 0 8px 32px rgba(74,135,168,.22);
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --dur: 200ms;
  --ease: cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === UTILITY === */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* gradient text — works on Chrome, Safari, Firefox */
.g-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.g-text-light {
  background: linear-gradient(135deg, #34d399 0%, #e0f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* section labels */
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--med-500);
  background: var(--clinical-light);
  border: 1px solid var(--clinical);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-eyebrow.light {
  color: var(--teal-400);
  background: rgba(186,230,253,.1);
  border-color: rgba(186,230,253,.2);
}

.section-h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.section-h2.light { color: white; }

.section-sub {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.75;
  max-width: 640px;
}
.section-sub.light { color: rgba(255,255,255,.65); }

/* chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
}
.chip-blue   { color: var(--med-600); background: var(--clinical-light); border: 1px solid var(--clinical); }
.chip-yellow { color: #92400e; background: #fef3c7; border: 1px solid #fde68a; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: white;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 14px 40px rgba(74,135,168,.38); }
.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn.full { width: 100%; justify-content: center; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 16px 0;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  padding: 10px 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img {
  height: 104px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: background var(--dur), color var(--dur);
}
.nav.scrolled .nav-menu a { color: var(--gray-700); }
.nav-menu a:hover { background: rgba(255,255,255,.12); color: white; }
.nav.scrolled .nav-menu a:hover { background: var(--gray-100); color: var(--med-600); }

.nav-cta {
  background: var(--grad-brand) !important;
  color: white !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  box-shadow: var(--shadow-blue);
}
.nav-cta:hover { opacity: .9 !important; background: var(--grad-brand) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--dur);
}
.nav.scrolled .nav-toggle span { background: var(--gray-700); }

/* === HERO === */
.hero {
  background: var(--grad-dark);
  padding: 130px 0 0;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(74,135,168,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,135,168,.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(74,135,168,.2) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.hero-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: 100px;
  left: -100px;
  background: radial-gradient(circle, rgba(74,135,168,.14) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow { margin-bottom: 24px; }

.hero-h1 {
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 900;
  line-height: 1.06;
  color: white;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.hero-h1 em {
  font-style: italic;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.68);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 40px;
}
.hero-lead strong { color: rgba(255,255,255,.92); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

/* Metrics */
.hero-metrics {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: rgba(186,230,253,.08);
  border: 1px solid rgba(186,230,253,.18);
  border-radius: var(--r-xl);
  padding: 20px 32px;
  margin-bottom: 72px;
}
.hm-item { text-align: center; padding: 0 32px; }
.hm-val  { display: block; font-size: 26px; font-weight: 800; color: white; line-height: 1; margin-bottom: 4px; }
.hm-lbl  { font-size: 12px; color: rgba(255,255,255,.5); }
.hm-sep  { width: 1px; height: 36px; background: rgba(255,255,255,.12); flex-shrink: 0; }

/* === HERO UI MOCKUP === */
.hero-ui-wrap { position: relative; z-index: 2; }

.hero-ui {
  background: rgba(46,66,76,.92);
  border: 1px solid rgba(255,255,255,.1);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: 0 -20px 80px rgba(0,0,0,.4);
  max-width: 960px;
  margin: 0 auto;
}

.hui-topbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hui-dots { display: flex; gap: 6px; }
.hui-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); }
.hui-title { font-size: 12px; color: rgba(255,255,255,.45); flex: 1; text-align: center; }
.hui-badge { font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 3px 10px; border-radius: 50px; }
.hui-badge.live {
  color: var(--green-500);
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge { 0%,100%{opacity:1} 50%{opacity:.5} }

.hui-body {
  display: flex;
  flex-direction: row;
  min-height: 280px;
}
.hui-sidebar {
  width: 180px;
  flex-shrink: 0;
  padding: 16px 12px;
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hui-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background var(--dur), color var(--dur);
}
.hui-nav-item:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); }
.hui-nav-item.active { background: rgba(74,135,168,.25); color: white; font-weight: 600; }
.hui-nav-item.muted  { color: rgba(255,255,255,.25); }
.hni-icon { font-size: 14px; }
.hui-divider { height: 1px; background: rgba(255,255,255,.07); margin: 6px 0; }

.hui-main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hui-analysis-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  padding: 16px;
}
.hac-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.hac-label  { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); }
.hac-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.hac-status.processing {
  color: var(--teal-400);
  background: rgba(74,135,168,.15);
  animation: pulse-badge 1.5s infinite;
}
.hac-progress-bar {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  margin-bottom: 14px;
  overflow: hidden;
}
.hac-fill {
  height: 100%;
  background: var(--grad-brand);
  border-radius: 2px;
  animation: prog 3s ease-in-out infinite;
}
@keyframes prog { 0%{width:20%} 60%{width:75%} 100%{width:20%} }

.hac-rows { display: flex; flex-direction: column; gap: 8px; }
.hac-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.hac-row.done    { color: rgba(255,255,255,.6); }
.hac-row.active  { color: white; font-weight: 500; }
.hac-row.pending { color: rgba(255,255,255,.28); }
.hac-check { color: var(--green-500); font-size: 13px; flex-shrink: 0; }
.hac-dot   { color: rgba(255,255,255,.25); }
.hac-spin  { display: inline-block; animation: spin 1.2s linear infinite; color: var(--teal-400); }
@keyframes spin { to { transform: rotate(360deg); } }
.hac-src {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.06);
  padding: 2px 8px;
  border-radius: 50px;
}

.hui-stats-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.hui-stat {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md);
  padding: 12px 16px;
  text-align: center;
}
.hst-n      { display: block; font-size: 18px; font-weight: 800; color: white; margin-bottom: 2px; }
.hst-n.green { color: var(--green-500); }
.hst-n.blue  { color: var(--teal-400); }
.hst-l { font-size: 11px; color: rgba(255,255,255,.4); }

/* === PROBLEMA === */
.problema {
  padding: 96px 0;
  background: var(--clinical-xlight);
}
.problema .section-h2  { margin-bottom: 12px; }
.problema .section-sub { margin-bottom: 48px; }

.compare-table {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}
.ct-header {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.4fr;
  gap: 16px;
  background: var(--gray-900);
  padding: 13px 24px;
}
.ct-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}
.ct-col-label.without { color: #f87171; }
.ct-col-label.with    { color: var(--green-500); }
.ct-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.4fr;
  gap: 16px;
  padding: 18px 24px;
  background: white;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
  transition: background var(--dur);
}
.ct-row:last-child { border-bottom: none; }
.ct-row:hover { background: var(--gray-50); }
.ct-situation { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.ct-without   { font-size: 13px; color: var(--gray-500); }
.ct-with      { font-size: 13px; color: #0c4a6e; background: #e0f2fe; border: 1px solid var(--clinical); padding: 6px 12px; border-radius: var(--r-sm); }

/* === SUBSISTEMAS === */
.subsistemas {
  padding: 96px 0;
  background: white;
}
.subsistemas .section-h2  { margin-bottom: 12px; }
.subsistemas .section-sub { margin-bottom: 56px; }

.subsys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.subsys-card {
  border-radius: var(--r-xl);
  padding: 30px 26px;
  border: 1px solid var(--gray-200);
  background: white;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.subsys-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.subsys-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.subsys-card:hover::before { transform: scaleX(1); }

.subsys-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.subsys-cortex   .subsys-icon-wrap { background: #ede9fe; color: #7c3aed; }
.subsys-vai      .subsys-icon-wrap { background: #dcfce7; color: #15803d; }
.subsys-automata .subsys-icon-wrap { background: #fef3c7; color: #b45309; }
.subsys-control  .subsys-icon-wrap { background: #fee2e2; color: #b91c1c; }
.subsys-prisma   .subsys-icon-wrap { background: #e0f2fe; color: #4a87a8; }
.subsys-aura     .subsys-icon-wrap { background: #ecfdf5; color: #047857; }

.subsys-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.subsys-card h3 { font-size: 21px; font-weight: 800; color: var(--gray-900); margin-bottom: 10px; }
.subsys-card p  { font-size: 14px; color: var(--gray-500); line-height: 1.7; margin-bottom: 16px; }

.subsys-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.subsys-features span {
  font-size: 11px;
  font-weight: 600;
  color: var(--med-600);
  background: var(--clinical-light);
  border: 1px solid var(--clinical);
  padding: 3px 10px;
  border-radius: 50px;
}

/* === APPS === */
.apps-section {
  padding: 96px 0;
  background: var(--clinical-light);
}
.apps-section .section-h2  { margin-bottom: 12px; }
.apps-section .section-sub { margin-bottom: 36px; }

.apps-tabs {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.at-btn {
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: white;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.at-btn:hover,
.at-btn.active {
  background: var(--med-600);
  border-color: var(--med-600);
  color: white;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.app-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur);
}
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--clinical); }

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.app-info strong { display: block; font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.app-info p { font-size: 13px; color: var(--gray-500); line-height: 1.5; margin-bottom: 8px; }
.app-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
}
.app-badge.blue   { color: var(--med-600); background: var(--med-50); }
.app-badge.orange { color: #92400e; background: #fef3c7; }
.app-badge.green  { color: #15803d; background: #dcfce7; }
.app-badge.gray   { color: var(--gray-600); background: var(--gray-100); }

/* === DIFERENCIAIS === */
.diferenciais {
  padding: 96px 0;
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
}
.diferenciais::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(74,135,168,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,135,168,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.diferenciais .wrap { position: relative; z-index: 1; }
.diferenciais .section-h2  { margin-bottom: 12px; }
.diferenciais .section-sub { margin-bottom: 56px; }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.diff-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl);
  padding: 30px 26px;
  transition: transform var(--dur), background var(--dur);
}
.diff-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); }
.diff-featured   {
  background: rgba(74,135,168,.16);
  border-color: rgba(74,135,168,.32);
}
.diff-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--teal-400);
  opacity: .7;
  margin-bottom: 12px;
}
.diff-card h3 { font-size: 18px; font-weight: 700; color: white; margin-bottom: 10px; }
.diff-card p  { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.75; }

.diff-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.diff-providers span {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal-400);
  background: rgba(74,135,168,.1);
  border: 1px solid rgba(74,135,168,.2);
  padding: 3px 10px;
  border-radius: 50px;
}

.diff-compare {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.dc-before, .dc-after {
  flex: 1;
  font-size: 11px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-family: monospace;
}
.dc-before span, .dc-after span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: .7;
  font-family: var(--font);
}
.dc-before { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2); color: #fca5a5; }
.dc-after  { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2); color: #86efac; }
.dc-arrow  { font-size: 16px; color: rgba(255,255,255,.3); flex-shrink: 0; }

.vai-score { margin-top: 16px; }
.vs-formula {
  font-family: monospace;
  font-size: 12px;
  color: var(--teal-400);
  background: rgba(74,135,168,.08);
  border: 1px solid rgba(74,135,168,.15);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 10px;
}
.vs-decisions { display: flex; gap: 6px; flex-wrap: wrap; }
.vsd {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 4px 10px;
  border-radius: 50px;
}
.vsd.approve { color: #0c4a6e; background: #e0f2fe; border: 1px solid var(--clinical); border: 1px solid #bbf7d0; }
.vsd.retry   { color: #92400e; background: #fef3c7; border: 1px solid #fde68a; }
.vsd.manual  { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }

/* === CFM === */
.cfm-section {
  padding: 96px 0;
  background: white;
}
.cfm-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: center;
}
.cfm-text h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.2; color: var(--gray-900); margin: 16px 0; }
.cfm-text p  { font-size: 15px; color: var(--gray-500); line-height: 1.75; margin-bottom: 28px; }

.cfm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cfm-table thead tr { background: var(--gray-900); }
.cfm-table thead th {
  text-align: left;
  padding: 11px 16px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cfm-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--dur);
}
.cfm-table tbody tr:hover { background: var(--gray-50); }
.cfm-table tbody tr:last-child { border-bottom: none; }
.cfm-table td { padding: 13px 16px; color: var(--gray-600); vertical-align: top; }
.cfm-table td:first-child { color: var(--gray-800); font-weight: 500; }
.cfm-ok { color: var(--green-500); font-weight: 700; margin-right: 4px; }

/* === INTEGRACOES === */
.integracoes {
  padding: 80px 0;
  background: var(--clinical-xlight);
}
.integracoes .section-h2  { margin-bottom: 12px; }
.integracoes .section-sub { margin-bottom: 48px; }

.int-groups { display: flex; flex-direction: column; gap: 28px; }
.int-group-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.int-pills { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.int-pill {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  background: white;
  border: 1.5px solid var(--gray-200);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--dur) var(--ease);
}
.int-pill:hover { border-color: var(--med-300); color: var(--med-600); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* === IMPLANTACAO === */
.implantacao {
  padding: 96px 0;
  background: white;
}
.implantacao .section-h2 { margin-bottom: 12px; }

.impl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.impl-card {
  border-radius: var(--r-xl);
  padding: 36px 28px;
  border: 1.5px solid var(--gray-200);
  background: white;
  transition: transform var(--dur), box-shadow var(--dur);
}
.impl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.impl-featured {
  background: var(--grad-dark);
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}

.impl-icon { font-size: 40px; margin-bottom: 16px; }
.impl-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; color: var(--gray-900); }
.impl-featured h3 { color: white; }
.impl-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 14px;
}
.impl-featured .impl-sub { color: rgba(255,255,255,.45); }
.impl-card > p  { font-size: 14px; color: var(--gray-500); line-height: 1.7; margin-bottom: 20px; }
.impl-featured > p { color: rgba(255,255,255,.6); }
.impl-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.impl-card li { font-size: 14px; color: var(--gray-600); }
.impl-featured li { color: rgba(255,255,255,.78); }
.impl-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--med-600);
  background: var(--clinical-light);
  border: 1px solid var(--clinical);
  padding: 4px 12px;
  border-radius: 50px;
}
.featured-tag {
  color: var(--teal-400);
  background: rgba(74,135,168,.12);
  border-color: rgba(74,135,168,.25);
}

/* === SEGURANCA === */
.seguranca {
  padding: 80px 0;
  background: var(--clinical-light);
}
.seg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.seg-text h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.2; color: var(--gray-900); margin: 14px 0 16px; }
.seg-text p  { font-size: 15px; color: var(--gray-500); line-height: 1.75; margin-bottom: 24px; }
.seg-badges  { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--med-700);
  background: var(--clinical-light);
  border: 1.5px solid var(--med-100);
  padding: 6px 16px;
  border-radius: 50px;
}
.seg-items { display: flex; flex-direction: column; gap: 24px; }
.seg-item { display: flex; flex-direction: row; gap: 14px; align-items: flex-start; }
.seg-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.seg-item strong { display: block; font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.seg-item p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

/* === CONTATO === */
.contato {
  padding: 96px 0;
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
}
.contato::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  top: -250px; right: -200px;
  background: radial-gradient(circle, rgba(74,135,168,.18) 0%, transparent 70%);
  pointer-events: none;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contato-left h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 900; line-height: 1.15; color: white; margin: 16px 0; }
.contato-left > p { font-size: 16px; color: rgba(255,255,255,.6); line-height: 1.75; margin-bottom: 36px; }

.contato-destaques { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.cd-item { display: flex; flex-direction: row; gap: 14px; align-items: flex-start; }
.cd-item > span { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.cd-item strong { display: block; font-size: 14px; font-weight: 700; color: white; margin-bottom: 3px; }
.cd-item span:last-child { font-size: 13px; color: rgba(255,255,255,.5); font-size: 13px; }

.contato-contact-info { display: flex; flex-direction: column; gap: 10px; }
.cci-item { display: flex; flex-direction: row; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.5); }

/* Form */
.contato-form-card {
  background: white;
  border-radius: var(--r-2xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}
.contato-form-card h3 { font-size: 20px; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; }
.contato-form-card > p { font-size: 13px; color: var(--gray-500); margin-bottom: 24px; }

form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg { display: flex; flex-direction: column; gap: 5px; }
.fg label { font-size: 12px; font-weight: 600; color: var(--gray-700); }
.fg input, .fg select, .fg textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--med-600);
  background: white;
  box-shadow: 0 0 0 3px rgba(186,230,253,.5);
}
.fg textarea { resize: vertical; }

/* === FOOTER === */
.footer {
  background: #162033;
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 64px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand img { height: 84px; width: auto; margin-bottom: 14px; display: block; }
.footer-brand p    { font-size: 14px; color: rgba(255,255,255,.4); line-height: 1.6; max-width: 280px; }
.footer-tagline    { font-size: 11px; color: rgba(255,255,255,.22); margin-top: 6px; }
.footer-copy       { font-size: 12px; color: rgba(255,255,255,.2); margin-top: 20px; }
.footer-links { display: flex; flex-direction: row; gap: 56px; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.38); text-decoration: none; transition: color var(--dur); }
.footer-col a:hover { color: white; }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .subsys-grid   { grid-template-columns: repeat(2, 1fr); }
  .diff-grid     { grid-template-columns: repeat(2, 1fr); }
  .cfm-inner     { grid-template-columns: 1fr; gap: 40px; }
  .seg-grid      { grid-template-columns: 1fr; gap: 40px; }
  .contato-grid  { grid-template-columns: 1fr; }
  .impl-grid     { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .hero-metrics  { padding: 16px 24px; }
  .hm-item       { padding: 0 20px; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    gap: 2px;
    z-index: 300;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { color: var(--gray-700) !important; }
  .nav-toggle { display: flex; }

  .ct-header, .ct-row { grid-template-columns: 1fr 1fr; font-size: 12px; }
  .ct-situation { display: none; }
  .apps-grid    { grid-template-columns: 1fr; }
  .subsys-grid  { grid-template-columns: 1fr; }
  .diff-grid    { grid-template-columns: 1fr; }
  .contato-form-card { padding: 24px; }
  .form-row     { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 28px; }
  .hui-sidebar  { display: none; }
  .hero-metrics { flex-direction: column; gap: 16px; padding: 20px 24px; }
  .hm-sep { width: 80px; height: 1px; }
  .hm-item { padding: 0; }
  .wrap { padding: 0 18px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .contato-form-card { padding: 20px; }
  .impl-grid { max-width: 100%; }
}

/* === TRANSCRICAO === */
.transcricao {
  padding: 96px 0;
  background: white;
}
.trc-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.trc-text h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 900; line-height: 1.15; color: var(--gray-900); margin: 12px 0 16px; }
.trc-text > p { font-size: 15px; color: var(--gray-500); line-height: 1.75; margin-bottom: 28px; }

.trc-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.trc-list li { display: flex; gap: 12px; align-items: flex-start; }
.trc-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--clinical-light); border: 1.5px solid var(--clinical);
  color: var(--med-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.trc-list strong { display: block; font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 3px; }
.trc-list span   { font-size: 13px; color: var(--gray-500); line-height: 1.6; }
.trc-list code {
  font-family: monospace;
  font-size: 12px;
  background: var(--gray-100);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--med-700);
}

/* Trc visual */
.trc-img-wrap {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(30,63,110,.18), 0 4px 16px rgba(0,0,0,.08);
  border: 1px solid var(--med-100);
  background: white;
}
.trc-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-2xl);
}
.trc-img-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--med-600);
  background: white;
  border: 1.5px solid var(--med-100);
  padding: 8px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(74,135,168,.14);
  white-space: nowrap;
  animation: pulse-badge 2.5s ease-in-out infinite;
}
.trc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.trc-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--teal-400);
  background: rgba(74,135,168,.12); border: 1px solid rgba(74,135,168,.2);
  padding: 4px 12px; border-radius: 50px;
}
.trc-motor {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
  padding: 3px 10px; border-radius: 50px;
}
.trc-doc-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 16px;
}
.trc-handwriting {
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.hw-line {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.12);
  position: relative; overflow: hidden;
}
.hw-line::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  transform: skewX(-2deg);
}
.trc-arrow { color: rgba(255,255,255,.25); flex-shrink: 0; }
.trc-output { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.trc-field { display: flex; gap: 6px; align-items: baseline; font-size: 11px; }
.trc-key   { color: rgba(255,255,255,.4); font-weight: 600; white-space: nowrap; }
.trc-val   { color: rgba(255,255,255,.85); font-family: monospace; }
.trc-val.warn  { color: #fbbf24; }
.trc-val.muted { color: rgba(255,255,255,.3); font-style: italic; }

.trc-score {
  display: flex; align-items: center; gap: 10px; font-size: 12px;
}
.trc-score-label { color: rgba(255,255,255,.4); white-space: nowrap; }
.trc-score-bar {
  flex: 1; height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden;
}
.trc-score-fill { height: 100%; background: var(--grad-brand); border-radius: 2px; }
.trc-score-val { color: white; font-weight: 700; white-space: nowrap; }

/* === MELHORIA CONTINUA === */
.melhoria {
  padding: 80px 0;
  background: var(--grad-dark);
  position: relative;
  overflow: hidden;
}
.melhoria::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(74,135,168,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,135,168,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.melhoria .wrap { position: relative; z-index: 1; }
.melhoria .section-eyebrow { margin-bottom: 14px; }
.melhoria .section-h2 { margin-bottom: 12px; }
.melhoria .section-sub { margin-bottom: 48px; }

.mel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.mel-card {
  background: rgba(186,230,253,.08);
  border: 1px solid rgba(186,230,253,.18);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: transform var(--dur), background var(--dur);
}
.mel-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.08); }
.mel-featured {
  background: rgba(74,135,168,.18);
  border-color: rgba(74,135,168,.35);
}
.mel-num {
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  color: var(--teal-400); opacity: .65; margin-bottom: 10px;
}
.mel-icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: white; margin-bottom: 14px;
}
.mel-card h3 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 8px; }
.mel-card p  { font-size: 13px; color: rgba(255,255,255,.58); line-height: 1.7; }

.mel-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
}
.mel-callout svg { color: var(--teal-400); flex-shrink: 0; margin-top: 2px; }
.mel-callout strong { color: white; }

.apps-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--clinical-light);
  border: 1px solid var(--clinical);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-top: 32px;
}
.apps-callout svg { color: var(--med-600); flex-shrink: 0; margin-top: 2px; }
.apps-callout strong { color: var(--gray-900); }

/* === FOOTER LEGAL === */
.footer-legal {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
}
.footer-legal a { color: rgba(255,255,255,.3); text-decoration: none; transition: color var(--dur); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }
.footer-legal span { color: rgba(255,255,255,.15); }

/* === APP ICON svg alignment === */
.app-icon { align-items: center; justify-content: center; }
.app-icon svg { display: block; }

/* === RESPONSIVE NOVOS === */
@media (max-width: 1024px) {
  .trc-inner { grid-template-columns: 1fr; }
  .mel-grid  { grid-template-columns: 1fr; }
}

.br-lg { display: none; }
@media (min-width: 640px) { .br-lg { display: block; } }
