:root{
  --bg: #0b1220;
  --surface: rgba(255,255,255,.78);
  --surface-2: rgba(255,255,255,.92);
  --border: rgba(12,18,32,.10);
  --text: #0c1220;
  --muted: #52607a;
  --primary: #2563eb; /* blue-600 */
  --primary-2: #0ea5e9; /* sky-500 */
  --shadow: 0 18px 48px rgba(0,0,0,.12);
  --radius: 18px;
}

html{scroll-behavior:smooth}
body{
  font-family: Lato, system-ui,-apple-system,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 12% 0%, rgba(14,165,233,.18), transparent 55%),
    radial-gradient(1000px 600px at 90% 10%, rgba(37,99,235,.14), transparent 55%),
    linear-gradient(180deg, #f7f8fb 0%, #ffffff 40%, #f7f8fb 100%);
}

/* =========================
   HERO – TOPO DO SITE
========================= */
.hero{
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #0b1220;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(14,165,233,.28), transparent 60%),
    radial-gradient(900px 500px at 85% 30%, rgba(37,99,235,.22), transparent 60%),
    linear-gradient(
      90deg,
      rgba(11,18,32,.86) 0%,
      rgba(11,18,32,.65) 55%,
      rgba(11,18,32,.20) 100%
    );
  z-index: 1;
}

.hero-media{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

.hero-content{
  position:relative;
  z-index:2;
  padding: 54px 26px;
}

@media (min-width: 992px){
  .hero-content{
    padding: 80px 64px;
  }
}

.hero h1{
  color:#fff;
  font-weight: 900;
  letter-spacing: -.6px;
  line-height:1.08;
}

.hero p{
  color: rgba(255,255,255,.84);
  max-width: 62ch;
}


.topbar{
  background: rgba(11,18,32,.92);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-link{
  color: rgba(255,255,255,.92);
  text-decoration: none;
}
.topbar-link:hover{color:#fff; text-decoration: underline}

.site-header .navbar{
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-brand .brand-logo{height: 42px; width:auto}
.navbar-brand .brand-text{font-weight: 800; letter-spacing: .2px}
.navbar-brand .brand-sub{font-size:.78rem; color: var(--muted); margin-top:-2px}
.navbar-brand .brand-badge{
  font-size: .72rem;
  padding: .20rem .55rem;
  border-radius: 999px;
  background: rgba(37,99,235,.10);
  color: var(--primary);
  border: 1px solid rgba(37,99,235,.15);
}
.navbar .nav-link{color:#1a2440; font-weight: 600}
.navbar .nav-link.active{color: var(--primary)}
.navbar-toggler{border: 1px solid var(--border)}



.kpi{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 14px 16px;
}
.kpi .num{color:#fff; font-weight: 900; font-size: 1.05rem}
.kpi .lbl{color: rgba(255,255,255,.76); font-size: .82rem}

.card-tech{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
  background: var(--surface-2);
}
.card-tech .icon{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(37,99,235,.10);
  color: var(--primary);
  border: 1px solid rgba(37,99,235,.14);
}
.section-title{font-weight: 900; letter-spacing: -.4px}
.section-subtitle{color: var(--muted)}

.chat-shell{
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.88);
  overflow: hidden;
}
.chat-header{
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(37,99,235,.10), rgba(14,165,233,.08));
  border-bottom: 1px solid var(--border);
}
.chat-body{
  height: 460px;
  overflow: auto;
  padding: 14px;
  background:
    radial-gradient(700px 320px at 10% 20%, rgba(14,165,233,.10), transparent 55%),
    radial-gradient(700px 320px at 92% 30%, rgba(37,99,235,.08), transparent 55%),
    rgba(255,255,255,.78);
}
.chat-msg{display:flex; gap: 10px; margin: 10px 0}
.chat-msg .bubble{
  max-width: 78ch;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
}
.chat-msg.user{justify-content:flex-end}
.chat-msg.user .bubble{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.18);
}
.chat-msg .meta{font-size: .78rem; color: var(--muted); margin-top: 4px}
.chat-footer{padding: 12px; border-top: 1px solid var(--border); background: rgba(255,255,255,.92)}

.site-footer{
  background: rgba(255,255,255,.72);
  border-top: 1px solid var(--border);
}
.footer-logo{height: 30px; width:auto}
.footer-title{font-weight: 800; margin-bottom: .4rem}
.footer-links{list-style:none; padding-left:0; margin:0}
.footer-links li{margin: .25rem 0}
.footer-links a{color: #1a2440; text-decoration:none}
.footer-links a:hover{text-decoration:underline}

.back-to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
  display:none;
  align-items:center;
  justify-content:center;
}
.back-to-top.show{display:flex}

.badge-soft{
  background: rgba(37,99,235,.10);
  color: var(--primary);
  border: 1px solid rgba(37,99,235,.16);
}

.small-note{color: var(--muted); font-size:.9rem}

/* Carousel (home) */
.carousel-fade .carousel-item{transition: opacity .5s ease-in-out}
.carousel .carousel-item img{
  height: clamp(280px, 42vw, 440px);
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}
.carousel .carousel-caption{
  left: 6%;
  right: 6%;
  bottom: 10%;
  text-shadow: 0 10px 30px rgba(0,0,0,.55);
}
.carousel .carousel-caption::before{
  content:"";
  position:absolute;
  inset:-18px -18px -18px -18px;
  background: linear-gradient(90deg, rgba(11,18,32,.78), rgba(11,18,32,.35), rgba(11,18,32,0));
  border-radius: 18px;
  z-index:-1;
}
.carousel .carousel-caption h3,
.carousel .carousel-caption p{color:#fff}
