:root {
  --bg: #050A18;
  --bg-soft: #0A1120;
  --bg-card: #0A101F;
  --line: #1B2337;
  --orange: #FF6B00;
  --orange-2: #FF9A3C;
  --green: #2ECC8F;
  --text: #FFFFFF;
  --muted: #96A0B5;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-heading: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --container: 1200px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* grade sutil de fundo */
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

section { scroll-margin-top: 96px; }

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.tiny { width: 16px; height: 16px; }

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 12px; left: 0; right: 0;
  z-index: 100;
  padding: 0 20px;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(10, 17, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 34px; height: 34px; object-fit: contain; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-text small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--muted);
}
.nav { display: flex; gap: 32px; }
.nav a { font-size: 15px; color: #E6E9F0; transition: color .2s; }
.nav a:hover { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #E6E9F0;
  transition: border-color .2s, color .2s;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { border-color: var(--orange); color: var(--orange); }

/* ============ Botões ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn .arrow { font-size: 0.9em; transition: transform .2s; }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.35);
}
.btn-primary:hover { background: #ff7d1f; transform: translateY(-2px); }
.btn-ghost {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}
.btn-dark:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

/* menu mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Pills / eyebrows ============ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 0, 0.10);
  border: 1px solid rgba(255, 107, 0, 0.28);
  color: #F3D9C3;
  border-radius: 9999px;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero .pill { text-transform: none; letter-spacing: 0.02em; font-family: var(--font-body); font-size: 14px; color: #EDEFF4; background: rgba(10,17,32,0.75); border-color: var(--line); }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  flex: none;
}
.dot.pulse { animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0.55); }
  60% { box-shadow: 0 0 0 7px rgba(255,107,0,0); }
}

/* ============ Tipografia ============ */
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h3 { font-family: var(--font-heading); font-weight: 600; font-size: 18px; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 640px; margin: 0 auto; }

.grad {
  background: linear-gradient(120deg, #FFFFFF, var(--orange-2), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-o, .glow-title.grad-full {
  background: linear-gradient(120deg, var(--orange-2), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.orange { color: var(--orange); }

.glow-title { position: relative; }
.glow-title::before {
  content: '';
  position: absolute;
  inset: -30px -60px;
  background: radial-gradient(ellipse at center, rgba(255,107,0,0.22), transparent 65%);
  z-index: -1;
  pointer-events: none;
}
#solucoes .glow-title {
  background: linear-gradient(120deg, var(--orange-2) 10%, var(--orange) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 0 100px;
  overflow: hidden;
}
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 18% 12%, rgba(255,107,0,0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(255,107,0,0.08), transparent 60%);
  pointer-events: none;
}
.cursor-glow {
  position: absolute;
  top: 0; left: 0;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.13), rgba(255,107,0,0.05) 40%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .5s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero h1 { max-width: 900px; }
.hero .lead { max-width: 700px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-feats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.hero-feats li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #D6DAE3;
  font-size: 14.5px;
}
.hero-feats svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  z-index: 1;
}
.scroll-cue svg { width: 16px; height: 16px; animation: bounce-down 1.8s ease-in-out infinite; }
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ============ Seções / grids / cards ============ */
.section { padding: 110px 0; position: relative; }
.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 56px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s, border-color .25s, background .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,107,0,0.45); }
.card.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; justify-content: center; padding: 36px 28px; }

.icon-box {
  width: 48px; height: 48px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--orange);
  background: rgba(255,107,0,0.10);
  border: 1px solid rgba(255,107,0,0.35);
}
.icon-box svg { width: 22px; height: 22px; }

/* estatísticas */
.stats { margin-top: 26px; }
.stat { text-align: center; padding: 34px 20px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: var(--orange);
  display: block;
  line-height: 1.1;
}
.stat-label { color: var(--muted); font-size: 15px; }

/* serviços */
.services .service { display: flex; flex-direction: column; gap: 14px; }
.service p { color: var(--muted); font-size: 15px; flex: 1; }
.link-more {
  color: var(--orange);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-more .arrow { transition: transform .2s; }
.link-more:hover .arrow { transform: translate(2px, -2px); }
@media (min-width: 861px) {
  .grid-3.services { grid-template-columns: repeat(6, 1fr); }
  .services .service { grid-column: span 2; }
  .services .service:nth-child(10) { grid-column: 2 / 4; }
  .services .service:nth-child(11) { grid-column: 4 / 6; }
}

/* ============ Dashboard de monitoramento ============ */
.dash { padding: 30px; }
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.dash-title { font-size: 20px; }
.dash-sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.dash-sub svg { color: var(--orange); }
.mono { font-family: var(--font-mono); }
.dash-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 9999px;
  border: 1px solid;
}
.chip-live { color: var(--orange); border-color: rgba(255,107,0,0.4); background: rgba(255,107,0,0.08); }
.chip-ok { color: var(--green); border-color: rgba(46,204,143,0.4); background: rgba(46,204,143,0.08); }

.dash-body {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 26px;
  align-items: stretch;
}
.dash-chart {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-chart svg { width: 100%; height: 230px; }
.dash-legend { display: flex; gap: 18px; color: var(--muted); font-size: 12px; }
.dash-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dash-legend .dot.orange { background: var(--orange); }
.dash-legend .dot.white { background: #E8EBF2; }
.dash-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dash-legend i.orange { background: var(--orange); }
.dash-legend i.white { background: #E8EBF2; }

.dash-metrics { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.metric-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.metric-name { font-weight: 600; font-size: 15.5px; }
.metric-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
}
.metric-val.orange { color: var(--orange); }
.metric-desc { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.bar {
  height: 5px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-2), var(--orange));
  transition: width 1.2s cubic-bezier(.25,.7,.3,1);
}
.bar.on i { width: var(--w); }

.dash-status {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 26px;
}
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #DDE1E9;
}
.status i.dot.green, .dot.green { background: var(--green); }
.status i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status em { font-style: normal; color: var(--green); font-family: var(--font-mono); font-size: 12px; }

/* ============ Como trabalhamos ============ */
.step { position: relative; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.step-num {
  position: absolute;
  top: 14px; right: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: rgba(255,255,255,0.07);
  line-height: 1;
}
.step p { color: var(--muted); font-size: 14.5px; }

/* ============ Clientes / marquee ============ */
.marquee {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-x 36s linear infinite;
}
.marquee-track.reverse { animation-name: scroll-x-rev; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes scroll-x-rev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.logo-card {
  flex: none;
  width: 190px;
  height: 78px;
  background: #F4F6FA;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  transition: transform .2s;
}
.logo-card:hover { transform: translateY(-3px); }
.logo-card img { max-height: 46px; width: auto; object-fit: contain; }

/* ============ Contato ============ */
.contact-cards .hcard {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
}
.hcard h3 { font-size: 16.5px; }
.hcard p { color: var(--muted); font-size: 14px; }
.address {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 24px 28px;
}
.address-title { display: flex; align-items: center; gap: 14px; }
.address p { color: var(--muted); font-size: 15px; }
.address strong { color: var(--orange); font-weight: 600; }

#contato .section-head { margin-bottom: 40px; }
#contato .hero-ctas { margin-top: 10px; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  background: #040812;
  padding: 44px 0 26px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-brand { flex-direction: column; align-items: flex-start; gap: 8px; }
.brand-text-footer {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
}
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { color: #C9CEDA; font-size: 15px; transition: color .2s; }
.footer-nav a:hover { color: var(--orange); }
.footer-contacts { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #C9CEDA;
  font-size: 14.5px;
  transition: color .2s;
}
.footer-contacts a:hover { color: var(--orange); }
.footer-contacts svg { color: var(--orange); }
.footer-copy {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

/* ============ Animações de entrada ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .scroll-cue svg, .dot.pulse { animation: none; }
  .bar i { transition: none; }
}

/* ============ Responsivo ============ */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dash-status { grid-template-columns: repeat(3, 1fr); }
  .dash-body { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(10, 17, 32, 0.97);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 14px; border-radius: 10px; }
  .nav a:hover { background: rgba(255,255,255,0.05); }
  .site-header { position: absolute; }
  .header-inner { position: relative; }
  .menu-toggle { display: flex; }
  .icon-btn { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .dash-status { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 76px 0; }
  .hero { padding-top: 130px; }
  .br-desk { display: none; }
  .address { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand { align-items: center; }
}
@media (max-width: 480px) {
  .dash-status { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero-ctas { width: 100%; flex-direction: column; }
  .header-actions .btn-sm { display: none; }
}
