/* Home institucional InfraRM: botões, tipografia, fluxos e animações sutis. */
.landing { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

.lp-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #2563eb; }
.lp-h2 { font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: #0B2545; }

.lp-btn-primary, .lp-btn-light, .lp-btn-outline-light, .lp-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .85rem; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.lp-btn-primary { background: #1677E8; color: #fff; box-shadow: 0 6px 20px -8px rgba(22, 119, 232, .7); }
.lp-btn-primary:hover { background: #0f63c7; transform: translateY(-1px); }
.lp-btn-light { background: #fff; color: #0B2545; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.lp-btn-light:hover { transform: translateY(-1px); background: #f0f7ff; }
.lp-btn-outline-light { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.lp-btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.lp-btn-ghost { color: #0B2545; border: 1px solid #cbd5e1; background: #fff; }
.lp-btn-ghost:hover { background: #f8fafc; }
.lp-btn-primary:focus-visible, .lp-btn-light:focus-visible, .lp-btn-outline-light:focus-visible, .lp-btn-ghost:focus-visible {
  outline: 3px solid #7dd3fc; outline-offset: 2px;
}

.lp-label { display: block; font-size: .8rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.lp-input {
  width: 100%; border-radius: .75rem; border: 1px solid #cbd5e1; background: #fff; padding: .7rem .85rem; font-size: 1rem; color: #0f172a;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lp-input:focus { outline: none; border-color: #1677E8; box-shadow: 0 0 0 3px rgba(22, 119, 232, .18); }

.lp-grid-bg {
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* Revelar ao rolar (a classe lp-anim é posta no <html> pelo layout). */
.lp-anim [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.lp-anim [data-reveal].is-visible { opacity: 1; transform: none; }

/* Corrente do hero: cada passo acende em sequência. */
.lp-chain { animation: lp-chain-in .5s ease both; animation-delay: calc(var(--i) * 140ms + 300ms); }
@keyframes lp-chain-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
/* Fluxos: seta entre passos no desktop. */
.lp-flow-step { transition: transform .25s ease, box-shadow .25s ease; }
.lp-flow-step:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(11, 37, 69, .45); }

/* Integração: linha animada ligando os nós. */
@media (min-width: 1024px) {
  .lp-integration::before {
    content: ""; position: absolute; left: 8%; right: 8%; top: 2rem; height: 2px;
    background: linear-gradient(90deg, #bfdbfe, #1677E8, #38bdf8, #bfdbfe); background-size: 200% 100%;
    animation: lp-line 4s linear infinite;
  }
}
@keyframes lp-line { from { background-position: 0 0; } to { background-position: -200% 0; } }
.lp-node > span:first-child { transition: transform .25s ease; }
.lp-node:hover > span:first-child { transform: scale(1.06); }

/* Barras do dashboard crescem quando aparecem. */
.lp-bar { height: var(--h); transform-origin: bottom; }
.lp-anim [data-reveal] .lp-bar { transform: scaleY(.05); transition: transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 80ms + 200ms); }
.lp-anim [data-reveal].is-visible .lp-bar { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-anim [data-reveal], .lp-anim [data-reveal] .lp-bar { opacity: 1; transform: none; transition: none; }
  .lp-chain, .lp-integration::before { animation: none; }
}
