/* Home SaaS — abaixo da dobra. O crítico do hero fica inline no index.html */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(90deg, var(--blue), var(--deep));
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(7, 10, 19, .97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease, padding .32s ease;
}

.mobile-nav.open { max-height: 480px; padding: 12px 0 20px; }
.mobile-nav ul { list-style: none; }
.mobile-nav-link,
.mobile-nav-cta {
  display: block;
  padding: 13px 24px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
.mobile-nav-cta {
  margin: 10px 24px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--deep));
  color: #fff;
  text-align: center;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn-soft,
  .nav-actions .btn-primary { display: none; }
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  overflow: hidden;
}
.trust-track {
  width: max-content;
  display: flex;
  gap: 36px;
  padding: 16px 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  animation: marquee 28s linear infinite;
}
.trust-strip:hover .trust-track,
.trust-strip:focus-within .trust-track { animation-play-state: paused; }

section { padding: 82px 0; }
#diagnostico, #services, #processo, #projects, #simulador,
#testimonials, #about, #skills, #faq, #contact, #agenda {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}
.kicker {
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.section-title {
  max-width: 18ch;
  margin-top: 10px;
  font-size: clamp(1.85rem, 3.8vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
}
.section-copy { max-width: 430px; color: var(--muted); }

.problem-grid,
.services-grid,
.case-grid,
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.problem-card,
.service-card,
.case-card,
.blog-card,
.stack-card,
.faq-item,
.testimonial-card,
.process-step,
.roi-panel,
.hire-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(2,6,23,.18);
}

.problem-card {
  min-height: 240px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.problem-card span { color: var(--blue); font-weight: 800; }
.problem-card h3 {
  margin: 46px 0 12px;
  font-size: 1.28rem;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.problem-card p { color: var(--muted); }

.service-card {
  min-height: 520px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.service-card.featured {
  border-color: rgba(56,189,248,.46);
  background: linear-gradient(180deg, rgba(56,189,248,.13), rgba(12,17,31,.78));
}
.service-badge {
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  color: #bdf8d0;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56,189,248,.24);
  border-radius: 16px;
  background: rgba(56,189,248,.1);
  color: var(--blue);
  font-weight: 800;
  margin: 22px 0 36px;
}
.service-card h3 { font-size: 1.45rem; letter-spacing: -.04em; line-height: 1.1; }
.price { margin: 14px 0; }
.price small { display: block; color: var(--muted); font-weight: 700; }
.price strong { font-size: 1.7rem; letter-spacing: -.05em; }
.service-card > p { color: var(--muted); }
.service-list { list-style: none; display: grid; gap: 10px; margin: 20px 0 24px; color: var(--soft); }
.service-list li { display: flex; gap: 9px; }
.service-list li::before { content: "✓"; color: var(--green); font-weight: 800; }
.service-card .btn { margin-top: auto; width: 100%; justify-content: center; }

.compare {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.03);
}
.compare table { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}
.compare th { color: var(--ink); font-weight: 800; }
.compare tbody th { color: var(--muted); }
.compare tr:last-child td,
.compare tr:last-child th { border-bottom: 0; }
.compare .feat { color: var(--blue); }

.process-wrap {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255,255,255,.045);
  padding: 20px;
}
.process-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.process-step { min-height: 220px; padding: 22px; }
.step-num { color: var(--blue); font-weight: 800; margin-bottom: 40px; }
.process-step h3 { margin-bottom: 10px; letter-spacing: -.03em; }
.process-step p { color: var(--muted); font-size: .95rem; }

.case-grid { grid-template-columns: 1.4fr 1fr; }
.case-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.case-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 0; }
.case-media {
  height: 240px;
  background: rgba(2,6,23,.72);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.case-card.wide .case-media { height: auto; min-height: 280px; border-bottom: 0; border-right: 1px solid var(--line); }
.case-media video,
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-placeholder {
  height: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -.08em;
  background:
    radial-gradient(circle at 70% 28%, rgba(56,189,248,.24), transparent 34%),
    linear-gradient(135deg, rgba(56,189,248,.12), rgba(37,99,235,.08));
}
.case-media .case-placeholder img {
  width: clamp(120px, 18vw, 200px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(56,189,248,.35));
}
.case-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255,255,255,.045);
  font-size: .76rem;
  font-weight: 700;
}
.case-body h3 { font-size: 1.35rem; line-height: 1.12; letter-spacing: -.04em; margin-bottom: 12px; }
.case-body p { color: var(--muted); }
.case-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.case-metrics span {
  flex: 1 1 110px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.case-metrics strong { display: block; color: var(--ink); font-size: 1.1rem; }
.case-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; }
.case-links a { color: var(--blue); font-weight: 800; text-decoration: none; }
.case-links span { color: var(--muted); font-weight: 700; font-size: .92rem; }

.roi { display: grid; grid-template-columns: .92fr 1.08fr; gap: 18px; }
.roi-panel { padding: 26px; }
.options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--ink);
  padding: 10px 13px;
  cursor: pointer;
  font-weight: 700;
}
.chip.active {
  background: rgba(56,189,248,.14);
  border-color: rgba(56,189,248,.48);
  color: #dff7ff;
}
.chip:active,
.node:active,
.btn:active {
  transform: scale(.97);
}
.score.pop,
#flowScore.pop { animation: scorePop .35s ease; }
.score { font-size: clamp(3.4rem, 8vw, 7rem); line-height: .85; letter-spacing: -.08em; font-weight: 800; }
.bars { display: grid; gap: 14px; margin: 22px 0 24px; }
.bar-row span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: 7px;
}
.bar { height: 12px; border-radius: 999px; background: rgba(148,163,184,.14); overflow: hidden; }
.bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--deep));
  transition: width .35s ease;
}
.roi-message {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  padding: 16px;
  color: var(--soft);
  margin-bottom: 16px;
}

.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.testimonial-card { padding: 24px; }
.testimonial-top { color: var(--green); font-weight: 800; font-size: .82rem; margin-bottom: 16px; }
.testimonial-card blockquote {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 750;
  margin-bottom: 16px;
}
.testimonial-card img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-top: 14px;
}
.testimonial-author { color: var(--muted); font-size: .92rem; font-weight: 700; }

.hire-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.hire-card { padding: 26px; }
.hire-card p { color: var(--muted); margin: 14px 0 20px; }
.about-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--soft);
  font-size: .88rem;
  font-weight: 700;
}
.about-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stack-card { padding: 18px; }
.stack-card h3 { margin-bottom: 12px; letter-spacing: -.03em; font-size: 1rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255,255,255,.04);
  font-size: .8rem;
  font-weight: 700;
}
.timeline { display: grid; gap: 14px; }
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255,255,255,.03);
}
.timeline-period { color: var(--blue); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.timeline-role { margin-top: 6px; font-weight: 800; }
.timeline-company { color: var(--muted); font-size: .9rem; }

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 22px;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.blog-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.blog-card small { color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.blog-card h3 { margin: 28px 0 12px; font-size: 1.25rem; line-height: 1.12; letter-spacing: -.03em; }
.blog-card p { color: var(--muted); }
.blog-card span { margin-top: auto; color: var(--blue); font-weight: 800; }

.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  padding: 20px;
  font-weight: 800;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 20px 20px; color: var(--muted); }
.faq-cta { display: flex; justify-content: center; margin-top: 22px; }

.agenda-card,
.final-cta {
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid rgba(56,189,248,.3);
  border-radius: 36px;
  background:
    radial-gradient(circle at 18% 0%, rgba(56,189,248,.22), transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(37,99,235,.22), transparent 34%),
    rgba(255,255,255,.045);
}
.agenda-card { text-align: left; margin-bottom: 22px; }
.agenda-card h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.03em; line-height: 1.15; margin: 10px 0 12px; }
.agenda-card p { color: var(--muted); max-width: 640px; }
.agenda-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.agenda-perks li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: .86rem;
  font-weight: 700;
}

.final-cta { text-align: center; }
.final-cta h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.final-cta > p { color: var(--soft); max-width: 720px; margin: 0 auto 24px; font-size: 1.08rem; }
.contact-form {
  width: min(760px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full,
.contact-form .full { grid-column: 1 / -1; }
.form-field label { color: var(--soft); font-size: .86rem; font-weight: 700; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2,6,23,.54);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}
.form-field textarea { min-height: 94px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(56,189,248,.09);
}
.hero-intent-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-intent-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
}
.hero-intent-opt:has(input:checked) {
  border-color: var(--line-strong);
  background: rgba(56,189,248,.1);
}
.hero-intent-opt input { accent-color: var(--blue); }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { grid-column: 1 / -1; min-height: 1.4em; font-weight: 700; }
.form-status-link,
.form-privacy a,
.form-noscript a { color: var(--blue); }
.form-privacy,
.form-noscript { color: var(--muted); font-size: .78rem; line-height: 1.55; }

.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; text-align: left; }
.contact-link {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255,255,255,.03);
}
.contact-link-label { color: var(--muted); font-size: .78rem; font-weight: 700; }

footer { padding: 34px 0 48px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
.footer-brand p { margin: 12px 0 16px; max-width: 360px; }
.footer-col-title { color: var(--ink); font-weight: 800; margin-bottom: 12px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-socials { display: flex; gap: 14px; }
.footer-social-link { color: var(--blue); text-decoration: none; font-weight: 700; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7,10,19,.8);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  transition: opacity .3s ease, transform .3s ease;
}
.floating-whatsapp.is-hidden {
  opacity: 0;
  transform: translateY(24px) scale(.85);
  pointer-events: none;
}
.floating-whatsapp-menu {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: 230px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7,10,19,.96);
  display: grid;
  gap: 8px;
}
.floating-whatsapp-menu[hidden] { display: none; }
.floating-whatsapp-menu-title { font-size: .78rem; color: var(--muted); font-weight: 800; }
.floating-whatsapp-menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 8px;
}
.floating-whatsapp-menu a:hover { background: rgba(56,189,248,.1); }
.floating-whatsapp-btn {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(37,211,102,.28);
  display: grid;
  place-items: center;
}
.floating-whatsapp-btn svg { width: 28px; height: 28px; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes dash { to { stroke-dashoffset: -22; } }
@keyframes aurora { 50% { transform: translate(-60px, 70px) scale(1.08); } }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
  70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(37,211,102,.22); }
  50% { box-shadow: 0 16px 42px rgba(37,211,102,.42); }
}
@keyframes waRing {
  0% { transform: scale(1); opacity: .5; }
  60%, 100% { transform: scale(1.45); opacity: 0; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes flowFill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes nodeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shine {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}
@keyframes scorePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes travelDot {
  0% { top: 28px; }
  100% { top: calc(100% - 38px); }
}

.badge-dot { animation: pulseDot 1.8s ease-out infinite; }
.btn-wa { animation: ctaPulse 2.4s ease-in-out infinite; }
.floating-whatsapp-btn { position: relative; }
.floating-whatsapp-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.5);
  animation: waRing 2.8s ease-out infinite;
  pointer-events: none;
}
.bar i { transform-origin: left center; }
.reveal.visible .bar i { animation: barGrow .7s ease both; }

@media (max-width: 980px) {
  section { padding: 56px 0; }
  .hero-grid,
  .problem-grid,
  .services-grid,
  .case-grid,
  .roi,
  .testimonials,
  .stack-grid,
  .blog-grid,
  .faq-list,
  .process-line,
  .hire-grid,
  .contact-form,
  .contact-links,
  .footer-grid,
  .case-card.wide { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-copy { margin-top: 12px; }
  .case-card.wide .case-media { border-right: 0; border-bottom: 1px solid var(--line); min-height: 220px; }
  .lab-footer { grid-template-columns: 1fr; }

  .proof-card,
  .problem-card,
  .service-card,
  .case-card,
  .process-step,
  .blog-card,
  .testimonial-card,
  .stack-card,
  .timeline-item,
  .faq-item {
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  }
  .problem-card.visible,
  .service-card.visible,
  .case-card.visible,
  .process-step.visible,
  .blog-card.visible,
  .testimonial-card.visible {
    border-color: rgba(56,189,248,.32);
    box-shadow: 0 16px 36px rgba(2,6,23,.28);
  }
  .problem-grid .reveal:nth-child(2) { transition-delay: .08s; }
  .problem-grid .reveal:nth-child(3) { transition-delay: .16s; }
  .services-grid .reveal:nth-child(2) { transition-delay: .08s; }
  .services-grid .reveal:nth-child(3) { transition-delay: .16s; }
  .process-line .reveal:nth-child(2) { transition-delay: .08s; }
  .process-line .reveal:nth-child(3) { transition-delay: .16s; }
  .process-line .reveal:nth-child(4) { transition-delay: .24s; }

  .wa-intent-pill,
  .chip {
    min-height: 44px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
  }
  .chip.active { animation: scorePop .28s ease; }

  .automation-map {
    min-height: 0;
    padding: 16px 16px 16px 28px;
    display: grid;
    gap: 10px;
  }
  .automation-map svg { display: none; }
  .automation-map::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(180deg, var(--blue), var(--deep));
    transform-origin: top;
    animation: flowFill 1.4s ease both;
    opacity: .7;
  }
  .automation-map::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 28px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 14px var(--blue);
    animation: travelDot 8.8s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
  }
  .node, .insight {
    position: relative;
    inset: auto !important;
    transform: none;
    width: auto;
    margin: 0;
    display: block;
  }
  .insight {
    width: 100%;
    left: auto;
    top: auto;
    padding: 16px;
    box-shadow: 0 0 28px rgba(56,189,248,.16);
  }
  .node {
    padding-left: 18px;
    border-left: 3px solid transparent;
    animation: nodeIn .45s ease both;
  }
  .node::after {
    content: "";
    position: absolute;
    left: -20px;
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid var(--blue);
    z-index: 3;
  }
  .node:nth-of-type(1) { animation-delay: .15s; }
  .node:nth-of-type(2) { animation-delay: .25s; }
  .node:nth-of-type(3) { animation-delay: .35s; }
  .node:nth-of-type(4) { animation-delay: .45s; }
  .node.active {
    border-left-color: var(--blue);
    background: rgba(56,189,248,.12);
    box-shadow: 0 0 24px rgba(56,189,248,.16);
  }
  .node.active::after {
    background: var(--blue);
    box-shadow: 0 0 12px var(--blue);
  }

  .process-line { position: relative; }
  .process-step {
    padding-left: 22px;
    border-left: 3px solid rgba(56,189,248,.28);
  }
  .process-step.visible { border-left-color: var(--blue); }

  .service-card.featured {
    background:
      linear-gradient(90deg, transparent, rgba(56,189,248,.12), transparent),
      linear-gradient(180deg, rgba(56,189,248,.13), rgba(12,17,31,.78));
    background-size: 200% 100%, auto;
    animation: shine 4.5s linear infinite;
  }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1200px); }
  .floating-whatsapp { right: 14px; bottom: 14px; }
  .lab-head { flex-wrap: wrap; }
}

@media (hover: none) {
  .blog-card.visible { transform: translateY(-4px); border-color: var(--line-strong); }
  .wa-intent-pill:active,
  .intent-pill:active,
  .chip:active {
    background: rgba(56,189,248,.16);
    border-color: rgba(56,189,248,.48);
  }
  .problem-card:active,
  .service-card:active,
  .case-card:active,
  .process-step:active,
  .testimonial-card:active {
    transform: scale(.985);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Destaque do projeto próprio (DefendaDev) no menu e no card. */
.nav-featured { color: var(--cyan, #56e4ff) !important; }
.tag.tag-own { color: var(--cyan, #56e4ff); border-color: rgba(86,228,255,.45); background: rgba(86,228,255,.08); }
#defendadev { border-color: rgba(86,228,255,.35); box-shadow: 0 0 0 1px rgba(86,228,255,.08), 0 24px 70px rgba(14,165,233,.10); }
