/* ============================================================
   raqIA · IA em blocos — dark, HUD, motion-heavy
   ============================================================ */

:root {
  --bg: #05070d;
  --bg-2: #080d18;
  --card: rgba(13, 20, 36, 0.62);
  --card-solid: #0c1424;
  --border: rgba(122, 148, 214, 0.14);
  --border-strong: rgba(122, 148, 214, 0.28);
  --blue: #0067fc;
  --blue-hi: #3f8cff;
  --blue-deep: #0b46ad;
  --blue-brand: #0067fc;
  --blue-dim: rgba(36, 112, 240, 0.14);
  --red: #e5484d;
  --yellow: #f5b014;
  --green: #3fb97c;
  --text: #edf1f9;
  --muted: #8d99b4;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(36, 112, 240, 0.4); }

body.locked { overflow: hidden; }

/* ============================================================
   INTRO — splash "cortina" estilo boot (marca -> split reveal)
   ============================================================ */
#intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.intro-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: linear-gradient(160deg, #0b1830 0%, #060b16 100%);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.intro-left {
  left: 0;
  border-right: 1px solid rgba(0, 103, 252, 0.45);
  box-shadow: 30px 0 80px rgba(0, 0, 0, 0.5);
}
.intro-right {
  right: 0;
  border-left: 1px solid rgba(0, 103, 252, 0.45);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
}
#intro.open .intro-left { transform: translateX(-102%); }
#intro.open .intro-right { transform: translateX(102%); }
#intro.done { display: none; }

.intro-brand {
  position: relative;
  z-index: 2;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.85s var(--ease);
}
#intro.open .intro-brand { opacity: 0; transform: scale(1.05); }

.intro-mark {
  width: clamp(56px, 8vw, 84px);
  height: auto;
  margin-bottom: 18px;
  animation: intro-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}
@keyframes intro-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.intro-word {
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  perspective: 600px;
}
.intro-word span {
  display: inline-block;
  transform-origin: 50% 100%;
  animation: intro-flip 0.8s var(--ease) calc(0.75s + var(--i) * 140ms) backwards;
}
.intro-word .accent { color: var(--blue-brand); }
@keyframes intro-flip {
  0% { opacity: 0; transform: rotateX(90deg) translateY(10px); }
  100% { opacity: 1; transform: rotateX(0) translateY(0); }
}
.intro-line {
  width: 72%;
  height: 2px;
  margin: 22px auto 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-brand), transparent);
  transform-origin: center;
  animation: intro-grow 0.9s var(--ease) 2.1s backwards;
}
@keyframes intro-grow {
  0% { transform: scaleX(0); }
}
.intro-cap {
  font-family: var(--mono);
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(63, 140, 255, 0.85);
  animation: intro-cap 0.7s ease 2.35s backwards;
}
@keyframes intro-cap {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-bottom: 40px; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin-bottom: 14px;
}
.eyebrow::before { content: "// "; opacity: 0.5; }

.section { padding: 110px 0; position: relative; }

.footnote {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  opacity: 0.7;
}

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-hi), var(--blue) 55%, var(--blue-deep));
  color: #fff;
  box-shadow: 0 8px 30px rgba(36, 112, 240, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 44px rgba(36, 112, 240, 0.55); }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-dim); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 19px 40px; font-size: 17px; }
.btn-lg svg { width: 22px; height: 22px; }

/* ============ nav ============ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(8, 16, 34, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: var(--nav-h); }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav-mark { width: 26px; height: auto; }
.nav-name { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.nav-name strong { color: var(--blue-brand); font-weight: 700; }
.nav-tag {
  font-size: 11px;
  color: var(--muted);
  border-left: 1px solid var(--border-strong);
  padding-left: 10px;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-cta { flex-shrink: 0; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* scroll progress */
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: calc(var(--scroll-p, 0) * 100%);
  background: linear-gradient(90deg, var(--blue), var(--blue-hi));
  transition: width 0.1s linear;
}

/* ============ hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 0 90px;
  overflow: hidden;
}
.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 45% at 50% 38%, rgba(36, 112, 240, 0.16), transparent 70%),
    radial-gradient(40% 35% at 78% 75%, rgba(36, 112, 240, 0.08), transparent 70%);
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.orb-1 {
  width: 420px; height: 420px;
  background: rgba(36, 112, 240, 0.14);
  top: -120px; left: -100px;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-2 {
  width: 360px; height: 360px;
  background: rgba(13, 63, 160, 0.22);
  bottom: -140px; right: -80px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  to { transform: translate(60px, 40px) scale(1.15); }
}
.hero-inner { position: relative; z-index: 2; }
.hero-logo {
  width: clamp(240px, 34vw, 360px);
  height: auto;
  margin-bottom: 34px;
  filter: drop-shadow(0 10px 44px rgba(36, 112, 240, 0.35));
}
.hero-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-bottom: 30px;
}
.hero-chips li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--blue-hi);
  border: 1px solid var(--border-strong);
  background: rgba(36, 112, 240, 0.08);
  padding: 7px 16px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 74px);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue-hi) 10%, #9ec5ff 50%, var(--blue) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 5s ease-in-out infinite;
}
@keyframes sheen {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
}
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--blue-hi);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ marquee ============ */
.marquee {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  padding: 16px 0;
  -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;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track i { color: var(--blue); font-size: 9px; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ cards base ============ */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
}
/* spotlight */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
      rgba(77, 155, 255, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

/* ============ pillars (slide 2) ============ */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.pillar { padding: 22px; transform-style: preserve-3d; }
.pillar h3 { margin-top: 24px; }
.pillar .muted { font-size: 14px; margin-top: 4px; }
.pillar .muted::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

/* --- chat sim --- */
.chat {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(6, 10, 20, 0.7);
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
}
.chat-head img { width: 18px; }
.chat-head strong { color: var(--blue-hi); }
.chat-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}
.bubble {
  max-width: 82%;
  padding: 12px 15px;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.chat.play .bubble { opacity: 1; transform: none; }
.bubble-user {
  align-self: flex-end;
  background: #1a2438;
  border: 1px solid var(--border);
  border-bottom-right-radius: 4px;
}
.bubble-bot {
  align-self: flex-start;
  background: rgba(36, 112, 240, 0.12);
  border: 1px solid rgba(36, 112, 240, 0.4);
  border-bottom-left-radius: 4px;
}
.chat.play .bubble-bot { transition-delay: 1.5s; }
.chat.play .chip-src { transition-delay: 2s; }
.chat.play .chip-ok:nth-child(1) { transition-delay: 2.4s; }
.chat.play .chip-ok:nth-child(2) { transition-delay: 2.7s; }
.chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.chat.play .chip, .chat-acts .chip { opacity: 1; transform: none; }
/* chips outside chat shouldn't be hidden */
.events-pills .chip, .sector-chip, .oee-head .chip, .oee-resumo .chip { opacity: 1; transform: none; }
.chip-src { background: #1a2438; color: var(--muted); border: 1px solid var(--border); align-self: flex-start; }
.chip-ok { background: rgba(63, 185, 124, 0.12); color: var(--green); border: 1px solid rgba(63, 185, 124, 0.3); }
.chip-blue { background: var(--blue-dim); color: var(--blue-hi); border: 1px solid rgba(36, 112, 240, 0.35); }
.chat-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* typing dots */
.typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 13px 16px;
  background: rgba(36, 112, 240, 0.12);
  border: 1px solid rgba(36, 112, 240, 0.4);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-hi);
  animation: tp 1s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tp { 50% { transform: translateY(-4px); opacity: 0.5; } }

/* --- camera sim --- */
.cam {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #0b1220, #070b14);
  overflow: hidden;
  font-family: var(--mono);
}
.cam-top, .cam-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.cam-id { color: var(--text); font-weight: 600; }
.cam-live { display: flex; align-items: center; gap: 6px; color: #ff8489; font-weight: 600; }
.cam-live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.cam-foot { border-top: 1px solid var(--border); }
.cam-scene {
  position: relative;
  aspect-ratio: 16 / 8.5;
  background:
    linear-gradient(rgba(122, 148, 214, 0.05) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(122, 148, 214, 0.05) 1px, transparent 1px) 0 0 / 25% 100%,
    radial-gradient(120% 90% at 50% 0%, #0e1730, #070b14);
  border-block: 1px solid var(--border);
  overflow: hidden;
}
.cam-lg .cam-scene { aspect-ratio: 16 / 8; }

/* scanline */
.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 70px;
  background: linear-gradient(180deg, transparent, rgba(77, 155, 255, 0.12) 48%, rgba(77, 155, 255, 0.3) 50%, rgba(77, 155, 255, 0.12) 52%, transparent);
  animation: scan 4.5s linear infinite;
  pointer-events: none;
  z-index: 4;
}
@keyframes scan {
  from { transform: translateY(-80px); }
  to { transform: translateY(420px); }
}

/* machines = bounding boxes w/ 4 corner brackets */
.m {
  position: absolute;
  --c: var(--blue-hi);
  border-radius: 4px;
  background: rgba(46, 74, 138, 0.35);
  border: 1px solid rgba(122, 148, 214, 0.18);
}
.m::before, .m::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  height: 16px;
  background-repeat: no-repeat;
  pointer-events: none;
}
.m::before {
  top: -8px;
  background:
    linear-gradient(var(--c), var(--c)) left top / 16px 2px,
    linear-gradient(var(--c), var(--c)) left top / 2px 16px,
    linear-gradient(var(--c), var(--c)) right top / 16px 2px,
    linear-gradient(var(--c), var(--c)) right top / 2px 16px;
}
.m::after {
  bottom: -8px;
  background:
    linear-gradient(var(--c), var(--c)) left bottom / 16px 2px,
    linear-gradient(var(--c), var(--c)) left bottom / 2px 16px,
    linear-gradient(var(--c), var(--c)) right bottom / 16px 2px,
    linear-gradient(var(--c), var(--c)) right bottom / 2px 16px;
}
.m1 { left: 7%; top: 30%; width: 21%; height: 34%; }
.m2 { left: 35%; top: 22%; width: 23%; height: 42%; }
.m3 { left: 62%; top: 38%; width: 14%; height: 26%; }
.m4 { left: 82%; top: 26%; width: 14%; height: 38%; }
.m.stopped { --c: var(--red); background: rgba(229, 72, 77, 0.12); border-color: rgba(229, 72, 77, 0.35); }

.op {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #cfd8ea, #7c8db0);
  opacity: 0.85;
}

.belt {
  position: absolute;
  left: 0; right: 0;
  bottom: 16%;
  height: 12%;
  background: linear-gradient(180deg, #141d33, #0b1220);
  border-block: 1px solid rgba(122, 148, 214, 0.16);
}
.belt::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -34%;
  height: 3px;
  background: var(--yellow);
  opacity: 0.8;
}
.boxes {
  position: absolute;
  left: 0; right: 0;
  bottom: 28%;
  height: 8%;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
}
.boxes i {
  width: 4.5%;
  height: 100%;
  background: rgba(46, 74, 138, 0.55);
  border: 1px solid rgba(122, 148, 214, 0.2);
  border-radius: 2px;
  animation: boxmove 6s linear infinite;
}
@keyframes boxmove {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.tag {
  position: absolute;
  top: -26px;
  left: -7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 3;
  animation: tagpulse 2.6s ease-in-out infinite;
}
.tag-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 16px rgba(36, 112, 240, 0.5); }
.tag-red { background: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(229, 72, 77, 0.5); }
.tag b { font-weight: inherit; }
@keyframes tagpulse {
  50% { filter: brightness(1.25); }
}
.tag-count { top: auto; bottom: 4%; left: 46%; animation-delay: 0.8s; }

/* ============ visão grid (slide 3) ============ */
.visao-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 26px;
  align-items: start;
}
.events { padding: 24px; }
.events-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin-bottom: 16px;
}
.events ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.events li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(6, 10, 20, 0.55);
}
.events time {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.events li div { flex: 1; }
.events li span { font-size: 13.5px; font-weight: 600; }
.events li b { font-family: var(--mono); font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-red { background: var(--red); box-shadow: 0 0 10px rgba(229, 72, 77, 0.7); }
.dot-blue { background: var(--blue-hi); box-shadow: 0 0 10px rgba(77, 155, 255, 0.7); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 10px rgba(245, 176, 20, 0.7); }
.events-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ============ soluções (slide 4) ============ */
.sol-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.puzzle-mark { width: 120px; flex-shrink: 0; margin-bottom: 40px; }
.sol-groups { display: flex; flex-direction: column; gap: 34px; }
.sol-group {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
}
.sol-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  min-height: 100%;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--blue-hi);
  border: 1px solid rgba(36, 112, 240, 0.45);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(36, 112, 240, 0.18), rgba(36, 112, 240, 0.04));
}
.sol-rows { display: flex; flex-direction: column; gap: 10px; }
.sol-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.sol-row:hover {
  border-color: rgba(36, 112, 240, 0.5);
  background: rgba(36, 112, 240, 0.06);
  transform: translateX(6px);
}
.sol-row p { font-size: 13.5px; color: var(--muted); }

/* ============ banner ============ */
.banner {
  margin-top: 34px;
  padding: 20px 28px;
  text-align: center;
  font-weight: 600;
  font-size: clamp(15px, 1.8vw, 18px);
  color: #fff;
  border-radius: var(--r-md);
  background: linear-gradient(100deg, var(--blue-deep), var(--blue) 45%, var(--blue-hi));
  background-size: 180% 100%;
  box-shadow: 0 10px 40px rgba(36, 112, 240, 0.35);
  animation: bannersheen 6s ease-in-out infinite;
}
@keyframes bannersheen {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

/* ============ setores (slide 5) ============ */
.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sector { padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.sector-bar {
  width: 46px;
  height: 5px;
  border-radius: 4px;
  background: var(--blue);
}
.sector-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-hi);
}
.sector p:not(.sector-num) { font-size: 14px; color: var(--muted); }
.sector p strong, .oee-text strong { color: var(--text); }
.sector-hl {
  border-color: rgba(36, 112, 240, 0.55);
  background: linear-gradient(170deg, rgba(36, 112, 240, 0.14), var(--card) 55%);
  box-shadow: 0 14px 50px rgba(36, 112, 240, 0.18);
}
.sector-chip { font-weight: 500; line-height: 1.45; border-radius: 12px; padding: 10px 14px; }

.dock {
  position: relative;
  margin-top: auto;
  padding: 40px 16px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(6, 10, 20, 0.6);
  font-family: var(--mono);
}
.dock-id {
  position: absolute;
  top: 10px; right: 12px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--yellow);
}
.dock-boxes { display: flex; gap: 4px; align-items: flex-end; height: 46px; }
.dock-boxes i {
  flex: 1;
  height: 60%;
  background: rgba(46, 74, 138, 0.55);
  border: 1px solid rgba(122, 148, 214, 0.25);
  border-radius: 2px;
}
.dock-boxes i:nth-child(odd) { height: 85%; }
.dock-boxes i.dmg { border-color: var(--red); background: rgba(229, 72, 77, 0.25); }
.dock .tag { top: auto; bottom: -11px; }
.dock .tag-blue { left: 12px; }
.dock .tag-red { left: auto; right: 12px; }

/* ============ OEE (slide 6) ============ */
.oee-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: 48px;
  align-items: center;
}
.oee-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 4px; }
.oee-list li {
  position: relative;
  padding: 13px 0 13px 20px;
  font-size: 14.5px;
  border-left: 2px solid var(--blue);
  margin-left: 4px;
  padding-left: 22px;
}
.oee-list li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 22px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-hi);
  box-shadow: 0 0 12px rgba(77, 155, 255, 0.8);
}
.oee-list em { color: var(--blue-hi); font-style: normal; }

.oee-board { padding: 26px; font-size: 14px; }
.oee-win { display: flex; gap: 7px; margin-bottom: 18px; }
.oee-win i { width: 11px; height: 11px; border-radius: 50%; background: #223052; }
.oee-win i:first-child { background: rgba(229, 72, 77, 0.6); }
.oee-win i:nth-child(2) { background: rgba(245, 176, 20, 0.6); }
.oee-win i:last-child { background: rgba(63, 185, 124, 0.6); }
.oee-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.oee-head h4 { font-size: 16px; }
.oee-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.kpi {
  padding: 15px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(6, 10, 20, 0.55);
}
.kpi span { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 6px; }
.kpi b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.kpi b i { font-style: normal; }
.kpi em { display: block; font-size: 10.5px; font-style: normal; margin-top: 4px; }
.kpi-main {
  background: linear-gradient(160deg, rgba(36, 112, 240, 0.35), rgba(36, 112, 240, 0.1));
  border-color: rgba(36, 112, 240, 0.55);
}
.down { color: #ff8489; }
.up { color: var(--green); }
.stable { color: var(--blue-hi); }

.oee-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
}
.oee-stops, .oee-resumo {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(6, 10, 20, 0.55);
}
.oee-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.oee-sub img { width: 15px; }
.stop {
  display: grid;
  grid-template-columns: 1fr 110px 26px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 11.5px;
  color: var(--muted);
}
.stop:last-child { margin-bottom: 0; }
.stop b { font-family: var(--mono); font-size: 12px; color: var(--text); text-align: right; }
.bar { height: 12px; border-radius: 4px; background: #16203a; overflow: hidden; }
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-hi));
  transition: width 1.1s var(--ease);
}
.in-view .bar i { width: var(--w); }
.oee-resumo {
  background: linear-gradient(160deg, rgba(36, 112, 240, 0.2), rgba(36, 112, 240, 0.05));
  border-color: rgba(36, 112, 240, 0.4);
}
.oee-resumo p:not(.oee-sub) { font-size: 13px; color: #c6d2ea; margin-bottom: 14px; }

/* ============ como trabalhamos (slide 7) ============ */
.como-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: start;
}
.como-left > p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.como-left strong { color: var(--text); }
.quote {
  padding: 24px 26px;
  border-left: 3px solid var(--blue);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 34px;
}
.puzzle-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin-bottom: 12px;
}
.puzzle-row { display: flex; gap: 6px; margin-bottom: 12px; }
.piece {
  position: relative;
  flex: 1;
  padding: 26px 10px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(36, 112, 240, 0.35);
  border: 1px solid rgba(36, 112, 240, 0.4);
}
.piece:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.piece:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.piece:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 20px; height: 20px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--bg);
  z-index: 2;
}
.piece-hl { background: var(--blue); box-shadow: 0 8px 30px rgba(36, 112, 240, 0.4); }
.puzzle > .muted { font-size: 13px; }

.steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--r-md);
}
.step-n {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(135deg, var(--blue-hi), var(--blue));
  box-shadow: 0 6px 18px rgba(36, 112, 240, 0.45);
}
.step h4 { margin-bottom: 4px; }
.step p { font-size: 13px; color: var(--muted); }

/* ============ case (slide 8) ============ */
.case-card {
  display: grid;
  place-items: center;
  padding: clamp(40px, 7vw, 80px);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 34px 100px rgba(36, 112, 240, 0.25); }
.case-card img { width: min(460px, 80%); height: auto; }

/* ============ CTA (slide 9) ============ */
.cta {
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(36, 112, 240, 0.16), transparent 70%);
}
.cta-logo { width: clamp(170px, 22vw, 240px); margin-bottom: 44px; }
.cta h2 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 18px; }
.cta-inner > .muted { max-width: 560px; margin: 0 auto 36px; }
.cta-steps {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 40px;
}
.cta-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 22px 11px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--card);
  font-size: 13.5px;
  font-weight: 600;
}
.cta-steps span {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
  background: var(--blue);
}
.cta .btn-lg { box-shadow: 0 14px 50px rgba(36, 112, 240, 0.45); }

/* ============ footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; }
.footer-brand img { width: 20px; }
.footer-brand strong { color: var(--blue-brand); }
.footer-note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }

/* ============ whatsapp float ============ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2fce6e, #1faf54);
  box-shadow: 0 10px 30px rgba(47, 206, 110, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.wa-float:hover { transform: scale(1.1) translateY(-3px); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(47, 206, 110, 0.5);
  animation: waping 2s ease-out infinite;
}
@keyframes waping {
  from { transform: scale(0.9); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}

/* ============ reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }
.stagger li, .stagger-parent .step, .stagger-children li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.in-view .stagger li, .stagger-parent.in-view .step, .in-view.stagger-children li,
.stagger-children.in-view li { opacity: 1; transform: none; }

/* ============ responsive ============ */
@media (max-width: 1020px) {
  .oee-grid { grid-template-columns: 1fr; gap: 36px; }
  .visao-grid { grid-template-columns: 1fr; }
  .como-grid { grid-template-columns: 1fr; }
  .sol-group { grid-template-columns: 1fr; }
  .sol-label { min-height: 0; padding: 14px; }
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    display: flex;
    flex-direction: column;
    padding: 14px 24px 22px;
    background: rgba(8, 16, 34, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px; font-size: 15px; }
  .nav-cta { margin-left: auto; }
}

@media (max-width: 760px) {
  .pillars, .sectors { grid-template-columns: 1fr; }
  .sol-row { grid-template-columns: 1fr; gap: 6px; }
  .oee-kpis { grid-template-columns: repeat(2, 1fr); }
  .oee-body { grid-template-columns: 1fr; }
  .stop { grid-template-columns: 1fr 90px 22px; }
  .nav-tag { display: none; }
  .section { padding: 80px 0; }
  .piece { padding: 20px 6px; font-size: 11px; }
  .m .tag { font-size: 8.5px; padding: 2px 7px; top: -22px; }
  .m2 .tag { top: -44px; }
  .tag-count { font-size: 8.5px; }
  .cam-top, .cam-foot { font-size: 9px; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .stagger li, .stagger-parent .step, .stagger-children li {
    opacity: 1;
    transform: none;
  }
  .hero-net { display: none; }
  #intro { display: none; }
}
