/* ============================================================
   Emphasis — página inicial
   Complementa style.css (tokens, botões, cards, reveal)
   ============================================================ */

:root {
  --grad: linear-gradient(120deg, #3245b5 0%, #435bdb 50%, #6178ea 100%);
  --ink-soft: rgba(20, 26, 51, 0.06);
}

section[id] {
  scroll-margin-top: 4.5rem;
}

/* ---------- nav (menu mobile) ---------- */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-actions .btn {
    display: none;
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open .nav-links a {
    display: block;
    padding: 0.8rem 0.25rem;
    font-size: 1.05rem;
  }
  .nav.open .nav-links a.nav-pill {
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* ---------- hero ---------- */
.hero-x {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 5.5rem);
}

.hero-x::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(44rem 26rem at 8% -12%, rgba(67, 91, 219, 0.14), transparent 65%),
    radial-gradient(40rem 24rem at 100% 10%, rgba(128, 149, 242, 0.16), transparent 60%);
  pointer-events: none;
}

.hero-x::after {
  /* grade sutil ao fundo */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60rem 30rem at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60rem 30rem at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-x .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.95rem 0.38rem 0.45rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(20, 26, 51, 0.04);
  margin-bottom: 1.5rem;
}

.badge b {
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

.hero-x h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-x .sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 34rem;
}

.hero-x .trust-row {
  margin-top: 2.2rem;
}

/* ---------- hero visual (mockups) ---------- */
.hero-visual {
  position: relative;
  padding: 1.5rem 0 2.5rem;
}

.window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.window-bar i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.window-bar span {
  margin-left: 0.6rem;
  flex: 1;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 330px;
}

.dash-side {
  border-right: 1px solid var(--line);
  padding: 0.9rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.dash-side i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--surface-2);
}

.dash-side i:first-child {
  background: var(--grad);
}

.dash-main {
  padding: 1.1rem 1.2rem 1.2rem;
  min-width: 0;
}

.dash-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.dash-title small {
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.kpis {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  min-width: 0;
}

.kpi small {
  display: block;
  font-size: 0.66rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.kpi em {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--accent);
}

.chart {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.8rem 0.5rem;
}

.chart svg {
  width: 100%;
  height: auto;
}

.chart .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 1.8s 0.4s ease-out forwards;
}

.chart .bars rect {
  fill: var(--accent-soft-2);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: bob 6s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.float-chat {
  right: -1.25rem;
  bottom: -0.5rem;
  width: min(250px, 62%);
  padding: 0.75rem;
  animation-delay: -2s;
}

.float-chat header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.float-chat header i {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-style: normal;
  font-size: 0.7rem;
}

.float-chat header small {
  display: block;
  font-weight: 600;
  font-size: 0.66rem;
  color: var(--accent);
}

.bubble {
  font-size: 0.76rem;
  line-height: 1.4;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  margin-top: 0.4rem;
  max-width: 90%;
}

.bubble.me {
  background: var(--accent-soft-2);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.bubble.ai {
  background: var(--surface-2);
  border-bottom-left-radius: 4px;
}

.float-toast {
  left: -1.5rem;
  top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem 0.6rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 270px;
}

.float-toast .ok {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.float-toast small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.68rem;
}

@media (max-width: 960px) {
  .float-chat {
    right: 0.5rem;
  }
  .float-toast {
    left: 0.5rem;
  }
}

@media (max-width: 520px) {
  .dash {
    grid-template-columns: 1fr;
  }
  .dash-side {
    display: none;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpis .kpi:nth-child(3) {
    display: none;
  }
  .float-toast {
    top: -0.5rem;
    max-width: 230px;
  }
  .float-chat {
    width: 72%;
    bottom: -1.5rem;
  }
}

/* ---------- faixa de setores (marquee) ---------- */
.marquee {
  padding-block: 1.6rem;
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-inline: 1rem;
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: slide 40s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.marquee-track span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- serviços ---------- */
.svc {
  display: flex;
  flex-direction: column;
}

.svc ul {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.svc li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.svc li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  flex: none;
}

.svc-feature {
  background: var(--panel);
  color: var(--panel-ink);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}

.svc-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem 14rem at 100% 0%, rgba(128, 149, 242, 0.28), transparent 70%);
  pointer-events: none;
}

.svc-feature > * {
  position: relative;
  z-index: 1;
}

.svc-feature p,
.svc-feature ul {
  color: var(--panel-muted);
}

.svc-feature ul {
  border-top-color: var(--panel-line);
}

.svc-feature li::before {
  color: #8095f2;
}

.svc-feature .card-icon {
  background: rgba(128, 149, 242, 0.16);
  color: #8095f2;
}

.svc-feature .tag {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f1642;
  background: #8095f2;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ---------- IA (split) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.split .lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.usecases {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.85rem;
}

.usecase {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.usecase .card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  margin: 0;
  flex: none;
}

.usecase strong {
  display: block;
  font-size: 1rem;
}

.usecase span {
  color: var(--muted);
  font-size: 0.93rem;
}

.agent {
  position: relative;
  padding: 1.25rem;
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.agent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(30rem 18rem at 0% 0%, rgba(128, 149, 242, 0.22), transparent 65%);
  pointer-events: none;
}

.agent > * {
  position: relative;
}

.agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--panel-ink);
  padding: 0.25rem 0.25rem 1rem;
  border-bottom: 1px solid var(--panel-line);
}

.agent-head strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.agent-head small {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #8095f2;
}

.agent-head small::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.agent-log {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.agent-log .msg {
  box-shadow: none;
  max-width: 88%;
}

.agent-log .msg-in {
  background: rgba(236, 239, 252, 0.1);
  color: var(--panel-ink);
}

.agent-log .msg-out {
  background: rgba(128, 149, 242, 0.22);
  color: var(--panel-ink);
}

.agent-log .msg .time {
  color: var(--panel-muted);
}

.agent-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--panel-muted);
  padding: 0.45rem 0.7rem;
  border: 1px dashed var(--panel-line);
  border-radius: 10px;
  width: fit-content;
}

.agent-step b {
  color: #8095f2;
  font-weight: 700;
}

/* ---------- setores ---------- */
.sector {
  position: relative;
  padding: 1.5rem;
}

.sector h3 {
  font-size: 1.08rem;
}

.sector p {
  font-size: 0.92rem;
}

.sector .card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
}

.sector-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--accent-soft);
  border-color: transparent;
}

.sector-cta h3 {
  font-size: 1.15rem;
}

.sector-cta .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

/* ---------- faixa da LIA ---------- */
.lia-band-chat {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lia-band-chat .msg {
  box-shadow: none;
}

.lia-band-chat .msg-in {
  background: rgba(236, 239, 252, 0.1);
  color: var(--panel-ink);
}

.lia-band-chat .msg-out {
  background: rgba(128, 149, 242, 0.22);
  color: var(--panel-ink);
}

.lia-band-chat .msg .time {
  color: var(--panel-muted);
}

.lia-band-points {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  color: var(--panel-muted);
  font-size: 0.97rem;
}

.lia-band-points li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.lia-band-points li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8095f2;
  transform: translateY(-1px);
}

.cta-final h2 {
  color: var(--panel-ink);
}

/* ---------- compromissos (números) ---------- */
.promise-band {
  background: var(--panel);
  color: var(--panel-ink);
  position: relative;
  overflow: hidden;
}

.promise-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40rem 20rem at 0% 0%, rgba(128, 149, 242, 0.16), transparent 60%),
    radial-gradient(30rem 18rem at 100% 100%, rgba(128, 149, 242, 0.12), transparent 60%);
  pointer-events: none;
}

.promise-band .container {
  position: relative;
  z-index: 1;
}

.promise-band .section-head h2 {
  color: var(--panel-ink);
}

.promise-band .section-head .lead {
  color: var(--panel-muted);
}

.promise-band .eyebrow {
  color: #8095f2;
}

.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 860px) {
  .promises {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .promises {
    grid-template-columns: 1fr;
  }
}

.promise {
  background: var(--panel);
  padding: 1.6rem 1.5rem;
}

.promise .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(120deg, #8095f2, #c4cefc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.promise h3 {
  margin-top: 0.8rem;
  font-size: 1.02rem;
}

.promise p {
  margin-top: 0.35rem;
  color: var(--panel-muted);
  font-size: 0.9rem;
}

/* ---------- stack ---------- */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.stack span {
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- faq grid ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.faq-grid .faq {
  max-width: none;
}

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
}

.cta-final h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 44rem;
  margin-inline: auto;
}

.cta-final p.lead {
  margin: 1.1rem auto 0;
  max-width: 36rem;
  font-size: 1.1rem;
}

.cta-final .hero-ctas {
  justify-content: center;
}

.cta-final .fine {
  margin-top: 1.4rem;
  font-size: 0.86rem;
}

/* ---------- footer ampliado ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h4 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-grid a {
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-grid .logo {
  margin-bottom: 0.8rem;
}

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-partner {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-size: 0.85rem;
}

.footer-partner img {
  height: 0.9rem;
  width: auto;
  filter: grayscale(1);
  opacity: 0.65;
}

@media (prefers-reduced-motion: reduce) {
  .float,
  .marquee-track,
  .agent-head small::before {
    animation: none;
  }
  .chart .line {
    animation: none;
    stroke-dashoffset: 0;
  }
}
