:root {
  --blue: #1A52F0;
  --blue-hover: #1340C8;
  --blue-light: #EEF3FF;
  --blue-border: #C7D7F5;
  --dark: #0C1A33;
  --text: #374151;
  --muted: #6B7280;
  --border: #E5E9F2;
  --bg: #F4F7FC;
  --white: #FFFFFF;
  --red: #EF4444;
  --red-light: #FEF2F2;
  --footer: #060E20;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-full: 100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
  touch-action: manipulation;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(26,82,240,0.25);
}
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); box-shadow: 0 6px 20px rgba(26,82,240,0.35); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}
.btn-outline:hover { border-color: #C5CBD8; background: var(--bg); }
.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.btn-white:hover { background: #F0F4FF; transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ===== BADGE / LABELS ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}
.section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-label-gray { color: var(--muted); }
.section-label-red { color: var(--red); }

/* ===== HEADINGS ===== */
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin-top: 14px;
  line-height: 1.65;
}
.text-blue { color: var(--blue); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.navbar .logo-img {
  width: 132px;
  height: auto;
  max-height: 31px;
  display: block;
  object-fit: contain;
}

.footer-logo .logo-img {
  width: 132px;
  height: auto;
  max-height: 31px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--dark); }
.nav-link.active { color: var(--blue); font-weight: 600; }

.has-dropdown { position: relative; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.18s ease;
  z-index: 200;
  min-width: 280px;
}
.dropdown-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 12px;
  overflow: hidden;
}
.dropdown-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 12px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--dark); }
.dropdown-item span { font-size: 12px; color: var(--muted); }
.dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.dropdown-footer {
  display: block;
  padding: 10px 12px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.dropdown-footer:hover { color: var(--blue-hover); }

.nav-cta { margin-left: auto; flex-shrink: 0; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.mobile-drawer.open { display: flex; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.mobile-nav-links a {
  display: block;
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  touch-action: manipulation;
  border-radius: var(--radius-sm);
}
.mobile-nav-links a:hover { background: var(--bg); }

.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-toggle:hover { background: var(--bg); }
.mobile-nav-toggle svg { transition: transform 0.2s ease; flex-shrink: 0; }
.mobile-nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.mobile-sub-links {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 6px 14px;
}
.mobile-sub-links.open { display: flex; }
.mobile-sub-links a {
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.mobile-sub-links a:hover { background: var(--bg); color: var(--dark); }

/* ===== HERO ===== */
.hero {
  padding: 88px 0 80px;
  background: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero-title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  color: var(--dark);
  letter-spacing: -1.5px;
  margin: 20px 0 20px;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-microcopy { font-size: 13px; color: var(--muted); }

/* Hero diagram */
.hero-diagram { display: flex; align-items: center; justify-content: center; }
.hero-svg-diagram { width: 100%; max-width: 500px; height: auto; filter: drop-shadow(0 4px 24px rgba(26,82,240,0.08)); }

/* ===== SECTION PADDING ===== */
.section { padding: 88px 0; }
.section-bg { background: var(--bg); }
.section-dark { background: var(--footer); color: var(--white); }
.section-header { margin-bottom: 52px; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  touch-action: manipulation;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 20px;
}
.card-icon.red { background: var(--red-light); color: var(--red); }
.card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.card-title { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.card-text { font-size: 14px; color: var(--muted); line-height: 1.65; }

.card-check-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.card-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
}
.card-check-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 1.5px solid var(--blue-border);
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231A52F0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ===== GRIDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ===== MACROSERVIÇOS ===== */
.macro-grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.macro-card {
  display: block;
  color: inherit;
  cursor: pointer;
  transition:
    box-shadow 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.24s;
}

.macro-card:hover {
  transform: translateY(-6px) scale(1.013);
  border-color: var(--blue-border);
  box-shadow: 0 16px 40px rgba(26,82,240,0.13), 0 4px 12px rgba(0,0,0,0.07);
}

.macro-card:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 4px;
  border-color: var(--blue-border);
}

.macro-complementar-wrap {
  display: flex;
  justify-content: center;
}

.macro-card-complementar {
  background: linear-gradient(135deg, #EEF3FF 0%, #F4F7FC 100%);
  border-color: var(--blue-border);
  max-width: 680px;
  width: 100%;
}

.macro-card-complementar:hover {
  background: linear-gradient(135deg, #E6EDFF 0%, #EEF3FF 100%);
}

.macro-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.macro-complementar-icon {
  background: rgba(26,82,240,0.1);
}

/* ===== METHODOLOGY TIMELINE ===== */
.timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 auto 48px;
  max-width: 600px;
  position: relative;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
}
.timeline-dot.inactive { background: var(--white); color: var(--muted); border: 2px solid var(--border); }
.timeline-line {
  position: absolute;
  top: 20px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
}
.timeline-line.active { background: var(--blue); }
.timeline-step:last-child .timeline-line { display: none; }

/* Step cards with number */
.step-card { position: relative; }
.step-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 40px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
}
.step-meta { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }

/* ===== METHODOLOGY STICKY SCROLL ===== */
.meth-section { padding: 0; }

.meth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.meth-left {
  position: sticky;
  top: 88px;
  padding: 88px 0 88px;
}

.meth-title { margin-bottom: 20px; }

.meth-features {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.meth-features li { display: flex; align-items: flex-start; gap: 14px; }
.meth-feat-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.meth-features strong { display: block; font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.meth-features span { font-size: 13px; color: var(--muted); line-height: 1.55; }

.meth-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 88px 0 88px;
}

/* Week cards */
.week-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.week-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.week-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
  align-self: flex-start;
}
.week-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  animation: badgeDot 1.8s ease-in-out infinite;
}

.week-title { font-size: 21px; font-weight: 800; color: var(--dark); margin-bottom: 10px; line-height: 1.22; }
.week-desc { font-size: 14px; color: var(--muted); line-height: 1.7; flex: 1; }

.week-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 20px;
}

.week-metric-block {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}
.week-metric {
  font-size: 38px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 4px;
}
.week-metric-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Mobile: stack vertically, remove sticky */
@media (max-width: 900px) {
  .meth-grid { grid-template-columns: 1fr; gap: 0; }
  .meth-left { position: static; padding: 64px 0 32px; }
  .meth-right { padding: 0 0 64px; }
}

/* ===== COST SECTION ===== */
.alert-bar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.alert-bar-text { font-size: 15px; color: #7F1D1D; font-weight: 500; }

/* ===== ARCHITECTURE STACK ===== */
.arch-stack { max-width: 560px; margin: 0 auto 52px; display: flex; flex-direction: column; gap: 10px; }
.arch-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.15s;
}
.arch-bar.active {
  border-color: var(--blue);
  background: var(--blue-light);
}
.arch-bar-title { font-size: 15px; font-weight: 600; color: var(--dark); }
.arch-bar.active .arch-bar-title { color: var(--blue); }
.arch-bar-sub { font-size: 12px; color: var(--muted); }

/* ===== BEFORE/AFTER TABLE ===== */
.comparison-table {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison-table table { width: 100%; border-collapse: collapse; }
.comparison-table th {
  padding: 14px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: left;
  background: var(--bg);
  color: var(--muted);
}
.comparison-table th.col-before { color: var(--red); background: #FFF5F5; }
.comparison-table th.col-after { color: var(--blue); background: var(--blue-light); }
.comparison-table td {
  padding: 16px 24px;
  font-size: 14px;
  color: var(--text);
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.comparison-table .col-metric { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--dark); }
.comparison-table .col-before { background: #FFFAFA; }
.comparison-table .col-after { background: #FAFBFF; }
.cell-bad, .cell-good { display: flex; align-items: center; gap: 8px; }
.cell-bad svg { color: var(--red); flex-shrink: 0; }
.cell-good svg { color: var(--blue); flex-shrink: 0; }

/* ===== TESTIMONIALS ===== */
.quote-icon { color: var(--blue-border); margin-bottom: 16px; }
.testimonial-text { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-divider { height: 1px; background: var(--border); margin-bottom: 16px; }
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.testimonial-role { font-size: 13px; color: var(--muted); }
.testimonial-card.featured { border-color: var(--blue); }

/* ===== PORTFOLIO / CASES ===== */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case-card { cursor: pointer; }
.case-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--blue-light);
  color: var(--blue);
  margin-bottom: 12px;
}
.case-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.case-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.case-metric-label { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.case-metric-value { font-size: 36px; font-weight: 900; color: var(--dark); line-height: 1; }
.case-link {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.15s;
}
.case-card:hover .case-link { background: var(--blue-light); color: var(--blue); }
.card.case-card { position: relative; }
.case-card.full-width { grid-column: 1 / -1; }

/* ===== LEADERSHIP ===== */
.team-card { text-align: center; }
.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  background: var(--border);
}
.team-name { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.team-role { font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.team-bio { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.contact-info-text { font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }

.contact-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.contact-feature {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.contact-feature-title { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.contact-feature-text { font-size: 12px; color: var(--muted); line-height: 1.5; }

.contact-links { display: flex; flex-direction: column; gap: 8px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--dark);
  transition: border-color 0.15s;
}
.contact-link:hover { border-color: var(--blue); }
.contact-link svg { color: var(--blue); flex-shrink: 0; }
.contact-link-label { font-weight: 600; display: block; font-size: 13px; }
.contact-link-sub { font-size: 12px; color: var(--muted); }

/* ===== FORM ===== */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: #DCFCE7;
  color: #16A34A;
  margin-bottom: 20px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 600; color: var(--dark); }
.form-input, .form-select, .form-textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,82,240,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-checkbox input { flex-shrink: 0; margin-top: 2px; accent-color: var(--blue); }
.form-submit { width: 100%; justify-content: center; }
.form-privacy { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ===== FOOTER ===== */
.footer { background: var(--footer); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; margin-bottom: 52px; }
.footer-logo { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-tagline { font-size: 13.5px; line-height: 1.65; margin-bottom: 20px; color: rgba(255,255,255,0.55); max-width: 240px; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.15s;
}
.footer-social:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-status { display: flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { max-width: 100%; }
  .hero-diagram { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  /* Base */
  html, body { overflow-x: clip; max-width: 100%; }
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 28px; }
  .section-title { font-size: clamp(22px, 6vw, 34px); letter-spacing: -0.3px; }
  .section-subtitle { font-size: 15px; margin-top: 10px; max-width: 100%; }
  .section-label { font-size: 11px; }

  /* Navbar */
  .nav-inner { height: 60px; gap: 12px; }
  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }

  /* Hero */
  .hero { padding: 52px 0 44px; }
  .hero-title { font-size: clamp(28px, 7.5vw, 44px); letter-spacing: -0.8px; margin: 16px 0 16px; }
  .hero-subtitle { font-size: 16px; }
  .hero-ctas { flex-direction: column; gap: 12px; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-svg-diagram { max-width: 300px; }

  /* Buttons — área de toque mínima 48px */
  .btn { min-height: 48px; padding: 13px 22px; font-size: 15px; justify-content: center; }
  .btn-lg { min-height: 52px; padding: 15px 26px; }

  /* Grids → coluna única */
  .grid-3, .grid-2, .portfolio-grid { grid-template-columns: 1fr; }
  .macro-grid-main { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .comparison-table { overflow-x: auto; display: block; -webkit-overflow-scrolling: touch; }

  /* Cards */
  .card { padding: 20px; }
  .card-title { font-size: 17px; }
  .card-text { font-size: 14px; }
  .card-check-list li { font-size: 13.5px; }

  /* Macro cards mobile */
  .macro-card-complementar { max-width: 100%; }

  /* Team */
  .team-photo { width: 100px; height: 100px; }

  /* Tabela comparativa */
  .hero-svg-diagram { max-width: 300px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }

  .hero-title { font-size: 28px; letter-spacing: -0.5px; }
  .section-title { font-size: 22px; }

  .btn { width: 100%; font-size: 14px; }
  .card { padding: 18px; border-radius: var(--radius); }
  .card-title { font-size: 16px; }
  .card-icon { width: 42px; height: 42px; margin-bottom: 16px; }
}

/* ===== TOUCH FEEDBACK (dispositivos de toque) ===== */
@media (hover: none) and (pointer: coarse) {
  /* Desativa hover de desktop em touch */
  .card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .macro-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }
  .macro-card-complementar:hover { background: linear-gradient(135deg, #EEF3FF 0%, #F4F7FC 100%); }
  .btn-primary:hover { transform: none; box-shadow: 0 4px 14px rgba(26,82,240,0.25); }
  .btn-outline:hover { background: transparent; border-color: var(--border); }

  /* Feedback de toque — active */
  .macro-card:active {
    transform: scale(0.982);
    border-color: var(--blue-border);
    box-shadow: 0 4px 18px rgba(26,82,240,0.16), 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.08s ease, border-color 0.08s, box-shadow 0.08s;
  }
  .macro-card-complementar:active {
    background: linear-gradient(135deg, #E0EAFF 0%, #EBF0FA 100%);
  }
  .btn:active { transform: scale(0.97); }
  .card:active { box-shadow: var(--shadow); }
}

/* ===== HOW WE WORK — Single horizontal track ===== */
.hw-outer {
  position: relative;
  background: var(--white);
}

.hw-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--white);
  /* No grid — single track fills everything */
}

/* Progress bar: absolute at bottom of sticky viewport, always visible */
.hw-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 20;
}
.hw-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--blue);
  transition: width 0.05s linear;
}

/* Dots — inside the intro, slide with the track */
.hw-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}
.hw-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.hw-dot.active {
  width: 22px;
  border-radius: 3px;
  background: var(--blue);
}

/* The one horizontal track: intro + cards + trail */
.hw-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  height: 100%;
  will-change: transform;
}

/* Intro text block — part of the sliding track */
.hw-intro {
  min-width: 47vw;
  max-width: 47vw;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: var(--white);
  /* align left edge of text with hero container */
  padding: 60px 40px 60px max(24px, calc(50vw - 576px));
}

.hw-intro-inner .section-label { margin-bottom: 10px; }
.hw-intro-inner .section-title { margin-bottom: 14px; }
.hw-intro-inner .section-subtitle { margin-top: 0; margin-bottom: 24px; font-size: 15px; }

/* Trailing white spacer (~half card width) */
.hw-trail {
  min-width: calc(15.5vw);
  flex-shrink: 0;
  background: var(--white);
  align-self: stretch;
}

/* Dark cards */
.hw-card {
  background: #0F1624;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 28px rgba(0,0,0,0.22), 0 1px 6px rgba(0,0,0,0.12);
  padding: 28px;
  min-width: calc(31vw - 8px);
  max-width: calc(31vw - 8px);
  height: calc(100vh - 64px);
  max-height: 660px;
  min-height: 460px;
  align-self: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.22s;
}
.hw-card:hover {
  box-shadow: 0 8px 48px rgba(0,0,0,0.30), 0 2px 10px rgba(0,0,0,0.14);
  transform: translateY(-2px);
}

.hw-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  background: rgba(26,82,240,0.15);
  border: 1px solid rgba(26,82,240,0.30);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #7FAAFF;
  margin-bottom: 16px;
  align-self: flex-start;
}

.hw-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7FAAFF;
  flex-shrink: 0;
  animation: badgeDot 1.8s ease-in-out infinite;
}

.hw-card-title {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.22;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.hw-card-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

.hw-card-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  min-height: 0;
}

.hw-svg {
  width: 100%;
  max-width: 210px;
  height: auto;
}

.hw-card-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 16px;
  margin-top: auto;
}

.hw-card-metric {
  font-size: 38px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.hw-card-metric-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hw-outer { height: auto !important; }
  .hw-sticky { position: static; height: auto; overflow: visible; }
  .hw-track { transform: none !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
}

/* Mobile — rolagem vertical normal, cards empilhados */
@media (max-width: 900px) {
  .hw-outer { height: auto !important; }
  .hw-sticky {
    position: static;
    height: auto;
    overflow: visible;
    padding: 48px 0 40px;
  }
  .hw-progress { display: none; }
  .hw-track {
    flex-direction: column;
    overflow: visible;
    transform: none !important;
    height: auto;
    align-items: stretch;
    gap: 16px;
    padding: 0 20px;
  }
  .hw-intro {
    min-width: auto;
    max-width: 100%;
    width: 100%;
    min-height: auto;
    padding: 0 0 8px;
    align-items: flex-start;
  }
  .hw-intro-inner .section-subtitle { max-width: 100%; }
  .hw-dots { display: none; }
  .hw-card {
    min-width: auto;
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: auto;
    max-height: none;
    flex-direction: column;
  }
  .hw-card-visual { display: none; }
  .hw-trail { display: none; }
  .meth-features { gap: 14px; }
}

/* ===== NICHOS — Onde Geramos Impacto ===== */

.nicho-section {
  --nicho-accent: #2F6BFF;
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  min-height: clamp(640px, 90vh, 960px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Background layers */
.nicho-bgs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.nicho-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.65s ease;
}
.nicho-bg.active { opacity: 1; }

/* Per-nicho gradient fallbacks (shown until WebP images are added) */
.nicho-bg[data-nicho="transportadoras"]      { background-image: url("images/nicho-transportadoras.webp"), linear-gradient(135deg, #060E20 0%, #0C1A33 100%); }
.nicho-bg[data-nicho="clinicas"]             { background: linear-gradient(135deg, #071C25 0%, #0A1628 100%); }
.nicho-bg[data-nicho="saloes"]               { background: linear-gradient(135deg, #160A1C 0%, #0C1020 100%); }
.nicho-bg[data-nicho="spas"]                 { background: linear-gradient(135deg, #071C16 0%, #0B1A20 100%); }
.nicho-bg[data-nicho="barbearias"]           { background: linear-gradient(135deg, #130E0C 0%, #1A1010 100%); }
.nicho-bg[data-nicho="vendas-digitais"]      { background: linear-gradient(135deg, #080A1E 0%, #0D1030 100%); }
.nicho-bg[data-nicho="servicos-agendamento"] { background: linear-gradient(135deg, #0C1020 0%, #141820 100%); }

.nicho-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(6, 14, 32, 0.92) 0%,
    rgba(6, 14, 32, 0.75) 55%,
    rgba(6, 14, 32, 0.52) 100%
  );
}

.nicho-section .container { position: relative; z-index: 2; }

/* Header */
.nicho-header {
  margin-bottom: 20px;
  transform: translateY(64px);
}

.nicho-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
  margin-bottom: 10px;
}

.nicho-pre-text {
  font-size: 15px;
  color: rgba(255,255,255,0.40);
  max-width: 480px;
  line-height: 1.65;
}

/* Title + list grid */
.nicho-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.nicho-title {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.12;
  letter-spacing: -0.5px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (min-width: 901px) {
  .nicho-title {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

.nicho-active-name {
  color: var(--nicho-accent);
  transition: opacity 0.2s ease;
}

.nicho-title-dot { color: var(--nicho-accent); }

/* Botão seletor mobile — reset visual, sem efeito no desktop */
.nicho-name-selector {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: default;
  display: inline;
}
.nicho-selector-chevron { display: none; }
.nicho-mobile-dropdown  { display: none; }

@media (min-width: 901px) {
  .nicho-name-selector { pointer-events: none; }
}

.nicho-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-top: 0;
  margin-bottom: 36px;
  line-height: 1.6;
  max-width: 560px;
  transition: opacity 0.25s ease;
}

/* Niche ticker outer (clip + fade mask) */
.nicho-ticker-outer {
  overflow: hidden;
  height: 230px; /* 5 × 46px item height */
  flex: 1;
  min-width: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 18%, black 32%, black 68%, rgba(0,0,0,0.7) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 18%, black 32%, black 68%, rgba(0,0,0,0.7) 82%, transparent 100%);
}

/* Niche list (desktop) — acts as the scrolling drum */
.nicho-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 0;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.42, 0, 0.18, 1);
}

.nicho-item {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
  text-align: left;
  user-select: none;
  opacity: 0.20;
}
.nicho-item:hover  { opacity: 0.60; }
.nicho-item.active {
  color: var(--nicho-accent);
  opacity: 1;
  text-shadow: 0 0 30px rgba(47,107,255,0.62);
}
.nicho-item.active::after { content: '.'; }
.nicho-item:focus-visible { outline: 2px solid var(--nicho-accent); outline-offset: 4px; border-radius: 4px; }

@media (min-width: 901px) {
  .nicho-active-name,
  .nicho-title-dot { display: none; }
}

/* Mobile tabs */
.nicho-tabs-mobile {
  display: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 8px;
  padding-bottom: 4px;
  margin-bottom: 28px;
}
.nicho-tabs-mobile::-webkit-scrollbar { display: none; }

.nicho-tab {
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.20);
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.nicho-tab:hover  { border-color: rgba(255,255,255,0.42); color: rgba(255,255,255,0.82); }
.nicho-tab.active { background: var(--nicho-accent); border-color: var(--nicho-accent); color: #FFF; box-shadow: 0 0 16px rgba(47,107,255,0.58); }

/* Cards grid */
.nicho-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 250px));
  gap: 12px;
  justify-content: start;
}

.nicho-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 1px 4px rgba(0,0,0,0.10);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.nicho-card.visible { opacity: 1; transform: none; }

.nicho-card-ui {
  min-height: 148px;
  background: var(--bg);
  overflow: hidden;
}

.nicho-card-footer {
  padding: 12px 14px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.nicho-card-fn   { font-size: 12px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }

.nicho-card-status {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.nicho-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}

/* ── Mini-UI: registro ─────────────────────── */
.nui-reg-hd {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.nui-reg-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.nui-reg-info   { flex: 1; min-width: 0; }
.nui-reg-name   { font-size: 11px; font-weight: 700; color: var(--dark); }
.nui-reg-role   { font-size: 10px; color: var(--muted); }

.nui-badge         { padding: 2px 7px; border-radius: 100px; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.nui-badge-green   { background: #DCFCE7; color: #16A34A; }
.nui-badge-blue    { background: var(--blue-light); color: var(--blue); }

.nui-reg-fields { padding: 8px 13px; display: flex; flex-direction: column; gap: 5px; }
.nui-reg-row    { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; }
.nui-fk         { color: var(--muted); flex-shrink: 0; }
.nui-fv         { color: var(--dark); font-weight: 600; text-align: right; }

/* ── Mini-UI: mensagem ─────────────────────── */
.nui-chat     { padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }

.nui-msg {
  max-width: 82%;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 10.5px;
  line-height: 1.4;
}
.nui-msg.in  { background: var(--border); color: var(--dark); align-self: flex-start; border-bottom-left-radius: 2px; }
.nui-msg.out { background: var(--blue); color: #FFF; align-self: flex-end; border-bottom-right-radius: 2px; }

.nui-chat-bar {
  padding: 7px 12px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
}

.nui-chat-dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; flex-shrink: 0; }

/* ── Mini-UI: dashboard ────────────────────── */
.nui-dash       { padding: 10px 13px; display: flex; flex-direction: column; gap: 7px; }
.nui-dash-row   { display: flex; align-items: center; gap: 8px; }
.nui-dash-lbl   { font-size: 10px; color: var(--muted); width: 100px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nui-dash-val   { font-size: 10.5px; font-weight: 700; color: var(--dark); width: 36px; text-align: right; flex-shrink: 0; }
.nui-dash-track { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.nui-dash-fill  { height: 100%; background: var(--blue); border-radius: 3px; transition: width 0.6s ease; }

/* ── Pause/Play button ─────────────────────── */
.nicho-playbtn {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.24);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.nicho-playbtn:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.45);
}
.nicho-playbtn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.nicho-ico-play  { display: none; }
.nicho-ico-pause { display: block; }
.nicho-playbtn.paused .nicho-ico-play  { display: block; }
.nicho-playbtn.paused .nicho-ico-pause { display: none; }

/* Wrapper do scroll indicator — oculto no desktop */
.nicho-tabs-scroll-hint { display: contents; }
.nicho-tabs-arrow { display: none; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  /* Seção: largura explícita para conter tudo */
  .nicho-section {
    width: 100%;
    max-width: 100vw;
    min-height: auto;
    padding: 60px 0 52px;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
  }

  /* Container: não pode ultrapassar a tela */
  .nicho-section .container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Eyebrow: reset do translateY do desktop */
  .nicho-header { transform: none; margin-bottom: 16px; }
  .nicho-eyebrow { font-size: 11px; letter-spacing: 1.2px; }

  /* Grid: bloco simples */
  .nicho-grid { display: block; margin-bottom: 16px; }

  /* Título mobile: grande, quebra garantida pelo base CSS */
  .nicho-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(28px, 7.5vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.3px;
  }

  /* Subtítulo: bold e legível */
  .nicho-subtitle {
    width: 100%;
    max-width: 100%;
    font-size: 17px;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
    line-height: 1.35;
    margin-bottom: 28px;
  }

  .nicho-ticker-outer  { display: none; }
  .nicho-pre-text      { display: none; }
  .nicho-playbtn       { display: none; }
  .nicho-tabs-scroll-hint { display: none; }

  /* Botão seletor no título */
  .nicho-name-selector {
    cursor: pointer;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .nicho-title-dot { display: none; } /* chevron ocupa esse papel */
  .nicho-selector-chevron {
    display: inline-block;
    color: var(--nicho-accent);
    transition: transform 0.22s ease;
    flex-shrink: 0;
    align-self: center;
    margin-left: 2px;
  }
  .nicho-name-selector.open .nicho-selector-chevron {
    transform: rotate(180deg);
  }

  /* Dropdown de seleção de segmento */
  .nicho-mobile-dropdown {
    display: none;
    background: rgba(8, 4, 22, 0.97);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 10px 0 20px;
    backdrop-filter: blur(12px);
  }
  .nicho-mobile-dropdown.open {
    display: block;
    animation: nichoDropIn 0.2s ease;
  }
  .nicho-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.62);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.14s, color 0.14s;
  }
  .nicho-dropdown-item:last-child { border-bottom: none; }
  .nicho-dropdown-item.active {
    color: #fff;
    font-weight: 700;
    background: rgba(47, 107, 255, 0.22);
  }
  .nicho-dropdown-item:active { background: rgba(47, 107, 255, 0.38); }

  /* Cards: carrossel contido, 2 visíveis + peek */
  .nicho-cards {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    box-sizing: border-box;
  }
  .nicho-cards::-webkit-scrollbar { display: none; }
  .nicho-card {
    flex: 0 0 46vw;
    min-width: 0;
    max-width: 200px;
    scroll-snap-align: start;
  }
  .nicho-card:last-child { margin-right: 16px; }
}

@media (max-width: 600px) {
  .nicho-title { font-size: 24px; }
}

/* ── prefers-reduced-motion ────────────────── */
@media (prefers-reduced-motion: reduce) {
  .nicho-bg, .nicho-card, .nicho-active-name, .nicho-subtitle, .nicho-list, .nui-dash-fill {
    transition: none !important;
  }
  .nicho-card.visible { transform: none; }
}

/* ===== KEYFRAMES ===== */
@keyframes diagFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
@keyframes borderGlow {
  0%, 100% { border-color: var(--blue); box-shadow: 0 0 0 0 rgba(26,82,240,0.15); }
  50%       { border-color: rgba(26,82,240,0.4); box-shadow: 0 0 0 4px rgba(26,82,240,0.07); }
}
@keyframes rippleAnim {
  to { transform: scale(5); opacity: 0; }
}
@keyframes metricPop {
  0%   { opacity: 0; transform: scale(0.55) translateY(8px); }
  70%  { transform: scale(1.08) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes badgeDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nichoDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes iconBounce {
  0%   { transform: scale(1) rotate(0deg); }
  40%  { transform: scale(1.18) rotate(-8deg); }
  70%  { transform: scale(0.95) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes barSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== ANIMATION UTILITIES ===== */

/* Hero diagram gentle float */
.hero-svg-diagram {
  animation: diagFloat 6s ease-in-out infinite;
}

/* Status dot pulse (footer + any green dot) */
.status-dot {
  animation: statusPulse 2s ease-in-out infinite;
}

/* Featured testimonial border glow */
.testimonial-card.featured {
  animation: borderGlow 3s ease-in-out infinite;
}

/* Card icon hover micro-bounce */
.card-icon {
  transition: transform 0.25s ease;
}
.card:hover .card-icon {
  animation: iconBounce 0.45s ease forwards;
}

/* Button ripple */
.btn-primary { overflow: hidden; }
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}

/* Reveal from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-left.visible { opacity: 1; transform: none; }

/* Reveal from right */
.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-right.visible { opacity: 1; transform: none; }

/* Reveal with bouncy scale (for metric numbers) */
.reveal-scale {
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34,1.56,0.64,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Case metric pop when counted */
.metric-counted {
  animation: metricPop 0.7s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

/* Form badge blinking dot */
.badge-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16A34A;
  margin-right: 5px;
  animation: badgeDot 1.8s ease-in-out infinite;
  vertical-align: middle;
}

/* Arch bars stagger via JS-added class */
.arch-bar {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.arch-bar.bar-hidden {
  opacity: 0;
  transform: translateX(-16px);
}

/* Alert bar entrance */
.alert-bar {
  background: var(--red-light);
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.alert-bar.visible {
  opacity: 1;
  transform: none;
}

/* Section label slide up on reveal */
.section-label-anim {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.section-label-anim.visible { opacity: 1; transform: none; }

/* Comparison table header stays visible */
.comparison-table thead tr { opacity: 1 !important; transform: none !important; }

/* Staggered tbody rows */
.table-row-anim {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.table-row-anim.visible { opacity: 1; transform: none; }
