/* DOM Nexus — site institucional. Marca: teal da plataforma (#12505e) com destaque âmbar. */
:root {
  color-scheme: dark;
  --bg: #061218;
  --bg-2: #0a1c24;
  --bg-3: #0e2630;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --fg: #eaf4f6;
  --muted: #9fb7be;
  --subtle: #6f8a92;
  --teal: #4cc3d1;
  --teal-2: #7fe0e8;
  --teal-deep: #12505e;
  --amber: #f0b25c;
  --green: #5fd49a;
  --red: #ff7d6e;
  --violet: #ab9dff;
  --blue: #6aa8ff;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--teal); color: #032027; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; color: #04212a;
  background: linear-gradient(100deg, var(--teal-2), var(--teal) 55%, #3aa9c9);
  box-shadow: 0 10px 30px -10px rgba(76, 195, 209, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(76, 195, 209, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn .ico { transition: transform 0.25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn.full { width: 100%; }

/* ---------- Navegação ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6, 18, 24, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.logo { display: inline-flex; align-items: center; }
.logotype { height: 34px; width: auto; aspect-ratio: 259 / 48; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; font-size: 0.9rem; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.nav-login { font-size: 0.9rem; color: var(--muted); }
.nav-login:hover { color: var(--fg); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-2); border-radius: 10px; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Comuns ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.sec-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head h2, .cta-copy h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12;
  font-size: clamp(1.75rem, 3.6vw, 2.9rem); text-wrap: balance;
}
.sec-head p { color: var(--muted); margin-top: 1rem; font-size: 1.06rem; max-width: 62ch; }
.kicker { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.9rem; }
.grad { background: linear-gradient(95deg, var(--teal-2), var(--teal) 40%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(95, 212, 154, 0.6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(95, 212, 154, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(95, 212, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 212, 154, 0); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; font-weight: 500; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.ok { color: var(--green); border-color: rgba(95, 212, 154, 0.3); background: rgba(95, 212, 154, 0.08); }
.chip .ico { width: 0.9em; height: 0.9em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 130px 0 70px; min-height: min(100vh, 940px); display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at var(--mx, 75%) var(--my, 40%), rgba(76, 195, 209, 0.16), transparent 70%),
    radial-gradient(700px 500px at 10% 0%, rgba(18, 80, 94, 0.55), transparent 70%),
    radial-gradient(500px 400px at 95% 95%, rgba(240, 178, 92, 0.1), transparent 70%),
    var(--bg);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.55;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; font-weight: 500; color: var(--teal-2); padding: 0.4rem 0.85rem; border: 1px solid rgba(127, 224, 232, 0.25); background: rgba(76, 195, 209, 0.07); border-radius: 999px; margin-bottom: 1.5rem; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.14rem); margin-top: 1.5rem; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-stats dt { font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.02em; color: var(--fg); line-height: 1.1; }
.hero-stats dd { color: var(--subtle); font-size: 0.85rem; max-width: 16ch; }

.nexus-wrap { position: relative; }
.nexus { width: 100%; max-width: 580px; margin-inline: auto; overflow: visible; }
.nexus .spoke { stroke: rgba(127, 224, 232, 0.16); stroke-width: 1.2; transition: stroke 0.4s, stroke-width 0.4s; }
.nexus .spoke.on { stroke: rgba(127, 224, 232, 0.65); stroke-width: 2; }
.nexus .ring-link { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-dasharray: 3 7; animation: dash 24s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.nexus .orbit { fill: none; stroke: rgba(127, 224, 232, 0.14); stroke-dasharray: 2 10; transform-origin: 300px 300px; animation: spin 60s linear infinite; }
.nexus .orbit.o2 { stroke: rgba(240, 178, 92, 0.14); animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.nexus .core-glow { fill: url(#coreGlow); }
.nexus .core { fill: #0b2a33; stroke: rgba(127, 224, 232, 0.5); stroke-width: 1.5; }

.nexus .core-sub { font-size: 10px; fill: var(--muted); text-anchor: middle; letter-spacing: 0.16em; }
.nexus .node { cursor: pointer; }
.nexus .node-bg { fill: #0c222b; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.2; transition: fill 0.35s, stroke 0.35s; }
.nexus .node-halo { fill: none; stroke: var(--c); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity 0.35s; }
.nexus .node.on .node-halo { opacity: 0.6; animation: halo 1.8s var(--ease) infinite; }
@keyframes halo { from { transform: scale(1); opacity: 0.6; } to { transform: scale(1.5); opacity: 0; } }
.nexus .node.on .node-bg { fill: #10343f; stroke: var(--c); }
.nexus .node use { color: var(--c); }
.nexus .node-label { font-size: 12.5px; font-weight: 600; fill: var(--muted); text-anchor: middle; transition: fill 0.3s; }
.nexus .node.on .node-label { fill: var(--fg); }
.nexus .pulse { fill: var(--teal-2); filter: drop-shadow(0 0 4px var(--teal)); }
.nexus .pulse.amber { fill: var(--amber); filter: drop-shadow(0 0 4px var(--amber)); }
.nexus-caption { margin: 0.5rem auto 0; max-width: 420px; text-align: center; min-height: 3.4em; }
.nexus-caption strong { display: block; font-family: var(--display); font-size: 1rem; }
.nexus-caption span { color: var(--muted); font-size: 0.86rem; }

/* ---------- Para quem ---------- */
.audience { padding-block: 3.5rem 0; text-align: center; }
.audience-label { color: var(--subtle); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.audience-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 2.4rem; margin-top: 1.2rem; color: var(--muted); font-weight: 500; }
.audience-list li { display: inline-flex; align-items: center; gap: 0.55rem; }
.audience-list .ico { color: var(--teal); width: 1.2em; height: 1.2em; }

/* ---------- Jornada ---------- */
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); position: relative; }
.story-steps { display: grid; }
.story-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-left: 1.6rem; border-left: 2px solid var(--line); opacity: 0.35; transition: opacity 0.5s, border-color 0.5s; }
.story-step:first-child { min-height: 50vh; }
.story-step.is-active { opacity: 1; border-left-color: var(--teal); }
.step-n { font-family: var(--display); font-weight: 700; color: var(--amber); font-size: 0.9rem; letter-spacing: 0.08em; }
.story-step h3 { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.2; margin: 0.4rem 0 0.7rem; }
.story-step p { color: var(--muted); max-width: 46ch; }
.story-stage { position: sticky; top: calc(50vh - 260px); height: 520px; align-self: start; }
.screen { height: 480px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(160deg, #0d2630, #08161c); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(127, 224, 232, 0.05), 0 0 120px -40px rgba(76, 195, 209, 0.35); overflow: hidden; display: flex; flex-direction: column; }
.screen-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.screen-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.screen-bar em { font-style: normal; font-size: 0.78rem; color: var(--subtle); margin-left: 10px; }
.screen-body { position: relative; flex: 1; }
.story-progress { height: 3px; border-radius: 3px; background: var(--line); margin-top: 18px; overflow: hidden; }
.story-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--amber)); transition: width 0.5s var(--ease); }

.panel-mock { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; gap: 14px; justify-content: safe center; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0.45s; }
.panel-mock.is-active { opacity: 1; visibility: visible; }
.panel-mock .a1, .panel-mock .a2, .panel-mock .a3, .panel-mock .a4, .panel-mock .a5 { opacity: 0; transform: translateY(14px); }
.panel-mock.is-active .a1, .panel-mock.is-active .a2, .panel-mock.is-active .a3, .panel-mock.is-active .a4, .panel-mock.is-active .a5 { animation: popIn 0.6s var(--ease) forwards; }
.panel-mock.is-active .a2 { animation-delay: 0.45s; }
.panel-mock.is-active .a3 { animation-delay: 0.95s; }
.panel-mock.is-active .a4 { animation-delay: 1.5s; }
.panel-mock.is-active .a5 { animation-delay: 2.4s; }
.panel-mock > * { flex-shrink: 0; }
@keyframes popIn { to { opacity: 1; transform: none; } }

/* mocks: captação */
.ad-card { width: 250px; align-self: flex-start; border-radius: 14px; border: 1px solid var(--line-2); background: #0b1d24; overflow: hidden; }
.ad-head { display: flex; gap: 8px; align-items: center; padding: 10px 12px; font-size: 0.8rem; }
.ad-head small { display: block; color: var(--subtle); font-size: 0.7rem; }
.ad-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--amber)); }
.ad-img { height: 96px; display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 600; font-size: 0.95rem; background: radial-gradient(circle at 30% 30%, rgba(76, 195, 209, 0.45), transparent 60%), radial-gradient(circle at 80% 80%, rgba(240, 178, 92, 0.35), transparent 60%), #10303a; }
.ad-img small { font-family: var(--body); font-weight: 400; font-size: 0.72rem; color: var(--muted); }
.ad-cta { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-size: 0.78rem; font-weight: 600; color: var(--teal-2); border-top: 1px solid var(--line); }
.flow-arrow { width: 2px; height: 26px; margin-left: 120px; background: linear-gradient(var(--teal), transparent); position: relative; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* mocks: chat */
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat.mini { align-items: flex-end; }
.bubble { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 0.84rem; line-height: 1.45; }
.bubble.in { align-self: flex-end; background: #13424d; border-bottom-right-radius: 4px; }
.chat.mini .bubble.in { align-self: flex-end; }
.bubble.out { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.ai { border-color: rgba(171, 157, 255, 0.35); background: rgba(171, 157, 255, 0.08); }
.ai-tag { display: flex; align-items: center; gap: 4px; font-size: 0.68rem; font-weight: 600; color: var(--violet); margin-bottom: 4px; letter-spacing: 0.02em; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 13px; border-radius: 14px; background: var(--surface-2); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.sys { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line-2); }
.sys.ok { color: var(--green); border-color: rgba(95, 212, 154, 0.35); }

/* mocks: kanban */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kanban .col { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; align-content: start; min-height: 190px; }
.kanban h4 { font-size: 0.68rem; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; }
.kanban h4 i { font-style: normal; color: var(--subtle); }
.kcard { height: 46px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.kcard.short { height: 34px; }
.kcard.slot { border-style: dashed; background: transparent; }
.kcard.mover { height: 46px; padding: 6px 8px; background: #13424d; border-color: rgba(127, 224, 232, 0.4); font-size: 0.7rem; line-height: 1.3; position: relative; z-index: 2; }
.kcard.mover small { display: block; color: var(--teal-2); font-size: 0.64rem; }
.panel-mock.is-active .kcard.mover { animation: moveCard 1s 0.6s var(--ease) forwards; }
@keyframes moveCard { to { transform: translateX(calc(100% + 26px)); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6); } }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #0d252e; font-size: 0.8rem; }
.toast > .ico { color: var(--green); width: 1.3em; height: 1.3em; }
.toast div { flex: 1; }
.toast small { display: block; color: var(--subtle); font-size: 0.72rem; }

/* mocks: orçamento */
.quote { border-radius: 12px; border: 1px solid var(--line-2); background: #0b1f26; padding: 14px; font-size: 0.8rem; }
.quote-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-family: var(--display); }
.quote ul { display: grid; gap: 5px; color: var(--muted); }
.quote li { display: flex; justify-content: space-between; }
.quote li.disc { color: var(--amber); }
.quote-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.sign, .alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 0.8rem; }
.sign { border: 1px solid rgba(171, 157, 255, 0.3); background: rgba(171, 157, 255, 0.07); }
.sign > .ico { color: var(--violet); width: 1.3em; height: 1.3em; }
.sign small, .alert small { display: block; color: var(--subtle); font-size: 0.72rem; }
.pay { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pay-opt { font-size: 0.76rem; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.pay-opt.is-on { border-color: var(--teal); color: var(--teal-2); background: rgba(76, 195, 209, 0.08); }
.pay .chip { margin-left: auto; }

/* mocks: centro cirúrgico */
.rooms-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.room { border-radius: 10px; padding: 10px; border: 1px solid var(--line); font-size: 0.78rem; position: relative; overflow: hidden; }
.room small { display: block; font-size: 0.68rem; color: var(--muted); }
.room::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--sc); }
.st-busy { --sc: var(--red); }
.st-clean { --sc: var(--amber); }
.st-ready { --sc: var(--green); }
.st-block { --sc: #7c8a93; }
.room.st-busy { background: rgba(255, 125, 110, 0.07); }
.room.st-clean { background: rgba(240, 178, 92, 0.07); }
.room.st-ready { background: rgba(95, 212, 154, 0.07); }
.room.st-block { background: rgba(124, 138, 147, 0.08); }
.who { border-radius: 12px; border: 1px solid var(--line-2); background: #0b1f26; padding: 14px; display: grid; gap: 9px; }
.who h4 { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.who-row { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: all 0.3s; }
.tick .ico { width: 13px; height: 13px; stroke-width: 3; }
.panel-mock.is-active .w1 .tick { animation: tickOn 0.4s 0.9s forwards; }
.panel-mock.is-active .w2 .tick { animation: tickOn 0.4s 1.5s forwards; }
.panel-mock.is-active .w3 .tick { animation: tickOn 0.4s 2.1s forwards; }
@keyframes tickOn { to { background: var(--green); border-color: var(--green); color: #052a1a; } }

/* mocks: pós-op */
.trail { padding: 16px 6px 4px; }
.trail-line { height: 4px; border-radius: 4px; background: var(--line); position: relative; margin: 0 14px; }
.trail-line i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--teal-2)); }
.panel-mock.is-active .trail-line i { animation: grow 1.2s 0.3s var(--ease) forwards; }
@keyframes grow { to { width: 33%; } }
.trail-dots { display: flex; justify-content: space-between; margin-top: -12px; }
.trail-dots span { display: grid; justify-items: center; gap: 8px; font-size: 0.68rem; color: var(--subtle); width: 30px; }
.trail-dots span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line-2); }
.trail-dots .done::before { background: var(--teal); border-color: var(--teal); }
.trail-dots .now { color: var(--fg); font-weight: 600; }
.trail-dots .now::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 5px rgba(240, 178, 92, 0.2); }
.alert { border: 1px solid rgba(255, 125, 110, 0.4); background: rgba(255, 125, 110, 0.08); }
.alert-pill { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 8px; border-radius: 6px; background: var(--red); color: #2b0703; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.55; } }

/* mocks: faturamento */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 80px 1fr 60px; gap: 10px; align-items: center; font-size: 0.78rem; color: var(--muted); }
.bar-row b { color: var(--fg); text-align: right; font-weight: 600; }
.bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--teal), var(--teal-2)); }
.bar-row:nth-child(2) .bar i { background: linear-gradient(90deg, #3a8f6a, var(--green)); }
.bar-row:nth-child(3) .bar i { background: linear-gradient(90deg, #b07a32, var(--amber)); }
.panel-mock.is-active .bar i { animation: barW 1.1s 0.4s var(--ease) forwards; }
@keyframes barW { to { width: var(--w); } }
.dre { border-radius: 12px; border: 1px solid var(--line-2); background: #0b1f26; padding: 12px 14px; display: grid; gap: 5px; font-size: 0.8rem; }
.dre h4 { font-size: 0.76rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.dre div { display: flex; justify-content: space-between; color: var(--muted); }
.dre b { color: var(--fg); font-weight: 600; }
.dre b.neg { color: var(--red); }
.dre .tot { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; color: var(--fg); }
.dre .tot b { color: var(--green); }

/* ---------- Sala de comando ---------- */
.command { background: linear-gradient(180deg, transparent, rgba(18, 80, 94, 0.18) 30%, rgba(18, 80, 94, 0.18) 70%, transparent); }
.cc { border-radius: 24px; border: 1px solid var(--line-2); background: rgba(6, 18, 24, 0.75); padding: clamp(14px, 2.4vw, 24px); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8); }
.cc-top { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; padding: 4px 6px 18px; }
.cc-title { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 600; }
.cc-kpis { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.cc-kpis div { display: grid; }
.cc-kpis b { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cc-kpis span { font-size: 0.76rem; color: var(--subtle); }
.cc-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.cc-card { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 16px; min-width: 0; }
.cc-card h3 { font-size: 0.82rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 12px; }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rooms .room { padding: 12px; min-height: 86px; transition: background 0.5s; }
.rooms .room b { font-size: 0.86rem; }
.rooms .room small { margin-top: 2px; }
.rooms .room .proc { font-size: 0.72rem; color: var(--fg); opacity: 0.85; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rooms .room .tm { position: absolute; top: 10px; right: 10px; font-size: 0.72rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.room.flash { animation: flash 0.9s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--sc); } 100% { box-shadow: 0 0 0 8px transparent; } }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 12px; font-size: 0.72rem; color: var(--subtle); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--sc); }
.cc-beds { display: grid; grid-template-columns: auto 1fr; gap: 0 18px; align-items: center; }
.cc-beds h3 { grid-column: 1 / -1; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) calc(var(--p) * 1%), rgba(255, 255, 255, 0.07) 0); transition: --p 1s; }
.ring > div { width: 104px; height: 104px; border-radius: 50%; background: #08171d; display: grid; place-content: center; text-align: center; }
.ring b { font-family: var(--display); font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ring small { color: var(--subtle); font-size: 0.72rem; margin-top: 4px; }
.units { display: grid; gap: 9px; }
.units li { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 0.76rem; color: var(--muted); }
.units li b { font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.units li .bar { grid-column: 1 / -1; height: 6px; }
.units li .bar i { transition: width 1s var(--ease); }
.tickets, .feed { display: grid; gap: 8px; }
.tickets li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); font-size: 0.8rem; animation: slideIn 0.5s var(--ease); }
.tickets li.done { opacity: 0.5; }
.tickets .sector { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); color: var(--c); text-transform: uppercase; }
.tickets .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tickets .sla { font-size: 0.72rem; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.tickets .sla.warn { color: var(--amber); }
.tickets .sla.ok { color: var(--green); }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; font-size: 0.8rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); animation: slideIn 0.5s var(--ease); }
.feed li:last-child { border-bottom: 0; }
.feed li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); transform: translateY(-1px); }
.feed li time { font-size: 0.7rem; color: var(--subtle); font-variant-numeric: tabular-nums; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.cc-note { font-size: 0.74rem; color: var(--subtle); margin: 14px 6px 0; }

/* ---------- Perioperatório ---------- */
.periop { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.periop-tabs { display: grid; gap: 6px; align-content: start; position: relative; }
.periop-tab { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--muted); transition: all 0.3s; position: relative; }
.periop-tab .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; border: 1px solid var(--line-2); flex: none; transition: all 0.3s; }
.periop-tab b { display: block; font-weight: 600; color: inherit; }
.periop-tab small { font-size: 0.76rem; color: var(--subtle); }
.periop-tab:hover { color: var(--fg); background: var(--surface); }
.periop-tab[aria-selected="true"] { color: var(--fg); background: var(--surface-2); border-color: var(--line-2); }
.periop-tab[aria-selected="true"] .n { background: var(--teal); border-color: var(--teal); color: #04212a; }
.periop-tab .tbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; overflow: hidden; border-radius: 2px; }
.periop-tab[aria-selected="true"] .tbar i { display: block; height: 100%; background: var(--teal); animation: tbar var(--dur, 6s) linear forwards; }
.periop.paused .periop-tab .tbar i { animation: none; width: 0; }
@keyframes tbar { from { width: 0; } to { width: 100%; } }
.periop-body { border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(18, 80, 94, 0.25), rgba(255, 255, 255, 0.02)); padding: clamp(18px, 3vw, 32px); min-height: 340px; }
.periop-body h3 { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
.periop-body > p { color: var(--muted); margin-top: 0.4rem; }
.periop-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 1.4rem; }
.periop-items li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 18, 24, 0.5); font-size: 0.9rem; opacity: 0; animation: popIn 0.5s var(--ease) forwards; }
.periop-items li .ico { color: var(--green); margin-top: 3px; }
.periop-int { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 1.4rem; font-size: 0.8rem; color: var(--subtle); }

/* ---------- Explorador de módulos ---------- */
.explorer-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.track-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.track-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 0.84rem; cursor: pointer; transition: all 0.25s; }
.track-tab .ico { color: var(--c, var(--teal)); }
.track-tab em { font-style: normal; font-size: 0.72rem; color: var(--subtle); }
.track-tab:hover { color: var(--fg); border-color: var(--line-2); }
.track-tab[aria-selected="true"] { color: var(--fg); background: var(--surface-2); border-color: var(--c, var(--teal)); }
.search { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); min-width: min(100%, 320px); color: var(--subtle); }
.search:focus-within { border-color: var(--teal); }
.search input { background: transparent; border: 0; outline: 0; width: 100%; font-size: 0.88rem; color: var(--fg); }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.module { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 0.9rem; animation: popIn 0.45s var(--ease) both; opacity: 0; transform: translateY(10px); transition: border-color 0.25s, background 0.25s, transform 0.25s; }
.module:hover { border-color: var(--c); background: var(--surface-2); transform: translateY(-2px); }
.module .mi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); flex: none; }
.module small { display: block; font-size: 0.72rem; color: var(--subtle); }
.module mark { background: rgba(240, 178, 92, 0.3); color: inherit; border-radius: 3px; padding: 0 1px; }
.module-empty { color: var(--muted); padding: 2rem 0; text-align: center; }

/* ---------- Fluxos ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); margin-bottom: 28px; }
.seg button { padding: 9px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.88rem; font-weight: 500; transition: all 0.25s; }
.seg button[aria-selected="true"] { background: var(--teal); color: #04212a; }
.flow-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.flow-track::before { content: ""; position: absolute; top: 23px; left: 10%; right: 10%; height: 2px; background: var(--line); }
.flow-track .fill { position: absolute; top: 23px; left: 10%; height: 2px; width: 0; background: linear-gradient(90deg, var(--teal), var(--amber)); transition: width 0.7s var(--ease); }
.fstep { position: relative; text-align: center; padding: 0 6px; cursor: pointer; background: transparent; border: 0; color: inherit; }
.fstep .fn { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: var(--bg); border: 2px solid var(--line-2); color: var(--muted); position: relative; z-index: 1; transition: all 0.4s var(--ease); }
.fstep.on .fn { border-color: var(--teal); color: var(--fg); background: #0e2c35; }
.fstep.cur .fn { background: var(--teal); color: #04212a; box-shadow: 0 0 0 8px rgba(76, 195, 209, 0.15); transform: scale(1.08); }
.fstep b { display: block; font-family: var(--display); font-size: 1rem; }
.fstep span { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 4px; }
.fstep:not(.on) b, .fstep:not(.on) span { opacity: 0.55; }

/* ---------- Segurança ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sec-card { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s, transform 0.3s, background 0.3s; }
.sec-card:hover { border-color: rgba(127, 224, 232, 0.35); background: var(--surface-2); transform: translateY(-3px); }
.sec-card > .ico { width: 26px; height: 26px; color: var(--teal-2); margin-bottom: 14px; }
.sec-card h3 { font-family: var(--display); font-size: 1.02rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.sec-card p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Comparativo ---------- */
.compare { border-radius: 20px; border: 1px solid var(--line-2); overflow: hidden; background: var(--surface); }
.compare-row { display: grid; grid-template-columns: 0.8fr 1fr 1.15fr; }
.compare-row > span { padding: 18px 20px; border-top: 1px solid var(--line); font-size: 0.94rem; }
.compare-row > span:first-child { font-weight: 600; }
.compare-row > span:nth-child(2) { color: var(--subtle); }
.compare-row > span:nth-child(3) { background: rgba(76, 195, 209, 0.06); border-left: 1px solid rgba(127, 224, 232, 0.2); }
.compare-head > span { border-top: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.compare-head > span:nth-child(3) { color: var(--teal-2); }

/* ---------- Implantação ---------- */
.waves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; padding-top: 34px; }
.waves-line { position: absolute; top: 8px; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.waves-line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--amber)); transition: width 0.2s linear; }
.wave { position: relative; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.wave::before { content: ""; position: absolute; top: -32px; left: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--teal); }
.wave-tag { font-size: 0.74rem; font-weight: 600; color: var(--amber); letter-spacing: 0.04em; }
.wave h3 { font-family: var(--display); font-size: 1.1rem; margin: 6px 0 8px; letter-spacing: -0.01em; }
.wave p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Contato ---------- */
.cta-box { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding: clamp(24px, 5vw, 56px); border-radius: 28px; border: 1px solid rgba(127, 224, 232, 0.25); background: radial-gradient(600px 300px at 0% 0%, rgba(76, 195, 209, 0.16), transparent 70%), radial-gradient(500px 300px at 100% 100%, rgba(240, 178, 92, 0.1), transparent 70%), var(--bg-2); }
.cta-copy p { color: var(--muted); margin-top: 1rem; }
.cta-points { display: grid; gap: 10px; margin-top: 1.6rem; }
.cta-points li { display: flex; gap: 10px; align-items: center; }
.cta-points .ico { color: var(--green); }
.cta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(6, 18, 24, 0.6); outline: 0; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical; }
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(76, 195, 209, 0.18); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.cta-form .btn { grid-column: 1 / -1; margin-top: 4px; }
.form-status { grid-column: 1 / -1; font-size: 0.86rem; color: var(--green); min-height: 1.3em; }
.form-status.err { color: var(--red); }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.4rem 0; color: var(--subtle); font-size: 0.86rem; }
.footer .logotype { height: 26px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer nav a:hover { color: var(--fg); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 1rem; }
  .nav-login { display: none; }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: rgba(6, 18, 24, 0.97); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .hero { padding-top: 110px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nexus { max-width: 460px; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { order: -1; top: 76px; height: auto; z-index: 3; padding-bottom: 10px; background: linear-gradient(var(--bg) 85%, transparent); }
  .screen { height: 330px; }
  .panel-mock { padding: 14px; gap: 10px; transform-origin: top center; }
  .story-step, .story-step:first-child { min-height: 46vh; }
  .cc-grid { grid-template-columns: 1fr; }
  .periop { grid-template-columns: 1fr; }
  .periop-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .periop-tabs::-webkit-scrollbar { display: none; }
  .waves { grid-template-columns: repeat(2, 1fr); }
  .waves-line, .wave::before { display: none; }
  .waves { padding-top: 0; }
  .cta-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-actions .btn-sm { display: none; }
  .hero-stats { gap: 1.4rem; }
  .hero-stats dt { font-size: 1.5rem; }
  .screen { height: 340px; }
  .panel-mock { font-size: 0.92em; gap: 9px; }
  .dre { gap: 3px; }
  [data-panel="6"] .chips { display: none; }
  .ad-card { width: 220px; }
  .ad-img, .flow-arrow { display: none; }
  .who { padding: 10px 12px; gap: 6px; }
  .quote ul { display: none; }
  .quote-total { margin-top: 4px; }
  .rooms-mini .room:nth-child(n+3) { display: none; }
  .kanban .col { min-height: 140px; }
  .kanban h4 { font-size: 0.6rem; }
  .rooms-mini { grid-template-columns: repeat(2, 1fr); }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .cc-beds { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .units { width: 100%; }
  .periop-items { grid-template-columns: 1fr; }
  .flow-track { grid-template-columns: 1fr; gap: 14px; }
  .flow-track::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .flow-track .fill { display: none; }
  .fstep { display: grid; grid-template-columns: 48px 1fr; gap: 0 14px; text-align: left; padding: 0; }
  .fstep .fn { margin: 0; grid-row: span 2; }
  .fstep b { align-self: end; }
  .fstep span { margin-top: 0; }
  .sec-grid, .waves { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row > span:first-child { grid-column: 1 / -1; padding-bottom: 4px; border-top: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); }
  .compare-row > span:nth-child(2), .compare-row > span:nth-child(3) { border-top: 0; font-size: 0.86rem; padding-top: 8px; }
  .compare-head > span:first-child { display: none; }
  .cta-form { grid-template-columns: 1fr; }
.footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
