:root {
  --cream: #fcf8f1;
  --cream-2: #f6efe4;
  --ink: #1f1430;
  --ink-2: #4a3d5c;
  --plum: #5b2a86;
  --lilac: #ecdcff;
  --lilac-2: #d9b8ff;
  --pink: #f3a6e8;
  --lime: #d4f27a;
  --lime-2: #c2e85a;
  --peach: #ffe1c7;
  --sky: #d5ecff;
  --ok: #8fd14f;
  --bad: #f07a7a;
  --radius: 22px;
  --shadow: 0 10px 40px -12px rgba(31, 20, 48, .25);
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.narrow { width: min(780px, 92%); }
.center { text-align: center; }
.mt { margin-top: 40px; }

/* Botões em pílula */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 6px 18px -6px rgba(31,20,48,.35); }
.pill-sm { padding: 5px 14px; font-size: 13px; }
.pill-lg { padding: 15px 28px; font-size: 17px; }
.pill-lime { background: var(--lime); color: var(--ink); }
.pill-lime:hover { background: var(--lime-2); }
.pill-lilac { background: var(--lilac-2); color: var(--ink); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-ghost { border-color: rgba(255,255,255,.5); color: #fff; }

/* Topo */
.topbar {
  background: var(--ink); color: #fff; display: flex; gap: 14px; justify-content: center; align-items: center;
  padding: 9px 16px; font-size: 14px; flex-wrap: wrap;
}
.nav-wrap { position: sticky; top: 12px; z-index: 50; padding: 0 4%; margin-top: 12px; }
.nav {
  max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-radius: 999px; padding: 8px 10px 8px 20px;
  box-shadow: 0 4px 24px -10px rgba(31,20,48,.25);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.brand-light { color: #fff; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-link-plain { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover, .nav-link-plain:hover { color: var(--plum); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 80px 0 40px; }
.hero-ring {
  position: absolute; left: 50%; top: 40px; width: 1100px; height: 1100px; transform: translateX(-50%);
  border-radius: 50%; border: 2px dashed rgba(91,42,134,.18);
  background: radial-gradient(circle at 50% 50%, rgba(236,220,255,.9), rgba(252,248,241,0) 60%);
  animation: spin 120s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
.hero-inner { position: relative; text-align: center; }
.hero h1 { font-size: clamp(42px, 7vw, 86px); color: var(--plum); font-weight: 800; }
.hl { background: linear-gradient(transparent 62%, var(--lime) 62%); padding: 0 .1em; }
.lead { max-width: 720px; margin: 24px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.hero-actions { display: flex; gap: 22px; justify-content: center; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.link-play { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.play { width: 34px; height: 34px; border-radius: 50%; background: var(--lilac-2); display: grid; place-items: center; font-size: 12px; color: var(--plum); }

.hero-mock {
  margin: 60px auto 0; display: grid; grid-template-columns: 1.3fr 1.1fr .7fr; gap: 18px; max-width: 1000px; text-align: left;
}
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; }
.legend { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--lilac-2); }
.dot-bad { background: var(--plum); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.bars .b { flex: 1; display: flex; flex-direction: column-reverse; border-radius: 8px 8px 4px 4px; overflow: hidden; transition: height .6s; }
.bars .b i { display: block; background: var(--lilac-2); }
.bars .b i.r { background: var(--plum); }
.bars-x { display: flex; justify-content: space-between; font-size: 11px; color: #9a8fa8; margin-top: 8px; }
.live { font-size: 12px; color: #4f8a17; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.mock-list ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.mock-list li { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #f0eaf5; }
.mock-list li:first-child { border-top: 0; }
.st { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; text-align: center; }
.st-run { background: #e3f6cf; color: #3d6b10; }
.st-stop { background: #ffe0e0; color: #a12b2b; }
.st-setup { background: #fff1c9; color: #8a6400; }
.prog { height: 6px; background: #f1ebf7; border-radius: 9px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--plum); border-radius: 9px; transition: width .6s; }
.mock-oee { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 14px; }
.mock-oee small { color: var(--ink-2); }
.ring {
  --p: 70; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--plum) calc(var(--p) * 1%), var(--lilac) 0);
}
.ring span { width: 82px; height: 82px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 26px; }

/* Selos */
.badges { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 40px 0 20px; }
.badge {
  display: flex; flex-direction: column; align-items: center; padding: 14px 22px; border-radius: 18px;
  border: 1.5px solid #e6dcef; background: #fff; text-align: center; min-width: 170px;
}
.badge b { font-family: var(--head); color: var(--plum); }
.badge span { font-size: 12px; color: var(--ink-2); }

/* Problema */
.problem { padding: 90px 0 70px; }
.eyebrow { display: inline-block; text-transform: uppercase; font-size: 12px; letter-spacing: .12em; font-weight: 700; color: var(--plum); background: var(--lilac); padding: 6px 14px; border-radius: 99px; margin-bottom: 18px; }
.problem h2 { font-size: clamp(28px, 4vw, 46px); color: var(--plum); }
.marquee { overflow: hidden; margin-top: 46px; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: slide 40s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip { background: var(--lime); padding: 10px 18px; border-radius: 99px; font-weight: 600; font-size: 15px; white-space: nowrap; }

/* Seções */
.section { padding: 90px 0; }
.big { font-size: clamp(34px, 5vw, 60px); color: var(--plum); max-width: 900px; font-weight: 800; }
.sub { font-size: 18px; color: var(--ink-2); max-width: 640px; margin-top: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.feature { border-radius: var(--radius); padding: 30px; transition: transform .2s; }
.feature:hover { transform: translateY(-4px); }
.feature h3 { font-size: 23px; margin: 16px 0 10px; }
.feature p { margin: 0; color: var(--ink-2); }
.f-icon { font-size: 30px; width: 58px; height: 58px; border-radius: 18px; background: rgba(255,255,255,.7); display: grid; place-items: center; }
.f-lilac { background: var(--lilac); }
.f-lime { background: #ecf8c8; }
.f-peach { background: var(--peach); }
.f-sky { background: var(--sky); }

/* Como funciona */
.how { background: var(--ink); color: #fff; border-radius: 40px; width: min(1260px, 96%); margin: 0 auto; }
.how .big { color: #fff; }
.how .eyebrow { background: rgba(255,255,255,.12); color: var(--lime); }
.steps { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px; position: relative; }
.steps h3 { font-size: 21px; margin: 18px 0 8px; }
.steps p { margin: 0; color: #cfc4dc; font-size: 15px; }
.step-n { width: 42px; height: 42px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-family: var(--head); font-size: 18px; }

/* Telas */
.screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.screen-card { text-decoration: none; background: #fff; border-radius: var(--radius); padding: 14px 14px 22px; box-shadow: var(--shadow); transition: transform .2s; }
.screen-card:hover { transform: translateY(-6px) rotate(-.4deg); }
.screen-card h3 { font-size: 20px; margin: 18px 8px 6px; }
.screen-card p { margin: 0 8px; color: var(--ink-2); font-size: 15px; }
.thumb { height: 170px; border-radius: 14px; background: #120d19; padding: 14px; position: relative; overflow: hidden; }
.thumb-geral { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb-geral span { border-radius: 6px; background: #211a2d; border-top: 4px solid #2fd17a; }
.thumb-geral span:nth-child(3) { border-color: #f05454; }
.thumb-geral span:nth-child(5) { border-color: #f5b83d; }
.thumb-maq i { position: absolute; inset: 20px 20px 60px; border-bottom: 1px solid #2b2338; background:
  linear-gradient(135deg, transparent 48%, #b98cff 49%, #b98cff 51%, transparent 52%) 0 0/40px 30px; opacity: .8; }
.thumb-maq b { position: absolute; left: 20px; right: 20px; bottom: 18px; height: 26px; border-radius: 4px;
  background: linear-gradient(90deg, #2fd17a 0 40%, #f05454 40% 48%, #2fd17a 48% 80%, #f5b83d 80% 86%, #2fd17a 86%); }
.thumb-pareto { display: flex; align-items: flex-end; gap: 10px; padding: 20px 26px; }
.thumb-pareto i { flex: 1; height: var(--h); background: linear-gradient(#b98cff, #6d3fb0); border-radius: 4px 4px 0 0; }
.thumb-rel { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.thumb-rel span { height: 18px; border-radius: 4px; background: linear-gradient(90deg, #b98cff 0 var(--w, 70%), #211a2d 0); }
.thumb-rel span:nth-child(2) { --w: 88%; }
.thumb-rel span:nth-child(3) { --w: 55%; }
.thumb-rel span:nth-child(4) { --w: 79%; }
.thumb-tv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #000; }
.thumb-tv span { border-radius: 6px; }
.thumb-tv .g { background: #1f9d55; } .thumb-tv .r { background: #d63c3c; } .thumb-tv .y { background: #e0a526; }
.thumb-display { display: grid; place-items: center; background: #1a1424; }
.thumb-display span { background: #1f9d55; color: #fff; font-weight: 800; padding: 22px 30px; border-radius: 10px; font-family: var(--head); letter-spacing: .05em; border: 6px solid #333; box-shadow: 0 0 0 8px #111; }

/* Números */
.numbers { background: var(--lime); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.numbers b { display: block; font-family: var(--head); font-size: clamp(44px, 6vw, 72px); color: var(--ink); letter-spacing: -0.04em; }
.numbers span { color: var(--ink-2); font-weight: 500; }
.note { font-size: 13px; color: var(--ink-2); margin-top: 28px; opacity: .8; }

/* Segmentos */
.seg-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.seg-list span { font-family: var(--head); font-weight: 700; font-size: clamp(18px, 2.4vw, 28px); padding: 12px 26px; border-radius: 99px; border: 2px solid var(--plum); color: var(--plum); transition: background .2s, color .2s; }
.seg-list span:hover { background: var(--plum); color: #fff; }

/* FAQ */
.faq details { background: #fff; border-radius: 18px; padding: 20px 24px; margin-top: 14px; box-shadow: 0 2px 10px -6px rgba(31,20,48,.2); }
.faq details:first-of-type { margin-top: 40px; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--plum); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }

/* CTA */
.cta-box { background: linear-gradient(135deg, var(--plum), #2c1645); color: #fff; border-radius: 40px; padding: 80px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--pink); opacity: .25; filter: blur(60px); top: -150px; right: -100px; }
.cta-box h2 { font-size: clamp(32px, 5vw, 56px); position: relative; }
.cta-box p { font-size: 19px; color: #e5d9f2; max-width: 620px; margin: 18px auto 0; position: relative; }

/* Rodapé */
.footer { background: var(--ink); color: #cfc4dc; padding: 50px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer p { margin: 8px 0 0; font-size: 14px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: #fff; font-weight: 500; }

/* Responsivo */
.estilos-inicio { margin-top: 28px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 30px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.estilos-inicio h3 { font-size: 22px; margin: 0 0 4px; }
.estilos-inicio p { margin: 0; color: #cbbfdc; max-width: 380px; }
.estilos-inicio nav { display: flex; gap: 10px; flex-wrap: wrap; }
.estilos-inicio nav a { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 99px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-weight: 600; transition: background .2s; }
.estilos-inicio nav a:hover { background: var(--lime); color: var(--ink); }
.estilos-inicio nav i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; border: 1px solid rgba(255,255,255,.25); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 4%; right: 4%; background: #fff; padding: 20px; border-radius: 20px; box-shadow: var(--shadow); }
  .nav-toggle { display: block; }
  .nav-link-plain { display: none; }
  .hero-mock { grid-template-columns: 1fr 1fr; }
  .mock-oee { grid-column: span 2; flex-direction: row; }
  .grid-3, .screen-grid { grid-template-columns: 1fr 1fr; }
  .steps, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero { padding-top: 50px; }
  .hero-mock { grid-template-columns: 1fr; }
  .mock-oee { grid-column: auto; }
  .grid-3, .screen-grid, .steps { grid-template-columns: 1fr; }
  .how, .cta-box { border-radius: 26px; }
  .cta-box { padding: 56px 22px; }
  .topbar span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
