/* =========================================================
   Flowmatic — estilos
   Layout: página clara, ritmo amplo; seções escuras pontuais
   (Por que Flowmatic, CTA final, rodapé). Os três produtos
   herdam a cor dos três nós do símbolo Flowmatic.
   ========================================================= */
:root {
  /* Marca */
  --blue: #302B8B;
  --blue-700: #25216F;
  --blue-900: #17144A;
  --ink: #100E2C;
  --cyan: #00BCE4;
  --cyan-ink: #007C99;
  --orange: #FAA51A;
  --orange-ink: #9A5A00;

  /* Produtos */
  --c-smith: #00BCE4;
  --c-smith-soft: #E3F7FC;
  --c-code: #FAA51A;
  --c-code-soft: #17144A;
  --c-claw: #6F63E6;
  --c-claw-soft: #EEECFD;

  /* Neutros (levemente puxados para o azul da marca) */
  --white: #FFFFFF;
  --bg-2: #F5F7FB;
  --text: #171923;
  --muted: #626779;
  --line: #E4E7F0;
  --line-strong: #CDD2E0;
  --danger: #C22F3C;
  --danger-soft: #FDECEE;

  /* Tipografia */
  --f-display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-display: clamp(2.4rem, 1.5rem + 3.2vw, 3.95rem);
  --fs-h2: clamp(1.95rem, 1.35rem + 2.1vw, 3.05rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);

  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(23, 20, 74, .06);
  --shadow-md: 0 10px 30px -12px rgba(23, 20, 74, .18);
  --shadow-lg: 0 24px 60px -24px rgba(23, 20, 74, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.section { padding-block: clamp(72px, 9vw, 128px); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-ink);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--cyan); }
.display { font-size: var(--fs-display); font-weight: 700; letter-spacing: -.025em; color: var(--blue); }
.h2 { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 36rem; }

.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-sub { margin-top: 16px; font-size: var(--fs-lead); color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border-radius: 12px; border: 1.5px solid transparent;
  font-family: var(--f-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: .95rem; }
.btn-lg { --h: 54px; padding: 0 26px; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 18px -8px rgba(48, 43, 139, .55); }
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 10px 24px -10px rgba(48, 43, 139, .7); }
.btn-ghost { background: var(--white); color: var(--blue); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue); background: var(--bg-2); }
.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { background: var(--bg-2); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(23, 20, 74, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 162px; height: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav ul a {
  display: inline-block; padding: 8px 14px; border-radius: 10px;
  font-size: .97rem; font-weight: 500; color: var(--text); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.primary-nav ul a:hover, .primary-nav ul a[aria-current="true"] { color: var(--blue); background: var(--bg-2); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1023px) {
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
    border: 1.5px solid var(--line); background: var(--white); cursor: pointer;
  }
  .nav-toggle-bars { display: grid; gap: 5px; width: 20px; }
  .nav-toggle-bars span { display: block; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(23, 20, 74, .3);
    padding: 8px clamp(16px, 4vw, 32px) 20px;
    display: none;
  }
  .primary-nav.is-open { display: block; animation: navIn .25s var(--ease); }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav ul a { display: block; padding: 14px 12px; font-size: 1.05rem; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: 12px; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(48, 43, 139, .14) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy .display { margin-bottom: 24px; }
.hero-copy .lead { margin-bottom: 36px; }
.hl {
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-size: 100% .14em;
  background-position: 0 92%;
  padding-bottom: .04em;
}
.js .hl { animation: underline 1.1s .5s var(--ease) both; }
@keyframes underline { from { background-size: 0% .14em; } to { background-size: 100% .14em; } }

.hero-products { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-products a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.hero-products a:hover { color: var(--blue); }
.pdot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex-shrink: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); }

.hero-visual { min-width: 0; }
.orbit { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 1; margin-inline: auto; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-lines .ring { fill: none; stroke: var(--line-strong); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 2 6; transform-origin: 50% 50%; }
.js .orbit-lines .ring { animation: spin 90s linear infinite; }
.js .orbit-lines .ring-2 { animation-duration: 140s; animation-direction: reverse; }
.orbit-lines .arm { fill: none; stroke: var(--blue); stroke-width: 1.3; stroke-linecap: round; }
.orbit-lines .tip { stroke: var(--white); stroke-width: .8; }
.tip-smith { fill: var(--c-smith); }
.tip-code { fill: var(--c-code); }
.tip-claw { fill: var(--c-claw); }
.js .orbit-lines .tip { transform-box: fill-box; transform-origin: center; animation: nodeIn .5s var(--ease) both; animation-delay: 1.1s; }
.js .orbit-lines .arm { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.4s .2s var(--ease) forwards; }
.js .orbit-lines #arm-code { animation-delay: .35s; }
.js .orbit-lines #arm-claw { animation-delay: .5s; }
.pulse { opacity: .95; }
.pulse-smith { fill: var(--c-smith); }
.pulse-code { fill: var(--c-code); }
.pulse-claw { fill: var(--c-claw); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-core {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  background: var(--white); border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
}
.orbit-core img { width: 64%; }
.orbit-core::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid var(--cyan); opacity: 0;
}
.js .orbit-core::after { animation: halo 3.2s 1.2s var(--ease) infinite; }
@keyframes halo { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.45); opacity: 0; } }

.orbit-node {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 14px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  text-decoration: none; white-space: nowrap;
  transition: border-color .2s, box-shadow .25s var(--ease), translate .25s var(--ease);
}
.orbit-node:hover { border-color: var(--c); box-shadow: var(--shadow-lg); translate: 0 -3px; }
.node-text { display: grid; line-height: 1.2; }
.node-text strong { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--text); }
.node-text small { font-size: .78rem; color: var(--muted); }
/* Etiquetas ancoradas fora da ponta de cada braço */
.node-smith { left: 57.76%; top: 21.02%; transform: translate(-50%, -100%); margin-top: -3.2%; }
.node-code { left: 21.02%; top: 57.76%; transform: translate(-50%, 0); margin-top: 3.2%; }
.node-claw { left: 71.21%; top: 71.21%; transform: translate(-50%, 0); margin-top: 3.2%; }
.js .orbit-node { animation: nodeIn .7s var(--ease) both; }
.js .node-smith { animation-delay: 1s; }
.js .node-code { animation-delay: 1.15s; }
.js .node-claw { animation-delay: 1.3s; }
@keyframes nodeIn { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-text { display: grid; gap: 18px; color: var(--muted); max-width: 36rem; }
.about-text .pull { font-family: var(--f-display); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.4; font-weight: 500; color: var(--blue); }
.verbs {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: clamp(56px, 8vw, 112px); padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.verbs li {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, .6rem + 3.3vw, 3.3rem); letter-spacing: -.02em; line-height: 1;
  color: var(--text);
}
.verbs i { font-style: normal; color: var(--dotc); }

/* ---------- Produtos ---------- */
.products { background: var(--bg-2); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
}
.product-card[aria-labelledby="p-smith"] { --c-ink: var(--cyan-ink); }
.product-card[aria-labelledby="p-code"]  { --c-ink: var(--orange-ink); }
.product-card[aria-labelledby="p-claw"]  { --c-ink: #5245D2; }
.product-card:hover, .product-card:focus-within { transform: translateY(-6px); border-color: var(--c); box-shadow: var(--shadow-lg); }
.pc-visual { position: relative; height: 280px; background: var(--c-soft); overflow: hidden; border-bottom: 1px solid var(--line); }
.pc-body { display: flex; flex-direction: column; flex: 1; padding: 28px 28px 28px; min-width: 0; }
.pc-cat { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink); margin-bottom: 10px; }
.pc-name { display: flex; align-items: center; gap: 10px; font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin-bottom: 10px; }
.pc-logo:empty { display: none; }
.pc-logo img { height: 32px; width: auto; }
.pc-headline { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; line-height: 1.4; color: var(--blue); margin-bottom: 12px; }
.pc-desc { color: var(--muted); font-size: 1rem; margin-bottom: 18px; }
.pc-quote { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .02em; color: var(--c-ink); margin: -6px 0 16px; }
.pc-benefits { display: grid; gap: 8px; margin-bottom: 20px; font-size: .97rem; }
.pc-benefits li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: baseline; }
.pc-benefits li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--c); translate: 0 1px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tags li { font-family: var(--f-mono); font-size: .72rem; padding: 4px 9px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.pc-cta {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 0 20px; border-radius: 14px;
  background: var(--blue); color: var(--white); font-weight: 600; text-decoration: none;
  transition: background-color .25s var(--ease);
}
.pc-cta::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.pc-cta .arrow { transition: transform .25s var(--ease); }
.product-card:hover .pc-cta { background: var(--blue-700); }
.product-card:hover .pc-cta .arrow { transform: translateX(4px); }

/* Agent Smith visual */
.phone {
  position: absolute; left: 50%; bottom: -36px; transform: translateX(-66%);
  width: 196px; height: 290px; border-radius: 28px; margin-left: -36px;
  background: var(--white); border: 6px solid var(--text);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-bar { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px; border-bottom: 1px solid var(--line); line-height: 1.1; }
.phone-bar .avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--cyan); box-shadow: inset 0 0 0 5px var(--c-smith-soft); }
.phone-bar b { display: block; font-size: .72rem; }
.phone-bar small { font-size: .62rem; color: var(--cyan-ink); }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px 9px 46px; overflow: hidden; }
.msg { max-width: 88%; padding: 7px 10px; border-radius: 12px; font-size: .68rem; line-height: 1.35; }
.msg.in { align-self: flex-start; background: var(--bg-2); color: var(--text); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.msg.event { align-self: center; font-family: var(--f-mono); font-size: .6rem; padding: 4px 9px; background: var(--c-smith-soft); color: var(--cyan-ink); border-radius: 999px; }
.msg.typing { display: inline-flex; gap: 3px; padding: 9px 10px; }
.msg.typing span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .8); animation: blink 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.tools { position: absolute; right: 18px; top: 22px; display: grid; gap: 8px; }
.tools li {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  font-size: .76rem; font-weight: 600; color: var(--text); box-shadow: var(--shadow-sm);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.ticon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--c-smith-soft); color: var(--cyan-ink); font-family: var(--f-mono); font-size: .62rem; }
.tools li.hit { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 188, 228, .18); transform: translateX(-4px); }
.done-badge {
  position: absolute; right: 18px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: var(--text); color: var(--white); border-radius: 999px; font-size: .72rem; font-weight: 600;
  transition: opacity .4s, transform .4s var(--ease);
}
.check { color: var(--cyan); font-weight: 700; }
.msg.event .check { color: var(--cyan-ink); }

/* Sequências (JS adiciona .seq-run; sem JS tudo fica visível) */
.seq-run [data-step]:not(.on) { display: none; }
.seq-run .msg.on { animation: msgIn .35s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pc-visual--smith.seq-run .done-badge { opacity: 0; transform: translateY(6px); }
.pc-visual--smith.seq-run.is-done .done-badge { opacity: 1; transform: none; }

/* LionCode visual */
.pc-visual--code { background: var(--c-code-soft); border-bottom-color: transparent; }
.pc-visual--code::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px);
  background-size: 18px 18px;
}
.editor {
  position: absolute; left: 22px; right: 22px; top: 26px; bottom: -12px;
  background: #0D0B24; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.editor-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.editor-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.editor-bar .tab { margin-left: 10px; font-family: var(--f-mono); font-size: .66rem; color: rgba(255, 255, 255, .7); padding: 2px 8px; border-radius: 5px; background: rgba(255, 255, 255, .06); }
.code { margin: 0; padding: 12px 14px; font-family: var(--f-mono); font-size: .7rem; line-height: 1.9; color: #D8DAF4; white-space: pre; overflow: hidden; }
.code .ln { display: inline-block; width: 20px; color: #4D5180; user-select: none; }
.code .k { color: #FFB84D; }
.code .f { color: #6FE0F5; }
.code .c { color: #8287AE; font-style: italic; }
.code .n { color: #FF9E8A; }
.code .ghost { transition: opacity .35s; }
.code.is-suggesting .ghost { opacity: .42; }
.seq-run .ghost[data-step]:not(.on) { display: inline; opacity: 0; }
.caret { display: inline-block; width: 7px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--orange); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.assist {
  position: absolute; right: 14px; bottom: 26px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 9px;
  background: rgba(250, 165, 26, .14); border: 1px solid rgba(250, 165, 26, .35);
  color: #FFC766; font-size: .7rem; font-weight: 600;
  transition: opacity .3s;
}
.seq-run .assist[data-step]:not(.on) { display: inline-flex; opacity: 0; }
.assist kbd { font-family: var(--f-mono); font-size: .62rem; padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(255, 199, 102, .5); }
.spark { color: var(--orange); }

/* LionClaw visual */
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-lines path { fill: none; stroke: var(--c-claw); stroke-opacity: .45; stroke-width: 2px; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.flow-dot { fill: var(--c-claw); }
.fnode {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 8px;
  background: var(--white); border: 1px solid #DCD8FA; border-radius: 11px;
  font-size: .76rem; font-weight: 600; color: var(--text); box-shadow: var(--shadow-sm); white-space: nowrap;
}
.fnode i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--c-claw-soft); color: #5245D2; font-style: normal; font-size: .7rem; }
.f-in1 { left: 21%; top: 25%; }
.f-in2 { left: 21%; top: 75%; }
.f-agent { left: 50%; top: 50%; padding: 10px 16px 10px 10px; background: var(--c-claw); color: var(--white); border-color: transparent; box-shadow: 0 12px 26px -10px rgba(111, 99, 230, .7); }
.agent-ring { position: relative; background: transparent !important; border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--white); border-radius: 50% !important; }
.js .agent-ring { animation: spin 1.4s linear infinite; }
.f-out1 { left: 79%; top: 26%; }
.f-out2 { left: 79%; top: 74%; }
.f-out1 i { background: #E0F7EC; color: #13804B; }
.workers { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 10px; }
.worker { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, .8); border: 1px solid #DCD8FA; }
.worker b { width: 8px; height: 8px; border-radius: 50%; background: var(--c-claw); }
.worker em { position: relative; display: block; width: 52px; height: 4px; border-radius: 4px; background: #DCD8FA; overflow: hidden; }
.worker em::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--c-claw); border-radius: 4px; }
.js .worker em::after { animation: work 3.2s var(--ease) infinite alternate; }
.js .worker:nth-child(2) em::after { animation-delay: .9s; }
@keyframes work { from { width: 18%; } to { width: 92%; } }

/* ---------- Serviços ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service {
  padding: 28px 26px 30px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
  transition: border-color .3s, transform .35s var(--ease);
}
.service:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.sicon { width: 48px; height: 48px; margin-bottom: 26px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sicon .sat { fill: var(--cyan); stroke: none; transition: transform .45s var(--ease); transform-box: fill-box; transform-origin: center; }
.sicon .sat-line { stroke: var(--orange); }
.service:hover .sicon .sat { transform: scale(1.35); }
.service:hover .sicon { stroke: var(--blue-700); }
.service h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .98rem; }

/* ---------- Por que Flowmatic ---------- */
.why { position: relative; overflow: hidden; background: var(--blue); color: var(--white); }
.why-art { position: absolute; right: -230px; bottom: -190px; width: 560px; opacity: .09; pointer-events: none; }
.why-art path { fill: none; stroke: var(--white); stroke-width: 16; stroke-linecap: round; }
.why-art .o { fill: none; stroke: var(--white); stroke-width: 18; }
.why-art .c { fill: var(--cyan); }
.why-art .r { fill: var(--orange); }
.why-inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why-head .h2 { color: var(--white); margin-bottom: 24px; }
.why-head .h2 span { color: var(--cyan); }
.why-head p:not(.eyebrow) { color: rgba(255, 255, 255, .8); max-width: 34rem; }
.why-head p + p { margin-top: 14px; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.principles li { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .22); }
.principles svg { width: 40px; height: 40px; margin-bottom: 18px; }
.principles .ring { fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; }
.principles .fill { fill: var(--white); }
.principles .fill-o { fill: var(--orange); }
.principles h3 { font-size: .95rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.principles p { color: rgba(255, 255, 255, .78); font-size: 1rem; }

/* ---------- Ecossistema ---------- */
.eco-tree { max-width: 1000px; margin-inline: auto; }
.eco-root {
  display: flex; justify-content: center; width: fit-content; margin-inline: auto;
  padding: 20px 32px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md);
}
.eco-root img { width: 200px; }
.eco-branches { display: block; width: 100%; height: 110px; overflow: visible; }
.eco-branches path { fill: none; stroke: var(--c); stroke-width: 2.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.js .eco-branches path { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.4s var(--ease); }
.js .eco-branches path:nth-child(2) { transition-delay: .15s; }
.js .eco-branches path:nth-child(3) { transition-delay: .3s; }
.eco-tree.in-view .eco-branches path { stroke-dashoffset: 0; }
.eco-leaves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.eco-leaves li {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 24px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white);
}
.js .eco-leaves li { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.9s + var(--d) * .15s); }
.eco-tree.in-view .eco-leaves li { opacity: 1; transform: none; }
.eco-leaves .pdot { position: absolute; top: -6px; left: 50%; translate: -50% 0; width: 12px; height: 12px; }
.eco-leaves h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; }
.eco-leaves p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.eco-leaves a { margin-top: auto; font-weight: 600; color: var(--blue); text-decoration: none; display: inline-flex; gap: 6px; }
.eco-leaves a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Contato ---------- */
.contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-copy { min-width: 0; }
.contact-copy .h2 { margin-bottom: 22px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); max-width: 32rem; }
.contact-copy > p + p { margin-top: 14px; }
.contact-channels { display: grid; gap: 14px; margin-top: 36px; }
.contact-channels li { display: grid; gap: 2px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.ch-label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-channels a { font-weight: 600; color: var(--blue); text-decoration: none; overflow-wrap: anywhere; }
.contact-channels a:hover { text-decoration: underline; }

.form-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-md); }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: .92rem; font-weight: 600; color: var(--text); }
.req { color: var(--danger); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field ::placeholder { color: #9095A8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #AEB4C6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 188, 228, .2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(194, 47, 60, .15); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field select { padding-right: 40px; cursor: pointer; }
.field select:invalid { color: #9095A8; }
.error { font-size: .85rem; color: var(--danger); min-height: 0; }
.error:empty { display: none; }
.field-check { grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); cursor: pointer; }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.field-check label a { color: var(--blue); }
.field-check .error { grid-column: 2; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 12px; background: var(--danger-soft); color: #8E1C28; font-size: .93rem; }
.btn-submit { position: relative; width: 100%; }
.btn-submit .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: var(--white); animation: spin .8s linear infinite; }
.btn-submit.is-loading { pointer-events: none; }
.btn-submit.is-loading .btn-label { opacity: .75; }
.btn-submit.is-loading .spinner { display: inline-block; }
.btn-submit:disabled { cursor: progress; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; }
.form-success { text-align: center; padding: 36px 8px; display: grid; justify-items: center; gap: 12px; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 1.6rem; color: var(--blue); }
.form-success p { color: var(--muted); max-width: 26rem; margin-bottom: 12px; }
.success-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-smith-soft); color: var(--cyan-ink); font-size: 1.6rem; font-weight: 700; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- CTA final ---------- */
.final-cta { padding-block: clamp(72px, 9vw, 120px); }
.final-panel {
  position: relative; overflow: hidden;
  padding: clamp(44px, 7vw, 88px) clamp(24px, 6vw, 80px);
  border-radius: 32px; background: var(--blue-900); color: var(--white);
}
.final-panel .h2 { color: var(--white); max-width: 20ch; margin-bottom: 18px; position: relative; }
.final-panel p { color: rgba(255, 255, 255, .78); font-size: var(--fs-lead); max-width: 34rem; margin-bottom: 36px; position: relative; }
.final-panel .btn-row { position: relative; }
.fp-dot { position: absolute; border-radius: 50%; }
.fp-dot--c { width: 220px; height: 220px; right: -60px; top: -70px; background: var(--cyan); opacity: .9; }
.fp-dot--o { width: 120px; height: 120px; right: 140px; bottom: -50px; background: var(--orange); }
.final-panel::before {
  content: ""; position: absolute; right: 40px; top: 60px; width: 260px; height: 220px;
  border: 14px solid rgba(255, 255, 255, .1); border-left-color: transparent; border-bottom-color: transparent;
  border-radius: 50%; transform: rotate(20deg);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding-block: 72px 28px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.logo-plate { display: inline-flex; padding: 12px 16px; background: var(--white); border-radius: 12px; margin-bottom: 18px; }
.logo-plate img { width: 150px; }
.footer-brand p { max-width: 22rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-col h3 { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: rgba(255, 255, 255, .55); }

/* ---------- Revelação ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1099px) {
  .product-grid { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .product-card { flex-direction: row; }
  .pc-visual { flex: 0 0 44%; height: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--line); }
}
@media (max-width: 959px) {
  .hero-grid, .about-grid, .why-inner, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .eco-branches { display: none; }
  .eco-root { margin-bottom: 28px; }
  .eco-leaves { grid-template-columns: 1fr; gap: 28px; position: relative; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .verbs { flex-direction: column; }
}
@media (max-width: 599px) {
  body { font-size: 1rem; }
  .service-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .orbit-node { gap: 8px; padding: 7px 11px 7px 9px; border-radius: 11px; }
  .node-text strong { font-size: .84rem; }
  .node-text small { font-size: .66rem; }
  .pc-body { padding: 24px 20px; }
  .pc-name { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fp-dot--c { width: 140px; height: 140px; right: -50px; top: -50px; }
  .fp-dot--o { width: 70px; height: 70px; right: 60px; bottom: -30px; }
  .final-panel::before { display: none; }
  .why-art { width: 420px; right: -220px; bottom: -160px; }
  /* Celular ancorado à esquerda com respiro; ferramentas à direita, sem sobreposição */
  .phone { left: 16px; transform: none; margin-left: 0; width: min(196px, 53%); }
  .tools { right: 14px; gap: 6px; }
  .tools li { padding: 5px 10px 5px 6px; font-size: .72rem; gap: 6px; }
  .done-badge { right: 14px; bottom: auto; top: 158px; max-width: calc(44% - 26px); padding: 6px 10px; font-size: .68rem; line-height: 1.25; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { transform: none; }
  .js .orbit-lines .arm { stroke-dashoffset: 0; }
  .caret { animation: none; }
}
